/* Yasin Görgülü – KI-Automatisierung & Softwareentwicklung
   Farben und Schriften folgen der Visitenkarte: Nachtblau, Türkis-Signal, Leiterbahn-Motiv. */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #0B1018;
  --deep: #0E151F;
  --panel: #121B27;
  --line: #1F2B3A;
  --line-strong: #2C3D51;
  --frost: #E8ECF1;
  --steel: #9AA3AE;
  --signal: #3FD0C9;
  --signal-hover: #7FE3DE;
  --signal-ink: #04201E;
  --signal-soft: rgba(63, 208, 201, 0.12);
  --accent: #F5B14C;
  --accent-hover: #F9CB84;
  --accent-ink: #241603;

  --f-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(5rem, 11vw, 8.5rem);
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--frost);
  font: 400 1.0625rem/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-hover); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: var(--signal-ink); }

h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--signal); color: var(--signal-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--frost); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; color: var(--frost); border-color: var(--signal); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 24, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--frost); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--frost); }
.brand-mark { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--signal); stroke-width: 1.8; stroke-linecap: round; }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-name { font: 600 1.0625rem/1.2 var(--f-display); letter-spacing: -0.01em; }
.brand-sub { font-size: .8125rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--steel); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.site-nav a:not(.btn):hover { color: var(--frost); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--frost); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .nav-toggle path { transition: transform .25s; transform-origin: 12px 12px; }
  .nav-toggle[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--night); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; color: var(--frost); }
  .site-nav .btn { margin-top: 16px; }
}
@media (max-width: 520px) { .brand-sub { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem); }
.hero-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(ellipse 55% 60% at 82% 30%, rgba(63, 208, 201, 0.16), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 16px 16px, 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 90% 85% at 60% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 90% 85% at 60% 40%, #000 30%, transparent 85%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 28px; justify-items: start; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--steel); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--steel); font-size: .9375rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }

/* Schaltplan */
.schematic { margin: 0; display: grid; gap: 18px; }
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic text { font-family: var(--f-mono); font-size: 15px; fill: var(--steel); transition: fill .4s; }
.trace path { fill: none; stroke: var(--line-strong); stroke-width: 1.6; transition: stroke .4s; }
.trace path.is-live { stroke: rgba(63, 208, 201, 0.55); }
.trace-faint path { fill: none; stroke: var(--signal); stroke-opacity: .28; stroke-width: 1.2; }
.pad-faint circle { fill: var(--signal); fill-opacity: .55; }
.node circle, .node rect { fill: var(--night); stroke: var(--line-strong); stroke-width: 1.6; transition: fill .4s, stroke .4s; }
.node.is-live circle, .node.is-live rect { fill: var(--accent); stroke: var(--accent); }
.node.is-live text { fill: var(--frost); }
.chip-body { fill: var(--panel); stroke: var(--line-strong); stroke-width: 1.6; transition: stroke .4s; }
.chip-pins path { stroke: var(--line-strong); stroke-width: 2; }
.chip-logo { fill: none; stroke: var(--signal); stroke-width: 1.5; stroke-linecap: round; }
.chip .chip-label { font-size: 14px; fill: var(--frost); }
.chip-glow { opacity: 0; transition: opacity .5s; }
.chip.is-live .chip-glow { opacity: 1; }
.chip.is-live .chip-body { stroke: var(--signal); }
.pulse { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(245, 177, 76, 0.9)); }
.schematic-caption {
  display: flex; gap: 12px; align-items: baseline;
  padding: 14px 18px; min-height: 76px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(18, 27, 39, 0.7);
  font-size: .9375rem; color: var(--frost);
}
.caption-kicker { flex: none; font-family: var(--f-mono); font-size: .8125rem; color: var(--signal); }
#schematic-text { transition: opacity .35s; }
#schematic-text.is-fading { opacity: 0; }

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .schematic { max-width: 600px; }
}

/* Sections */
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.section-deep { background: var(--deep); }
.section-head { display: grid; gap: 16px; max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--signal); margin-bottom: 22px; }
.section-head p { color: var(--steel); font-size: 1.125rem; }

/* Leistungen */
.pillars { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.pillar { display: grid; gap: 16px; align-content: start; }
.pillar > p { color: var(--steel); max-width: 32em; }
.pillar-icon { width: 36px; height: 36px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.pillar-divider { position: relative; width: 1px; display: grid; align-content: space-between; justify-items: center; }
.pillar-divider span { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent); }
.pillar-divider i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.pillar-divider i:first-of-type { margin-top: 18%; }
.pillar-divider i:last-of-type { margin-bottom: 18%; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ticks li { position: relative; padding: 14px 0 14px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 1.45em;
  width: 12px; height: 1.5px; background: var(--signal);
}
.ticks li::after {
  content: ""; position: absolute; left: 13px; top: calc(1.45em - 2.5px);
  width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--signal); background: var(--night);
}
.consult {
  display: grid; grid-template-columns: auto 1fr; gap: 20px 28px; align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(63, 208, 201, 0.07), rgba(18, 27, 39, 0.4) 60%);
}
.consult h3 { margin-bottom: 8px; }
.consult p { color: var(--steel); max-width: 46em; }
@media (max-width: 820px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar-divider { width: 100%; height: 1px; display: block; }
  .pillar-divider span { background: linear-gradient(to right, transparent, var(--line-strong) 10%, var(--line-strong) 90%, transparent); }
  .pillar-divider i { display: none; }
  .consult { grid-template-columns: 1fr; }
}

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1.5px;
  background: linear-gradient(to right, var(--signal), var(--line-strong) 70%, transparent);
}
.step { position: relative; display: grid; gap: 12px; align-content: start; }
.step-node {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--deep); border: 1.5px solid var(--signal); color: var(--signal);
  font: 500 1rem/1 var(--f-mono); margin-bottom: 12px;
}
.step p { color: var(--steel); }
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before { left: 21px; right: auto; top: 22px; bottom: 22px; width: 1.5px; height: auto; background: linear-gradient(to bottom, var(--signal), var(--line-strong)); }
  .step { grid-template-columns: 44px 1fr; column-gap: 20px; row-gap: 6px; }
  .step-node { grid-row: span 2; margin: 0; }
}

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.principle { display: grid; gap: 10px; align-content: start; }
.principle h3 { font-size: 1.1875rem; }
.principle p { color: var(--steel); }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; } }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.portrait {
  position: sticky; top: 110px;
  aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 70% 25%, rgba(63, 208, 201, 0.18), transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--panel);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-art { width: 100%; height: 100%; }
.portrait-art text { font: 500 76px/1 var(--f-display); letter-spacing: -0.04em; fill: var(--frost); }
.about-copy { display: grid; gap: 20px; }
.about-copy h2 { margin-bottom: 8px; }
.about-copy h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--signal); margin-bottom: 22px; }
.about-copy > p { color: var(--steel); font-size: 1.125rem; max-width: 36em; }
.facts { margin: 12px 0 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--steel); font-size: .9375rem; }
.facts dd { margin: 0; }
.product {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  margin-top: 16px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--panel);
}
.product-icon { width: 30px; height: 30px; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.product h3 { font-size: 1.125rem; margin-bottom: 6px; }
.product p { color: var(--steel); font-size: 1rem; }
@media (max-width: 820px) {
  .about { grid-template-columns: 1fr; }
  .portrait { position: relative; top: 0; max-width: 300px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
}

/* FAQ */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 500 1.1875rem/1.35 var(--f-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--signal), var(--signal)) center / 14px 1.6px no-repeat,
    linear-gradient(var(--signal), var(--signal)) center / 1.6px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--signal-hover); }
.faq details p { color: var(--steel); padding: 0 40px 24px 0; max-width: 38em; }
@media (max-width: 820px) { .faq-layout { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 50% 60% at 15% 85%, rgba(63, 208, 201, 0.12), transparent 70%);
}
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-copy { display: grid; gap: 20px; }
.contact-copy h2::before { content: ""; display: block; width: 28px; height: 3px; background: var(--signal); margin-bottom: 22px; }
.contact-copy > p { color: var(--steel); font-size: 1.125rem; max-width: 30em; }
.channels { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.channels li { display: flex; align-items: center; gap: 14px; }
.channels svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--signal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.channels a { color: var(--frost); text-decoration: none; font-size: 1.0625rem; padding: 10px 0; overflow-wrap: anywhere; }
.channels a:hover { color: var(--signal-hover); text-decoration: underline; }

.contact-form {
  display: grid; gap: 18px; padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel);
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: .9375rem; }
.optional { color: var(--steel); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--night); color: var(--frost); font: inherit; font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: #6E7887; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #F2A65A; }
.field-error { color: #F2A65A; font-size: .875rem; }
.form-note { color: var(--steel); font-size: .875rem; }
.contact-form .btn { justify-self: start; }
.form-status:empty { display: none; }
.form-status { font-size: .9375rem; padding: 12px 14px; border-radius: 10px; background: var(--signal-soft); color: var(--frost); }
.form-status.is-error { background: rgba(242, 166, 90, 0.12); }
.hp { position: absolute; left: -9999px; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--steel); font-size: .9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--steel); text-decoration: none; }
.site-footer a:hover { color: var(--frost); text-decoration: underline; }

/* Rechtstexte */
.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 40px 0 12px; }
.legal h3 { font-size: 1.125rem; margin: 24px 0 8px; }
.legal p, .legal li { color: #C3CAD3; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal address { font-style: normal; color: var(--frost); }
.back-link { display: inline-block; margin-bottom: 28px; color: var(--steel); text-decoration: none; }
.back-link:hover { color: var(--frost); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
