/* =================================================================
   ac-mueller.com — Stylesheet
   Reduziert und flach: keine Farbverlaeufe, keine Kacheln, kein Glow.
   Gliederung ueber Weissraum, Haarlinien und Typografie.
   Helles Farbschema seit 05.10.2026: Creme statt Schwarz, Tinte statt Weiss.
   Zwei Schriften: Space Grotesk (Ueberschriften, Etiketten), Inter (Text).
   Kontraste auf Creme: Text 15 : 1, gedimmt 7,9 : 1, Hinweise 5,2 : 1, Akzent 5,5 : 1.
================================================================= */

:root {
    --bg:          #f6efe2;                    /* Creme */
    --fg:          #1f1c17;                    /* Tinte */
    --fg-dim:      #4f483e;
    --fg-faint:    #6b6355;
    --line:        rgba(31, 28, 23, 0.16);
    --line-soft:   rgba(31, 28, 23, 0.08);
    --surface:     #fffaf1;                    /* Eingabefelder */
    --accent:      #146a77;                    /* dunkles Teal fuer Linien, Links, Fokus */
    --error:       #b42a2a;

    --teal:        #1b8c9d;
    --red:         #e23b3b;
    --orange:      #ec6f16;
    --yellow:      #f9b000;

    --maxw:        1100px;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);

    --font:         'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

body.menu-open { overflow: hidden; }

::selection { background: #f3dda9; color: var(--fg); }

/* ---------------------- Marken-Streifen ------------------------- */
.brand-stripes {
    position: fixed;
    top: -6%;
    bottom: -6%;
    right: clamp(12px, 3vw, 56px);
    width: clamp(26px, 3vw, 44px);
    z-index: -1;
    display: flex;
    gap: clamp(5px, 0.6vw, 9px);
    transform: skewX(-16deg);
    pointer-events: none;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 80%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 80%, transparent 100%);
}
/* Feste Hoehe statt Prozent: Mobile Browser aendern beim Scrollen die Fensterhoehe
   (Adressleiste ein/aus). Mit Prozentwerten wurden die Streifen dabei gestreckt und
   wanderten wegen der Schraege seitlich ("Wackeln" auf dem iPhone).
   lvh = groesstmoegliche Fensterhoehe, aendert sich nicht. Aeltere Browser: wie oben. */
@supports (height: 1lvh) {
    .brand-stripes { top: -6lvh; bottom: auto; height: 112lvh; }
}
.brand-stripes .stripe { flex: 1; }
.stripe-teal   { background: var(--teal); }
.stripe-red    { background: var(--red); }
.stripe-orange { background: var(--orange); }
.stripe-yellow { background: var(--yellow); }

/* ---------------------------- Header ---------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: var(--bg);                     /* deckend: halbtransparent schien Dunkles durch */
    border-bottom-color: var(--line-soft);
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px clamp(20px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo { width: 38px; height: auto; }

.nav-toggle {
    width: 40px; height: 32px;
    display: inline-flex; flex-direction: column; justify-content: center; gap: 6px;
    background: none; border: 0; padding: 0; cursor: pointer;
}
.nav-toggle span {
    display: block; height: 1px; width: 26px; margin-left: auto;
    background: var(--fg);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop-Leiste: Textmenue rechts, der Rechner als umrandeter Knopf ganz rechts.
   Unter 901px bleibt es beim Hamburger mit Overlay. */
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--fg-dim);
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-links .nav-cta {
    order: 1;
    padding: 8px 18px;
    border: 1px solid var(--fg);
    color: var(--fg);
}
.nav-links .nav-cta:hover { background: var(--fg); color: var(--bg); }

@media (min-width: 901px) {
    .nav-links { display: flex; }
    .nav-toggle, .menu-overlay { display: none; }
    body.menu-open { overflow: visible; }   /* Menue offen und Fenster breit gezogen */
}

/* --------------------------- Menü ------------------------------- */
.menu-overlay {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(246, 239, 226, 0.98);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
.menu-nav { display: flex; flex-direction: column; gap: clamp(14px, 3vh, 26px); }
.menu-nav a {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--fg-dim);
    display: flex; align-items: baseline; gap: 18px;
    transition: color 0.2s var(--ease);
}
.menu-nav a:hover { color: var(--fg); }
.menu-num {
    font-family: var(--font);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    color: var(--fg-faint);
}

/* --------------------------- Bausteine -------------------------- */
.btn {
    display: inline-block;
    padding: 13px 26px;
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid var(--line);
    color: var(--fg);
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { border-color: rgba(31, 28, 23, 0.5); }
.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border-color: var(--fg);
}
.btn-primary:hover { background: #3a352d; border-color: #3a352d; }
.btn[disabled] { opacity: 0.5; pointer-events: none; }

/* ---------------------------- Hero ------------------------------ */
.hero {
    min-height: 92vh;
    display: flex; align-items: center;
    padding: 140px clamp(20px, 5vw, 48px) 90px;
}
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 8.5vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.02em;
    display: flex; flex-direction: column;
}
.hero-lead {
    color: var(--fg-dim);
    max-width: 52ch;
    margin-top: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-photo img { width: 100%; max-width: 400px; margin-left: auto; border-radius: 6px; }

.hero-socials { display: flex; gap: 0; margin-top: 29px; margin-left: -11px; }
/* 44-px-Klickfläche um das 22-px-Icon; Abstand und Ausrichtung bleiben optisch wie zuvor */
.social-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -4px; color: var(--fg-faint); transition: color 0.25s var(--ease); }
.social-ic svg { width: 22px; height: 22px; display: block; }
.social-ic.yt:hover { color: #ff0000; }
.social-ic.ig:hover { color: #e1306c; }
.social-ic.tk:hover { color: #fe2c55; }

/* -------------------------- Sektionen --------------------------- */
.section {
    padding: clamp(76px, 11vh, 130px) clamp(20px, 5vw, 48px);
    border-top: 1px solid var(--line-soft);
    scroll-margin-top: 70px;
}
.section-inner { max-width: var(--maxw); margin: 0 auto; }
/* Hervorgehobener Abschnitt (Rechner): helles Teal aus dem ersten Markenstreifen,
   derselben Akzentfarbe wie im Dienstwagenrechner. Halb durchscheinend, damit die
   Streifen sichtbar weiterlaufen: 20 % Teal ueber Creme = #cadbd4.
   Kontraste darauf: Text 11,8 : 1, gedimmt 8,3 : 1, Hinweise 6,3 : 1. */
.section-tint {
    background: rgba(27, 140, 157, 0.20);
    border-top-color: transparent;
    --fg-dim:   #3d362c;
    --fg-faint: #4f483e;
}
.section-tint + .section { border-top-color: transparent; }
.section-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 4.2vw, 2.9rem);
    line-height: 1.12;
    letter-spacing: -0.015em;
}
.section-lead {
    color: var(--fg-dim);
    max-width: 62ch;
    margin-top: 22px;
}
.section-action { margin-top: 36px; }

/* --------------------------- Videos ----------------------------- */
.video-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 34px);
    margin-top: 46px;
}
.video a { display: block; }
.video-thumb { display: block; overflow: hidden; border-radius: 6px; }
.video-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: opacity 0.25s var(--ease);
}
.video a:hover .video-thumb img { opacity: 0.82; }
.video-title {
    display: block;
    margin-top: 14px;
    font-weight: 500;
    line-height: 1.35;
    transition: color 0.2s var(--ease);
}
.video a:hover .video-title { color: var(--accent); }
.video-meta {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: var(--fg-faint);
}

/* -------------------------- Kontakt ----------------------------- */
.contact-form { margin-top: 42px; max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cf-field { display: flex; flex-direction: column; gap: 9px; }
.cf-field > span {
    font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-faint);
}
.cf-field input, .cf-field textarea {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 13px 15px;
    color: var(--fg);
    font: inherit;
    transition: border-color 0.2s var(--ease);
}
.cf-field textarea { resize: vertical; min-height: 140px; }
.cf-field input:focus, .cf-field textarea:focus {
    outline: none; border-color: var(--accent);
}
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cf-status { font-size: 1rem; font-weight: 500; color: var(--fg-dim); }
.cf-status.ok { color: var(--accent); }
.cf-status.err { color: var(--error); }
.cf-note { margin-top: 18px; font-size: 0.82rem; color: var(--fg-faint); }
.cf-note a { color: var(--fg-dim); text-decoration: underline; text-underline-offset: 3px; }
.cf-note a:hover { color: var(--fg); }

/* --------------------------- Footer ----------------------------- */
.site-footer {
    border-top: 1px solid var(--line-soft);
    padding: 56px clamp(20px, 5vw, 48px) 48px;
}
.footer-inner {
    max-width: var(--maxw); margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-logo { width: 40px; height: auto; opacity: 0.75; }
.footer-meta { font-size: 0.78rem; letter-spacing: 0.05em; color: var(--fg-faint); }
.footer-legal { display: flex; gap: 10px; align-items: center; font-size: 0.8rem; }
.footer-legal a { color: var(--fg-faint); transition: color 0.2s var(--ease); }
.footer-legal a:hover { color: var(--fg); }
.footer-legal span { color: var(--fg-faint); }

/* ------------------- Rechtsseiten (Impressum/DS) ---------------- */
.legal-section { padding-top: clamp(120px, 17vh, 180px); }
.legal-wrap { max-width: 740px; }
.legal-note {
    border-left: 1px solid var(--accent);
    padding: 4px 0 4px 18px;
    margin: 22px 0 40px;
    font-size: 0.9rem;
    color: var(--fg-dim);
}
.legal-note strong { color: var(--fg); font-weight: 500; }
.legal-body { color: var(--fg-dim); line-height: 1.75; }
.legal-body h2 {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    color: var(--fg); margin: 40px 0 12px;
}
.legal-body h3 { font-size: 0.95rem; font-weight: 600; color: var(--fg); margin: 24px 0 8px; }
.legal-body p { margin: 0 0 14px; max-width: 68ch; }
.legal-body ul { margin: 0 0 16px; padding-left: 1.15em; list-style: disc; max-width: 68ch; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--fg); font-weight: 500; }
.legal-ph {
    color: #8a5a14;
    border-bottom: 1px dotted rgba(138, 90, 20, 0.5);
    font-style: normal;
}

/* -------------------------- Einblenden -------------------------- */
.reveal { animation: fade-up 0.7s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: 0.05s; }
.reveal:nth-child(3) { animation-delay: 0.10s; }
.reveal:nth-child(4) { animation-delay: 0.15s; }
.reveal:nth-child(5) { animation-delay: 0.20s; }
@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: none; }
}

/* -------------------------- Responsive -------------------------- */
@media (max-width: 900px) {
    /* Auch mobil diagonal wie am Desktop (senkrecht wirkte wie ein Displayfehler);
       liegt hinter allen Inhalten und ist schwaecher, damit Text lesbar bleibt. */
    .brand-stripes {
        right: 18px;
        width: 30px;
        gap: 4px;
        opacity: 0.26;
    }
    .hero { min-height: auto; padding-top: 120px; }
    .hero-inner { grid-template-columns: 1fr; gap: 44px; }
    .hero-photo { order: -1; }
    .hero-photo img { max-width: 260px; margin: 0; }
    .video-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .video-list { grid-template-columns: 1fr; }
    .cf-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { animation: none; }
    * { transition-duration: 0.01ms !important; }
}
