/* ============================================================
   Design Tokens
   Die Variablen stehen in drei austauschbaren Sätzen, die header.php nach
   dieser Datei lädt und die der Kunde in der App wählt:
   css/stil/*.css    Abstände, Formen, Schatten, Überschriften-Gestalt
   css/schrift/*.css Schriftfamilien, Grundgröße, Zeilenhöhe
   css/farbe/*.css   Farben inkl. Link- und Buttonfarben
   ============================================================ */

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: var(--font-size-base); }

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-body);
    font-size: 1rem;
    line-height: var(--line-height-base);
    color: var(--color-text);
    background: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}
a:hover, a:focus { color: var(--color-primary); }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: var(--heading-weight);
    color: var(--color-primary);
    line-height: var(--heading-line-height);
    letter-spacing: var(--heading-letter-spacing);
    text-transform: var(--heading-transform);
}

h1 { font-size: var(--h1-size); margin-bottom: var(--space-m); }
h2 { font-size: var(--h2-size); margin-bottom: var(--space-s); }
h3 { font-size: var(--h3-size); margin-bottom: var(--space-xs); }

p { margin-bottom: var(--space-s); }
p:last-child { margin-bottom: 0; }

ul[role="list"] { list-style: none; }

/* ============================================================
   Skip Link (Accessibility)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-s);
    background: var(--color-band);
    color: #fff;
    padding: var(--space-xs) var(--space-s);
    border-radius: var(--radius);
    z-index: 1000;
    text-decoration: none;
    font-weight: 600;
    transition: top var(--transition);
}
.skip-link:focus { top: var(--space-xs); }

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-s) var(--space-m);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-s);
}

.site-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 48px;
    width: auto;
}
.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: bold;
}
.logo-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius);
}
.hamburger:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
    display: flex;
    gap: var(--space-s);
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: var(--space-xs) 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}
.nav-link:hover,
.nav-link:focus {
    color: var(--color-primary);
    border-color: var(--color-accent);
}
.nav-link--active {
    color: var(--color-primary);
    font-weight: 600;
    border-color: var(--color-accent);
}

/* Mobile Nav */
@media (max-width: 680px) {
    .hamburger { display: flex; }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-s) var(--space-m);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    .nav-list--open { display: flex; }

    .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 1rem;
    }
    .nav-list li:last-child .nav-link { border-bottom: none; }
}

/* ============================================================
   Layout Helpers
   ============================================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.section {
    padding: var(--space-xl) var(--space-m);
    max-width: var(--max-width);
    margin: 0 auto;
}

.section--alt {
    background: var(--color-surface);
    max-width: 100%;
    padding: var(--space-xl) 0;
}
.section--alt .section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-m);
}

/* ============================================================
   Hero (Home)
   ============================================================ */
.hero {
    background: var(--color-band);
    color: #fff;
    padding: var(--space-xl) var(--space-m);
    text-align: center;
}
.hero h1 { color: #fff; margin-bottom: var(--space-xs); }
.hero .hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-l);
}
.btn {
    display: inline-block;
    background: var(--color-button);
    color: #fff;
    padding: var(--button-padding);
    border-radius: var(--radius-button);
    text-decoration: none;
    font-weight: var(--button-weight);
    transition: background var(--transition);
}
.btn:hover,
.btn:focus { background: var(--color-button-hover); color: #fff; }

/* ============================================================
   Service Cards
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-m);
    margin-top: var(--space-m);
}
/* 3, 5, 6 oder 9 Karten stehen in höchstens drei Spalten (3, 3 + 2, 3 + 3, 3 × 3) statt 4 + 1 oder 4 + 2;
   auf schmaleren Flächen bleiben drei Karten nebeneinander, bis sie unter 180 px fallen */
.services-grid:has(> :nth-child(3):last-child),
.services-grid:has(> :nth-child(5):last-child),
.services-grid:has(> :nth-child(6):last-child),
.services-grid:has(> :nth-child(9):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(max(180px, 30%), 1fr));
}

/* Kacheln: Ein Stil kann Karten reihum in vier Palettenfarben einfärben (--card-bg-1…4,
   Text dann --card-fg); im Standard sind alle vier die Fläche der Palette */
.service-card,
.ref-card {
    background: var(--card-bg-1);
    color: var(--card-fg);
}
.service-card:nth-child(4n+2), .ref-card:nth-child(4n+2) { background: var(--card-bg-2); }
.service-card:nth-child(4n+3), .ref-card:nth-child(4n+3) { background: var(--card-bg-3); }
.service-card:nth-child(4n+4), .ref-card:nth-child(4n+4) { background: var(--card-bg-4); }

.service-card {
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: var(--space-m);
}
.service-card h3 { color: var(--card-accent); margin-bottom: var(--space-xs); }

/* ============================================================
   References Grid
   ============================================================ */
.ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-m);
    margin-top: var(--space-m);
}

.ref-card {
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.ref-card:hover { box-shadow: var(--shadow-card-hover); }
.ref-card h3 { color: var(--card-heading); margin-bottom: var(--space-xs); }

.ref-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.ref-card-body {
    padding: var(--space-m);
}
.ref-link { margin-top: var(--space-s); font-weight: 600; }
.ref-link a { color: var(--card-accent); }

.ref-card .ref-category {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--card-accent);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

/* ============================================================
   About / Über mich
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-l);
    align-items: start;
}
@media (max-width: 680px) {
    .about-grid { grid-template-columns: 1fr; }
}

.about-portrait {
    border-radius: var(--radius-card);
    border: 4px solid var(--color-border);
}

.values-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-top: var(--space-s);
}
.values-list li {
    background: var(--chip-bg);
    border: var(--border-width) solid var(--color-border);
    color: var(--chip-fg);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-chip);
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
}
@media (max-width: 680px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info address {
    font-style: normal;
    line-height: 2;
}

.form-group { margin-bottom: var(--space-m); }

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--color-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.65rem var(--space-s);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-focus-shadow);
}

textarea { min-height: 150px; resize: vertical; }

.btn-submit {
    background: var(--color-button);
    color: #fff;
    border: none;
    padding: var(--button-padding);
    font-size: 1rem;
    font-weight: var(--button-weight);
    border-radius: var(--radius-button);
    cursor: pointer;
    transition: background var(--transition);
}
.btn-submit:hover,
.btn-submit:focus { background: var(--color-band); }
.btn-submit:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.form-notice {
    padding: var(--space-s);
    border-radius: var(--radius);
    margin-bottom: var(--space-m);
    font-size: 0.9rem;
}
.form-notice--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-notice--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ============================================================
   Page Header Banner
   ============================================================ */
.page-hero {
    background: var(--color-band);
    color: #fff;
    padding: var(--space-l) var(--space-m);
    text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0; }
.page-hero p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; margin-bottom: 0; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-band);
    color: #fff;
    margin-top: var(--space-xl);
    padding: var(--space-l) var(--space-m);
    font-size: 0.9rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m);
    align-items: start;
}
@media (max-width: 680px) {
    .footer-inner { grid-template-columns: 1fr; }
}

/* feste Zeilenhöhe: E-Mail- und Telefon-Link brauchen 24px Abstand (WCAG 2.5.8), unabhängig vom Schriftsatz */
.footer-contact { line-height: 1.9; }

.footer-contact a,
.footer-nav a,
.footer-legal a {
    color: #fff;
    text-decoration: none;
}
.footer-contact a:hover,
.footer-nav a:hover,
.footer-legal a:hover { color: rgba(255,255,255,0.8); }

.footer-nav ul,
.footer-legal ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs) var(--space-s);
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-xs) var(--space-m);
    margin-top: var(--space-s);
    padding-top: var(--space-s);
    border-top: 1px solid rgba(255,255,255,0.25);
    font-size: 0.8rem;
}

.footer-copy {
    color: rgba(255,255,255,0.8);
    margin-bottom: 0;
}

/* ============================================================
   Rechtstexte (Impressum, Datenschutz)
   ============================================================ */
.legal { max-width: 48rem; }
.legal h2 {
    margin-top: var(--space-l);
    scroll-margin-top: 6rem;   /* Sprungziele nicht unter dem Sticky-Header verstecken */
}
.legal > h2:first-child { margin-top: 0; }
.legal ul,
.legal ol {
    padding-left: 1.5rem;
    margin-bottom: var(--space-s);
}
.legal li { margin-bottom: 0.25rem; }
.legal address {
    font-style: normal;
    margin-bottom: var(--space-s);
}
.legal-stand {
    margin-top: var(--space-l);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* ============================================================
   Focus styles (global accessibility)
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Auf den Bändern (immer dunkel, weil dort weiße Schrift steht) wäre ein Rahmen in der
   Akzentfarbe kaum sichtbar, etwa wenn eine Palette das Band in der Akzentfarbe setzt */
.hero :focus-visible,
.page-hero :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* Stil Klar mit Farben Graphit (in fair-cms Apple + Apple, Kai 2026-10-25): Menü weiß, Seitentitel hellgrau mit
   schwarzer Schrift wie auf apple.com. data-stil/data-farbe setzt header.php. */
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .site-header,
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .nav-list { background: #ffffff; }
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .page-hero { background: var(--color-surface); }
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .page-hero h1,
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .page-hero p { color: #000000; }
:root[data-stil="klar"][data-farbe="graphit"]:not([data-theme="kontrast"]) .page-hero :focus-visible { outline-color: var(--color-accent); }

/* ============================================================
   Utilities
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-m { margin-top: var(--space-m); }
.mt-s { margin-top: var(--space-s); }

.label-optional {
    font-weight: 400;
    color: var(--color-text-muted);
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-s);
}

/* ============================================================
   Colour Themes
   ============================================================ */

/* Kontrast – Barrierefreiheit: Schwarz/Gelb, große Schriften */
html[data-theme="kontrast"] { font-size: 150%; }   /* schlägt --font-size-base */

/* :root[...] ist spezifischer als die :root-Sätze aus css/farbe/ und gewinnt daher */
:root[data-theme="kontrast"] {
    --border-width:       1px;   /* Rahmen immer sichtbar, auch wenn ein Stil sie weglässt */
    --card-bg-1:          #0d0d0d;   /* farbige Kacheln eines Stils aus, Schwarz/Gelb bleibt */
    --card-bg-2:          #0d0d0d;
    --card-bg-3:          #0d0d0d;
    --card-bg-4:          #0d0d0d;
    --card-fg:            #ffffff;
    --card-heading:       #ffff00;
    --card-accent:        #00ffff;
    --chip-bg:            #0d0d0d;
    --chip-fg:            #ffff00;
    --color-link:         #ffff00;
    --color-button:       #ffff00;
    --color-primary:      #ffff00;
    --color-accent:       #ffff00;
    --color-accent-light: #ffffff;
    --color-accent2:      #00ffff;
    --color-bg:           #000000;
    --color-surface:      #0d0d0d;
    --color-text:         #ffffff;
    --color-text-muted:   #dddddd;
    --color-border:       #ffffff;
    --color-band:         #000000;
    --color-focus-shadow: rgba(255, 255, 0, 0.5);
    --color-button-hover: var(--color-accent-light);   /* Weiß mit schwarzer Schrift */
}

/* Gelber Hintergrund erfordert schwarzen Text auf Buttons */
[data-theme="kontrast"] .btn,
[data-theme="kontrast"] .btn:hover,
[data-theme="kontrast"] .btn:focus { color: #000000; }

[data-theme="kontrast"] .btn-submit { color: #000000; background: var(--color-accent); }
[data-theme="kontrast"] .btn-submit:hover,
[data-theme="kontrast"] .btn-submit:focus { color: #000000; background: var(--color-accent-light); }

/* ============================================================
   Bausteine von Homepage Kiosk (über fair-cms hinaus)
   Nur Variablen aus css/stil, css/schrift und css/farbe, damit jede
   Kombination und der Kontrastmodus ohne eigene Regeln funktionieren.
   ============================================================ */

/* Hinweisleiste der Probeseite: Text- und Grundfarbe vertauscht, Kontrast wie der Fließtext */
.demo-hinweis {
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.85rem;
    text-align: center;
    padding: var(--space-xs) var(--space-m);
}

/* „Inhalt melden“ (mailto, AGB § 7) in der Farbe der Leiste */
.demo-hinweis a {
    color: inherit;
    text-decoration: underline;
    white-space: nowrap;
}

/* Titelbereich: Buttons und Variante mit Bild */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-s);
}
.hero--bild {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-l);
    align-items: center;
    text-align: left;
    padding-left: max(var(--space-m), calc((100% - var(--max-width)) / 2 + var(--space-m)));
    padding-right: max(var(--space-m), calc((100% - var(--max-width)) / 2 + var(--space-m)));
}
.hero--bild .hero-buttons { justify-content: flex-start; }
.hero--bild .hero-sub { margin-bottom: var(--space-m); }
.hero-bild {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-card);
}
@media (max-width: 680px) {
    .hero--bild { grid-template-columns: minmax(0, 1fr); }
}

/* Zweiter Button auf dem Band: umrandet statt gefüllt */
.btn--zweit {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}
.btn--zweit:hover,
.btn--zweit:focus { background: #fff; color: var(--color-band); }

/* Text mit Bild, Kontaktdaten mit Bild */
.text-bild {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-l);
    align-items: center;
}
.text-bild--links .text-bild-media { order: -1; }
@media (max-width: 680px) {
    .text-bild { grid-template-columns: minmax(0, 1fr); }
    .text-bild--links .text-bild-media { order: 0; }
}
.bild-rund {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: var(--radius-card);
}

.text-block { max-width: 48rem; }
.section--alt .text-block { max-width: 48rem; }

.aufzaehlung {
    padding-left: 1.5rem;
    margin-top: var(--space-s);
}
.aufzaehlung li { margin-bottom: 0.25rem; }

/* Galerie */
.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-s);
    margin-top: var(--space-m);
}
.galerie-bild img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-card);
}
.galerie-bild figcaption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.25rem;
}

/* Schaubild in voller Breite, unbeschnitten; der Link öffnet die Lupe (js/main.js) */
.grafik-text { max-width: 48rem; }
.grafik-figur { margin-top: var(--space-m); }
.grafik-link {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    text-decoration: none;
    cursor: zoom-in;
}
.grafik-bild {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
}
/* Unter dem Bild, damit der Knopf nichts vom Schaubild verdeckt */
.grafik-lupe {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #14171c;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: 0 0 0 2px #ffffff;
}
.grafik-link:hover .grafik-lupe,
.grafik-link:focus-visible .grafik-lupe { background: #ffffff; color: #14171c; box-shadow: 0 0 0 2px #14171c; }
.grafik-figur figcaption {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

/* Lupe: Dialog über das ganze Fenster. Stufe 1 zeigt das Bild ganz, 2 bis 4 in zwei-, drei- und vierfacher
   Fensterbreite zum Verschieben. Feste Farben (Schwarz/Weiß), damit sie in jeder Palette und im Kontrastmodus gleich aussieht. */
.lupe {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0b0d10;
    color: #ffffff;
    overflow: hidden;
}
.lupe[open] { display: flex; flex-direction: column; }
.lupe::backdrop { background: #0b0d10; }
.lupe-leiste {
    flex: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 3.5rem;
    padding: 0 0.75rem;
    background: #14171c;
}
.lupe-knopf {
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.75rem;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font: 700 1.25rem/1 system-ui, sans-serif;
    cursor: pointer;
}
.lupe-knopf:hover { background: #ffffff; color: #14171c; }
.lupe-knopf[aria-disabled="true"] { border-color: #8a93a0; color: #8a93a0; cursor: default; }
.lupe-knopf[aria-disabled="true"]:hover { background: transparent; color: #8a93a0; }
.lupe-zu { margin-left: auto; font-size: 1rem; }
.lupe :focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
.lupe-flaeche {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-x pan-y pinch-zoom;
}
/* margin: auto zentriert und lässt das Bild trotzdem ganz erreichbar, wenn es größer als die Fläche ist */
.lupe-bild {
    flex: none;
    display: block;
    margin: auto;
    height: auto;
    max-width: none;
    cursor: zoom-in;
}
.lupe--1 .lupe-bild { width: auto; max-width: 100vw; max-height: calc(100vh - 3.5rem); max-height: calc(100dvh - 3.5rem); }
.lupe--2 .lupe-bild { width: 200vw; }
.lupe--3 .lupe-bild { width: 300vw; }
.lupe--4 .lupe-bild { width: 400vw; cursor: zoom-out; }

/* Kundenstimmen */
.zitat blockquote { font-style: italic; }
.zitat figcaption { margin-top: var(--space-s); font-weight: 600; }

/* Häufige Fragen */
.faq {
    display: grid;
    gap: var(--space-xs);
    margin-top: var(--space-m);
    max-width: 48rem;
}
.faq-eintrag {
    background: var(--color-surface);
    border: var(--border-width) solid var(--color-border);
    border-radius: var(--radius-card);
}
.section--alt .faq-eintrag { background: var(--color-bg); }
.faq-eintrag summary {
    cursor: pointer;
    min-height: 44px;
    padding: var(--space-s) var(--space-m);
    font-weight: 600;
    color: var(--color-primary);
}
.faq-antwort { padding: 0 var(--space-m) var(--space-s); }

/* Öffnungszeiten */
.zeiten {
    border-collapse: collapse;
    margin-top: var(--space-s);
    min-width: min(100%, 22rem);
}
.zeiten th,
.zeiten td {
    text-align: left;
    vertical-align: top;
    padding: 0.4rem var(--space-m) 0.4rem 0;
    border-bottom: 1px solid var(--color-border);
}
.zeiten th { font-weight: 600; }

.block-hinweis {
    margin-top: var(--space-s);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Neuigkeiten und Termine */
.eintraege {
    display: grid;
    gap: var(--space-m);
    margin-top: var(--space-m);
    max-width: 48rem;
}
.eintrag {
    padding-left: var(--space-s);
    border-left: 3px solid var(--color-accent);
}
.eintrag h3 { margin-bottom: 0.25rem; }
.eintrag-datum {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}
.eintrag-details { font-size: 0.9rem; color: var(--color-text-muted); }

/* Produkte und Team (Karten wie bei den Referenzen) */
.produkt-preis { margin-top: var(--space-xs); }
.grundpreis { font-size: 0.85rem; }
.person .ref-card-img { height: auto; aspect-ratio: 4 / 3; object-position: top; }

/* Kontaktdaten und Kontaktformular */
.kontaktdaten address {
    font-style: normal;
    line-height: 2;
    margin-bottom: var(--space-s);
}
.form-notice--info {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.section--alt .form-notice--info { background: var(--color-bg); }
.kontakt-form,
.kontaktformular .form-notice { max-width: 40rem; }

/* Falle für Bots im Kontaktformular: für Menschen unsichtbar, auch für Screenreader (aria-hidden) */
.form-feld-falle {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.kontakt-form { margin-top: var(--space-m); }
.kontakt-form fieldset { border: 0; min-width: 0; }
.kontakt-form fieldset:disabled input,
.kontakt-form fieldset:disabled textarea,
.kontakt-form fieldset:disabled button { cursor: not-allowed; }
.btn-submit:disabled { opacity: 0.6; }

/* Kontrastmodus: zweiter Button gelb umrandet, beim Darüberfahren gelb gefüllt */
[data-theme="kontrast"] .btn--zweit { background: transparent; color: #ffff00; box-shadow: inset 0 0 0 2px #ffff00; }
[data-theme="kontrast"] .btn--zweit:hover,
[data-theme="kontrast"] .btn--zweit:focus { background: #ffff00; color: #000000; }

/* Kommentarmodus der Vorschau in der App (js/kommentar.js): Abschnitte zeigen beim Darüberfahren, dass sie anklickbar
   sind; nummerierte Marken zeigen gespeicherte Kommentare, „+“ die gerade gewählte Stelle */
.kommentar-modus main [data-abschnitt] { cursor: crosshair; }
.kommentar-modus main [data-abschnitt]:hover { outline: 2px dashed var(--color-primary); outline-offset: 4px; }
.kommentar-marke {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6em;
    height: 1.6em;
    margin-right: 0.4em;
    padding: 0 0.35em;
    border-radius: 999px;
    background: #b42318;
    color: #ffffff;
    font: 700 0.85rem/1 system-ui, sans-serif;
    vertical-align: middle;
}
.kommentar-marke--neu { background: #1d4ed8; }
.kommentar-marke[data-id] { cursor: pointer; }
.kommentar-blase {
    position: absolute;
    z-index: 1000;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
    color: #1d232b;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    border: 1px solid #c9ced6;
    font: 400 0.95rem/1.4 system-ui, sans-serif;
}
.kommentar-blase textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #8a93a0;
    border-radius: 8px;
    font: inherit;
    color: inherit;
    background: #ffffff;
    resize: vertical;
}
.kommentar-blase-hinweis { margin: 6px 0 0; font-size: 0.8rem; color: #4b5563; }
.kommentar-blase-antwort { margin: 0 0 8px; padding: 6px 8px; border-radius: 8px; background: #fff4e5; color: #6b3a00; font-size: 0.875rem; }
/* Kommentar, den die KI nicht umsetzen konnte: Ring um die Nummer */
.kommentar-marke--antwort { box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #b45309; }
.kommentar-blase-meldung { margin: 4px 0 0; font-size: 0.85rem; color: #b42318; }
.kommentar-blase-meldung:empty { display: none; }
