/* =====================================================================
   page-technologies.de – Stylesheet (Designrichtung A „Hell & präzise“)
   ===================================================================== */

/* Schriften lokal (Lizenz: SIL Open Font License, siehe fonts/) */
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Variable.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --weiss: #FFFFFF;
  --nebel: #F3F5F8;
  --linie: #E1E6EE;
  --linie-stark: #C9D2DF;
  --navy: #141B26;
  --navy-linie: #2A3444;
  --blau: #2F5BEA;
  --blau-dunkel: #1E44C4;
  --blau-hell: #EAF0FE;
  --akzent-dunkel: #9DB4FF;
  --text: #141B26;
  --grau: #5A6575;
  --grau-dunkel: #B9C2D0;

  --font-head: "Montserrat", system-ui, sans-serif;
  /* Fließtext: Inter (lokal), Systemschrift als Ersatz */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --pad: 32px;
  --r-karte: 12px;
  --r-btn: 8px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--weiss);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }

:focus-visible { outline: 3px solid var(--blau); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-btn);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

.eyebrow { font-size: 14px; font-weight: 600; color: var(--blau); margin-bottom: 10px; }
.h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.015em; }
.lead { color: var(--grau); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  padding: 14px 24px; border-radius: var(--r-btn); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--blau); color: #fff; }
.btn-primary:hover { background: var(--blau-dunkel); color: #fff; }
.btn-secondary { background: var(--weiss); color: var(--text); border-color: var(--linie-stark); }
.btn-secondary:hover { border-color: var(--text); color: var(--text); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; }
.logo svg { height: 34px; width: auto; }
.logo:hover { color: var(--navy); }
.logo .logo-cut { stroke: var(--weiss); }
.logo .logo-cut-fill { fill: var(--weiss); }
.site-footer .logo .logo-cut { stroke: var(--navy); }
.site-footer .logo .logo-cut-fill { fill: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--linie);
  backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; color: #3A4556; text-decoration: none; }
.nav a:hover { color: var(--blau); }
.nav .btn { color: #fff; padding: 11px 18px; }
.nav .btn:hover { color: #fff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--linie); border-radius: var(--r-btn);
  background: var(--weiss); align-items: center; justify-content: center; cursor: pointer; color: var(--navy);
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 88px; }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 32px; align-items: center; }
.hero-text { grid-column: span 6; display: flex; flex-direction: column; gap: 24px; }
.hero-text .eyebrow { margin: 0; }
.hero h1 { font-size: 56px; line-height: 1.08; letter-spacing: -.02em; }
.hero-text .lead { font-size: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { grid-column: span 6; position: relative; height: 440px; }

/* Geräte-Rahmen (Hero + Karten) */
.browser {
  position: absolute; left: 0; top: 0; width: 88%; height: 340px;
  border: 1px solid var(--linie); border-radius: var(--r-karte); background: var(--nebel); overflow: hidden;
  box-shadow: 0 24px 48px -28px rgba(20,27,38,.28);
}
.browser-bar { height: 30px; background: var(--weiss); border-bottom: 1px solid var(--linie); display: flex; align-items: center; gap: 6px; padding-left: 14px; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--linie-stark); }
.browser-body { height: calc(100% - 30px); }
.browser-body img, .phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: 0; bottom: 0; width: 150px; height: 300px;
  border: 7px solid var(--navy); border-radius: 24px; background: var(--nebel); overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(20,27,38,.35);
}

/* Platzhalter, solange kein Screenshot vorhanden ist */
.skeleton { height: 100%; padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--weiss); }
.skeleton .s-nav { display: flex; justify-content: space-between; align-items: center; }
.skeleton .s-logo { width: 90px; height: 12px; border-radius: 6px; background: var(--navy); opacity: .85; }
.skeleton .s-links { display: flex; gap: 8px; }
.skeleton .s-links i { width: 34px; height: 8px; border-radius: 4px; background: var(--linie); }
.skeleton .s-title { width: 70%; height: 22px; border-radius: 6px; background: var(--navy); margin-top: 18px; }
.skeleton .s-title.short { width: 46%; margin-top: 0; }
.skeleton .s-line { width: 80%; height: 9px; border-radius: 5px; background: var(--linie); }
.skeleton .s-line.short { width: 55%; }
.skeleton .s-btn { width: 110px; height: 30px; border-radius: 6px; background: var(--blau); margin-top: 6px; }
.skeleton .s-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: auto; }
.skeleton .s-cards i { height: 54px; border-radius: 8px; background: var(--nebel); border: 1px solid var(--linie); }
.skeleton .s-label { font-size: 12px; color: var(--grau); margin-top: auto; }
.phone .skeleton { padding: 16px 12px; gap: 10px; }
.phone .skeleton .s-logo { width: 50px; height: 8px; }
.phone .skeleton .s-title { height: 14px; width: 90%; margin-top: 10px; }
.phone .skeleton .s-btn { width: 70px; height: 20px; }

/* ---------- Vertrauensleiste ---------- */
.trust { background: var(--nebel); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.trust-list { list-style: none; margin: 0 auto; padding-top: 32px; padding-bottom: 32px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; }
.trust-list svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.trust-list strong { display: block; font-weight: 600; font-size: 15px; }
.trust-list span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--grau); }
.kurz { display: none !important; }

/* ---------- Abschnitte ---------- */
.section { padding: 104px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head .lead { max-width: 460px; }

/* Leistungen */
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.card { border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 28px; display: flex; flex-direction: column; gap: 14px; background: var(--weiss); }
.card-icon { width: 48px; height: 48px; border-radius: var(--r-karte); background: var(--blau-hell); display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; line-height: 1.3; }
.card p { font-size: 15px; color: var(--grau); }

/* Ablauf */
.dark { background: var(--navy); color: #fff; }
.dark .eyebrow { color: var(--akzent-dunkel); }
.dark .h2 { margin-bottom: 56px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 32px; }
.steps li { border-top: 1px solid #3A4659; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.step-nr { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--akzent-dunkel); }
.steps h3 { font-size: 19px; }
.steps p { font-size: 15px; color: var(--grau-dunkel); }

/* Referenzen */
.refs .h2 { margin-bottom: 48px; }
.ref-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.ref-card { border: 1px solid var(--linie); border-radius: var(--r-karte); overflow: hidden; display: flex; flex-direction: column; background: var(--weiss); }
.ref-media { position: relative; aspect-ratio: 16 / 10; background: var(--nebel); border-bottom: 1px solid var(--linie); overflow: hidden; }
.ref-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ref-placeholder { position: absolute; inset: 18px 18px 0; background: var(--weiss); border: 1px solid var(--linie); border-bottom: 0; border-radius: 8px 8px 0 0; display: flex; flex-direction: column; }
.ref-placeholder .browser-bar { height: 22px; border-radius: 8px 8px 0 0; padding-left: 10px; }
.ref-placeholder .browser-bar span { width: 7px; height: 7px; }
.ref-placeholder b { margin: auto; padding: 0 16px; font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--navy); text-align: center; }
.ref-body { padding: 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ref-meta { font-size: 13px; color: var(--grau); }
.ref-body h3 { font-size: 20px; }
.ref-leistungen { font-size: 14px; color: var(--grau); margin: 4px 0 8px; }
.ref-zitat { margin: 4px 0 8px; padding-left: 14px; border-left: 2px solid var(--blau-hell); font-size: 14px; color: var(--text); }
.ref-zitat footer { margin-top: 4px; font-size: 13px; color: var(--grau); }
.ref-link { margin-top: auto; font-size: 15px; font-weight: 600; text-decoration: none; }
.ref-more { display: none; }
.ref-empty { color: var(--grau); }

/* Kontakt */
.contact { background: var(--nebel); border-top: 1px solid var(--linie); }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); column-gap: 32px; row-gap: 40px; align-items: start; }
.contact-text { grid-column: span 5; display: flex; flex-direction: column; gap: 20px; }
.contact-text .eyebrow { margin: 0; }
.contact-cards { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 20px; align-items: center; text-decoration: none; color: var(--text);
  background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--r-karte); padding: 28px 32px;
  transition: border-color .15s, box-shadow .15s;
}
.contact-card:hover { color: var(--text); border-color: var(--blau); box-shadow: 0 12px 28px -20px rgba(47,91,234,.6); }
.contact-icon { flex: none; width: 52px; height: 52px; border-radius: var(--r-karte); background: var(--blau-hell); display: flex; align-items: center; justify-content: center; }
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.contact-label small { font-size: 14px; color: var(--grau); }
.contact-label strong { font-family: var(--font-head); font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
.contact-arrow { color: var(--blau); font-size: 22px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--grau-dunkel); font-size: 14px; }
.footer-inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 360px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo svg { height: 30px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col p { color: #fff; font-weight: 600; }
.site-footer a { color: var(--grau-dunkel); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--navy-linie); font-size: 13px; }

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: 72px 0 96px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.015em; margin-bottom: 32px; }
.legal h2 { font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.legal h3 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal ul { margin: 0 0 14px; color: #2B3443; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 4px; }
.legal .hinweis { padding: 18px 20px; background: var(--nebel); border: 1px solid var(--linie); border-radius: var(--r-karte); }
.back-link { display: inline-flex; gap: 6px; align-items: center; font-size: 15px; font-weight: 600; text-decoration: none; margin-bottom: 24px; }
mark.todo { background: #FFF3BF; color: inherit; padding: 0 3px; border-radius: 3px; }

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 1080px) {
  .hero h1 { font-size: 46px; }
  .cards-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 40px; }
}

@media (max-width: 860px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 72px; }
  .header-inner { min-height: 64px; }
  .logo svg { height: 28px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--weiss); border-bottom: 1px solid var(--linie); padding: 8px 20px 20px;
    box-shadow: 0 16px 24px -20px rgba(20,27,38,.35);
  }
  .nav.offen { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--linie); font-size: 16px; }
  .nav .btn { margin-top: 16px; border-bottom: 0; padding: 14px; }

  .hero { padding: 48px 0 40px; }
  .hero-grid { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
  .hero-text { gap: 18px; }
  .hero-text .eyebrow { font-size: 13px; }
  .hero h1 { font-size: 36px; line-height: 1.1; }
  .hero-text .lead { font-size: 16px; }
  .hero-actions { flex-direction: column; gap: 10px; margin-top: 6px; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 260px; max-width: 420px; width: 100%; }
  .browser { height: 200px; width: 82%; }
  .browser-bar { height: 22px; }
  .browser-body { height: calc(100% - 22px); }
  .skeleton { padding: 16px; gap: 9px; }
  .skeleton .s-title { height: 14px; margin-top: 8px; }
  .skeleton .s-line { height: 7px; }
  .skeleton .s-btn { width: 70px; height: 20px; }
  .skeleton .s-cards i { height: 30px; }
  .phone { width: 100px; height: 200px; border-width: 5px; border-radius: 18px; }

  .trust-list { grid-template-columns: 1fr; gap: 18px; padding-top: 28px; padding-bottom: 28px; }
  .trust-list svg { width: 20px; height: 20px; }
  .lang { display: none !important; }
  .kurz { display: inline !important; }

  .section { padding: 64px 0; }
  .eyebrow { font-size: 13px; margin-bottom: 8px; }
  .h2 { font-size: 28px; line-height: 1.2; }
  .section-head { margin-bottom: 24px; }
  .cards-4 { grid-template-columns: 1fr; gap: 16px; }
  .card { padding: 22px; gap: 10px; }
  .card-icon { display: none; }
  .card h3 { font-size: 18px; }

  .dark .h2 { margin-bottom: 24px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li { padding-top: 16px; gap: 6px; }
  .step-nr { font-size: 14px; }
  .steps h3 { font-size: 17px; }

  .refs .h2 { margin-bottom: 24px; }
  .ref-grid { grid-template-columns: 1fr; gap: 16px; }
  .ref-body { padding: 18px 20px; gap: 4px; }
  .ref-body h3 { font-size: 18px; }
  .ref-grid:not(.alle) .ref-card:nth-child(n+3) { display: none; }
  .ref-more { display: inline-flex; margin-top: 16px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--blau); cursor: pointer; }
  .ref-more[hidden] { display: none; }

  .contact-grid { display: flex; flex-direction: column; gap: 18px; }
  .contact-text { gap: 14px; }
  .contact-card { padding: 18px; gap: 14px; }
  .contact-icon { width: 44px; height: 44px; border-radius: 10px; }
  .contact-icon svg { width: 20px; height: 20px; }
  .contact-label small { font-size: 13px; }
  .contact-label strong { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
  .contact-arrow { display: none; }

  .footer-inner { padding-top: 40px; padding-bottom: 28px; gap: 24px; }
  .footer-cols { gap: 32px; }

  .legal { padding: 40px 0 64px; }
  .legal h1 { font-size: 30px; }
  .legal h2 { font-size: 19px; margin-top: 32px; }
}
