/* SighTech – Stylesheet
   Farben und Formen abgeleitet vom Logo: weiße/hellgraue und graphitfarbene Blöcke,
   orangefarbener Verlauf als Akzent, feine blaue Konturlinie. Kanten eckig, leichte 3D-Verläufe von oben. */

:root {
  /* Graphit (dunkler Block im Logo) */
  --graphite-900: #262628;
  --graphite-800: #333336;
  --graphite-700: #47474a;
  --graphite-600: #5d5d60;
  /* Hellgrau / Weiß (heller Block) */
  --silver-100: #f6f6f7;
  --silver-200: #ececee;
  --silver-300: #dcdcdf;
  --silver-400: #c4c4c8;
  /* Orange (Sockel im Logo) */
  --orange-400: #f0a020;
  --orange-500: #e88300;
  --orange-600: #d85a10;
  --orange-ink: #b84a08;      /* für Text auf Weiß, ausreichender Kontrast */
  --blue-line: #4a78a8;       /* feine Kontur im Logo */

  --ink: #2b2b2e;
  --muted: #626266;
  --line: var(--silver-300);
  --bg: #ffffff;
  --radius: 3px;
  --grad-orange: linear-gradient(180deg, var(--orange-400) 0%, var(--orange-500) 45%, var(--orange-600) 100%);
  --grad-silver: linear-gradient(180deg, #ffffff 0%, var(--silver-200) 100%);
  --grad-graphite: linear-gradient(180deg, var(--graphite-600) 0%, var(--graphite-800) 100%);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 2px 0 rgba(0, 0, 0, .04), 0 10px 24px -12px rgba(0, 0, 0, .25);
  --max: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-ink); }
a:hover { color: var(--graphite-800); }

h1, h2, h3 { line-height: 1.2; color: var(--graphite-900); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--graphite-900); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--grad-silver);
  border-bottom: 1px solid var(--silver-400);
  box-shadow: 0 3px 0 var(--orange-500);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--graphite-900); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.logo img { width: 44px; height: 44px; }
.logo b { color: var(--orange-ink); font-weight: 700; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.nav a {
  display: block; padding: 9px 14px; border-radius: var(--radius);
  color: var(--graphite-800); text-decoration: none; font-weight: 600; font-size: .96rem;
}
.nav a:hover { background: var(--silver-300); color: var(--graphite-900); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange-500); }
.nav .btn { margin-left: 8px; }

.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
  display: block; width: 24px; height: 3px; background: var(--graphite-800); position: relative; transition: .2s;
}
.nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; }
.nav-toggle-label span::before { top: -8px; }
.nav-toggle-label span::after { top: 8px; }

@media (max-width: 820px) {
  .nav-toggle-label { display: block; }
  .nav {
    position: absolute; top: 75px; left: 0; right: 0;
    background: var(--silver-100); border-bottom: 3px solid var(--orange-500);
    display: none;
  }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 20px; gap: 2px; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
  .nav-toggle:checked + .nav-toggle-label span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked + .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); }
}

/* ---------- Buttons (Blockform wie im Logo) ---------- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem; font-family: inherit; transition: filter .15s, background .15s, color .15s;
}
.btn-primary, .nav a.btn-primary {
  background: var(--grad-orange); color: #fff; border-color: var(--orange-600);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 3px 0 #a8460a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .18);
}
.btn-primary:hover, .nav a.btn-primary:hover { filter: brightness(1.06); color: #fff; background: var(--grad-orange); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .14); }
.btn-outline { border-color: var(--graphite-600); color: var(--graphite-800); background: var(--grad-silver); box-shadow: 0 2px 0 var(--silver-400); }
.btn-outline:hover { color: var(--graphite-900); border-color: var(--graphite-800); }

/* ---------- Hero: Graphit-Block mit orangefarbenem Sockel ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(180deg, rgba(255, 255, 255, .04) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--grad-graphite);
  color: var(--silver-300);
  padding: clamp(64px, 10vw, 112px) 0 clamp(56px, 8vw, 88px);
  border-bottom: 8px solid transparent;
  border-image: var(--grad-orange) 1;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } }
.hero h1 { color: #fff; max-width: 20ch; }
.hero .lead { font-size: 1.18rem; max-width: 58ch; color: var(--silver-300); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--orange-ink); margin-bottom: 14px;
}
.hero .eyebrow { color: var(--orange-400); }

/* Bausteine-Grafik: drei Blöcke wie im Logo, rein mit CSS */
.hero-visual { position: relative; height: 300px; }
.block { position: absolute; border-radius: var(--radius); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); }
.block::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(74, 120, 168, .55); border-radius: inherit; }
.block-white  { left: 8%;  top: 0;    width: 38%; height: 64%; background: linear-gradient(180deg, #fff, var(--silver-300)); }
.block-orange { left: 8%;  top: 64%;  width: 38%; height: 36%; background: var(--grad-orange); }
.block-dark   { left: 46%; top: 30%;  width: 40%; height: 70%; background: linear-gradient(180deg, var(--graphite-600), var(--graphite-800)); }
.block-plug   { left: 40%; top: 72%;  width: 26%; height: 9%;  background: var(--grad-orange); border-radius: 0 40px 40px 0; }

.hero-facts { display: flex; gap: 0; flex-wrap: wrap; margin-top: 56px; }
.hero-facts div { min-width: 180px; padding: 16px 22px; background: rgba(255, 255, 255, .05); border-left: 4px solid var(--orange-500); margin: 0 12px 12px 0; }
.hero-facts strong { display: block; font-size: 1.7rem; color: #fff; line-height: 1.1; }
.hero-facts span { font-size: .93rem; color: var(--silver-400); }

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--silver-100); border-top: 1px solid var(--silver-200); border-bottom: 1px solid var(--silver-200); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2::after { content: ""; display: block; width: 56px; height: 5px; background: var(--grad-orange); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* Karte = heller Logo-Block */
.card {
  background: var(--grad-silver); border: 1px solid var(--silver-400); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin-bottom: 0; }

/* Produktkarte: heller Block mit orangefarbenem Sockel */
.product { display: flex; flex-direction: column; padding-bottom: 0; overflow: hidden; }
.product p { flex: 1; padding-bottom: 24px; }
.product::after { content: ""; display: block; height: 8px; margin: 0 -28px; background: var(--grad-orange); }
.product .tag {
  align-self: flex-start; font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--graphite-700); background: var(--silver-200); border: 1px solid var(--silver-300); padding: 2px 8px; margin-bottom: 14px; border-radius: 2px;
}
.product .icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--grad-graphite); color: #fff; font-weight: 800; margin-bottom: 18px; font-size: .92rem;
  box-shadow: 0 3px 0 var(--orange-500);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 2px;
  background: var(--grad-orange) ;
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: 9px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Dunkler Block */
.panel {
  background: var(--grad-graphite); color: var(--silver-300); border-radius: var(--radius); padding: 36px;
  border-bottom: 8px solid var(--orange-500); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .5);
}
.panel h3 { color: #fff; }

/* Schritte */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 70px; border-top: 5px solid var(--graphite-700); }
.step:nth-child(2) { border-top-color: var(--graphite-600); }
.step:nth-child(3) { border-top-color: var(--orange-500); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; left: 28px; font-size: 2.4rem; font-weight: 800; color: var(--orange-500);
  line-height: 1;
}

/* Team */
.avatar {
  width: 60px; height: 60px; display: grid; place-items: center; border-radius: var(--radius);
  background: var(--grad-graphite); color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 16px;
  box-shadow: 0 4px 0 var(--orange-500);
}
.roles { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.roles li { font-size: .82rem; background: #fff; border: 1px solid var(--silver-300); border-radius: 2px; padding: 2px 9px; color: var(--muted); }

/* Zitat */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; color: var(--graphite-900); font-weight: 500; }
.quote figcaption { margin-top: 18px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* Handlungsaufforderung: orangefarbener Block */
.cta {
  background: var(--grad-orange); color: #fff; border-radius: var(--radius); padding: clamp(32px, 5vw, 52px);
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: 0 6px 0 #a8460a, 0 20px 30px -16px rgba(0, 0, 0, .4);
}
.cta h2 { color: #fff; margin: 0 0 .25em; text-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.cta p { margin: 0; color: #fff4e6; }
.cta .btn { background: var(--grad-graphite); color: #fff; border-color: var(--graphite-900); box-shadow: 0 3px 0 var(--graphite-900); }
.cta .btn:hover { filter: brightness(1.15); }

/* Unterseiten */
.page-hero { background: var(--grad-graphite); color: var(--silver-300); padding: 56px 0 48px; border-bottom: 8px solid transparent; border-image: var(--grad-orange) 1; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { margin: 0; max-width: 60ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose address { font-style: normal; }

.download { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 6px solid var(--orange-500); }
.download .meta { color: var(--muted); font-size: .95rem; }

.note { border-left: 4px solid var(--orange-500); background: #fff4e6; padding: 14px 18px; color: #6b3a0a; }

/* Formular */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; color: var(--graphite-800); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; color: inherit;
  border: 1px solid var(--silver-400); border-radius: var(--radius); background: #fff;
  box-shadow: 0 2px 3px rgba(0, 0, 0, .05) inset;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(232, 131, 0, .25); border-color: var(--orange-500); }
.field textarea { min-height: 160px; resize: vertical; }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 18px; margin-bottom: 20px; border-left: 5px solid; }
.alert-ok { background: #eef6ee; color: #1f5a2a; border-color: #3c9a4e; }
.alert-err { background: #fdecec; color: #8a1f1f; border-color: #c43c3c; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

.contact-info { border-top: 6px solid var(--orange-500); }
.contact-info dl { margin: 0; }
.contact-info dt { font-weight: 700; color: var(--graphite-900); margin-top: 14px; }
.contact-info dd { margin: 0; color: var(--muted); }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--graphite-900); color: var(--silver-400); padding: 56px 0 28px; font-size: .95rem; border-top: 6px solid var(--orange-500); }
.site-footer a { color: var(--silver-200); text-decoration: none; }
.site-footer a:hover { color: var(--orange-400); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Flip-Karten (Über uns) ---------- */
.flip { perspective: 1200px; }
.flip-inner {
  position: relative; display: block; width: 100%; height: 480px; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
  transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.flip-inner[aria-pressed="true"] { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip:hover .flip-inner { transform: rotateY(180deg); }
  .flip:hover .flip-inner[aria-pressed="true"] { transform: rotateY(0deg); }
}
.flip-inner:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 4px; }
.flip-face {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.flip-front { background: var(--grad-silver); border: 1px solid var(--silver-400); border-bottom: 8px solid var(--orange-500); }
.flip-photo {
  position: relative; flex: 1; background: var(--grad-graphite); display: block;
}
.flip-photo::before {
  content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 3.4rem; font-weight: 800; color: rgba(255, 255, 255, .85);
}
.flip-photo picture, .flip-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.flip-photo img { object-fit: cover; object-position: 50% 22%; }
.flip-front .flip-name { padding: 16px 20px 2px; font-weight: 700; font-size: 1.2rem; color: var(--graphite-900); }
.flip-hint { padding: 0 20px 14px; font-size: .85rem; color: var(--muted); }
.flip-back {
  transform: rotateY(180deg); padding: 28px; gap: 14px; justify-content: center;
  background: var(--grad-graphite); color: var(--silver-200); border-bottom: 8px solid var(--orange-500);
}
.flip-back .flip-name { font-weight: 800; font-size: 1.35rem; color: #fff; }
.flip-back .roles li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.flip-text { color: var(--silver-300); }
@media (prefers-reduced-motion: reduce) { .flip-inner { transition: none; } }
