/* ==========================================================================
   Steuerbüro Reißen – Stylesheet
   Basis: Design-Prototyp v69 (Farben aus der Visitenkarte)
   Markenwerte zentral in :root – für RH-Recht später nur diese Werte tauschen.
   ========================================================================== */

:root {
    /* Marke */
    --brand: #39a8e0;                 /* Blau aus dem Logo */
    --brand-soft: rgba(57, 168, 224, 0.14);

    /* Flächen */
    --color-bg: #0c1f2a;
    --color-bg-alt: #0a1922;
    --grad-a: linear-gradient(105deg, #1b1b1b 0%, #0c0d0d 100%);
    --grad-b: linear-gradient(105deg, #0c0d0d 0%, #151515 100%);
    --color-surface: rgba(255, 255, 255, 0.03);
    --color-surface-hover: rgba(255, 255, 255, 0.055);
    --color-surface-border: rgba(255, 255, 255, 0.08);
    --color-border-strong: rgba(255, 255, 255, 0.16);

    /* Text – alle Stufen mind. 4.5:1 auf den dunklen Flächen */
    --color-white: #ffffff;
    --color-text: #e6e6e6;
    --color-text-secondary: #a8adb1;
    --color-text-muted: #8f959a;

    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --section-pad: clamp(4rem, 9vw, 7rem);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-h: 76px;
}

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

html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; }
strong { color: var(--color-white); font-weight: 600; }
::selection { background: var(--brand-soft); color: var(--color-white); }

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

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

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--color-white); color: var(--color-bg);
    padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Offene Punkte (vor Go-Live via show_todos=false ausblenden) */
mark.todo {
    display: inline-block;
    background: rgba(255, 196, 0, 0.14);
    color: #ffd24d;
    border: 1px dashed rgba(255, 196, 0, 0.6);
    border-radius: 4px;
    padding: 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0;
    text-transform: none;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.1rem 0;
    transition: var(--transition-base);
}
.nav.scrolled, .page-sub .nav {
    background: rgba(12, 31, 42, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-surface-border);
    padding: 0.75rem 0;
}
.nav-container {
    max-width: 1180px; margin: 0 auto; padding: 0 var(--space-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; transition: var(--transition-base); }
.nav-logo img { height: 36px; width: auto; }
.nav-logo:hover { opacity: 0.85; }

.nav-menu { display: flex; align-items: center; gap: 2.25rem; }
.nav-menu ul { display: flex; gap: 2.25rem; }
.nav-link {
    text-decoration: none; color: var(--color-text-secondary);
    font-size: 0.95rem; font-weight: 500; position: relative; transition: var(--transition-fast);
}
.nav-link::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px;
    background: var(--brand); transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--color-white); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 8px; z-index: 102;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-text); transition: var(--transition-base); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.9rem 1.75rem; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: var(--transition-base);
    border: 1px solid transparent; position: relative; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--color-white); color: var(--color-bg); }
.btn-primary:hover { background: #dfe9ef; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost:hover { background: var(--color-surface-hover); color: var(--color-white); border-color: rgba(255,255,255,0.3); }
.btn-small { padding: 0.6rem 1.1rem; font-size: 0.88rem; }
.btn-full { width: 100%; }
.nav-cta { background: var(--brand-soft); color: var(--color-white); border-color: rgba(57,168,224,0.35); }
.nav-cta:hover { background: rgba(57,168,224,0.25); border-color: var(--brand); }
.nav-cta svg { width: 16px; height: 16px; color: var(--brand); }

.text-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    color: var(--color-white); text-decoration: none; font-weight: 600; font-size: 0.95rem;
    border-bottom: 1px solid var(--brand); padding-bottom: 2px; transition: var(--transition-fast);
}
.text-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.text-link:hover svg { transform: translateX(3px); }
.icon-inline { display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.05em; }

/* ── Labels & Überschriften ─────────────────────────────────────────────── */
.section-label {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 0.82rem; color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem;
}
.label-line { width: 24px; height: 2px; background: var(--brand); }

.section-title, .page-title {
    font-family: var(--font-display); font-weight: 700; line-height: 1.15;
    color: var(--color-white); letter-spacing: -0.02em;
}
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.6rem); }
.page-title { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: var(--space-md); }
.section-title .accent, .page-title .accent, .hero-title .accent { color: var(--color-text-secondary); }
.section-subtitle { font-size: 1.02rem; color: var(--color-text-secondary); max-width: 560px; margin-top: 0.75rem; }
.section-header { margin-bottom: var(--space-xl); }
.section-header.center { text-align: center; max-width: 680px; margin-left: auto; margin-right: auto; }
.section-header.center .section-subtitle { margin-left: auto; margin-right: auto; }
.section-foot { margin-top: var(--space-lg); text-align: center; }

/* ── Sektionen ──────────────────────────────────────────────────────────── */
.section { position: relative; overflow: hidden; padding: var(--section-pad) 0; }
.section--a { background: var(--grad-a); }
.section--b { background: var(--grad-b); }
.section > .container { position: relative; z-index: 1; }
.section-shapes {
    position: absolute; inset: 0;
    background: url('../images/shapes.png') no-repeat right top;
    background-size: auto 100%;
    pointer-events: none; z-index: 0; opacity: 0.22;
}

/* ── Hero (Startseite) ──────────────────────────────────────────────────── */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--nav-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 6vw, 4.5rem);
    background: var(--color-bg) url('../images/bg-card.svg') no-repeat center top;
    background-size: cover;
}
.hero-label {
    display: inline-flex; align-items: center; gap: 0.75rem;
    font-size: 0.82rem; color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: var(--space-md);
}
.hero-title {
    font-family: var(--font-display); font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700; line-height: 1.08; color: var(--color-white);
    margin-bottom: var(--space-md); letter-spacing: -0.02em;
}
.hero-subtitle { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 540px; margin-bottom: var(--space-lg); line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ── Laufband ───────────────────────────────────────────────────────────── */
.trust-bar {
    background: var(--color-bg);
    border-top: 1px solid var(--color-surface-border); border-bottom: 1px solid var(--color-surface-border);
    padding: 1.1rem 0; overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee-wrap { display: inline-flex; animation: marquee 40s linear infinite; }
.marquee-content {
    display: inline-flex; gap: 2.5rem; padding-right: 2.5rem; flex-shrink: 0;
    font-size: 0.82rem; color: var(--color-text-secondary);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.marquee-content .dot { color: var(--brand); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Leistungsübersicht (Startseite) ────────────────────────────────────── */
.group-label {
    font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-secondary);
    margin: 0 0 0.5rem; display: flex; align-items: center; gap: 0.75rem;
}
.tile-icon {
    width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; flex-shrink: 0;
}
.tile-icon svg { width: 20px; height: 20px; color: var(--brand); }

.group-label::after { content: ''; flex: 1; height: 1px; background: var(--color-surface-border); }
.group-label { margin-bottom: 1rem; }
.group-label + .tiles { margin-bottom: var(--space-lg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile {
    display: flex; flex-direction: column; gap: 0.35rem;
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md); padding: 1.6rem 1.5rem;
    text-decoration: none; color: inherit; transition: var(--transition-base); position: relative;
}
.tile:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); transform: translateY(-2px); }
.tile { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.reveal-up.visible.tile:hover { transform: translateY(-6px); box-shadow: 0 4px 8px rgba(14,36,50,0.08), 0 16px 40px rgba(14,36,50,0.14); border-color: var(--color-border-strong); }
.tile h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--color-white); line-height: 1.3; }
.tile p { font-size: 0.93rem; color: var(--color-text-secondary); line-height: 1.6; }
.tile-more { margin-top: auto; padding-top: 0.75rem; font-size: 0.85rem; font-weight: 600; color: var(--color-text); display: inline-flex; align-items: center; gap: 0.35rem; }
.tile-more svg { width: 15px; height: 15px; color: var(--brand); transition: transform 0.2s ease; }
.tile:hover .tile-more svg { transform: translateX(3px); }

/* ── Hinweis offene Stelle ──────────────────────────────────────────────── */
.job-notice { display: block; background: var(--brand-soft); border-top: 1px solid rgba(57,168,224,0.35); text-decoration: none; color: var(--color-text); transition: var(--transition-fast); }
.job-notice:hover { background: rgba(57,168,224,0.24); }
.job-notice-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.job-notice-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-bg); background: var(--brand); border-radius: var(--radius-full); padding: 0.2rem 0.7rem; }
.job-notice-text { font-size: 0.95rem; }
.job-notice-more { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; color: var(--color-white); }
.job-notice-more svg { width: 16px; height: 16px; }

/* ── Schritte (Wechsel) ─────────────────────────────────────────────────── */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.step {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md); padding: 1.6rem 1.5rem; position: relative;
}
.step::before {
    counter-increment: step; content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--brand); color: var(--brand);
    font-family: var(--font-display); font-weight: 600; margin-bottom: 0.9rem;
}
.step h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-white); margin-bottom: 0.35rem; }
.step p { font-size: 0.93rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ── Split (Text + Karte) ───────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split .section-title { margin-bottom: 1.25rem; }
.prose p { color: var(--color-text-secondary); margin-bottom: 1.1rem; font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }

.team-mini { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.5rem 0 1.75rem; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-bg); border: 1px solid var(--color-border-strong);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--color-white);
    overflow: hidden; flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.buero-card {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-left: 2px solid var(--brand);
    border-radius: var(--radius-md); padding: 2rem 1.9rem;
}
.buero-card h3 { font-family: var(--font-display); font-size: 1.35rem; color: var(--color-white); margin-bottom: 0.9rem; line-height: 1.3; }
.buero-card p { color: var(--color-text-secondary); font-size: 0.97rem; margin-bottom: 1rem; }
.buero-card .btn { margin-top: 0.5rem; }
.buero-card .btn svg { width: 15px; height: 15px; }

/* ── Unterseiten-Kopf ───────────────────────────────────────────────────── */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(3rem, 7vw, 5rem)) 0 clamp(2.5rem, 5vw, 3.5rem);
    background: var(--color-bg) url('../images/bg-card.svg') no-repeat center top;
    background-size: cover;
    border-bottom: 1px solid var(--color-surface-border);
}
.page-intro { font-size: 1.1rem; color: var(--color-text-secondary); max-width: 680px; line-height: 1.75; }

.subnav { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--space-md); }
.subnav a {
    font-size: 0.88rem; text-decoration: none; color: var(--color-text);
    border: 1px solid var(--color-border-strong); border-radius: var(--radius-full);
    padding: 0.4rem 0.95rem; transition: var(--transition-fast);
}
.subnav a:hover { border-color: var(--brand); color: var(--color-white); background: var(--brand-soft); }

/* ── Leistungsseite ─────────────────────────────────────────────────────── */
.service-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md); padding: 1.9rem 1.75rem;
}
.service-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.9rem; }
.service-head .tile-icon { margin-bottom: 0; }
.service h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-white); line-height: 1.3; }
.service > p { color: var(--color-text-secondary); font-size: 0.97rem; margin-bottom: 1rem; }
.checklist li {
    position: relative; padding-left: 1.6rem; margin-bottom: 0.45rem;
    font-size: 0.95rem; color: var(--color-text);
}
.checklist li::before {
    content: ''; position: absolute; left: 0.1rem; top: 0.5rem;
    width: 0.75rem; height: 0.42rem;
    border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
}
.service-note { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--color-surface-border); font-size: 0.88rem; color: var(--color-text-muted); }
.service-note a { color: var(--color-text-secondary); }

.faq { max-width: 820px; margin: var(--space-lg) auto 0; display: grid; gap: 0.75rem; }
.faq details {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md); padding: 0 1.4rem; transition: var(--transition-fast);
}
.faq details[open] { border-color: var(--color-border-strong); }
.faq summary {
    cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; position: relative;
    font-family: var(--font-display); font-weight: 500; color: var(--color-white); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ''; position: absolute; right: 0.2rem; top: 50%; width: 10px; height: 10px;
    border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
    transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--color-text-secondary); padding: 0 0 1.2rem; font-size: 0.97rem; }

/* ── Kanzlei ────────────────────────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.25rem; }
.team-card {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-md); padding: 1.75rem 1.25rem; text-align: center;
}
.team-card .avatar { width: 88px; height: 88px; font-size: 1.5rem; margin: 0 auto 1rem; }
.team-name { font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--color-white); }
.team-role { font-size: 0.9rem; color: var(--color-text-secondary); margin-top: 0.2rem; }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature { background: var(--color-surface); border: 1px solid var(--color-surface-border); border-radius: var(--radius-md); padding: 1.6rem 1.5rem; }
.feature h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-white); margin-bottom: 0.4rem; }
.feature p { font-size: 0.94rem; color: var(--color-text-secondary); line-height: 1.6; }

/* ── Karriere ───────────────────────────────────────────────────────────── */
.jobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.job { background: var(--color-surface); border: 1px solid var(--color-surface-border); border-radius: var(--radius-md); padding: 1.75rem 1.6rem; display: flex; flex-direction: column; }
.job h3 { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-white); line-height: 1.3; }
.job-type { display: inline-block; font-size: 0.82rem; color: #155a85; margin: 0.35rem 0 1rem; font-weight: 600; }
.job h4 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin: 0.6rem 0 0.45rem; }
.job .checklist li { font-size: 0.93rem; }
.benefits { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem 2rem; margin-top: var(--space-md); }
.apply-box {
    margin-top: var(--space-xl); text-align: center;
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-lg); padding: 2.5rem 1.5rem;
}
.apply-box h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-white); margin-bottom: 0.5rem; }
.apply-box p { color: var(--color-text-secondary); margin-bottom: 1.25rem; }

.job--featured { max-width: 100%; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 2px solid var(--brand); }
.job-head { margin-bottom: 1.25rem; }
.job-head h2 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.5vw, 1.8rem); color: var(--color-white); line-height: 1.25; margin-top: 0.6rem; }
.job-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-bg); background: var(--brand); border-radius: var(--radius-full); padding: 0.2rem 0.75rem; }
.job-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2rem; margin-bottom: 1.75rem; }
.job--featured > .btn { align-self: flex-start; }
.job-cols h3 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); margin-bottom: 0.6rem; }

/* ── Kontakt ────────────────────────────────────────────────────────────── */
.contact { position: relative; overflow: hidden; padding: var(--section-pad) 0; background: linear-gradient(105deg, #0c0d0d 0%, #1b1b1b 100%); }
.contact > .container { position: relative; z-index: 1; }
.contact-header { margin-bottom: 2rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.contact-lead { margin: 0 0 1.25rem; color: var(--color-text-secondary); }
.contact-details { display: grid; gap: 0.85rem; }
.contact-item {
    display: flex; align-items: flex-start; gap: 1rem; padding: 0.95rem 1rem;
    background: var(--color-surface); border: 1px solid var(--color-surface-border); border-radius: var(--radius-md);
}
.contact-item-icon {
    width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--brand-soft);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item-icon svg { width: 19px; height: 19px; color: var(--brand); }
.contact-item-label { display: block; font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.15rem; }
.contact-item-value { display: block; font-size: 1rem; color: var(--color-text); text-decoration: none; font-weight: 500; }
a.contact-item-value:hover { color: var(--color-white); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 3px; }
.hours-row { display: flex; gap: 0.75rem; }
.hours-row span:first-child { min-width: 4.2rem; color: var(--color-text-secondary); }
.contact-partner-note { margin-top: auto; padding-top: 1.25rem; font-size: 0.9rem; color: var(--color-text-secondary); }
.contact-partner-note a { color: var(--color-white); }

.contact-form-wrapper {
    background: var(--color-surface); border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex; flex-direction: column;
}
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; flex: 1; }
.form-field--message { flex: 1; display: flex; flex-direction: column; }
.form-field--message textarea { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-field { position: relative; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 1rem 1rem 0.75rem; min-height: 52px;
    background: var(--color-bg); border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
    color: var(--color-text); font-family: var(--font-body); font-size: 1rem; transition: var(--transition-fast);
}
.form-field select { appearance: none; -webkit-appearance: none; padding-top: 1.25rem; padding-bottom: 0.5rem; cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-secondary) 50%), linear-gradient(135deg, var(--color-text-secondary) 50%, transparent 50%);
    background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-field label {
    position: absolute; left: 0.75rem; top: 0.95rem; padding: 0 0.3rem;
    color: var(--color-text-muted); font-size: 0.95rem; pointer-events: none;
    transition: var(--transition-fast); background: var(--color-bg); border-radius: 4px;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label,
.form-field--select label { top: -0.6rem; font-size: 0.78rem; color: var(--color-text-secondary); }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field [aria-invalid="true"] { border-color: #ff8a80; }

.privacy-checkbox { display: flex; align-items: flex-start; gap: 0.75rem; cursor: pointer; font-size: 0.9rem; color: var(--color-text-secondary); line-height: 1.55; }
.privacy-checkbox input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.privacy-checkbox a { color: var(--color-white); text-underline-offset: 2px; }
.form-hint { font-size: 0.84rem; color: var(--color-text-muted); margin-top: -0.25rem; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: var(--radius-sm); padding: 1rem 1.15rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.form-status ul { margin: 0.4rem 0 0 1.1rem; list-style: disc; }
.form-status.is-success { background: rgba(76, 175, 80, 0.12); border: 1px solid rgba(76, 175, 80, 0.45); color: #c8f0ca; }
.form-status.is-error { background: rgba(244, 67, 54, 0.1); border: 1px solid rgba(244, 67, 54, 0.45); color: #ffd0cc; }
.form-status strong { color: inherit; }
button[disabled] { opacity: 0.6; cursor: wait; }

/* ── Rechtstexte ────────────────────────────────────────────────────────── */
.legal { max-width: 820px; }
.legal-section { margin-bottom: var(--space-lg); }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--color-white);
    margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-surface-border);
}
.legal-section p, .legal-section li { font-size: 0.97rem; color: var(--color-text-secondary); line-height: 1.75; }
.legal-section p { margin-bottom: 0.75rem; }
.legal-section a { color: var(--color-white); text-underline-offset: 2px; }
.legal-list { margin: 0.5rem 0 0.75rem; }
.legal-list li { position: relative; padding-left: 1.2rem; margin-bottom: 0.35rem; }
.legal-list li::before { content: ''; position: absolute; left: 0; top: 0.8rem; width: 7px; height: 2px; background: var(--brand); }

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound { min-height: 60vh; display: flex; align-items: center; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-surface-border); padding: var(--space-xl) 0 var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; margin-bottom: var(--space-lg); }
.footer-logo { display: inline-block; transition: var(--transition-base); }
.footer-logo img { width: 160px; height: auto; }
.footer-logo:hover { opacity: 0.85; }
.footer-brand p { font-size: 0.92rem; color: var(--color-text-secondary); margin-top: 1.1rem; line-height: 1.7; }
.footer-contact a { color: var(--color-text); text-decoration: none; }
.footer-contact a:hover { color: var(--color-white); text-decoration: underline; }
.footer-links h2 { font-family: var(--font-display); font-size: 0.95rem; color: var(--color-white); margin-bottom: 1rem; font-weight: 600; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a { color: var(--color-text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--color-white); }
.footer-bottom { text-align: center; padding-top: var(--space-md); border-top: 1px solid var(--color-surface-border); }
.footer-bottom p { font-size: 0.82rem; color: var(--color-text-muted); }
.footer-credit { margin-top: 0.25rem; }
.footer-credit a { color: var(--color-accent, #C4A45C); text-decoration: none; transition: color 0.2s ease; }
.footer-credit a:hover { color: var(--color-white); text-decoration: underline; }

/* ── Nach oben ──────────────────────────────────────────────────────────── */
.scroll-top {
    position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px;
    background: rgba(12, 31, 42, 0.9); border: 1px solid var(--color-border-strong); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--color-text);
    cursor: pointer; opacity: 0; transform: translateY(20px); transition: var(--transition-base);
    z-index: 90; pointer-events: none;
}
.scroll-top svg { width: 22px; height: 22px; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { border-color: var(--brand); color: var(--color-white); }

/* ── Einblend-Animationen (nur mit JavaScript aktiv) ────────────────────── */
.js .reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal-up.visible { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .tiles, .jobs, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .contact-grid { grid-template-columns: 1fr; }
    .job-cols { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; inset: 0; z-index: 101;
        background: #0a1922;
        flex-direction: column; justify-content: center; gap: 2.25rem;
        opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s;
    }
    .nav-menu.open { opacity: 1; visibility: visible; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 1.6rem; }
    .nav-link { font-size: 1.35rem; }
    .nav-cta { font-size: 1.05rem; padding: 0.85rem 1.4rem; }
    body.menu-open { overflow: hidden; }
    /* backdrop-filter würde das fixierte Menü auf die Kopfzeile begrenzen */
    .nav.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(12, 31, 42, 0.98); }
}

@media (max-width: 768px) {
    .container, .nav-container { padding: 0 1.25rem; }
    .hero { background-position: 70% top; }
    .tiles, .tiles--2, .jobs, .features, .steps, .service-list, .job-cols { grid-template-columns: 1fr; }
    .job-notice-more { margin-left: 0; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section-shapes { opacity: 0.12; }
}

/* Kompakte Darstellung auf dem Smartphone */
@media (max-width: 768px) {
    :root { --section-pad: 3.5rem; }
    .section-header { margin-bottom: 2rem; }
    .tiles, .steps { gap: 0.75rem; }
    .tile { display: grid; grid-template-columns: 44px 1fr; column-gap: 1rem; row-gap: 0.15rem; padding: 1.1rem; align-items: start; }
    .tile .tile-icon { grid-row: 1 / span 2; margin-bottom: 0; }
    .tile-more { display: none; }
    .tile:hover { transform: none; }
    .step { display: grid; grid-template-columns: 36px 1fr; column-gap: 1rem; padding: 1.1rem; }
    .step::before { grid-row: 1 / span 2; margin-bottom: 0; }
    .service { padding: 1.4rem 1.25rem; }
    .photos { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .marquee-wrap { animation: none; }
    .js .reveal-up { opacity: 1; transform: none; }
}

@media print {
    .nav, .scroll-top, .trust-bar, .section-shapes, .contact-form-wrapper { display: none !important; }
    body { background: #fff; color: #000; }
    /* reveal-up wird per IntersectionObserver eingeblendet. Ohne diese Regel bleiben
       gedruckte Inhaltsbloecke unsichtbar, weil sie nie in den Sichtbereich scrollen. */
    .js .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ── Hilfsklassen ───────────────────────────────────────────────────────── */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.benefits-head { margin: var(--space-xl) 0 0; }
.page-intro .text-link { margin-right: 1rem; }
.contact-partner-note a[href^="mailto:"], a[href^="tel:"] { white-space: nowrap; }

/* ==========================================================================
   Farbkonzept „Blau-Weiß" für die Inhaltsbereiche
   Corporate Design (dunkel) bleibt unverändert: .nav, .hero, .page-hero,
   .job-notice, .trust-bar, .footer, mobiles Menü, Unternavigation Leistungen.
   ========================================================================== */
.section,
.contact {
    --color-white: #0e2432;            /* Überschriften und starke Texte */
    --color-text: #2c3d48;
    --color-text-secondary: #45585f;
    --color-text-muted: #3d525e;       /* dunkler für Kontrast auf getönten Hintergründen */
    --color-bg: #ffffff;               /* Formularfelder, Label-Hintergrund, Button-Text */
    --color-surface: #ffffff;
    --color-surface-hover: #ffffff;
    --color-surface-border: #b1c5d8;
    --color-border-strong: #94b1cc;
    --brand: #2b95d0;
    --brand-soft: #2b95d0;
    color: var(--color-text);
}
.section--a { background: #c8dbeb; }   /* eine Stufe dunkler als v1-Blau-Weiß */
.section--b { background: #b8d0e3; }   /* Wechsel-Abschnitt dunkler */
.contact { background: #b8d0e3; }
.section--b + .contact { background: #c8dbeb; }
.section-shapes { display: none; }

/* Karten: weiß mit weichem Schatten */
:is(.section, .contact) :is(.tile, .service, .step, .feature, .team-card, .buero-card, .contact-item, .contact-form-wrapper, .job, .apply-box, .faq details) {
    box-shadow: 0 1px 2px rgba(14, 36, 50, 0.05), 0 6px 20px rgba(14, 36, 50, 0.06);
}
:is(.section, .contact) .tile:hover {
    box-shadow: 0 2px 4px rgba(14, 36, 50, 0.06), 0 12px 28px rgba(14, 36, 50, 0.1);
    border-color: #b9d3e3;
}

/* Symbole weiß auf blauer Fläche, Schrittnummern gefüllt */
:is(.section, .contact) :is(.tile-icon, .contact-item-icon) svg { color: #ffffff; }
.section .step::before { background: #2b95d0; border-color: #2b95d0; color: #ffffff; }

/* Buttons, Links, Formular */
:is(.section, .contact) .btn-primary { background: #0e2432; color: #ffffff; }
:is(.section, .contact) .btn-primary:hover { background: #155a85; }
:is(.section, .contact) .text-link { color: #155a85; border-bottom-color: #155a85; }
:is(.section, .contact) :is(.legal-section a, .contact-partner-note a, .service-note a, .privacy-checkbox a) { color: #155a85; }
:is(.section, .contact) .form-field label { background: #ffffff; }
:is(.section, .contact) .job-badge { background: #155a85; color: #ffffff; }
.form-status.is-success { background: #eaf6ec; border-color: #9fd3a8; color: #1d5e2a; }
.form-status.is-error { background: #fdecea; border-color: #f2a79f; color: #8a1f14; }
.form-field [aria-invalid="true"] { border-color: #d0453a; }

/* ── Standort-Fotos (kanzlei/index.php) ──────────────────────────────── */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.photo { margin: 0; }
.photo img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: 0 1px 2px rgba(14, 36, 50, 0.05), 0 6px 20px rgba(14, 36, 50, 0.08); }
.photo figcaption { font-size: 0.88rem; color: var(--color-text-muted); margin-top: 0.6rem; }
