/* Schriften lokal eingebunden (DSGVO) – SIL Open Font License */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); }

/* V-Automation Theme – Hauptstylesheet */
:root {
  --bg: #0a0e13;
  --bg-2: #0f141b;
  --surface: #141b24;
  --surface-2: #1a2330;
  --line: #243041;
  --line-soft: #1b2532;
  --text: #e6edf3;
  --muted: #8b9aab;
  --accent: #51c3ce;        /* Logo-Türkis */
  --accent-ink: #062226;
  --signal: #ff8a3d;        /* Signal-Orange für Status/Highlights */
  --ok: #4ade80;
  --radius: 14px;
  --maxw: 1200px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .78rem/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.4em; border-radius: 10px;
  font: 600 .95rem/1 var(--font-head);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7fd6de; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 19, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font: 700 1.15rem/1 var(--font-head); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #2a8f99);
  color: var(--accent-ink); font: 700 1.1rem/1 var(--font-head);
}
.brand small { display: block; font: 400 .7rem/1.2 var(--font-mono); color: var(--muted); letter-spacing: .08em; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); padding: .55em .9em; border-radius: 8px; font-size: .95rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); text-decoration: none; }
.nav .btn { margin-left: 10px; color: var(--accent-ink); }
.nav .btn:hover { background: #7fd6de; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .9em .6em; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--line-soft); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 80% at 70% 40%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero::after {
  content: ""; position: absolute; width: 640px; height: 640px; right: -160px; top: -200px;
  background: radial-gradient(circle, rgba(81, 195, 206, .16), transparent 65%);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; margin: 1.4rem 0 2rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2.4rem; }
.tag { font: 500 .78rem/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); padding: .55em .8em; border-radius: 999px; }
@media (max-width: 900px) { .hero { padding: 64px 0; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }

/* HMI-Panel im Hero */
.hmi {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  font-family: var(--font-mono); font-size: .82rem;
  overflow: hidden;
}
.hmi-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.hmi-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.hmi-bar span { margin-left: auto; }
.hmi-body { padding: 8px 16px 16px; }
.hmi-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px dashed var(--line-soft); }
.hmi-row:last-child { border-bottom: 0; }
.hmi-row b { font-weight: 500; color: var(--text); }
.hmi-row em { font-style: normal; color: var(--muted); font-size: .74rem; display: block; margin-top: 2px; }
.led { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-size: .74rem; }
.led::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: pulse 2.4s ease-in-out infinite; }
.led.signal { color: var(--signal); }
@keyframes pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .led::before { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .section { padding: 72px 0; } .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; } }

/* Karten */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line); transform: translateY(-2px); }
.card .num { font: 500 .75rem/1 var(--font-mono); color: var(--muted); margin-bottom: 22px; display: flex; justify-content: space-between; }
.card .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(81, 195, 206, .1); color: var(--accent); margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.card ul { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card li { font: 500 .74rem/1 var(--font-mono); color: var(--text); background: var(--surface-2); border: 1px solid var(--line); padding: .5em .7em; border-radius: 6px; }

/* Technologie-Leiste */
.stack { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stack .wrap { display: flex; align-items: center; gap: 40px; padding-top: 28px; padding-bottom: 28px; overflow-x: auto; scrollbar-width: none; }
.stack .label { font: 500 .74rem/1.3 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; flex: none; }
.stack ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; flex: none; }
.stack li { font: 600 1.05rem/1 var(--font-head); color: #6b7a8c; white-space: nowrap; }

/* Ablauf */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.step { padding: 28px 24px; border-right: 1px solid var(--line-soft); background: var(--surface); }
.step:last-child { border-right: 0; }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font: 500 .8rem/1 var(--font-mono); color: var(--accent); margin-bottom: 40px; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line-soft); display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; }
  .step::before { margin: 4px 0 0; grid-row: span 2; }
  .step:last-child { border-bottom: 0; }
}

/* Zweiter Geschäftsbereich – Fachkräfte */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.badge-area {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .75rem/1 var(--font-mono); color: var(--signal);
  border: 1px solid rgba(255, 138, 61, .35); background: rgba(255, 138, 61, .08);
  padding: .55em .85em; border-radius: 999px; margin-bottom: 1.4rem;
}
.checklist { list-style: none; padding: 0; margin: 28px 0 32px; }
.checklist li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 18px; height: 18px; border-radius: 5px;
  background: rgba(255, 138, 61, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ff8a3d' stroke-width='2.5'%3E%3Cpath d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.card.signal .ico { background: rgba(255, 138, 61, .1); color: var(--signal); }

/* Profil */
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.portrait {
  aspect-ratio: 4/5; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  display: grid; place-items: center; color: var(--muted); font: 500 .8rem/1.4 var(--font-mono); text-align: center; padding: 20px;
}
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.fact { border-top: 1px solid var(--line); padding-top: 16px; }
.fact b { display: block; font: 600 1.05rem/1.3 var(--font-head); }
.fact span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) { .profile { grid-template-columns: 1fr; gap: 32px; } .portrait { max-width: 280px; } .facts { grid-template-columns: 1fr; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; gap: 40px; } }
.contact-lines { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-lines li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.contact-lines small { display: block; font: 500 .72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.contact-lines a { color: var(--text); font-size: 1.1rem; font-family: var(--font-head); }
form.vform { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 18px; padding: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vform .full { grid-column: 1 / -1; }
.vform label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.vform input, .vform select, .vform textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; font-size: .97rem; padding: .8em .9em;
}
.vform textarea { min-height: 140px; resize: vertical; }
.vform input:focus, .vform select:focus, .vform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81, 195, 206, .15); }
.vform .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.vform .consent input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.vform .hp { position: absolute; left: -9999px; }
@media (max-width: 600px) { form.vform { grid-template-columns: 1fr; padding: 22px; } }

/* CTA-Band */
.cta-band { border: 1px solid var(--line); border-radius: 20px; padding: 48px; background: radial-gradient(ellipse at 100% 0%, rgba(81, 195, 206, .14), transparent 55%), var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 20em; }
@media (max-width: 600px) { .cta-band { padding: 28px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 48px 0 32px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font: 500 .74rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--text); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .bottom { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 24px; margin-top: 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Zwei Bereiche im Hero */
.hero.doors-hero .wrap { grid-template-columns: 1fr; gap: 48px; }
.hero.doors-hero .intro { max-width: 760px; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .doors { grid-template-columns: 1fr; } }
.door {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column;
  padding: 32px; border-radius: 18px; color: var(--text);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.door::after { content: ""; position: absolute; width: 360px; height: 360px; right: -140px; top: -160px; background: radial-gradient(circle, color-mix(in srgb, var(--c) 18%, transparent), transparent 65%); pointer-events: none; }
.door:hover { text-decoration: none; border-color: var(--c); transform: translateY(-3px); }
.door.signal { --c: var(--signal); }
.door .k { font: 500 .75rem/1 var(--font-mono); color: var(--c); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.door h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .4em; }
.door p { color: var(--muted); margin: 0 0 24px; }
.door .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.door .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 .95rem/1 var(--font-head); color: var(--c); }

/* Bereich 2 in Signal-Orange */
.area-signal .eyebrow { color: var(--signal); }
.area-signal .btn-primary { background: var(--signal); color: #2a1200; }
.area-signal .btn-primary:hover { background: #ffa66b; }
.note {
  margin-top: 40px; padding: 24px 28px; border-radius: var(--radius);
  border: 1px dashed rgba(255, 138, 61, .4); background: rgba(255, 138, 61, .05);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.note p { margin: 0; color: var(--muted); }
.note b { color: var(--text); }

/* Unterseiten (Impressum etc.) */
.page-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line-soft); }
.prose { max-width: 760px; padding: 56px 0 96px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose p, .prose li { color: #c3cdd8; }

/* Porträt */
.portrait { position: relative; overflow: hidden; padding: 0; }
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; z-index: 1; }
.portrait::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 -80px 80px -40px rgba(10, 14, 19, .55); pointer-events: none; }

/* ---------- WordPress ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Formular-Rückmeldung */
.form-msg { grid-column: 1 / -1; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-msg.ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .35); color: #bbf7d0; }
.form-msg.err { background: rgba(255, 138, 61, .1); border: 1px solid rgba(255, 138, 61, .4); color: #fed7aa; }

/* Inhalte aus dem Editor (Impressum, Datenschutz, weitere Seiten) */
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose strong { color: var(--text); }
.prose img { height: auto; border-radius: 12px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose .wp-block-button__link { background: var(--accent); color: var(--accent-ink); border-radius: 10px; text-decoration: none; }

/* 404 */
.notfound { padding: 120px 0; text-align: center; }
.notfound .actions { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* Logo */
.brand.has-logo { flex-direction: column; align-items: flex-start; gap: 5px; }
.brand-logo { height: 26px; width: auto; }
.brand.has-logo small { margin: 0; padding-left: 2px; }
.site-footer .brand-logo { height: 20px; }
@media (max-width: 400px) { .brand-logo { height: 20px; } }
