/* =====================================================
   ZIEGENBRUCH AUTOMATEN  ·  Design-System
   Editorial / wertig / ruhig — Rot-Weiss + Anthrazit
   -----------------------------------------------------
   Typografie — durchgehend moderne Grotesk:
     · Display / Ueberschriften  -> --font-display (kraeftig, enge Laufweite)
     · Flie&szlig;text / UI        -> --font-sans
   Beide nutzen denselben Inter-/System-Stack; der Display-Charakter
   entsteht ueber Gewicht und Letter-Spacing, nicht ueber eine zweite
   Schriftfamilie. Bewusst KEINE externen Font-Requests (DSGVO, Performance).
   Inter optional selbst hosten: woff2 nach /fonts, @font-face unten aktivieren.
===================================================== */

/*
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('fonts/Inter-Variable.woff2') format('woff2-variations'),
         url('fonts/Inter-Variable.woff2') format('woff2');
}
*/

:root {
    --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI Variable Text',
                    'Segoe UI', 'Helvetica Neue', Arial, 'Liberation Sans', sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, 'Segoe UI Variable Display',
                    'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}


/* =====================================================
   DESIGN TOKENS
===================================================== */

:root {
    /* Brand — Rot bleibt Leitfarbe, durchgehend FLACH eingesetzt */
    --brand:        #c31924;
    --brand-dark:   #9e1219;
    --brand-deep:   #7a0d12;
    --brand-soft:   rgba(195, 25, 36, 0.06);
    --brand-soft-2: rgba(195, 25, 36, 0.12);
    --brand-grad:   linear-gradient(135deg, #d62330 0%, #a8121c 60%, #7a0d12 100%);

    /* Tinte / Anthrazit */
    --ink:          #161412;   /* fast schwarz, minimal warm */
    --ink-2:        #2a2724;
    --body:         #4a463f;
    --muted:        #6f6a62;
    --soft:         #9b958c;

    /* Linien / Flaechen — warmes, papierhaftes Weiss */
    --line:         #e7e3dc;
    --line-2:       #dcd7ce;
    --bg:           #ffffff;
    --bg-soft:      #f7f5f1;   /* warmes Off-White fuer ruhige Flaechen */
    --bg-soft-2:    #efece5;
    --bg-deep:      #161412;   /* dunkle Sektionen / Panels */
    --bg-deep-2:    #211e1a;

    /* Radien — zurueckhaltend, kein verspieltes Rund */
    --radius-sm:    3px;
    --radius:       4px;
    --radius-lg:    6px;
    --radius-xl:    20px;

    /* Schatten — sehr dezent, fast nur Haarlinie + Hauch Tiefe */
    --shadow-xs:    0 1px 2px rgba(22, 20, 18, 0.04);
    --shadow-sm:    0 6px 18px rgba(22, 20, 18, 0.05);
    --shadow:       0 14px 40px rgba(22, 20, 18, 0.08);

    /* Motion — sachlich, nie verspielt */
    --ease:         cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast:       140ms var(--ease);
    --t:            240ms var(--ease);
    --t-slow:       460ms var(--ease);

    /* Editorial-Raster */
    --measure:      66ch;   /* optimale Lesebreite */
    --gutter:       40px;
    --maxw:         1180px;
}


/* =====================================================
   RESET & BASE
===================================================== */

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

html {
    overflow-y: scroll;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    font-family: var(--font-sans);
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--t-fast);
}

a:hover { color: var(--brand); }

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

::selection { background: var(--brand); color: #fff; }

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

/* Serife Display-Klasse fuer Auszeichnungen */
.serif { font-family: var(--font-display); }


/* =====================================================
   HEADER — ruhig, sticky, mit schmaler roter Kante
===================================================== */

.header {
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(150%) blur(12px);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--t), background var(--t);
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 12px 28px rgba(22, 20, 18, 0.06);
}

/* schmale, FLACHE Markenkante (kein Verlauf) */
.header::before {
    content: '';
    display: block;
    height: 3px;
    width: 100%;
    background: var(--brand);
    flex-shrink: 0;
}

.header-inner {
    width: 100%;
    height: 78px;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--gutter);
    gap: 24px;
}

.logowrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.logowrap img {
    max-height: 46px;
    width: auto;
    display: block;
    transition: opacity var(--t);
}

.logowrap a:hover img { opacity: 0.78; }

.navigationwrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.navigation a {
    color: var(--ink-2);
    padding: 10px 14px;
    position: relative;
    white-space: nowrap;
    transition: color var(--t-fast);
}

/* Unterstreichung waechst aus der Mitte — dezente Mikrointeraktion */
.navigation a::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 6px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t);
}

.navigation a:hover { color: var(--brand); }
.navigation a:hover::after { transform: scaleX(1); }

.navigation_active { color: var(--brand) !important; }
.navigation_active::after { transform: scaleX(1) !important; }


/* =====================================================
   SUBNAV BAR
===================================================== */

.subnav-bar {
    width: 100%;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: center;
}

.subnavigation {
    width: 100%;
    max-width: var(--maxw);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 var(--gutter);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.subnavigation a {
    color: var(--muted);
    padding: 6px 0;
    margin-right: 18px;
    border-bottom: 1.5px solid transparent;
    transition: color var(--t-fast), border-color var(--t-fast);
    white-space: nowrap;
}

.subnavigation a:hover,
.subnavigation a.navigation_active {
    color: var(--brand);
    border-color: var(--brand);
}


/* =====================================================
   HERO — gro&szlig;e echte Fotos als Gestaltungsmittel
===================================================== */

.hero {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #100e0c;
}

.hero.hero-compact { height: clamp(220px, 36vh, 320px); }

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 0;
    transform: scale(1.0);
    transition: opacity 1.6s var(--ease), transform 1.6s var(--ease);
    will-change: opacity, transform;
}

.hero-slide.hold { opacity: 1; z-index: 1; transition: none; }

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    animation: heroZoom 11s var(--ease) forwards;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1.0); }
}

.hero-slide[data-href] { cursor: pointer; }

/* Ruhiger, gerichteter Schatten von unten — keine wahllose Verlaufsspielerei */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(16, 14, 12, 0.92) 0%,
        rgba(16, 14, 12, 0.55) 38%,
        rgba(16, 14, 12, 0.18) 65%,
        rgba(16, 14, 12, 0.32) 100%);
    pointer-events: none;
}

/* Zweiter Scrim — volle Breite, kein max-width */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.44) 0%, transparent 52%);
    pointer-events: none;
    z-index: 1;
}

/* Inhalt links-unten verankert -> redaktionell, nicht zentriert-symmetrisch */
.hero-content {
    position: absolute;
    inset: 0;
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 0 var(--gutter) clamp(44px, 7vh, 84px);
    color: #fff;
    pointer-events: none;
    z-index: 2;
}

.hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.55rem, 6.4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 17ch;
    text-wrap: balance;
    text-shadow:
        0 1px 1px rgba(0, 0, 0, 0.60),
        0 2px 8px rgba(0, 0, 0, 0.65),
        0 8px 24px rgba(0, 0, 0, 0.60),
        0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero-compact .hero-content h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }

.hero-content p {
    font-family: var(--font-sans);
    font-size: clamp(1.04rem, 1.8vw, 1.22rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 48ch;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-wrap: balance;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.85),
        0 2px 6px rgba(0, 0, 0, 0.80),
        0 6px 18px rgba(0, 0, 0, 0.70),
        0 14px 40px rgba(0, 0, 0, 0.55);
}


/* =====================================================
   LIGHTBOX
===================================================== */

#lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(16, 14, 12, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#lb.on { display: flex; animation: lbFadeIn 0.25s var(--ease); }

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lb-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 95vw;
    max-height: 95vh;
}

#lb-c img {
    display: block;
    max-width: 90vw;
    max-height: 86vh;
    border-radius: var(--radius);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

#lb-c iframe { display: block; border: none; border-radius: var(--radius); max-width: 90vw; }

#lb-x {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    z-index: 10001;
}

#lb-x svg { width: 18px; height: 18px; }
#lb-x:hover { background: rgba(255, 255, 255, 0.2); }

#lb-p, #lb-n {
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: background var(--t-fast);
    z-index: 10001;
}

#lb-p svg, #lb-n svg { width: 22px; height: 22px; }
#lb-p { left: 24px; }
#lb-n { right: 24px; }
#lb-p:hover, #lb-n:hover { background: rgba(255, 255, 255, 0.2); }


/* =====================================================
   LAYOUT WRAPPER
===================================================== */

.wrap {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px var(--gutter) 24px;
}

.clear { clear: both; }

.spacer { width: 64px; height: 1px; float: left; }


/* =====================================================
   EDITORIAL TWO-COLUMN  (maincontent + smallteaser)
===================================================== */

.maincontent {
    width: 660px;
    float: left;
    font-size: 16px;
}

.maincontent.solo {
    width: 100% !important;
    max-width: 760px;
    float: none !important;
    margin: 0 auto !important;
}

/* H1 — gro&szlig;e serife Headline mit Haarlinie, kein Verlaufs-Accent */
.maincontent h1 {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.4vw, 50px);
    font-weight: 800;
    color: var(--ink);
    line-height: 1.06;
    letter-spacing: -0.032em;
    margin: 0 0 30px;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--line);
    position: relative;
}

/* kurze rote Markenlinie sitzt auf der Haarlinie */
.maincontent h1::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 56px;
    height: 3px;
    background: var(--brand);
}

/* H2 — klare serife Zwischenueberschrift (KEINE Mini-Uppercase-Eyebrow) */
.maincontent h2 {
    font-family: var(--font-display);
    font-size: 25px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.022em;
    margin: 40px 0 14px;
}

.maincontent h3 {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink-2);
    margin: 26px 0 8px;
    letter-spacing: -0.005em;
}

.maincontent p {
    font-size: 16px;
    line-height: 1.78;
    color: var(--body);
    margin: 0 0 18px;
    max-width: var(--measure);
}

.maincontent ul,
.maincontent ol { max-width: var(--measure); }

.maincontent li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--body);
    margin: 0 0 7px 20px;
}

.maincontent strong { font-weight: 700; color: var(--ink-2); }

/* Inline-Textlinks: ruhige, wachsende Unterstreichung */
.maincontent a:not(.arrow):not(.btn_grey):not(.btn_primary):not(.link-list-item) {
    color: var(--brand);
    font-weight: 500;
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: color var(--t-fast), opacity var(--t-fast);
}

.maincontent a:not(.arrow):not(.btn_grey):not(.btn_primary):not(.link-list-item):hover {
    color: var(--brand-dark);
    opacity: 0.85;
}


/* =====================================================
   SMALLTEASER  —  redaktionelle Seitenspalte
===================================================== */

.smallteaser {
    width: 300px;
    float: left;
    padding-top: 6px;
}

/* Spaltentitel als ruhiges Label (Seitenspalte, KEIN Kicker ueber Haupttitel) */
.smallteaser h2 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 12px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
}

.smallteaser h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink-2);
    margin: 16px 0 4px;
    line-height: 1.3;
}

.smallteaser p {
    font-size: 15px;
    line-height: 1.72;
    color: var(--body);
    margin: 0 0 18px;
}

.smallteaser .mailto { font-size: 15px; color: var(--body); }
.smallteaser .mailto a:hover { color: var(--brand); }


/* =====================================================
   ARROW LINKS  (»weiter«)
===================================================== */

.arrow,
.iframepop {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--brand);
    background: none;
    white-space: nowrap;
    transition: gap var(--t-fast), color var(--t-fast);
}

.arrow::after {
    content: '\2192';
    font-size: 15px;
    font-weight: 400;
    transition: transform var(--t-fast);
}

.arrow:hover,
.iframepop:hover { color: var(--brand-dark); gap: 11px; }
.arrow:hover::after { transform: translateX(3px); }


/* =====================================================
   CONTENT IMAGES
===================================================== */

.squareimg, .rectimg, .img220 {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

.squareimg { margin: 0 16px 14px 0; }
.rectimg   { margin: 0 0 14px; width: 320px; }
.img220    { margin: 0 24px 14px 0; }


/* =====================================================
   INFOBOX  —  ruhige Karte (Anschrift / Hinweis)
===================================================== */

.infobox {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 22px 24px;
    font-size: 15px;
    color: var(--ink-2);
    margin-top: 24px;
    transition: border-color var(--t);
}

a:hover .infobox { border-color: var(--line-2); }
a:hover .infobox { border-left-color: var(--brand-dark); }


/* =====================================================
   GALLERY GRID  —  echte Standort-Fotos
===================================================== */

.gallery img, .galleryimg {
    border-radius: var(--radius);
    transition: opacity var(--t-fast), transform var(--t);
    cursor: pointer;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 8px 0;
}

.gallery-grid a {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    background: var(--bg-soft);
}

.gallery-grid a::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(22, 20, 18, 0.06);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.gallery-grid a:hover::after { opacity: 1; }

.gallery-grid .galleryimg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
    transition: transform 0.6s var(--ease);
    display: block;
}

.gallery-grid a:hover .galleryimg { transform: scale(1.05); }


/* =====================================================
   BUTTONS  —  flach, selbstbewusst, kein Shimmer
===================================================== */

.btn_grey,
.btn_primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.btn_grey {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-2);
}

.btn_grey:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn_primary {
    background: var(--brand);
    color: #fff !important;
    border: 1px solid var(--brand);
}

.btn_primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff !important;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {
    clear: both;
    margin: 96px calc(50% - 50vw) 0;
    padding: 0 calc(50vw - 50%);
    background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
    border-top: 1px solid var(--line);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-grad);
    opacity: 0.85;
}

.footer-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 88px var(--gutter) 48px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 56px;
}

.footer-col h4 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col h4::before {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--brand);
    border-radius: 2px;
    flex-shrink: 0;
}

.footer-col p,
.footer-col li,
.footer-col a {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-col a {
    transition: color var(--t-fast);
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-brand-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-brand-block .footer-logo {
    display: inline-block;
    align-self: flex-start;
    transition: transform var(--t-fast), opacity var(--t-fast);
}

.footer-brand-block .footer-logo img {
    display: block;
    max-height: 52px;
    width: auto;
}

.footer-brand-block .footer-logo:hover {
    transform: translateY(-1px);
    opacity: 0.88;
}

.footer-brand-block .footer-claim {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.7;
    max-width: 280px;
}

.footer-bottom {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px var(--gutter) 36px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--soft);
    gap: 16px;
    flex-wrap: wrap;
}

.footer-brand {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
}

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

.footer-links a,
.footer a {
    color: var(--muted);
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color var(--t-fast);
}

.footer-links a:hover,
.footer a:hover {
    color: var(--brand);
}

.footer-credit {
    opacity: 0.85;
    transition: opacity var(--t-fast), color var(--t-fast);
}

.footer-credit:hover {
    opacity: 1;
}


/* =====================================================
   SKIP LINK
===================================================== */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 13px;
    z-index: 9999;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }


/* =====================================================
   JOB CARDS / LIST  —  redaktionelle Zeilen statt Kacheln
===================================================== */

.jobs-grid {
    display: flex;
    flex-direction: column;
    margin: 16px 0 32px;
    border-top: 1px solid var(--line);
}

.jobs-grid > a { color: inherit; }

.job-card {
    background: transparent;
    border-bottom: 1px solid var(--line);
    padding: 26px 8px 24px;
    display: flex;
    flex-direction: column;
    transition: padding-left var(--t), background var(--t);
}

a:hover .job-card,
.job-card:hover {
    background: var(--bg-soft);
    padding-left: 18px;
}

.job-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.job-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 3px 0;
    margin-right: 14px;
    position: relative;
}
.job-tag:not(:last-child)::after {
    content: '·';
    position: absolute;
    right: -10px;
    color: var(--soft);
}

.job-card-title {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.022em;
    margin-bottom: 8px;
    line-height: 1.25;
}

.job-card-short {
    font-size: 15px;
    color: var(--body);
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 60ch;
}

.job-card-cta { padding-top: 2px; }

.jobs-empty {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius);
    padding: 32px 28px;
    color: var(--body);
    font-size: 16px;
}
.jobs-empty strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 18px; }


/* =====================================================
   HOTLINE-ZEILE (Spielerschutz)  —  ohne Deko-Icon
===================================================== */

.hotline-card {
    background: var(--bg-deep);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 30px 34px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    margin: 18px 0;
    transition: background var(--t);
}
.hotline-card:hover { background: var(--bg-deep-2); }

.hotline-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}
.hotline-card-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}
.hotline-card-sub { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.hotline-card-number {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    transition: color var(--t-fast);
}
.hotline-card:hover .hotline-card-number { color: #fff; }

@media (max-width: 640px) {
    .hotline-card { grid-template-columns: 1fr; gap: 16px; padding: 24px 22px; }
    .hotline-card-number { font-size: 25px; }
}


/* =====================================================
   STANDORTFILTER (Spielst&auml;tten-Seite)
===================================================== */

.location-filter {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto 32px;
    max-width: 100%;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.location-filter-input {
    flex: 1;
    min-width: 240px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 13px 16px 13px 44px;
    font-size: 15px;
    background-color: var(--bg);
    color: var(--ink-2);
    font-family: var(--font-sans);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='11' cy='11' r='7'/%3e%3cline x1='21' y1='21' x2='16.65' y2='16.65'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: 16px center;
    background-size: 17px;
}
.location-filter-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft-2);
}
.location-filter-count {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.02em;
}
.location-card.is-hidden { display: none !important; }


/* =====================================================
   COOKIE BANNER (DSGVO Maps)
===================================================== */

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 950;
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    padding: 20px 24px;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity var(--t-slow), transform var(--t-slow);
    pointer-events: none;
    max-width: 900px;
    margin: 0 auto;
    border-top: 3px solid var(--brand);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner-inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.cookie-banner-text { flex: 1; min-width: 240px; font-size: 14px; line-height: 1.6; }
.cookie-banner-text strong { display: block; color: #fff; margin-bottom: 4px; font-size: 15px; }
.cookie-banner-text a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-btn {
    border: 1px solid transparent;
    cursor: pointer;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-family: var(--font-sans);
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.cookie-banner-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.28);
}
.cookie-banner-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cookie-banner-btn-primary { background: var(--brand); color: #fff; }
.cookie-banner-btn-primary:hover { background: var(--brand-dark); }


/* =====================================================
   MAP CONSENT PLACEHOLDER
===================================================== */

.map-consent {
    background: var(--bg-deep);
    color: #fff;
    padding: 48px 28px;
    text-align: center;
    border-radius: var(--radius-lg);
}
.map-consent h4 { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.map-consent p { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; }
.map-consent button {
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 12px 26px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sans);
}
.map-consent button:hover { background: var(--brand-dark); }


/* =====================================================
   GREYSTRIPE  —  legacy, unsichtbar
===================================================== */

img.greystripe {
    display: block;
    width: 100% !important;
    height: 1px !important;
    opacity: 0;
    pointer-events: none;
    margin: 0;
}
.greystripe { display: none; }


/* =====================================================
   HOMEPAGE  —  SEKTIONEN (editorial, asymmetrisch)
===================================================== */

.section { padding: 96px 0 0; }
.section--first { padding-top: 64px; }
.section-pad-bottom { padding-bottom: 96px; }

.section-grey {
    background: var(--bg-soft);
    margin: 0 calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* Sektionskopf links ausgerichtet, redaktionell — KEINE Eyebrow, keine Zentrierung */
.section-head {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 18px;
    max-width: 20ch;
}

.section-head p {
    font-size: 17px;
    color: var(--body);
    max-width: var(--measure);
    margin: 0;
    line-height: 1.72;
}


/* Editorial "Was wir tun" — Textspalten mit Ziffer, OHNE Icons/Kacheln */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
}

.pillar {
    display: block;
    color: inherit;
    padding: 30px 28px 34px 0;
    border-bottom: 3px solid transparent;
    position: relative;
    transition: border-color var(--t);
}
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }

.pillar-num {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--brand);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 16px;
}

.pillar h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.022em;
    margin: 0 0 10px;
    transition: color var(--t-fast);
}

.pillar p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--body);
    margin: 0 0 18px;
}

.pillar:hover { border-bottom-color: var(--brand); }
.pillar:hover h3 { color: var(--brand); }


/* Legacy: falls noch .feature-grid/.feature-card im Markup steht -> ruhige Liste */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
}
.feature-card {
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 30px 28px 34px 0;
    height: 100%;
    transition: border-color var(--t);
}
.feature-card-icon { display: none; }
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.022em;
}
.feature-card p { font-size: 15px; line-height: 1.7; color: var(--body); margin: 0 0 18px; }
.feature-card:hover { border-bottom-color: var(--brand); }


/* Standort-Schaufenster — echte Fotos, asymmetrisches Raster */
.loc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* erstes Foto gross (redaktioneller Bruch) */
.loc-grid .loc-tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.loc-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius);
    display: block;
    background: var(--bg-deep);
}
.loc-tile:first-child { aspect-ratio: auto; }

.loc-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.loc-tile:hover img { transform: scale(1.05); }

.loc-tile-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,14,12,0.78) 0%, rgba(16,14,12,0.10) 55%, rgba(16,14,12,0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 18px 20px;
    color: #fff;
    pointer-events: none;
}

.loc-tile-name {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-shadow: 0 1px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}
.loc-tile-name::after {
    content: '\2192';
    font-family: var(--font-sans);
    font-size: 16px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--t), transform var(--t);
}
.loc-tile:hover .loc-tile-name::after { opacity: 1; transform: translateX(0); }

/* "Alle Standorte"-Kachel: ruhiges Anthrazit, Foto gedaempft, Rot beim Hover */
.loc-tile-all { background: var(--bg-deep); }
.loc-tile-all img { opacity: 0.34; transition: opacity var(--t), transform 0.7s var(--ease); }
.loc-tile-all:hover img { opacity: 0.42; }
.loc-tile-all .loc-tile-overlay {
    background: none;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
}
.loc-tile-all:hover .loc-tile-overlay { background: rgba(195, 25, 36, 0.30); }
.loc-tile-all .loc-tile-name::after { opacity: 1; transform: translateX(0); }


/* CTA banner */
.cta-banner {
    background: var(--brand-grad);
    border-radius: var(--radius-xl);
    padding: 60px 44px;
    color: #fff;
    text-align: center;
    margin: 24px 0 0;
    box-shadow: 0 24px 60px rgba(195, 25, 36, 0.22);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.18) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0,0,0,0.18) 0%, transparent 50%);
    pointer-events: none;
}

.cta-banner h3 {
    font-family: var(--font-display);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin: 0 0 12px;
    letter-spacing: -0.025em;
    color: #fff;
    position: relative;
    z-index: 1;
}
.cta-banner p,
.cta-banner li,
.cta-banner strong,
.maincontent .cta-banner p,
.maincontent .cta-banner li,
.maincontent .cta-banner strong {
    font-size: 16px;
    opacity: 0.95;
    max-width: 580px;
    margin: 0 auto 28px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: #fff;
}
.cta-banner .btn_primary {
    background: #fff;
    color: var(--brand) !important;
    border-color: #fff;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 1;
}
.cta-banner .btn_primary:hover {
    background: #f7f7f8;
    color: var(--brand-dark) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}


/* =====================================================
   ZENTRALE  ·  full-bleed Foto/Text-Block
===================================================== */

.cz {
    width: 100%;
    padding: 0 0 100px;
}

.cz-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1280 / 546;
    max-height: 100vh;
    overflow: hidden;
}

.cz-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cz-media-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--bg));
    pointer-events: none;
}

.cz-body {
    width: 100%;
    max-width: var(--maxw);
    margin: -64px auto 0;
    padding: 0 var(--gutter);
    position: relative;
    z-index: 1;
}

.cz-text { max-width: 760px; }

.cz-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.cz-text h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.2vw, 48px);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.028em;
    line-height: 1.12;
    margin: 0 0 20px;
}

.cz-text p {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 14px;
    max-width: 60ch;
}
.cz-text p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
    .cz { padding: 0 0 64px; }
    .cz-media { aspect-ratio: 4 / 3; max-height: 60vh; }
    .cz-body { margin-top: -36px; padding: 0 24px; }
}

/* Der zweite <main class="wrap"> nach der full-bleed Zentrale-Sektion
   braucht keinen erneuten Top-Abstand (der ist bereits durch .cz-Padding
   und das nachfolgende .section-Padding gegeben). */
.cz + main.wrap { padding-top: 0; }

/* Der erste <main class="wrap">, der direkt vor der Zentrale-Sektion
   schliesst, braucht keinen zusaetzlichen Bottom-Abstand. */
main.wrap:has(+ .cz) { padding-bottom: 0; }


/* =====================================================
   SEITEN-KOMPONENTEN  (zentral, nicht je Seite dupliziert)
===================================================== */

/* --- Link-Liste (Spielerschutz, Links) --- */
.link-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 24px;
}
.link-list-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform var(--t), border-color var(--t), box-shadow var(--t);
    text-decoration: none !important;
    background-image: none !important;
}
.link-list-item:hover {
    transform: translateX(3px);
    border-color: var(--brand);
    box-shadow: var(--shadow-sm);
}
.link-list-item-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink) !important;
    margin-bottom: 2px;
    line-height: 1.3;
}
.link-list-item-url { font-size: 13px; color: var(--muted); }
.link-list-item-icon {
    margin-left: auto;
    font-size: 20px;
    color: var(--brand);
    transition: transform var(--t);
    flex-shrink: 0;
}
.link-list-item:hover .link-list-item-icon { transform: translateX(4px); }

/* --- Kriterien-Liste (Expansion / Standortsuche / -kriterien) --- */
.criteria-list {
    list-style: none;
    margin: 18px 0 26px;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    max-width: none !important;
}
.criteria-list li {
    border-bottom: 1px solid var(--line);
    padding: 15px 0 15px 30px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.6;
    margin: 0 !important;
    position: relative;
}
.criteria-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 23px;
    width: 14px;
    height: 2px;
    background: var(--brand);
}
.criteria-list li strong { color: var(--ink); font-weight: 700; }

/* --- Chronik / Timeline (Historie) --- */
.timeline { list-style: none; padding: 0; margin: 26px 0 32px; position: relative; }
.timeline::before {
    content: '';
    position: absolute;
    left: 78px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--line-2);
}
.timeline li {
    position: relative;
    padding: 12px 0 16px 110px;
    font-size: 16px;
    color: var(--body);
    line-height: 1.7;
    border-bottom: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 0; }
.timeline li strong {
    position: absolute;
    left: 0;
    top: 12px;
    width: 70px;
    color: var(--brand);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.01em;
}
.timeline li::before {
    content: '';
    position: absolute;
    left: 73px;
    top: 19px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--brand);
}
@media (max-width: 640px) {
    .timeline::before { left: 4px; }
    .timeline li { padding-left: 28px; padding-top: 4px; }
    .timeline li strong { position: static; display: block; margin-bottom: 4px; }
    .timeline li::before { left: -1px; top: 8px; }
}

/* --- Ansprechpartner-Raster (Kontakt) --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 10px;
    border-top: 1px solid var(--line);
}
.contact-card {
    border-bottom: 1px solid var(--line);
    padding: 20px 4px 20px 0;
    transition: padding-left var(--t), background var(--t);
}
.contact-card:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 24px; }
.contact-card:nth-child(even) { padding-left: 24px; }
.contact-card:hover { background: var(--bg-soft); }
.contact-card-role {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}
.contact-card-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.005em;
}
@media (max-width: 640px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-card,
    .contact-card:nth-child(odd) { border-right: 0; padding-left: 0; padding-right: 0; }
}

/* --- Standort-Karten + Karten-Block (Spielst&auml;tten) --- */
.location-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-bottom: 56px;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.location-card {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    padding: 24px 24px 20px;
    display: flex;
    flex-direction: column;
    transition: background var(--t);
}
.location-card:hover { background: var(--bg-soft); }
.location-card-city {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}
.location-card-addr { font-size: 14.5px; color: var(--body); line-height: 1.55; margin-bottom: 14px; }
.location-card-hours {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 0 0 14px;
    border-left: 2px solid var(--line-2);
    margin-bottom: 18px;
    flex-grow: 1;
}
.location-card-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.map-card {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 40px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: var(--radius-lg);
    padding: 40px;
}
.map-card img { width: 100%; border-radius: var(--radius); }
@media (max-width: 980px) {
    .location-cards { grid-template-columns: repeat(2, 1fr); }
    .map-card { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
@media (max-width: 640px) {
    .location-cards { grid-template-columns: 1fr; }
}


/* =====================================================
   NAV TOGGLE — Desktop versteckt
===================================================== */

.nav-toggle { display: none; }


/* =====================================================
   RESPONSIVE  —  ≤ 980 px  (Fluid + Hamburger)
===================================================== */

@media (max-width: 980px) {

    .wrap { padding: 48px 24px 16px; }

    .header-inner { padding: 0 20px; height: 70px; }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        background: transparent;
        border: 1px solid var(--line-2);
        border-radius: var(--radius);
        cursor: pointer;
        color: var(--ink-2);
        transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
        padding: 0;
    }
    .nav-toggle svg { width: 22px; height: 22px; display: block; }
    .nav-toggle:hover { border-color: var(--brand); color: var(--brand); }
    .nav-toggle svg line {
        transition: transform 0.28s var(--ease), opacity var(--t-fast);
        transform-box: fill-box;
        transform-origin: 50% 50%;
    }
    .header.nav-open .nav-toggle { background: var(--brand); color: #fff; border-color: var(--brand); }
    .header.nav-open .nav-toggle .nt-l2 { opacity: 0; }
    .header.nav-open .nav-toggle .nt-l1 { transform: translateY(6px) rotate(45deg); }
    .header.nav-open .nav-toggle .nt-l3 { transform: translateY(-6px) rotate(-45deg); }

    .navigationwrap { display: none; }

    .header.nav-open .navigationwrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: auto;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 14px 18px 20px;
        z-index: 850;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
        gap: 0;
        animation: navSlide 0.28s var(--ease);
    }
    @keyframes navSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .header.nav-open .navigation {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        font-size: 13px;
        letter-spacing: 0.08em;
    }
    .header.nav-open .navigation a {
        padding: 15px 4px;
        color: var(--ink-2);
        border-bottom: 1px solid var(--line);
    }
    .header.nav-open .navigation a::after { display: none; }
    .header.nav-open .navigation a:last-child { border-bottom: 0; }

    .header-inner { position: relative; }

    .maincontent { width: 62% !important; }
    .wrap > .spacer { width: 3% !important; min-width: 8px; }
    .wrap > .smallteaser { width: 32% !important; }
    .maincontent > .smallteaser { width: 47% !important; }
    .maincontent > .spacer { width: 4% !important; }

    .hero { height: 500px; }

    .subnav-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; justify-content: flex-start; }
    .subnavigation { padding: 0 20px; }

    .section { padding-top: 72px; }
    .section-pad-bottom { padding-bottom: 72px; }
    .section-head { margin-bottom: 36px; }

    .pillars, .feature-grid { grid-template-columns: 1fr; border-top: 1px solid var(--ink); }
    .pillar + .pillar { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
    .feature-card { border-bottom: 1px solid var(--line); }

    .loc-grid { grid-template-columns: repeat(2, 1fr); }
    .loc-grid .loc-tile:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }

    .gallery-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 64px 28px 40px; }
    .footer-bottom { padding: 24px 28px 32px; }
    .footer { margin-top: 80px; }
}


/* =====================================================
   RESPONSIVE  —  ≤ 640 px
===================================================== */

@media (max-width: 640px) {

    body { font-size: 15.5px; }

    .header-inner { padding: 0 16px; height: 64px; }
    .logowrap img { max-height: 38px; }
    .nav-toggle { width: 42px; height: 42px; }

    .hero { height: 460px; }
    .hero-content { padding: 0 18px clamp(32px, 8vh, 56px); }

    .wrap { padding: 32px 18px 12px; max-width: 100%; }

    .maincontent,
    .maincontent > .smallteaser,
    .wrap > .smallteaser,
    .smallteaser {
        width: 100% !important;
        float: none !important;
        margin-bottom: 36px;
    }

    .spacer,
    .wrap > .spacer,
    .maincontent > .spacer { display: none !important; }

    .maincontent p, .maincontent li { font-size: 16px; }

    .subnavigation { padding: 0 18px; height: 44px; }

    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }

    .img220, .rectimg {
        float: none !important;
        width: 100% !important;
        max-width: 100%;
        margin: 0 0 18px 0;
    }

    #lb-p { left: 8px; }
    #lb-n { right: 8px; }
    #lb-x { right: 12px; top: 12px; }
    #lb-c img { max-width: 95vw; max-height: 75vh; }
    #lb-c iframe { width: 95vw !important; height: 58vh; }

    .section { padding-top: 56px; }
    .section-pad-bottom { padding-bottom: 56px; }
    .section-head { margin-bottom: 30px; }

    .loc-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .loc-grid .loc-tile:first-child { aspect-ratio: 4 / 3; }
    .loc-tile-name { font-size: 15px; }

    .cta-banner { padding: 36px 26px; }

    .footer { margin-top: 64px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; padding: 52px 20px 32px; }
    .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; padding: 24px 20px 32px; }
    .footer-links { gap: 16px 24px; }
}


/* =====================================================
   TOUCH-/TAP-FEEDBACK
===================================================== */

.btn_primary:active,
.btn_grey:active { transform: translateY(1px); transition-duration: 60ms; }

@media (hover: none) {
    a:active .job-card,
    .job-card:active,
    .loc-tile:active,
    .pillar:active { opacity: 0.92; transition: opacity 80ms var(--ease); }
}
