/**
 * CLAUDE: Styles fuer die regionalen Standort-Landingpages (/standorte/<ort>/)
 * CLAUDE: Wird nur auf diesen Seiten geladen (inc/assets.php, Template-Abfrage)
 * CLAUDE: Farben kommen aus theme.json (--wp--preset--color--*) mit Fallback,
 * CLAUDE: genau wie in assets/css/components/kontakt-card.css
 * CLAUDE: Stand: 2026-08-03
 */

/* ========================================
   CLAUDE: 1. TOKENS - nur hier aendern
   ======================================== */

.lhi-standort-page {
    --lhi-st-gold: var(--wp--preset--color--heritage-gold, #8a6b3f);
    --lhi-st-dark: var(--wp--preset--color--dark-umber, #3B2A1A);
    --lhi-st-text: var(--wp--preset--color--graphite, #594834);
    --lhi-st-bg-light: var(--wp--preset--color--linen, #F6F4EF);
    --lhi-st-border: var(--wp--preset--color--porous-stone, #DCD7CE);
    --lhi-st-white: var(--wp--preset--color--white, #FFFFFF);
    --lhi-st-radius: 12px;
    --lhi-st-gap: 1.5rem;
}

/* ========================================
   CLAUDE: 2. BROTKRUMEN
   ======================================== */

.lhi-standort__breadcrumb {
    padding-block: 1rem 0;
    font-size: var(--lhi-font-size-sm, 0.875rem);
}

/* CLAUDE: Liste ohne Aufzaehlungszeichen, Trennzeichen per ::before erzeugt -
   CLAUDE: so steht das Zeichen NICHT im Text und wird nicht vorgelesen. */
.lhi-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--lhi-st-text);
}

.lhi-breadcrumb li + li::before {
    content: "›";
    margin-right: 0.5rem;
    color: var(--lhi-st-border);
}

.lhi-breadcrumb a {
    color: var(--lhi-st-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lhi-breadcrumb a:hover,
.lhi-breadcrumb a:focus-visible {
    color: var(--lhi-st-gold);
}

/* ========================================
   CLAUDE: 3. KOPFBEREICH
   ======================================== */

.lhi-standort__hero {
    padding-block: 1.5rem 2rem;
}

.lhi-standort__kicker {
    margin: 0 0 0.25rem;
    font-size: var(--lhi-font-size-sm, 0.875rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lhi-st-gold);
}

.lhi-standort__title {
    margin: 0 0 1.5rem;
    color: var(--lhi-st-dark);
}

/* CLAUDE: aspect-ratio + object-fit halten die Bildhoehe stabil, bevor das Bild
   CLAUDE: geladen ist - das verhindert das Springen des Layouts (CLS). */
.lhi-standort__bild {
    margin: 0;
}

.lhi-standort__bild-img {
    width: 100%;
    height: auto;
    aspect-ratio: 12 / 5;
    object-fit: cover;
    border-radius: var(--lhi-st-radius);
    display: block;
}

.lhi-standort__bildnachweis {
    margin-top: 0.5rem;
    font-size: var(--lhi-font-size-xs, 0.75rem);
    color: var(--lhi-st-text);
    opacity: 0.85;
}

/* ========================================
   CLAUDE: 4. FAKTEN - Eckdaten
   ======================================== */

.lhi-standort-fakten {
    padding-block: 2.5rem;
    background-color: var(--lhi-st-bg-light);
}

.lhi-standort-fakten__titel,
.lhi-standort-kontakt__titel {
    margin: 0 0 1.5rem;
    color: var(--lhi-st-dark);
}

/* CLAUDE: auto-fit statt fester Spaltenzahl - passt sich jeder Breite an,
   CLAUDE: ohne dass hier Breakpoints gepflegt werden muessen. */
.lhi-standort-eckdaten {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--lhi-st-gap);
    margin: 0 0 2.5rem;
}

.lhi-standort-eckdaten__item {
    padding: 1rem 1.25rem;
    background-color: var(--lhi-st-white);
    border: 1px solid var(--lhi-st-border);
    border-radius: var(--lhi-st-radius);
}

.lhi-standort-eckdaten dt {
    margin: 0 0 0.25rem;
    font-size: var(--lhi-font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--lhi-st-gold);
}

.lhi-standort-eckdaten dd {
    margin: 0;
    color: var(--lhi-st-dark);
}

.lhi-standort-quelle {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--lhi-font-size-xs, 0.75rem);
    color: var(--lhi-st-text);
}

/* ========================================
   CLAUDE: 5. MARKTZAHLEN-TABELLE
   ======================================== */

.lhi-standort-markt__titel,
.lhi-standort-stadtteile__titel {
    margin: 0 0 1rem;
    color: var(--lhi-st-dark);
}

/* CLAUDE: Der Wrapper scrollt, nicht die Seite. Ohne ihn schiebt die Tabelle
   CLAUDE: auf schmalen Bildschirmen den ganzen Seiteninhalt nach rechts. */
.lhi-standort-markt__wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lhi-standort-markt {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--lhi-st-white);
    border: 1px solid var(--lhi-st-border);
    border-radius: var(--lhi-st-radius);
    overflow: hidden;
}

.lhi-standort-markt th,
.lhi-standort-markt td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--lhi-st-border);
}

.lhi-standort-markt thead th {
    background-color: var(--lhi-st-bg-light);
    color: var(--lhi-st-dark);
    font-size: var(--lhi-font-size-sm, 0.875rem);
}

.lhi-standort-markt tbody tr:last-child td {
    border-bottom: 0;
}

.lhi-standort-markt__wert {
    font-weight: 600;
    color: var(--lhi-st-gold);
    white-space: nowrap;
}

.lhi-standort-markt__hinweis {
    margin: 0.75rem 0 2.5rem;
    font-size: var(--lhi-font-size-sm, 0.875rem);
    color: var(--lhi-st-text);
}

/* ========================================
   CLAUDE: 6. STADTTEILE
   ======================================== */

.lhi-standort-stadtteile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lhi-standort-stadtteile__item {
    padding: 0.4rem 0.9rem;
    background-color: var(--lhi-st-white);
    border: 1px solid var(--lhi-st-border);
    border-radius: 999px;
    font-size: var(--lhi-font-size-sm, 0.875rem);
    color: var(--lhi-st-dark);
}

/* ========================================
   CLAUDE: 6b. FAQ
   ======================================== */

.lhi-standort-faq {
    padding-block: 2.5rem;
}

.lhi-standort-faq__titel {
    margin: 0 0 1.5rem;
    color: var(--lhi-st-dark);
}

.lhi-standort-faq__liste {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 48rem;
}

.lhi-standort-faq__item {
    border: 1px solid var(--lhi-st-border);
    border-radius: var(--lhi-st-radius);
    background-color: var(--lhi-st-white);
    overflow: hidden;
}

/* CLAUDE: list-style entfernen, damit das Standard-Dreieck weg ist; das
   CLAUDE: eigene Zeichen kommt per ::after und dreht sich beim Aufklappen. */
.lhi-standort-faq__frage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--lhi-st-dark);
    cursor: pointer;
    list-style: none;
}

.lhi-standort-faq__frage::-webkit-details-marker {
    display: none;
}

.lhi-standort-faq__frage::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--lhi-st-gold);
}

.lhi-standort-faq__item[open] .lhi-standort-faq__frage::after {
    content: "−";
}

/* CLAUDE: Sichtbarer Fokusrahmen - die Fragen sind mit der Tastatur
   CLAUDE: erreichbar, und ohne diesen Rahmen sieht man nicht, wo man ist. */
.lhi-standort-faq__frage:focus-visible {
    outline: 2px solid var(--lhi-st-gold);
    outline-offset: -2px;
}

.lhi-standort-faq__antwort {
    padding: 0 1.25rem 1.25rem;
    color: var(--lhi-st-text);
}

.lhi-standort-faq__antwort p {
    margin: 0;
}

/* ========================================
   CLAUDE: 7. ANSPRECHPARTNER
   ======================================== */

.lhi-standort-kontakt {
    padding-block: 2.5rem;
}

.lhi-standort-kontakt__karte {
    padding: 1.5rem;
    background-color: var(--lhi-st-white);
    /* CLAUDE: Goldener Balken links - dasselbe Motiv wie .lhi-kontakt-card,
       CLAUDE: damit die Seite nicht wie ein Fremdkoerper wirkt. */
    border: 1px solid var(--lhi-st-border);
    border-left: 4px solid var(--lhi-st-gold);
    border-radius: var(--lhi-st-radius);
    max-width: 32rem;
}

.lhi-standort-kontakt__name {
    margin: 0;
    font-size: var(--lhi-font-size-lg, 1.125rem);
    font-weight: 600;
    color: var(--lhi-st-dark);
}

.lhi-standort-kontakt__rolle,
.lhi-standort-kontakt__region {
    margin: 0.25rem 0 0;
    font-size: var(--lhi-font-size-sm, 0.875rem);
    color: var(--lhi-st-text);
}

.lhi-standort-kontakt__zeile {
    margin: 0.5rem 0 0;
}

.lhi-standort-kontakt__zeile a,
.lhi-standort-kontakt__buero a {
    color: var(--lhi-st-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lhi-standort-kontakt__buero {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--lhi-st-border);
    font-style: normal;
    color: var(--lhi-st-text);
}

.lhi-standort-kontakt__buero-label {
    font-size: var(--lhi-font-size-sm, 0.875rem);
    font-weight: 600;
    color: var(--lhi-st-gold);
}

.lhi-standort-leistungen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.lhi-standort-leistungen a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--lhi-st-bg-light);
    border-radius: 999px;
    color: var(--lhi-st-dark);
    text-decoration: none;
    font-size: var(--lhi-font-size-sm, 0.875rem);
}

.lhi-standort-leistungen a:hover,
.lhi-standort-leistungen a:focus-visible {
    background-color: var(--lhi-st-gold);
    color: var(--lhi-st-white);
}

/* ========================================
   CLAUDE: 7b. STANDORT-LISTE (Uebersichtsseite /standorte/)
   CLAUDE: Wird vom Shortcode [lhi_standorte_liste] ausgegeben.
   ======================================== */

/* CLAUDE: --lhi-standorte-min kommt als Inline-Variable aus dem Shortcode,
   CLAUDE: damit die Mindestbreite je Einsatz einstellbar bleibt, ohne dass
   CLAUDE: hier eine zweite Regel entsteht. */
.lhi-standorte-liste {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--lhi-standorte-min, 260px), 1fr));
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.lhi-standorte-liste__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    height: 100%;
    padding: 1.25rem;
    background-color: var(--wp--preset--color--white, #FFFFFF);
    border: 1px solid var(--wp--preset--color--porous-stone, #DCD7CE);
    border-left: 4px solid var(--wp--preset--color--heritage-gold, #8a6b3f);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lhi-standorte-liste__link:hover,
.lhi-standorte-liste__link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.lhi-standorte-liste__name {
    font-size: var(--lhi-font-size-lg, 1.125rem);
    font-weight: 600;
    color: var(--wp--preset--color--dark-umber, #3B2A1A);
}

.lhi-standorte-liste__plz,
.lhi-standorte-liste__kreis {
    font-size: var(--lhi-font-size-sm, 0.875rem);
    color: var(--wp--preset--color--graphite, #594834);
}

/* CLAUDE: Bewegung nur, wenn der Nutzer sie nicht abgewaehlt hat. */
@media (prefers-reduced-motion: reduce) {
    .lhi-standorte-liste__link {
        transition: none;
    }
    .lhi-standorte-liste__link:hover,
    .lhi-standorte-liste__link:focus-visible {
        transform: none;
    }
}

/* ========================================
   CLAUDE: 8. SCHMALE BILDSCHIRME
   ======================================== */

@media (max-width: 575px) {
    .lhi-standort__bild-img {
        /* CLAUDE: Auf dem Handy hochformatiger, sonst bleibt vom Motiv
           CLAUDE: nur ein Streifen uebrig. */
        aspect-ratio: 4 / 3;
    }

    .lhi-standort-markt th,
    .lhi-standort-markt td {
        padding: 0.6rem 0.75rem;
        font-size: var(--lhi-font-size-sm, 0.875rem);
    }
}
