/* =========================================================
   Seniorenwohnhaus Bramberg — Sitewide Stylesheet
   Design C · Chalet-Modern in Tannengrün
   ========================================================= */

:root {
    --bg:         #eeeee6;
    --paper:      #f5f5ee;
    --paper-soft: #dcdcd0;
    --ink:        #1a2620;
    --sub:        #6e7a72;
    --wood:       #3B5847;      /* Primär: Tannengrün */
    --wood-soft:  #6b8a74;
    --cream:      #f5f5ee;
    --dark:       #1a2620;
    --line:       rgba(26, 38, 32, 0.14);
    --line-strong:rgba(26, 38, 32, 0.22);

    /* Legacy-Aliase für ältere Komponenten */
    --green-50:   #f0f3ee;
    --green-600:  #3B5847;
    --green-800:  #1a2620;
    --text-mid:   #2e3830;
    --text-light: #6e7a72;

    --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
    --sans:  'Work Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --mono:  'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --font-head: var(--serif);

    --shadow-sm: 0 2px 8px rgba(26, 38, 32, 0.06);
    --shadow-md: 0 10px 30px rgba(26, 38, 32, 0.08);
    --shadow-lg: 0 25px 60px rgba(26, 38, 32, 0.12);
    --radius:    4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--wood); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
main { display: block; }

/* ------ Container & Sections --------------------------------- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-alt { background: var(--paper); }
.section-dark { background: var(--dark); color: var(--cream); }

/* ------ Typography ------------------------------------------ */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--ink); margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(56px, 7vw, 120px); line-height: 0.92; }
h2 { font-size: clamp(44px, 5.5vw, 88px); line-height: 0.98; }
h3 { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.3; }
em, .italic { font-style: italic; }
h1 em, h2 em, h3 em { color: var(--wood); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark h1 em, .section-dark h2 em { color: var(--wood-soft); }
p { margin: 0 0 1em; }
.lead { font-family: var(--serif); font-size: clamp(20px, 2vw, 28px); line-height: 1.4; font-style: italic; color: var(--ink); }

.eyebrow {
    font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--wood); margin-bottom: 24px; display: block;
}
.section-dark .eyebrow { color: var(--wood-soft); }

/* ------ Buttons --------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .04em;
    padding: 17px 30px; border-radius: 999px;
    text-decoration: none; border: 1px solid transparent;
    cursor: pointer; transition: all .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--wood); color: var(--cream); }
.btn-primary:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-outline, .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover, .btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-white, .btn-light { background: var(--cream); color: var(--ink); }
.btn-white:hover, .btn-light:hover { background: #fff; transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(245,245,238,.35); }
.btn-outline-light:hover { background: rgba(245,245,238,.1); border-color: rgba(245,245,238,.6); }
.btn-sm { padding: 11px 20px; font-size: 13px; }

/* ------ Header / Nav --------------------------------------- */
.site-header {
    background: var(--bg); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(8px);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 48px; max-width: 1400px; margin: 0 auto; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo img { height: 52px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-main { font-family: var(--serif); font-size: 20px; font-style: italic; color: var(--ink); }
.logo-sub  { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sub); margin-top: 4px; }

.main-nav ul {
    display: flex; align-items: center; gap: 4px;
    background: rgba(26,38,32,0.05); border: 1px solid var(--line);
    padding: 4px; border-radius: 999px;
    list-style: none; margin: 0;
}
.main-nav a {
    font-size: 13.5px; color: var(--ink); padding: 10px 18px;
    border-radius: 999px; text-decoration: none; transition: background .2s;
    display: inline-block;
}
.main-nav a.active,
.main-nav a:hover { background: rgba(59, 88, 71, 0.14); color: var(--wood); }

.header-cta {
    font-family: var(--sans); font-size: 13px; font-weight: 500;
    color: var(--cream); background: var(--wood);
    padding: 12px 22px; border-radius: 999px; text-decoration: none;
    letter-spacing: .04em; transition: all .2s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
}
.header-cta:hover { background: var(--ink); color: var(--cream); transform: translateY(-1px); }
.header-cta-icon { width: 16px; height: 16px; display: none; }
.header-cta-text { display: inline; }

.nav-toggle {
    display: none; background: none; border: 0; padding: 10px;
    cursor: pointer; position: relative; z-index: 1100;
}
.nav-toggle span {
    display: block; width: 26px; height: 2px; background: var(--ink);
    margin: 6px 0; border-radius: 2px;
    transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-close {
    display: none; position: absolute; top: 14px; right: 18px;
    width: 40px; height: 40px; border: 0; background: transparent;
    font-size: 32px; line-height: 1; color: var(--ink);
    cursor: pointer; padding: 0;
}

.nav-overlay {
    position: fixed; inset: 0; background: rgba(26,38,32,.45);
    opacity: 0; transition: opacity .25s ease; z-index: 1000;
    backdrop-filter: blur(2px);
}
.nav-overlay.visible { opacity: 1; }
body.nav-open-lock { overflow: hidden; }

/* ------ Hero (Startseite) ----------------------------------- */
.home-hero {
    position: relative; background: var(--bg); color: var(--ink); overflow: hidden;
    display: grid; grid-template-columns: 1.15fr 1fr; min-height: 680px;
}
.home-hero-text { position: relative; overflow: hidden; background: var(--bg); }
.home-hero-text-inner {
    position: relative; padding: 80px 56px 72px;
    height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
    z-index: 1;
}
.home-hero-mountains { position: absolute; left: 0; right: 0; bottom: 0; height: 280px; opacity: .9; pointer-events: none; z-index: 0; }

/* Sekundär-Button im Hero: opak mit Paper-Hintergrund,
   damit er vor der Bergsilhouette klar lesbar bleibt */
.home-hero-text .btn-ghost {
    background: var(--paper);
    border-color: var(--ink);
    box-shadow: 0 2px 8px rgba(26, 38, 32, 0.08);
}
.home-hero-text .btn-ghost:hover {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
    box-shadow: 0 4px 16px rgba(26, 38, 32, 0.18);
}
.home-hero-kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; }
.home-hero-kicker::before { content: ''; width: 48px; height: 1px; background: var(--wood); }
.home-hero-kicker span { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--wood); }
.home-hero h1 { font-size: clamp(56px, 8vw, 120px); }
.home-hero-lead { font-size: 18px; line-height: 1.6; color: var(--ink); opacity: .82; max-width: 520px; margin: 0 0 28px; }
.home-hero-photo { position: relative; background: #000; overflow: hidden; min-height: 500px; }
.home-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.home-hero-photo-caption {
    position: absolute; left: 32px; bottom: 32px; right: 32px;
    display: flex; justify-content: space-between; align-items: end; color: var(--cream);
    gap: 16px; flex-wrap: wrap;
}
.home-hero-photo-caption .place {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase;
    background: rgba(26,38,32,0.55); padding: 8px 12px; backdrop-filter: blur(6px);
}
.home-hero-photo-caption .quote {
    font-family: var(--serif); font-size: 20px; font-style: italic;
    background: rgba(26,38,32,0.55); padding: 10px 16px; backdrop-filter: blur(6px);
}

/* ------ Ticker ------------------------------------------------ */
.ticker {
    background: var(--wood); color: var(--cream);
    font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    padding: 14px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track {
    display: inline-flex; gap: 48px; padding-left: 48px;
    animation: ticker-scroll 50s linear infinite;
    will-change: transform;
}
@keyframes ticker-scroll { to { transform: translateX(-50%); } }

/* ------ Page-Hero (Unterseiten) ------------------------------ */
.page-hero {
    padding: 80px 0 72px; background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.page-hero .breadcrumb { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--sub); margin-bottom: 20px; }
.page-hero .breadcrumb a { color: var(--sub); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--wood); }
.page-hero .breadcrumb-sep { margin: 0 10px; opacity: .5; }
.page-hero h1 { font-size: clamp(48px, 6vw, 80px); margin-bottom: 16px; }
.page-hero p { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); font-style: italic; color: var(--sub); max-width: 680px; margin: 0; }

/* ------ Section Header -------------------------------------- */
.section-header { max-width: 880px; margin-bottom: 64px; }
.section-header.split { max-width: none; display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: end; }
.section-header p { color: var(--sub); font-size: 17px; line-height: 1.65; max-width: 560px; }

/* ------ Home: 2-col Intro ------------------------------------ */
.home-intro-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: start; }
.home-intro-left { position: sticky; top: 100px; }
.home-intro-left h2 { font-size: clamp(44px, 5vw, 72px); line-height: 1; }
.home-intro-stats { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.home-intro-stat { padding-top: 16px; border-top: 1px solid var(--paper-soft); }
.home-intro-stat-label { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--sub); }
.home-intro-stat-value { font-family: var(--serif); font-size: 32px; font-style: italic; color: var(--ink); margin-top: 6px; }
.home-intro-quote { font-family: var(--serif); font-size: clamp(22px, 2vw, 30px); line-height: 1.4; color: var(--ink); font-style: italic; margin: 0; }
.home-intro-quote-src { font-size: 13px; color: var(--sub); margin-top: 20px; letter-spacing: .04em; }

/* ------ Features-Grid --------------------------------------- */
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin-top: 64px; }
.features-grid.four { grid-template-columns: repeat(4, 1fr); }
.feature-item h3 { margin-bottom: 10px; }
.feature-item p { color: var(--sub); font-size: 14.5px; line-height: 1.65; margin: 0; }
.feature-card {
    background: var(--paper); padding: 32px 28px; border: 1px solid var(--line);
    border-radius: var(--radius); transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--wood); transform: translateY(-2px); }
.feature-card .feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--sub); font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ------ Gallery / Magazine grid ----------------------------- */
.gallery-mag { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 140px; gap: 14px; }
.gallery-mag > * { overflow: hidden; position: relative; }
.gallery-mag img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.gallery-mag > *:hover img { transform: scale(1.04); }
.gallery-caption {
    background: var(--dark); color: var(--cream); padding: 22px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.gallery-caption .label { font-family: var(--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--wood-soft); }
.gallery-caption .text  { font-family: var(--serif); font-size: 18px; line-height: 1.3; font-style: italic; }

/* Klassisches Gallery-Grid */
.gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px; margin-top: 40px;
}
.gallery-item {
    position: relative; aspect-ratio: 4/3; overflow: hidden; cursor: pointer;
    background: var(--paper-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item-overlay {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(26, 38, 32, 0); color: var(--cream); font-size: 24px; transition: background .2s;
}
.gallery-item:hover .gallery-item-overlay { background: rgba(26, 38, 32, .4); }

.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.gallery-filters .btn { padding: 10px 18px; font-size: 13px; font-weight: 400; }

/* ------ Karriere (dunkle Sektion) --------------------------- */
.karriere-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; margin-bottom: 64px; }
.karriere-head h2 { font-size: clamp(56px, 8vw, 120px); line-height: .92; }
.karriere-lead { font-size: 17px; line-height: 1.7; opacity: .85; align-self: end; margin: 0; }
.karriere-note { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--wood-soft); margin-top: 20px; }
.jobs { border-top: 1px solid rgba(238, 238, 230, 0.14); }
.job {
    display: grid; grid-template-columns: 60px 1fr 1fr 160px 40px; gap: 24px;
    align-items: center; padding: 28px 0; border-bottom: 1px solid rgba(238, 238, 230, 0.14);
    cursor: pointer; transition: padding .2s, background .2s;
    text-decoration: none; color: inherit;
}
.job:hover { padding-left: 8px; background: rgba(245, 245, 238, .03); color: var(--cream); }
.job-num { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--wood-soft); }
.job-title { font-family: var(--serif); font-size: clamp(22px, 2vw, 32px); line-height: 1.1; }
.job-sub { font-size: 14.5px; opacity: .72; }
.job-when { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--wood-soft); }
.job-arrow { font-family: var(--serif); font-size: 28px; }

/* ------ Contact Block --------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.phone-card {
    background: var(--dark); color: var(--cream); padding: 36px; border-radius: var(--radius);
}
.phone-card-label { font-family: var(--mono); font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--wood-soft); margin-bottom: 12px; }
.phone-card-num { font-family: var(--serif); font-size: clamp(48px, 6vw, 72px); letter-spacing: -.02em; line-height: 1; color: var(--cream); text-decoration: none; display: block; }
.phone-card-note { font-size: 14px; opacity: .75; margin-top: 24px; line-height: 1.7; }

.contact-info { display: flex; flex-direction: column; gap: 0; }
.contact-item { padding: 28px 0; border-bottom: 1px solid var(--paper-soft); display: flex; gap: 16px; align-items: flex-start; }
.contact-item:last-child { border-bottom: none; }
.contact-item-icon { font-size: 20px; flex-shrink: 0; margin-top: 4px; color: var(--wood); }
.contact-item-text { flex: 1; }
.contact-item-text strong,
.contact-item-label {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .24em;
    text-transform: uppercase; color: var(--sub); margin-bottom: 8px; font-weight: 400;
}
.contact-item-text span,
.contact-item-text a,
.contact-item-value { font-family: var(--serif); font-size: 20px; color: var(--ink); text-decoration: none; line-height: 1.4; }
.contact-item-value-small { font-family: var(--serif); font-size: 22px; font-style: italic; }
.contact-item-sub { font-size: 15px; color: var(--sub); margin-top: 8px; line-height: 1.6; }
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ------ Forms ------------------------------------------------ */
.contact-form { background: var(--paper); padding: 44px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-form h3 { margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label {
    display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--sub); margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 14px 16px;
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); font-family: var(--sans); font-size: 15px; color: var(--ink);
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--wood); box-shadow: 0 0 0 3px rgba(59, 88, 71, .12);
}
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14.5px; }
.alert-success { background: rgba(59, 88, 71, .1); color: var(--wood); border: 1px solid rgba(59, 88, 71, .25); }
.alert-error   { background: rgba(178, 64, 64, .1); color: #a83434; border: 1px solid rgba(178, 64, 64, .25); }

/* ------ Team Cards ------------------------------------------ */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 32px; margin-top: 40px; }
.team-card { text-align: left; }
.team-photo { aspect-ratio: 3/4; overflow: hidden; background: var(--paper-soft); margin-bottom: 16px; border-radius: var(--radius); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-placeholder, .team-photo:empty::before {
    display: flex; align-items: center; justify-content: center; height: 100%; font-size: 64px; color: var(--sub); background: var(--paper);
    content: '👤';
}
.team-card h3 { font-size: 22px; margin-bottom: 4px; }
.team-card .position { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--wood); }
.team-card .department { font-size: 13px; color: var(--sub); margin-top: 6px; }

/* ------ Cards / Post-Cards --------------------------------- */
.admin-card, .info-card {
    background: var(--paper); padding: 36px 32px; border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 24px;
}
.admin-card h2 { font-size: 28px; margin-bottom: 16px; }
.admin-card h3 { font-size: 20px; margin: 20px 0 10px; color: var(--wood); }

.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; margin-top: 40px; }
.post-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card-img { aspect-ratio: 16/10; background: var(--paper-soft); overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-img-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; color: var(--sub); }
.post-card-body { padding: 24px; }
.post-meta { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--sub); margin-bottom: 12px; }
.cat-badge { background: rgba(59, 88, 71, .1); color: var(--wood); padding: 4px 10px; border-radius: 999px; letter-spacing: .14em; }
.post-card h3 { font-size: 22px; margin-bottom: 10px; }
.post-card p { color: var(--sub); font-size: 14.5px; line-height: 1.6; margin-bottom: 16px; }
.read-more { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--wood); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.read-more:hover { color: var(--ink); }

/* ------ About-Grid (Zwei-Spalten Text/Bild) ----------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.about-grid.reverse { grid-template-columns: 1.1fr 1fr; }
.about-grid.reverse .about-image { order: 2; }
.about-image { overflow: hidden; border-radius: var(--radius); }
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4/3; }

/* Wappen-Reihe — überschreibt die .about-image img Defaults */
.wappen-row { display: flex; justify-content: center; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.wappen-row img {
    width: auto !important;
    height: 90px !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    display: block;
}
.about-content p { color: var(--sub); font-size: 16px; line-height: 1.7; }
.about-content p.lead { color: var(--ink); }
.about-list { list-style: none; padding: 0; margin: 24px 0; }
.about-list li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; display: flex; gap: 12px; align-items: baseline; }
.about-list li::before { content: '→'; color: var(--wood); font-family: var(--serif); font-size: 18px; }

/* ------ Timeline (Geschichte) -------------------------------- */
.timeline { position: relative; padding-left: 48px; margin-top: 40px; }
.timeline::before { content: ''; position: absolute; top: 0; bottom: 0; left: 14px; width: 1px; background: var(--line); }
.timeline-item { position: relative; margin-bottom: 64px; }
.timeline-item::before {
    content: ''; position: absolute; left: -41px; top: 10px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--wood); border: 3px solid var(--bg);
}
.timeline-year { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--wood); margin-bottom: 10px; }
.timeline-item h3 { font-size: 28px; margin-bottom: 12px; }
.timeline-item p { color: var(--sub); font-size: 15.5px; line-height: 1.7; }

/* ------ Footer ---------------------------------------------- */
.site-footer {
    background: var(--dark); color: var(--cream);
    padding: 80px 0 32px;
}
.site-footer .container { max-width: 1400px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(238, 238, 230, 0.14); }
.footer-col h3 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--wood-soft); margin-bottom: 18px; font-weight: 400; }
.footer-col p, .footer-col a { font-size: 14px; opacity: .85; line-height: 1.8; color: var(--cream); }
.footer-col a { display: block; text-decoration: none; margin-bottom: 4px; }
.footer-col a:hover { color: var(--wood-soft); opacity: 1; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-about { font-size: 13.5px; opacity: .65; margin-top: 20px; line-height: 1.7; max-width: 340px; }
.footer-bottom {
    padding-top: 24px; display: flex; justify-content: space-between; align-items: center;
    font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    opacity: .55; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: inherit; }

/* ------ Tag / Eyebrow Helpers ------------------------------- */
.tag {
    display: inline-block; font-family: var(--mono); font-size: 10.5px;
    letter-spacing: .24em; text-transform: uppercase; color: var(--wood);
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    margin-bottom: 18px;
}

/* ------ Lightbox -------------------------------------------- */
.lightbox {
    position: fixed; inset: 0; background: rgba(26, 38, 32, .92);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close {
    position: absolute; top: 20px; right: 20px; background: transparent; border: 0;
    color: var(--cream); font-size: 32px; cursor: pointer; padding: 10px;
}

/* ------ CTA-Banner ------------------------------------------ */
.cta-banner {
    background: var(--dark); color: var(--cream); padding: 100px 0; text-align: center;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 20px; }
.cta-banner p { color: var(--cream); opacity: .82; max-width: 680px; margin: 0 auto 36px; font-size: 18px; line-height: 1.6; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ------ Responsive ------------------------------------------ */
@media (max-width: 1100px) {
    .container { padding: 0 32px; }
    .header-inner { padding: 16px 32px; }
    .home-hero { grid-template-columns: 1fr; min-height: auto; }
    .home-hero-text-inner { padding: 60px 32px 56px; }
    .home-hero-mountains { height: 180px; opacity: .6; }
    .home-hero-photo { aspect-ratio: 4/3; min-height: auto; }
    .home-intro-grid { grid-template-columns: 1fr; gap: 48px; }
    .home-intro-left { position: static; }
    .features-grid, .features-grid.four { grid-template-columns: 1fr 1fr; }
    .karriere-head { grid-template-columns: 1fr; gap: 32px; }
    .section-header.split { grid-template-columns: 1fr; gap: 32px; }
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-grid.reverse .about-image { order: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-mag { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
    .gallery-mag > * { grid-column: span 6 !important; grid-row: span 2 !important; }
    .gallery-mag > *:first-child { grid-row: span 3 !important; }
}
/* Mobile-Slide-In standardmäßig versteckt (Desktop) */
.main-nav-mobile { display: none; }

/* ------ Slide-in Mobile-Navi (Tablet & Smartphone) ----------- */
@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav-close { display: block; }
    .main-nav-desktop { display: none; }

    .main-nav-mobile {
        display: block;
        position: fixed; top: 0; right: 0; bottom: 0;
        width: min(86vw, 360px);
        background: var(--paper);
        box-shadow: -10px 0 40px rgba(0,0,0,.18);
        padding: 70px 24px 32px;
        transform: translateX(100%);
        transition: transform .3s ease;
        z-index: 9999; overflow-y: auto;
    }
    .main-nav-mobile.open,
    body.nav-open-lock .main-nav-mobile { transform: translateX(0) !important; }
    .main-nav-mobile ul {
        flex-direction: column; align-items: stretch; gap: 4px;
        background: transparent; border: 0; padding: 0; border-radius: 0;
    }
    .main-nav-mobile a {
        display: block; width: 100%; text-align: left;
        padding: 14px 16px; font-size: 16px;
        border-radius: 10px;
    }
    .nav-overlay { z-index: 9998; }
}

@media (max-width: 720px) {
    .container { padding: 0 20px; }
    .section { padding: 72px 0; }
    .site-header { position: static; }
    .header-inner { padding: 14px 20px; gap: 12px; }
    .header-cta {
        padding: 0; width: 40px; height: 40px;
        justify-content: center; gap: 0;
    }
    .header-cta-icon { display: inline-block; width: 18px; height: 18px; }
    .header-cta-text { display: none; }
    .logo img { height: 40px; }
    .logo-main { font-size: 16px; }
    .home-hero-text-inner { padding: 40px 20px; }
    .home-hero h1 { font-size: clamp(42px, 11vw, 64px); }
    .home-hero-photo-caption { left: 16px; right: 16px; bottom: 16px; }
    .home-hero-photo-caption .quote { font-size: 15px; padding: 8px 12px; }
    .home-intro-stats { grid-template-columns: 1fr; }
    .phone-card-num { font-size: 44px; white-space: nowrap; }
    .phone-card-num br { display: none; }
    .features-grid, .features-grid.four, .form-row, .contact-split { grid-template-columns: 1fr; }
    .job { grid-template-columns: 30px 1fr 30px; }
    .job-sub, .job-when { display: none; }
    .job-title { font-size: 22px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .gallery-mag { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .gallery-mag > * { grid-column: span 1 !important; grid-row: span 1 !important; }
    .timeline { padding-left: 32px; }
    .timeline::before { left: 10px; }
    .timeline-item::before { left: -28px; }
    .contact-form { padding: 28px 20px; }
    .phone-card { padding: 28px; }
    .page-hero { padding: 56px 0; }
}
