/* ============ MikaTec — gemeinsames Design ============ */
:root {
  --bg:           #0a0e14;
  --bg-elev:      #0f151e;
  --bg-panel:     #131b26;
  --bg-panel-2:   #18222f;
  --border:       #233141;
  --border-soft:  #1b2735;
  --text-primary: #f2f6fb;
  --text-muted:   #93a4b6;
  --text-dim:     #61748a;
  --accent:       #5aa2ff;
  --accent-2:     #6ee7d8;
  --accent-grad:  linear-gradient(120deg, #5aa2ff 0%, #6ee7d8 100%);
  --accent-soft:  rgba(90,162,255,.10);
  --radius:       16px;
  --radius-lg:    22px;
  --maxw:         1800px;
  --shadow:       0 24px 60px -20px rgba(0,0,0,.7);
  --shadow-sm:    0 8px 24px -12px rgba(0,0,0,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(90,162,255,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 12%, rgba(110,231,216,.08), transparent 55%);
  pointer-events: none;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -2; opacity: .35;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); }

.grad {
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---- Logo ---- */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem; color: #06121f;
  box-shadow: 0 6px 18px -6px rgba(90,162,255,.6);
}
.logo img.mark { width: 38px; height: 38px; border-radius: 0; background: none; box-shadow: none; display: block; }
.logo .name { font-weight: 700; letter-spacing: .3px; font-size: 1.08rem; color: var(--text-primary); }
.logo .name b { font-weight: 800; }
.logo:hover .name { color: var(--text-primary); }

/* ---- Kopfzeile ---- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,20,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-links a.active:not(.nav-cta) { position: relative; }
.nav-links a.active:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -26px; height: 2px;
  background: var(--accent-grad);
}
.nav-cta {
  padding: 9px 18px; border-radius: 9px; font-size: .92rem; font-weight: 600;
  background: var(--accent-soft); color: var(--accent) !important;
  border: 1px solid rgba(90,162,255,.25);
}
.nav-cta:hover { background: rgba(90,162,255,.18); }
@media (max-width: 680px){ .nav-links { gap: 18px; } .nav-links a:not(.nav-cta) { font-size: .9rem; } }
@media (max-width: 520px){ .nav-links a.start-link { display: none; } }

/* ---- Seiten-Inhalt ---- */
main { flex: 1 0 auto; }
.page { padding: 64px 0 90px; }
main > section { padding: 80px 0; position: relative; }
main > section + section { border-top: 1px solid var(--border-soft); }

/* ---- Hero (Startseite) ---- */
.hero { padding: 110px 0 96px; text-align: center; }
.hero .eyebrow { margin-left: auto; margin-right: auto; }
.hero h1 { margin-left: auto; margin-right: auto; }
.hero p.lead { margin-left: auto; margin-right: auto; }
.hero .cta-row { justify-content: center; }
.hero .hero-stats { justify-content: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .78rem; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 28px;
  border: 1px solid rgba(90,162,255,.22);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.18; letter-spacing: -.5px; font-weight: 700; margin-bottom: 24px; max-width: none; }
@media (max-width: 680px){ .hero-br { display: none; } }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--text-muted); max-width: 780px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 0; margin-top: 60px; flex-wrap: wrap; justify-content: center; }
.hero-stats .stat { padding: 0 36px; text-align: center; }
.hero-stats .stat + .stat { border-left: 1px solid var(--border); }
.hero-stats .stat .n { font-size: 1.3rem; font-weight: 800; letter-spacing: -.3px; }
.hero-stats .stat .l { color: var(--text-dim); font-size: .88rem; margin-top: 2px; }
@media (max-width: 560px){ .hero-stats .stat { padding: 14px 0; } .hero-stats .stat + .stat { border-left: 0; border-top: 1px solid var(--border); } .hero-stats { flex-direction: column; } }

/* ---- Buttons ---- */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 30px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease;
}
.btn-primary { background: var(--accent-grad); color: #06121f; box-shadow: 0 12px 30px -10px rgba(90,162,255,.55); }
.btn-primary:hover { transform: translateY(-2px); color: #06121f; box-shadow: 0 18px 40px -12px rgba(90,162,255,.7); }
.btn-ghost { border-color: var(--border); color: var(--text-primary); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }

/* ---- Seiten-Kopf (Unterseiten) ---- */
.page-head { margin: 0 auto 56px; max-width: 720px; text-align: center; }
.sec-kicker { display: inline-block; color: var(--accent-2); font-size: .82rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; margin-bottom: 14px; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.8px; font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.page-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.6px; font-weight: 800; line-height: 1.15; margin-bottom: 16px; }

/* feiner Abschnitts-Teiler */
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto; max-width: 220px; opacity: .8; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--border)); }
.divider::after { background: linear-gradient(90deg, var(--border), transparent); }
.divider .gem { width: 9px; height: 9px; transform: rotate(45deg); background: var(--accent-grad); border-radius: 2px; }

/* Technologie-Chips */
.tech-wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 760px; margin: 0 auto; }
.tech { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: var(--bg-panel); border: 1px solid var(--border-soft); color: var(--text-primary); font-weight: 600; font-size: .95rem; }
.tech:hover { border-color: var(--accent); }

/* Listen in Karten */
.card ul { list-style: none; margin-top: 14px; }
.card ul li { color: var(--text-muted); font-size: .94rem; padding-left: 20px; position: relative; margin-bottom: 6px; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }

/* CTA-Band */
.cta-band { text-align: center; padding: 40px 40px 44px; }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.cta-band p { color: var(--text-muted); max-width: 520px; margin: 0 auto 28px; }

/* Werte-Pfeiler */
.pillar { text-align: center; }
.pillar .ico { margin-left: auto; margin-right: auto; }

/* Weg / Timeline */
.timeline { max-width: 720px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .5; }
.tl-item { position: relative; padding-bottom: 28px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-grad); box-shadow: 0 0 0 4px rgba(90,162,255,.12); }
.tl-item h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.tl-item p { color: var(--text-muted); font-size: .96rem; }
.page-head p { color: var(--text-muted); font-size: 1.1rem; margin-left: auto; margin-right: auto; }

/* ---- Raster ---- */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px){ .cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .cols-3, .cols-2 { grid-template-columns: 1fr; } }

/* ---- Karte ---- */
.card {
  position: relative; background: var(--bg-panel);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent-grad); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--border); box-shadow: var(--shadow-sm); }
.card:hover::before { transform: scaleX(1); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid rgba(90,162,255,.18);
}
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 9px; letter-spacing: -.2px; }
.card p { color: var(--text-muted); font-size: .97rem; }
.tag {
  display: inline-block; font-size: .76rem; font-weight: 600; color: var(--accent-2);
  background: rgba(110,231,216,.08); border: 1px solid rgba(110,231,216,.18);
  padding: 4px 11px; border-radius: 7px; margin: 3px 5px 3px 0;
}
.proj .meta { margin-top: auto; padding-top: 16px; }

/* ---- Ablauf ---- */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px){ .steps { grid-template-columns: 1fr; } }
.step { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 26px; }
.step .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-grad); color: #06121f; font-weight: 800; font-size: .95rem; margin-bottom: 16px;
}
.step h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; }
.step p { color: var(--text-muted); font-size: .92rem; }

/* ---- Über mich ---- */
.about-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 820px){ .about-grid { grid-template-columns: 1fr; } }
.about p { color: var(--text-muted); margin-bottom: 16px; font-size: 1.04rem; }
.about p strong { color: var(--text-primary); font-weight: 700; }
.facts {
  background: linear-gradient(160deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  box-shadow: var(--shadow-sm);
}
.facts .row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.facts .row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts .row:first-child { padding-top: 0; }
.facts .k { color: var(--text-dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .6px; flex: none; }
.facts .v { font-weight: 700; font-size: .95rem; text-align: right; }

/* ---- Kontakt ---- */
.contact-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #142133, #0f1a28);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 48px 40px; text-align: center; box-shadow: var(--shadow);
}
.contact-box::before {
  content: ""; position: absolute; inset: -2px; z-index: 0; opacity: .5;
  background: radial-gradient(500px 220px at 50% -20%, rgba(90,162,255,.35), transparent 70%);
}
.contact-box > * { position: relative; z-index: 1; }
.contact-box h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.contact-box p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.05rem; max-width: 480px; margin-left:auto; margin-right:auto; }
.contact-extra { margin-top: 30px; color: var(--text-dim); font-size: .95rem; }
.contact-extra a { font-weight: 600; }

/* ---- Fuß ---- */
footer { flex-shrink: 0; padding: 36px 0; border-top: 1px solid var(--border-soft); color: var(--text-dim); font-size: .88rem; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-inner a { color: var(--text-muted); }

/* ============ Hell-/Dunkel-Umschalter ============ */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--bg-panel); border: 1px solid var(--border-soft);
  color: var(--text-primary); font-size: 1.05rem; line-height: 1;
  display: inline-grid; place-items: center; transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); transform: translateY(-1px); }

/* dunkle Bänder behalten immer helle Schrift (egal welcher Modus) */
.contact-box h2 { color: #f4f8fc; }
.contact-box p { color: #b9c6d4; }
.contact-extra { color: #8a99aa; }

/* ============ Heller Modus ============ */
html[data-theme="light"] {
  --bg:           #b9c4d2;
  --bg-elev:      #d2dae6;
  --bg-panel:     #dce3ed;
  --bg-panel-2:   #cfd8e4;
  --border:       #a7b6c7;
  --border-soft:  #b8c4d3;
  --text-primary: #0e1822;
  --text-muted:   #33455a;
  --text-dim:     #566678;
  --accent:       #2461c4;
  --accent-2:     #0c7d70;
  --accent-soft:  rgba(36,97,196,.14);
  --shadow:       0 24px 60px -22px rgba(40,70,110,.30);
  --shadow-sm:    0 10px 28px -14px rgba(40,70,110,.25);
}
/* Tags im Hellmodus klar lesbar: dunkles Türkis + sichtbarer Rahmen */
html[data-theme="light"] .tag {
  background: rgba(12,125,112,.12);
  border-color: rgba(12,125,112,.42);
  color: #0a5f55;
}

/* ---- Kontaktformular ---- */
.cform { max-width: 560px; margin: 26px auto 0; text-align: left; }
.cform label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .5px; margin: 16px 0 7px; }
.cform input, .cform textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-panel-2);
  color: var(--text-primary); font: inherit; font-size: 1rem; transition: border-color .15s;
}
.cform input::placeholder, .cform textarea::placeholder { color: var(--text-dim); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.cform .btn { width: 100%; justify-content: center; margin-top: 20px; border: 0; cursor: pointer; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cform-msg { margin-top: 16px; font-size: .96rem; text-align: center; min-height: 1.2em; }
.cform-msg.ok { color: var(--accent-2); font-weight: 600; }
.cform-msg.err { color: #ff6b81; }

/* ---- Kontaktdaten (Telefon/Adresse) ---- */
.contact-details { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: center;
  margin-top: 22px; color: var(--text-muted); font-size: 1rem; }
.contact-details span { display: inline-flex; align-items: center; gap: 8px; }
.contact-details a { color: var(--text-primary); text-decoration: none; font-weight: 600; }
.contact-details a:hover { color: var(--accent); }
html[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 78% -8%, rgba(44,119,214,.10), transparent 60%),
    radial-gradient(700px 500px at 0% 12%, rgba(21,97,107,.08), transparent 55%);
}
html[data-theme="light"] header.nav { background: rgba(212,220,230,.85); }
html[data-theme="light"] .btn-ghost { background: #ffffff; }
html[data-theme="light"] .card:hover { box-shadow: var(--shadow-sm); }

/* ============ Scroll-Animationen ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.in { opacity: 1; transform: none; transition: none; } }

/* ============ Zahlen-/Fakten-Band ============ */
.factbar { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1000px; margin: 0 auto;
  background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.factbar .f { flex: 1 1 0; min-width: 160px; text-align: center; padding: 30px 20px; }
.factbar .f + .f { border-left: 1px solid var(--border-soft); }
.factbar .f .num { font-size: 2.1rem; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.factbar .f .lbl { color: var(--text-dim); font-size: .92rem; margin-top: 8px; }
@media (max-width: 680px){ .factbar .f { flex-basis: 50%; } .factbar .f:nth-child(odd) { border-left: 0; } .factbar .f:nth-child(n+3) { border-top: 1px solid var(--border-soft); } }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--bg-panel); border: 1px solid var(--border-soft); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--text-primary); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--border-soft); }
.faq .a { padding: 16px 22px; color: var(--text-muted); }
