/* KKIsolutions – Website Stylesheet */

:root {
  --bg-base:    #030e1c;
  --bg-surface: #071425;
  --bg-card:    #0b1d33;
  --teal:       #00c9bb;
  --teal-dim:   #00c9bb33;
  --blue:       #1e6fff;
  --blue-dim:   #1e6fff22;
  --text-primary:   #e8f0fb;
  --text-secondary: #7a9ab8;
  --border:     #0f2540;
  --border-glow:#00c9bb40;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ─── GRID CANVAS BACKGROUND ─────────────────────────────── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,201,187,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,201,187,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.grid-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(30,111,255,.12) 0%, transparent 70%);
}

/* ─── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: rgba(3,14,28,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo img { height: 40px; width: 40px; object-fit: contain; border-radius: 8px; }
.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: .02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--teal) !important;
  padding: .45rem 1.1rem;
  border-radius: 6px;
  font-size: .85rem !important;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--teal) !important; color: var(--bg-base) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-surface);
    border-bottom: 1px solid var(--border); padding: 1rem 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: .75rem 0; font-size: 1rem; }
  .nav-cta { border: none; }
  .hamburger { display: flex; }
}

/* ─── SECTIONS BASE ───────────────────────────────────────── */
section { position: relative; z-index: 1; }

/* ─── HERO ────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 120px 5vw 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,187,.10) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--border-glow);
  background: var(--teal-dim);
  color: var(--teal);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px;
  margin-bottom: 2rem;
  animation: fadeDown .7s ease both;
}
.hero-badge::before { content: '●'; font-size: .55rem; animation: pulse 2s infinite; }

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp   { from{opacity:0;transform:translateY(20px)}  to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 820px;
  animation: fadeUp .9s .1s ease both;
}
.hero-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 560px;
  animation: fadeUp .9s .25s ease both;
}
.hero-ctas {
  margin-top: 2.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  animation: fadeUp .9s .4s ease both;
}
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--teal), #00a99c);
  color: var(--bg-base);
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  text-decoration: none; padding: .85rem 2rem; border-radius: 8px;
  letter-spacing: .02em;
  box-shadow: 0 0 24px rgba(0,201,187,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(0,201,187,.5); }
.btn-secondary {
  display: inline-block;
  border: 1px solid var(--border);
  color: var(--text-secondary); text-decoration: none;
  font-weight: 500; font-size: .95rem;
  padding: .85rem 2rem; border-radius: 8px;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.trust-bar {
  margin-top: 1.75rem;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: .8rem; font-weight: 500;
  padding: .4rem 1rem; border-radius: 999px;
}

.hero-logo-float {
  margin-top: 4rem;
  animation: fadeIn 1.2s .6s ease both;
}
.hero-logo-float img { width: 170px; opacity: .55; }

/* ─── DIVIDER ─────────────────────────────────────────────── */
.section-divider {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  position: relative; z-index: 1;
}

/* ─── SECTION LABELS ──────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-secondary); font-size: 1rem; font-weight: 300;
  max-width: 520px;
}

/* ─── LEISTUNGEN ──────────────────────────────────────────── */
#leistungen {
  padding: 100px 5vw;
}
.leistungen-header { text-align: center; margin-bottom: 3.5rem; }
.leistungen-header .section-sub { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.services-grid .service-card { grid-column: span 2; }
.services-grid .service-card:nth-child(4) { grid-column: 2 / span 2; }
.services-grid .service-card:nth-child(5) { grid-column: 4 / span 2; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--teal-dim), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.service-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,201,187,.12); }
.service-card:hover::before { opacity: 1; }

.service-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2.5rem;
  color: var(--border); line-height: 1;
  margin-bottom: .75rem;
  transition: color .3s;
}
.service-card:hover .service-num { color: var(--teal-dim); }
.service-icon { font-size: 1.8rem; margin-bottom: 1rem; }
.service-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: .6rem; color: var(--text-primary);
}
.service-desc { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

@media (max-width: 700px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) { grid-column: auto; }
}

/* ─── FÜR WEN (BRANCHEN) ──────────────────────────────────── */
#branchen { padding: 100px 5vw; }
.branchen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: 1100px; margin: 0 auto;
}
.branchen-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color .3s, transform .3s;
}
.branchen-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.branchen-icon { font-size: 1.6rem; margin-bottom: .85rem; }
.branchen-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  margin-bottom: .5rem; color: var(--text-primary);
}
.branchen-desc { color: var(--text-secondary); font-size: .85rem; line-height: 1.55; }

@media (max-width: 900px) {
  .branchen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .branchen-grid { grid-template-columns: 1fr; }
}

/* ─── SO ARBEITEN WIR (ABLAUF) ───────────────────────────────── */
#ablauf { padding: 100px 5vw; background: var(--bg-surface); }
.ablauf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.ablauf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}
.ablauf-num {
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  color: var(--teal); line-height: 1;
  margin-bottom: .75rem;
}
.ablauf-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin-bottom: .6rem; color: var(--text-primary);
}
.ablauf-desc { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

@media (max-width: 700px) {
  .ablauf-grid { grid-template-columns: 1fr; }
}

/* ─── ÜBER MICH ───────────────────────────────────────────── */
#ueber-mich {
  padding: 100px 5vw;
  background: var(--bg-surface);
}
.about-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media (max-width: 768px) { .about-inner { grid-template-columns: 1fr; gap: 2.5rem; } }

.about-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.about-img-wrap {
  position: relative; width: 280px; height: 280px;
  flex-shrink: 0;
}
.about-ring {
  position: absolute; inset: -20px;
  border-radius: 50%;
  border: 1px dashed var(--border-glow);
  animation: spin 18s linear infinite;
}
.about-ring-2 {
  position: absolute; inset: -40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  animation: spin 30s linear infinite reverse;
}
@keyframes spin { to { transform: rotate(360deg); } }

.about-logo-bg {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 60px rgba(0,201,187,.15);
}
.about-logo-bg img { width: 230px; height: 230px; object-fit: cover; border-radius: 50%; }

.about-dots {
  position: absolute; top: 10px; right: -20px;
  display: grid; grid-template-columns: repeat(5,8px); gap: 5px;
}
.about-dots span { display: block; width: 3px; height: 3px; border-radius: 50%; background: var(--teal); opacity: .4; }

.about-text .section-label { display: block; }
.about-text .section-title { margin-bottom: 1.25rem; }
.about-body { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.about-tag {
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-card);
}

/* ─── KONTAKT ─────────────────────────────────────────────── */
#kontakt {
  padding: 100px 5vw;
}
.kontakt-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 4rem; align-items: start;
}
@media (max-width: 768px) { .kontakt-inner { grid-template-columns: 1fr; gap: 3rem; } }

.kontakt-left .section-title { margin-bottom: .75rem; }
.kontakt-left .section-sub { margin-bottom: 2rem; }

.kontakt-info { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.kontakt-item {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-secondary); font-size: .9rem;
  text-decoration: none;
  transition: color .2s;
}
.kontakt-item:hover { color: var(--teal); }
.kontakt-item-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
  transition: border-color .2s;
}
.kontakt-item:hover .kontakt-item-icon { border-color: var(--teal); }

.kontakt-cta-big {
  display: block; text-align: center;
  background: linear-gradient(135deg, var(--teal), #009e92);
  color: var(--bg-base); font-weight: 700; font-size: 1rem;
  text-decoration: none; padding: 1rem 1.5rem; border-radius: 10px;
  box-shadow: 0 0 28px rgba(0,201,187,.25);
  transition: transform .2s, box-shadow .2s;
  margin-bottom: 1rem;
}
.kontakt-cta-big:hover { transform: translateY(-2px); box-shadow: 0 0 40px rgba(0,201,187,.4); }

/* ─── FORM ────────────────────────────────────────────────── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 2.5rem;
}
.contact-form h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
  margin-bottom: 1.5rem; color: var(--text-primary);
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block; font-size: .78rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: .4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px; padding: .75rem 1rem;
  color: var(--text-primary); font-family: var(--font-body); font-size: .95rem;
  outline: none; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #2a4a6a; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.form-checkbox label {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .8rem; font-weight: 400; text-transform: none; letter-spacing: normal;
  color: var(--text-secondary);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] { width: 16px; height: 16px; margin-top: .2rem; accent-color: var(--teal); flex-shrink: 0; }
.form-checkbox span { flex: 1; min-width: 0; }
.form-checkbox a { color: var(--teal); }
.form-hint {
  margin-top: .75rem; text-align: center;
  color: var(--text-secondary); font-size: .8rem;
}
.form-submit {
  width: 100%; margin-top: .5rem;
  background: linear-gradient(135deg, var(--teal), #009e92);
  border: none; border-radius: 8px;
  color: var(--bg-base); font-family: var(--font-body);
  font-weight: 700; font-size: 1rem;
  padding: .9rem; cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.form-submit:hover { opacity: .9; transform: translateY(-1px); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { height: 32px; }
.footer-logo span { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--text-primary); }
.footer-copy { color: var(--text-secondary); font-size: .82rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: .82rem; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }

/* ─── SCROLL REVEAL ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ─── RECHTSTEXT-SEITEN (Impressum / Datenschutz / AGB) ──────────── */
.legal-page {
  padding: 160px 5vw 100px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-page .section-title { margin-bottom: 1.5rem; }
.legal-page p { color: var(--text-secondary); margin-bottom: 1rem; }
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 .75rem;
}
.legal-page ul { color: var(--text-secondary); margin: 0 0 1rem 1.25rem; }
.legal-page li { margin-bottom: .35rem; }
.legal-page .legal-todo {
  border: 1px dashed var(--border-glow);
  background: var(--teal-dim);
  color: var(--teal);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  margin-top: 2rem;
}
