/* MAKo Systems - Stile der oeffentlichen Seiten (Landingpage, Impressum, Datenschutz).
 *
 * Angelegt 08.08.2026 nach dem Handoff "design_handoff_landingpage".
 *
 * Diese Datei gehoert bewusst NICHT zum angemeldeten Bereich: dort liefert includes/header.php
 * das Layout samt globaler Stile. Die drei oeffentlichen Seiten binden header.php nicht ein
 * (kein Sidebar, kein Seitenkopf, keine Anmeldung), deshalb steht ihr CSS hier gebuendelt statt
 * je Seite im <style>-Block - sonst muesste jede Aenderung an Kopf und Fuss dreimal gepflegt
 * werden.
 *
 * Der Prototyp trug alle Stile inline am Element und Hover-Zustaende in einem eigenen
 * Attribut style-hover, das nur der Design-Vorschau bekannt ist. Beides ist hier in Klassen
 * uebersetzt; Farben, Groessen, Abstaende und Radien sind unveraendert uebernommen.
 */

/* ------------------------------------------------------------------
   Schriften - lokal ausgeliefert (DSGVO)
   ------------------------------------------------------------------
   Pflicht laut Handoff: kein Aufruf an fonts.googleapis.com, sonst waere die Aussage der
   Datenschutzerklaerung ("keine Dritten") unzutreffend. Beide Familien sind Variable Fonts,
   je Zeichensatz genuegt daher EINE Datei fuer alle Schnitte - deshalb der Bereich in
   font-weight statt einer Deklaration je Gewicht. */
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/sora-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Sora';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/sora-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrainsmono-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                   U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                   U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'JetBrains Mono';
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url('../fonts/jetbrainsmono-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
                   U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
                   U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------------
   Grundlagen
   ------------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: #ffffff;
    color: #0f172a;
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mono { font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace; }

a { color: #0369a1; text-decoration: none; }
a:hover { color: #0284c7; }

img, video { max-width: 100%; }

/* Sichtbarer Fokus fuer Tastaturbedienung - gilt fuer alle interaktiven Elemente dieser
   Seiten. :focus-visible statt :focus, damit ein Mausklick keinen Ring hinterlaesst. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
    border-radius: 4px;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.wrap-narrow { max-width: 900px; }

.eyebrow {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    color: #0369a1;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section { padding: 80px 32px; background: #ffffff; }
.section-alt { background: #f8fafc; border-top: 1px solid #e2e8f0; }
.section-alt-bordered { border-bottom: 1px solid #e2e8f0; }

.section h2 {
    margin: 0 0 16px;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.section .lead {
    margin: 0 0 48px;
    font-size: 16px;
    line-height: 1.65;
    color: #475569;
    max-width: 720px;
    text-wrap: pretty;
}

/* ------------------------------------------------------------------
   Kopfzeile
   ------------------------------------------------------------------ */
.site-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid #e2e8f0;
}

.site-header-inner {
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.wordmark {
    display: flex;
    align-items: baseline;
    gap: 10px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.wordmark:hover { color: #0f172a; }
.wordmark em { font-style: normal; color: #0369a1; }
.wordmark .version {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    color: #94a3b8;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}
.site-nav a:hover { color: #0f172a; }

.site-nav .nav-cta {
    color: #ffffff;
    background: #0f172a;
    padding: 8px 18px;
    border-radius: 10px;
    font-weight: 700;
}
.site-nav .nav-cta:hover { background: #1e293b; color: #ffffff; }

/* ------------------------------------------------------------------
   Hero mit Hintergrundvideo
   ------------------------------------------------------------------ */
.hero {
    position: relative;
    background: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding: 72px 32px 88px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
                rgba(15, 23, 42, 0.55) 0%,
                rgba(15, 23, 42, 0.35) 55%,
                rgba(15, 23, 42, 0.12) 100%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 64px;
    align-items: center;
}

/* Der Text steht auf bewegtem Bild - ohne Schatten wird er in hellen Bildmomenten
   unlesbar. Werte unveraendert aus dem Prototyp. */
.hero-eyebrow {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    color: #7dd3fc;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.9);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-wrap: pretty;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(15, 23, 42, 0.85), 0 1px 3px rgba(15, 23, 42, 0.9);
}

.hero-lead {
    margin: 0 0 28px;
    font-size: 17px;
    line-height: 1.65;
    color: #e2e8f0;
    max-width: 540px;
    text-wrap: pretty;
    text-shadow: 0 1px 10px rgba(15, 23, 42, 0.85), 0 1px 2px rgba(15, 23, 42, 0.9);
}

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }

.hero-stat { display: flex; flex-direction: column; gap: 2px; }

.hero-stat .num {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 24px;
    font-weight: 600;
    color: #7dd3fc;
    text-shadow: 0 1px 8px rgba(15, 23, 42, 0.9);
}

.hero-stat .label {
    font-size: 12px;
    color: #cbd5e1;
    text-shadow: 0 1px 6px rgba(15, 23, 42, 0.9);
}

/* ------------------------------------------------------------------
   Login-Karte
   ------------------------------------------------------------------ */
.login-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 34px 32px;
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.10);
    color: #0f172a;
    max-width: 420px;
    width: 100%;
    box-sizing: border-box;
    justify-self: end;
}

.login-card h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }

.login-card .sub { margin: 0 0 20px; font-size: 13px; color: #64748b; }

.msg {
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}
.msg-error { background: #fdeaea; color: #a12626; border: 1px solid #f5c2c2; }
.msg-ok    { background: #eef6ec; color: #276749; border: 1px solid #c3e0c1; }

.login-form { display: flex; flex-direction: column; gap: 16px; }

.login-field { display: flex; flex-direction: column; gap: 6px; }

.login-field label { font-size: 13px; font-weight: 600; color: #2d3748; }

.login-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d3dae3;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
}

.login-field input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #4a5568;
    cursor: pointer;
}

.login-remember input {
    width: 15px;
    height: 15px;
    accent-color: #0f172a;
    cursor: pointer;
    margin: 0;
}

.login-row a { font-size: 12px; font-weight: 600; }

.login-submit {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.login-submit:hover { background: #1e293b; }

.login-foot {
    margin: 18px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}
.login-foot a { font-weight: 600; }

/* ------------------------------------------------------------------
   Modulkarten ("Das System")
   ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
}

.card .nr {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 13px;
    color: #0369a1;
    margin-bottom: 10px;
}

.card h3 { margin: 0 0 10px; font-size: 17px; font-weight: 700; }

.card p { margin: 0; font-size: 14px; line-height: 1.6; color: #475569; }

/* ------------------------------------------------------------------
   Ablauf ("So funktioniert's")
   ------------------------------------------------------------------ */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step { display: flex; flex-direction: column; gap: 12px; }

.step .nr {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #0f172a;
    color: #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 17px;
    font-weight: 600;
}

.step h3 { margin: 0; font-size: 16px; font-weight: 700; }

.step p { margin: 0; font-size: 13.5px; line-height: 1.6; color: #475569; }

/* ------------------------------------------------------------------
   Erklaervideos
   ------------------------------------------------------------------ */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.video-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

/* Platzhalterflaeche, solange die Erklaervideos noch nicht gedreht sind. Sobald eine Datei
   vorliegt, ersetzt ein <video controls preload="none" poster="..."> diesen Block - die
   Kachel darum herum bleibt unveraendert. */
.video-frame {
    aspect-ratio: 16 / 9;
    background: repeating-linear-gradient(45deg,
                #eef2f7, #eef2f7 12px, #e5eaf2 12px, #e5eaf2 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.video-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(3, 105, 161, 0.10);
    border: 2px solid #0369a1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #0369a1;
    margin-left: 4px;
}

.video-frame .datei {
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 11px;
    color: #94a3b8;
}

.video-body { padding: 18px 20px; }
.video-body h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: #0f172a; }
.video-body p { margin: 0; font-size: 13px; line-height: 1.55; color: #475569; }

/* ------------------------------------------------------------------
   Zweispalter PWA + FAQ
   ------------------------------------------------------------------ */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: start;
}

.split-center { align-items: center; }

.split h2 { margin: 0 0 16px; font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }

.split p { margin: 0 0 20px; font-size: 15px; line-height: 1.65; color: #475569; text-wrap: pretty; }

.pwa-steps {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
    line-height: 2;
    color: #475569;
}

.pwa-steps .mono { font-size: 13px; }

/* FAQ - als <details>, damit das Aufklappen auch ohne JavaScript funktioniert. Das
   JavaScript sorgt nur noch dafuer, dass immer hoechstens einer offen ist. */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.faq-item > summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    text-align: left;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: #f1f5f9; }

/* Das Plus-/Minuszeichen kommt aus dem Zustand des <details> selbst - kein JavaScript noetig. */
.faq-item > summary::after {
    content: "+";
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 16px;
    color: #0369a1;
    flex-shrink: 0;
}
.faq-item[open] > summary::after { content: "\2212"; }

.faq-answer {
    padding: 0 18px 14px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #475569;
    background: #ffffff;
    margin: 0;
}

/* ------------------------------------------------------------------
   Kontakt
   ------------------------------------------------------------------ */
.contact-card {
    background: #0f172a;
    border-radius: 18px;
    padding: 34px 36px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-card .firma { font-weight: 700; font-size: 17px; }

.contact-card .adresse { font-size: 14px; color: #94a3b8; line-height: 1.6; }

.contact-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-phone {
    background: #38bdf8;
    color: #0f172a;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}
.btn-phone:hover { background: #7dd3fc; color: #0f172a; }

.btn-mail {
    background: #16233d;
    color: #e2e8f0;
    border: 1px solid #1e3a5f;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.btn-mail:hover { background: #1e3a5f; color: #ffffff; }

.link-szgs { font-size: 13px; color: #38bdf8; }
.link-szgs:hover { color: #7dd3fc; }

/* ------------------------------------------------------------------
   Fusszeile
   ------------------------------------------------------------------ */
.site-footer {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    padding: 40px 32px;
    margin-top: auto;
}

.site-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: #475569; }
.footer-links a:hover { color: #0f172a; }

/* ------------------------------------------------------------------
   Impressum / Datenschutz
   ------------------------------------------------------------------ */
body.doc { background: #f4f6fa; }

.doc .site-header-inner,
.doc .site-footer-inner { max-width: 900px; margin: 0 auto; }

.doc .site-footer { padding: 32px; }

.doc-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 64px 32px 96px;
    width: 100%;
    box-sizing: border-box;
}

.doc-main h1 {
    margin: 0 0 40px;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.doc-main h1.with-date { margin-bottom: 12px; }

.doc-stand {
    margin: 0 0 40px;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    color: #64748b;
}

.doc-sections {
    display: flex;
    flex-direction: column;
    gap: 36px;
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
}

.doc-sections h2 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: #0f172a;
}

.doc-sections p { margin: 0; }
.doc-sections p + p { margin-top: 10px; }
.doc-sections ul { margin: 0; padding-left: 20px; }
.doc-sections ul + p { margin-top: 10px; }

.doc-back { color: #475569; font-size: 13px; font-weight: 500; }
.doc-back:hover { color: #0f172a; }

/* Offene Rechtspunkte - laut Handoff vor dem Go-Live zu klaeren und dann zu entfernen. */
.note-box {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 13px;
    color: #9a3412;
}

/* ------------------------------------------------------------------
   Schmale Bildschirme
   ------------------------------------------------------------------
   Bewusst kein Burger-Menue (Handoff): die Kopfzeilen-Navigation bricht um. */
@media (max-width: 860px) {
    .hero { padding: 56px 20px 64px; }
    .hero-inner { gap: 40px; }
    .hero h1 { font-size: 34px; }
    .hero-lead { font-size: 16px; }

    /* Einspaltig darf die Karte nicht mehr rechtsbuendig kleben. */
    .login-card { justify-self: stretch; max-width: none; }

    .section { padding: 56px 20px; }
    .section h2 { font-size: 26px; }
    .split { gap: 32px; }
    .split h2 { font-size: 24px; }

    .site-header-inner { padding: 14px 20px; }
    .site-nav { gap: 16px; }

    .site-footer { padding: 32px 20px; }
    .site-footer-inner { justify-content: flex-start; }

    .doc-main { padding: 40px 20px 64px; }
    .doc-main h1 { font-size: 28px; }
    .contact-card { padding: 28px 24px; }
}

/* ------------------------------------------------------------------
   Bewegung reduzieren
   ------------------------------------------------------------------
   Handoff-Vorgabe: Hintergrundvideo anhalten. Das Anhalten selbst uebernimmt das
   JavaScript (pause() plus Entfernen von autoplay); hier wird zusaetzlich der
   Weichzeichner-freie Standbild-Eindruck abgesichert, indem die Deckkraft leicht
   zuruecknimmt - das Overlay traegt den Kontrast ohnehin. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-video { opacity: 0.55; }
}
