/*
Theme Name: Shoe Shop Simple
Description: Einfaches Theme: Schuhe als Custom Post Type mit Metafeldern, Ausgabe als Raster auf der Startseite. Kein Page Builder, kein Feld-Plugin.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: shoe-shop-simple
*/

/* ── Variablen ───────────────────────────── */
:root {
    --color-bg: #f7f6f3;
    --color-card: #ffffff;
    --color-text: #1f2328;
    --color-muted: #6b7280;
    --color-accent: #d9480f;
    --color-line: #e5e2db;
    --radius: 12px;
    --gap: 24px;
    --max-width: 1200px;
}

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
}

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

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

/* ── Header / Footer ─────────────────────── */
.site-header {
    background: var(--color-card);
    border-bottom: 1px solid var(--color-line);
    padding: 12px 0;
}

/* Logo links, Warenkorb rechts, beides auf einer Höhe (auch am Smartphone) */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.site-logo {
    display: block;
    min-width: 0;
}

.site-logo img {
    display: block;
    height: var(--logo-height, 48px);
    width: auto;
    max-width: 100%;
}

.site-footer {
    margin-top: 60px;
    padding: 24px 0;
    border-top: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 0.9rem;
}

.site-footer p { margin: 0; }

/* ── Seite ───────────────────────────────── */
.page-title {
    margin: 40px 0 24px;
    font-size: 2rem;
}

.empty { color: var(--color-muted); }

/* ── Filter ──────────────────────────────── */
.shoe-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-link {
    padding: 6px 14px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-card);
    font-size: 0.9rem;
    text-decoration: none;
}

.filter-link:hover { border-color: var(--color-accent); }

.filter-link.is-active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

/* ── Masonry (reines CSS, Spalten) ───────── */
.shoe-grid {
    column-count: 4;
    column-gap: var(--gap);
}

@media (max-width: 1024px) {
    .shoe-grid { column-count: 2; }
}


/* ── Karte ───────────────────────────────── */
.shoe-card {
    break-inside: avoid;
    margin-bottom: var(--gap);
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
}

/* Einblenden beim Scrollen (assets/reveal.js), nur wenn JavaScript läuft */
.js .shoe-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .shoe-card.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .shoe-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.shoe-image {
    display: block;
    background: var(--color-line);
}

.shoe-name a { text-decoration: none; }
.shoe-name a:hover { color: var(--color-accent); }

.shoe-image img {
    width: 100%;
    height: auto;
}

.shoe-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.shoe-brand {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.shoe-name {
    margin: 0;
    font-size: 1.1rem;
}

.shoe-price {
    margin: 0;
    color: var(--color-accent);
    font-size: 1.2rem;
    font-weight: 700;
}

.shoe-text {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;

    /* Kurzbeschreibung auf der Karte: höchstens 2 Zeilen, der Rest wird mit "…" abgeschnitten.
       Den vollständigen Text zeigt die Schuhseite. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.shoe-meta {
    margin: 6px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--color-line);
    list-style: none;
    font-size: 0.85rem;
}

.shoe-meta span {
    display: inline-block;
    min-width: 56px;
    color: var(--color-muted);
}

/* Smartphone: zwei Spalten, reduzierte Angaben (Marke, Name, Preis) ohne Kartenrahmen.
   Steht nach den Kartenregeln, damit es sie überschreibt. */
@media (max-width: 560px) {
    .shoe-grid {
        column-count: 2;
        column-gap: 12px;
    }

    .shoe-card {
        margin-bottom: 20px;
        background: none;
        border: 0;
        border-radius: 0;
        overflow: visible;
    }

    .shoe-image {
        border-radius: var(--radius);
        overflow: hidden;
    }

    .shoe-body { padding: 8px 2px 0; gap: 2px; }
    .shoe-brand { font-size: 0.7rem; }
    .shoe-name { font-size: 0.95rem; line-height: 1.3; }
    .shoe-price { font-size: 1rem; }

    /* Beschreibung, Farbe, Größen und Artikelnummer gibt es erst auf der Schuhseite */
    .shoe-grid .shoe-text,
    .shoe-grid .shoe-meta { display: none; }
}

/* ── Einzelseite ─────────────────────────── */
.back-link { margin: 28px 0 0; }
.back-link a { color: var(--color-muted); text-decoration: none; }
.back-link a:hover { color: var(--color-accent); }

.shoe-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
    align-items: start;
}

@media (max-width: 800px) {
    .shoe-detail { grid-template-columns: 1fr; gap: 24px; }
}

/* Slider: scroll-snap, Pfeile und Tastatur kommen aus assets/single.js */
.shoe-slider {
    position: relative;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-line);
}

.slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slider-track::-webkit-scrollbar { display: none; }
.slider-track:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.slide {
    flex: 0 0 100%;
    aspect-ratio: 1 / 1; /* immer quadratisch, egal welches Format hochgeladen wird */
    scroll-snap-align: center;
}

/* Das Bild füllt das ganze Quadrat. Hoch- und Querformate werden mittig zugeschnitten
   (waagrecht wie senkrecht zentriert). Für "ganz sichtbar mit Rand" object-fit: contain verwenden. */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.slider-btn:hover:not(:disabled) { background: var(--color-accent); color: #fff; }
.slider-btn:disabled { opacity: 0.35; cursor: default; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.shoe-thumbs {
    display: flex;
    flex-wrap: nowrap; /* immer eine Reihe: die Bilder werden bei Bedarf kleiner */
    gap: 10px;
    margin-top: 12px;
}

@media (max-width: 560px) {
    .shoe-thumbs { gap: 6px; }
}

.shoe-thumbs a {
    display: block;
    flex: 1 1 0;
    min-width: 0;
    max-width: 80px;
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
}

.shoe-thumbs a.is-active { border-color: var(--color-accent); }

.shoe-thumbs a { background: var(--color-line); }

/* Vorschaubilder wie das große Bild: quadratisch, mittig zugeschnitten */
.shoe-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.shoe-detail-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shoe-detail-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.2;
}

.shoe-price-large { font-size: 1.6rem; }
.shoe-detail .shoe-meta span { min-width: 110px; }
.shoe-detail .shoe-filters { margin: 16px 0 0; }

/* ── Warenkorb-Link im Kopf ──────────────── */
.cart-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
}

.cart-link:hover { border-color: var(--color-accent); }

.cart-count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-size: 0.8rem;
    line-height: 22px;
    text-align: center;
}

/* ── Buttons und Formularfelder ──────────── */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover { filter: brightness(0.92); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn-large { width: 100%; padding: 16px 22px; font-size: 1.05rem; }

.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label, .field > span { font-size: 0.9rem; color: var(--color-muted); }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-card);
    color: var(--color-text);
    font: inherit;
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 1px;
}

.field-error, .form-error, .add-msg-error { color: #b4232c; font-size: 0.9rem; margin: 0; }
.field .field-error { color: #d00000; font-weight: 700; }
.add-msg-ok { color: #2f7d4f; margin: 0; }
.add-msg-ok a { color: inherit; font-weight: 600; }
.pay-note { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── Bestellen auf der Schuhseite ────────── */
.add-to-cart {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    margin: 8px 0 4px;
}

.add-to-cart .field { margin: 0; min-width: 140px; }
.add-to-cart .field-qty { min-width: 90px; }
.add-to-cart .add-msg, .add-to-cart .pay-note { flex-basis: 100%; }

/* ── Warenkorb ───────────────────────────── */
.cart { max-width: 800px; }

.cart-line {
    display: grid;
    grid-template-columns: 72px 1fr auto auto auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
}

.cart-img img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }
.cart-info { display: flex; flex-direction: column; gap: 2px; }
.cart-name { font-weight: 600; text-decoration: none; }
.cart-name:hover { color: var(--color-accent); }
.cart-meta { color: var(--color-muted); font-size: 0.85rem; }
.cart-unit { font-size: 0.9rem; }

.cart-qty select {
    padding: 8px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: var(--color-card);
    font: inherit;
}

.cart-line-total { min-width: 90px; font-weight: 700; text-align: right; }

.cart-remove {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: var(--color-line);
    color: var(--color-text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.cart-remove:hover { background: var(--color-accent); color: #fff; }

.cart-totals { margin: 18px 0 8px; }
.cart-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-totals dt, .cart-totals dd { margin: 0; }
.cart-total { margin-top: 6px; padding-top: 12px !important; border-top: 2px solid var(--color-text); font-size: 1.2rem; font-weight: 700; }

.order-form { margin-top: 32px; padding: 24px; border: 1px solid var(--color-line); border-radius: var(--radius); background: var(--color-card); }
.order-form h2 { margin: 0 0 18px; font-size: 1.3rem; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--color-text); font-size: 0.9rem; }
.check input { margin-top: 4px; }
.check a { color: var(--color-accent); }

.container.narrow { max-width: 640px; }
.order-number { font-size: 1.1rem; }

@media (max-width: 560px) {
    .cart-line { grid-template-columns: 56px 1fr auto; }
    .cart-img img { width: 56px; height: 56px; }
    .cart-qty { grid-column: 2; }
    .cart-line-total { grid-column: 3; grid-row: 2; }
    .cart-remove { grid-column: 3; grid-row: 1; }
}

/* ── Ausverkauft ─────────────────────────── */
.sold-out {
    margin: 8px 0;
    padding: 10px 16px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    display: inline-block;
    color: var(--color-muted);
    font-weight: 600;
}

/* ── Kategorien-Menü in der Kopfzeile ────── */
/* Reihenfolge: Logo | Menü (mittig) | Warenkorb. Reicht der Platz nicht, steht das Menü darunter. */
.site-nav {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

/* Hamburger-Knopf: nur am Smartphone und Tablet (und nur mit JavaScript, sonst bleibt das Menü sichtbar) */
.nav-toggle {
    display: none;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: var(--color-card);
    cursor: pointer;
}

.nav-toggle:hover { border-color: var(--color-accent); }

.nav-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-text);
    transition: transform 0.2s, opacity 0.2s;
}

/* offen: die drei Striche werden zum Kreuz */
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-header .container { flex-wrap: wrap; }
    .cart-link { margin-left: auto; } /* Warenkorb und Hamburger rücken zusammen nach rechts */
    .js .nav-toggle { display: flex; }

    /* Menü als Liste unter der Kopfzeile, ein Eintrag pro Zeile */
    .site-nav {
        order: 3;
        flex: 1 1 100%;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        margin-top: 8px;
        overflow: visible;
        border-top: 1px solid var(--color-line);
    }

    .js .site-nav { display: none; }
    .js .site-nav.is-open { display: flex; }
}

.nav-link {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover { color: var(--color-accent); }
.nav-link.is-active { background: var(--color-accent); color: #fff; }
.nav-sale { color: #b4232c; }
.nav-sale.is-active { background: #b4232c; color: #fff; }

/* ── Sonderangebot-Markierung ────────────── */
.shoe-image { position: relative; }

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #b4232c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-inline { position: static; display: inline-block; }
.shoe-badge-row { margin: 0; }

/* Menü-Einträge am Smartphone und Tablet: eine Liste. Steht nach den Standardregeln der Links, damit es sie überschreibt. */
@media (max-width: 900px) {
    .nav-link {
        padding: 14px 4px;
        border-bottom: 1px solid var(--color-line);
        border-radius: 0;
        font-size: 1.05rem;
        text-align: center;
    }

    .nav-link.is-active { background: none; color: var(--color-accent); }
    .nav-sale.is-active { background: none; color: #b4232c; }
}

/* ── Schuhart-Dropdown ───────────────────── */
.filter-select select {
    width: 100%;
    max-width: 240px;
    padding: 8px 38px 8px 16px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background-color: var(--color-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: right 14px center;
    background-repeat: no-repeat;
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.filter-select select:hover { border-color: var(--color-accent); }
.filter-select select:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* gewählte Schuhart: Rahmen und Schrift in der Akzentfarbe */
.filter-select.is-active select {
    border-color: var(--color-accent);
    color: var(--color-accent);
    font-weight: 600;
}

@media (max-width: 560px) {
    .filter-select select { max-width: none; }
}

/* ── Footer: Copyright links, Impressum / Datenschutz / Kontakt rechts ── */
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--color-accent); }

@media (max-width: 560px) {
    .site-footer .container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* ── Accordion auf der Schuhseite (Kurzbeschreibung, Produktdetails, Pflegehinweise) ── */
.accordion {
    margin-top: 8px;
    border-top: 1px solid var(--color-line);
}

.acc-item { border-bottom: 1px solid var(--color-line); }

.acc-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--color-accent); }
.acc-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Pfeil: zeigt nach unten, geöffnet nach oben */
.acc-item summary::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-muted);
    border-bottom: 2px solid var(--color-muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
}

/* "is-closing" setzt assets/single.js während des Zuklappens, damit der Pfeil sofort zurückdreht */
.acc-item[open]:not(.is-closing) summary::after { transform: rotate(-135deg); }

.acc-body {
    box-sizing: border-box; /* die Höhe schließt den Abstand unten ein (wichtig für die Animation) */
    padding: 0 0 16px;
    color: var(--color-muted);
}

.acc-body p { margin: 0 0 0.5em; }
.acc-body p:last-child { margin-bottom: 0; }

/* ── Lupe und Lightbox (auf allen Geräten) ── */
.slider-zoom {
    display: none;
    position: absolute;
    right: 12px;
    bottom: 12px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    cursor: zoom-in;
}

.slider-zoom:hover { background: var(--color-accent); color: #fff; }

.js .slider-zoom { display: flex; } /* ohne JavaScript gibt es keine Lightbox, also auch keine Lupe */

/* Touchgeräte: größere Tippfläche */
@media (pointer: coarse) {
    .slider-zoom { width: 44px; height: 44px; }
}

html.lb-open { overflow: hidden; }

.lightbox {
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* am Handy ohne die Adressleiste mitzurechnen */
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(14, 16, 19, 0.95);
    color: #fff;
    overflow: hidden;
}

.lightbox[open] {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lb-in 0.2s ease;
}

.lightbox::backdrop { background: transparent; }

.lb-img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 200px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    border-radius: 6px;
}

.lb-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.lb-btn:hover { background: var(--color-accent); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

.lb-count {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    .lightbox[open] { animation: none; }
}

/* Lightbox am Smartphone und Tablet: das Bild nutzt fast die ganze Fläche, die Knöpfe liegen kleiner darüber */
@media (max-width: 900px) {
    .lb-img {
        max-width: calc(100vw - 16px);
        max-height: calc(100vh - 130px);
        max-height: calc(100dvh - 130px);
    }

    .lb-btn {
        width: 44px;
        height: 44px;
        background: rgba(0, 0, 0, 0.5);
    }

    .lb-close { top: 12px; right: 12px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
}

/* Lightbox: Wischen und Gleiten */
.lightbox { touch-action: pinch-zoom; } /* nur Zoomen mit zwei Fingern ist dem Browser überlassen, das Wischen steuert das Skript */

.lb-img {
    will-change: transform, opacity;
    user-select: none;
    -webkit-user-drag: none;
}

/* ── Startseite: Hero-Bereich ── */
/* Zwei Streifen über die ganze Breite: oben der Kernsatz auf der Akzentfarbe, darunter in einem
   dunkleren Ton der Akzentfarbe die zwei Absätze in zwei Spalten. Die Texte stehen bündig mit dem Container. */
.hero {
    color: #fff;
}

.hero-banner {
    padding: 48px 0;
    background: var(--color-accent);
}

.hero-lead {
    margin: 0;
    max-width: 30em;
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance; /* gleichmäßig lange Zeilen, keine einzelnen Wörter am Zeilenende */
}

/* der Kernsatz: eigene Zeile, etwas leiser */
.hero-accent {
    display: block;
    margin-top: 0.6em;
    font-weight: 500;
    opacity: 0.9;
}

.hero-band {
    padding: 28px 0;
    background: #333;
    background: color-mix(in srgb, var(--color-accent) 60%, #000);
}

.hero-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 64px;
}

.hero-text {
    margin: 0;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.55;
    text-wrap: pretty;
}

@media (max-width: 900px) {
    .hero-columns { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 560px) {
    .hero-banner { padding: 32px 0; }
    .hero-band { padding: 22px 0; }
}
