@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&family=Fraunces:ital,wght@0,500;0,600;0,700;1,500&display=swap');

:root {
    /* Palette: "Warm & Approachable" — Terrakotta/Karamell, sanfte Cremetöne, runde Formen */
    --blau-dunkel: #b1502f;
    --blau: #e0714a;
    --blau-hell: #fdece1;
    --akzent: #4d7c5f;
    --gold-dunkel: #a3690f;
    --gold-bg: #fdf1da;
    --gold-border: #f2dfb3;
    --text: #3a2a1f;
    --text-hell: #8a7565;
    --border: #ece0d3;
    --bg: #fbf6ee;
    --weiss: #fffdfa;
    --erfolg: #2f7a4d;
    --erfolg-bg: #e2f3e6;
    --fehler: #c2410c;
    --fehler-bg: #fde8dc;

    /* Radius-Skala: großzügig gerundet für einen weicheren Eindruck */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;

    /* Schatten-Skala: warmer, weicher Schattenton statt kühlem Grau */
    --schatten-sm: 0 1px 2px rgba(58, 42, 31, 0.06);
    --schatten: 0 2px 6px rgba(58, 42, 31, 0.08);
    --schatten-lg: 0 10px 28px rgba(58, 42, 31, 0.13);
    --schatten-gold: 0 2px 8px rgba(163, 105, 15, 0.16);

    --schrift-titel: "Fraunces", "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --schrift-text: "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--schrift-text);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.25; letter-spacing: 0; }

a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }

a, button, input, select, textarea {
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, opacity .16s ease;
}

:focus-visible {
    outline: 2px solid var(--blau);
    outline-offset: 2px;
}

/* Icons */
.icon { width: 20px; height: 20px; flex-shrink: 0; vertical-align: middle; }
.icon-inline { width: 16px; height: 16px; margin-right: 4px; margin-bottom: 2px; }
.icon-label { width: 14px; height: 14px; margin-right: 4px; margin-bottom: -1px; }
.icon-tag { width: 12px; height: 12px; margin-right: 4px; margin-bottom: -1px; }
.jc-logo { width: 30px; height: 30px; margin-right: 8px; flex-shrink: 0; vertical-align: middle; }
.jc-logo-schild { fill: var(--blau); }
.jc-logo-ring { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1; }
.jc-logo-haken { fill: none; stroke: var(--weiss); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--weiss);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-size: 21px;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
}

.logo .icon { color: var(--blau); }
.logo span { color: var(--blau); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { color: var(--text-hell); font-weight: 600; font-size: 15px; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav a.nav-cta {
    background: var(--blau); color: var(--weiss); padding: 9px 18px; border-radius: var(--radius-sm);
    font-weight: 700;
}
.main-nav a.nav-cta:hover { background: var(--blau-dunkel); }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

/* Hero */
.hero {
    background: var(--blau-dunkel);
    color: var(--weiss);
    padding: 68px 0 60px;
    text-align: center;
}

.hero-grid { display: flex; align-items: center; gap: 40px; text-align: left; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-illustration { flex: 0 0 260px; display: flex; justify-content: center; }

/* Hero-Grafik: Laptop mit Anwaltsdokument und Lupe */
.hero-grafik { width: 230px; height: 230px; overflow: visible; }
.hg-laptop-body { fill: #2a1d13; }
.hg-screen { fill: var(--bg); }
.hg-document { fill: var(--weiss); stroke: var(--border); stroke-width: 1.5; }
.hg-lines { fill: var(--border); }
.hg-dot { fill: #2a1d13; opacity: .5; }
.hg-scale-icon { fill: none; stroke: var(--blau-dunkel); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hg-badge-ring { fill: none; stroke: var(--blau); stroke-width: 6; }
.hg-badge-dot { fill: var(--blau); }
.hg-glass-ring { fill: var(--gold-bg); stroke: #2a1d13; stroke-width: 8; }
.hg-glass-handle { stroke: #2a1d13; stroke-width: 10; stroke-linecap: round; }
.hg-qmark { font-family: var(--schrift-titel); font-weight: 700; fill: rgba(255,253,250,0.4); }
.hg-qmark { font-size: 46px; }
.hg-qmark-sm { font-size: 30px; }
.hg-qmark-xs { font-size: 20px; }

.hero h1 { font-size: 40px; margin: 0 0 14px; letter-spacing: 0; }
.hero-sub { font-size: 17px; color: #f5ddd0; margin: 0 0 32px; max-width: 560px; font-weight: 400; }

.search-box {
    background: var(--weiss);
    border-radius: var(--radius);
    box-shadow: var(--schatten-lg);
    padding: 22px;
    display: flex;
    gap: 16px;
    max-width: 780px;
    flex-wrap: wrap;
    text-align: left;
}

.search-box-kompakt { max-width: 100%; margin: 0; box-shadow: none; border: 1px solid var(--border); }

.search-field { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.search-field label { font-size: 13px; font-weight: 700; color: var(--text-hell); display: flex; align-items: center; }
.search-field input,
.search-field select {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--weiss);
    color: var(--text);
}
.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--blau);
    box-shadow: 0 0 0 3px rgba(224, 113, 74, 0.20);
}

.btn-search {
    align-self: flex-end;
    background: var(--blau);
    color: var(--weiss);
    border: none;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    height: 46px;
    display: inline-flex;
    align-items: center;
}

.btn-search:hover { background: var(--blau-dunkel); }

.hero-stats { margin-top: 26px; color: #f5ddd0; font-size: 14px; display: flex; align-items: center; }

/* Werbebanner */
.section-werbung { padding: 28px 0 0; }
.werbebanner-link { position: relative; display: block; text-align: center; }
.werbebanner-link img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.werbebanner-label {
    position: absolute; top: 10px; right: 10px; background: rgba(58,42,31,0.72); color: #fff;
    font-size: 11px; padding: 3px 9px; border-radius: 4px; letter-spacing: .02em;
}

/* Empfohlene Anwälte (Featured) */
.section-empfohlen { padding: 52px 0 20px; }
.section-empfohlen h2 { text-align: center; margin-bottom: 8px; color: var(--text); display: flex; align-items: center; justify-content: center; }
.section-empfohlen h2 .icon { color: var(--gold-dunkel); }
.empfohlen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.empfohlen-card {
    position: relative;
    background: var(--weiss);
    border: 1px solid var(--gold-border);
    box-shadow: var(--schatten-gold);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--text);
}
.empfohlen-card:hover { text-decoration: none; border-color: var(--gold-dunkel); }
.empfohlen-card h3 { margin: 0 0 2px; font-size: 16px; color: var(--text); }
.featured-abzeichen {
    position: absolute; top: -11px; left: 18px;
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--gold-dunkel); color: var(--weiss); font-size: 11px; font-weight: 700;
    padding: 4px 11px; border-radius: 999px;
}
.featured-abzeichen .icon { width: 11px; height: 11px; margin: 0; color: var(--weiss); }

/* Vorteile */
.section-vorteile { padding: 52px 0; }
.vorteile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.vorteil { background: var(--weiss); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .16s ease; }
.vorteil:hover { border-color: var(--blau); }
.vorteil-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: var(--radius-sm);
    background: var(--blau-hell); color: var(--blau); margin-bottom: 14px;
}
.vorteil-icon .icon { width: 22px; height: 22px; margin: 0; }
.vorteil h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.vorteil p { margin: 0; color: var(--text-hell); font-size: 14px; }

/* Kategorien */
.section-kategorien { padding: 24px 0 60px; }
.section-kategorien h2, .section-so-funktionierts h2 { text-align: center; margin-bottom: 8px; color: var(--text); }
.section-untertitel { text-align: center; color: var(--text-hell); margin: 0 0 30px; font-weight: 400; }

.kategorie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.kategorie-card {
    background: var(--weiss);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--text);
    transition: border-color .16s ease, background-color .16s ease;
}

.kategorie-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--blau); }
.kategorie-icon .icon { width: 24px; height: 24px; }

.kategorie-card:hover {
    border-color: var(--blau);
    background: var(--blau-hell);
    text-decoration: none;
}

/* So funktioniert's */
.section-so-funktionierts { background: var(--blau-hell); padding: 60px 0; }
.schritte-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.schritt { text-align: center; }
.schritt-nummer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--blau);
    color: var(--weiss);
    margin-bottom: 14px;
}
.schritt-nummer .icon { width: 22px; height: 22px; margin: 0; }
.schritt h3 { margin: 0 0 8px; color: var(--text); font-size: 17px; }
.schritt p { color: var(--text-hell); margin: 0; font-weight: 400; }

/* Suche / Ergebnisse */
.section-suchleiste { background: var(--weiss); padding: 24px 0; border-bottom: 1px solid var(--border); }
.section-ergebnisse { padding: 32px 0 60px; }
.ergebnisse-titel { color: var(--text); font-size: 23px; margin-bottom: 20px; }
.keine-treffer { color: var(--text-hell); }

.ergebnis-liste { display: flex; flex-direction: column; gap: 16px; }

.anwalt-card {
    position: relative;
    background: var(--weiss);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    transition: border-color .16s ease;
}

.anwalt-card:hover { border-color: var(--blau); }

.anwalt-card-featured { border-color: var(--gold-border); }
.anwalt-card-featured:hover { border-color: var(--gold-dunkel); }
.anwalt-card-featured .featured-abzeichen { top: -11px; left: 22px; }

.anwalt-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--blau-hell);
    color: var(--blau-dunkel);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    flex-shrink: 0;
}

.anwalt-avatar-gross { width: 88px; height: 88px; font-size: 32px; }
.anwalt-avatar-foto { object-fit: cover; }

.anwalt-info { flex: 1 1 320px; }
.anwalt-info h2 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.anwalt-kanzlei { margin: 0 0 4px; color: var(--text-hell); font-weight: 500; }
.anwalt-adresse { margin: 0 0 8px; color: var(--text-hell); font-size: 14px; font-weight: 400; }

.tag-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
    display: inline-flex;
    align-items: center;
    background: var(--blau-hell);
    color: var(--blau-dunkel);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
}

.anwalt-aktionen { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }

.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}

.btn-primary { background: var(--blau); color: var(--weiss); border: 1px solid var(--blau); }
.btn-primary:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); text-decoration: none; }
.btn-outline { background: var(--weiss); color: var(--blau); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--blau-hell); border-color: var(--blau); text-decoration: none; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a {
    padding: 9px 15px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 600;
}
.pagination a:hover { border-color: var(--blau); color: var(--blau); text-decoration: none; }
.pagination a.aktiv { background: var(--blau); color: var(--weiss); border-color: var(--blau); }

/* Profil */
.section-profil { padding: 32px 0 60px; }
.profil-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.zurueck-link { display: inline-block; margin-bottom: 18px; font-weight: 600; }
.profil-kopf { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.profil-kopf h1 { font-size: 26px; margin: 0 0 4px; }
.profil-beschreibung { background: var(--weiss); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.profil-beschreibung h2 { margin-top: 0; color: var(--text); font-size: 18px; }

.kontakt-box {
    background: var(--weiss);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}
.kontakt-box h2 { margin-top: 0; font-size: 17px; color: var(--text); }
.kontakt-box p { margin: 0 0 14px; font-size: 14px; }
.kontakt-zeile { display: flex; gap: 10px; align-items: flex-start; }
.kontakt-zeile .icon { margin-top: 3px; color: var(--blau); }

.kontakt-formular { display: flex; flex-direction: column; gap: 6px; }
.kontakt-formular label { font-size: 13px; font-weight: 700; color: var(--text-hell); margin-top: 8px; }
.kontakt-formular input, .kontakt-formular textarea {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
}
.kontakt-formular input:focus, .kontakt-formular textarea:focus {
    outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(224, 113, 74, 0.20);
}
.kontakt-formular button { margin-top: 14px; border: none; cursor: pointer; }
.hp-feld { position: absolute; left: -9999px; }
.erfolg-meldung { background: var(--erfolg-bg); color: #065f46; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; }

/* Datenschutz/AGB-Einwilligung + Rechen-Captcha (öffentliche Formulare) */
.einwilligung-captcha { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.einwilligung-captcha .checkbox-zeile { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; font-weight: 400; color: var(--text); margin: 0 0 14px; }
.checkbox-zeile input[type=checkbox] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--blau); }
.einwilligung-captcha input[type=number] { max-width: 120px; }

/* Ratgeber */
.ratgeber-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag-aktiv { background: var(--blau); color: var(--weiss); }
a.tag:hover { text-decoration: none; filter: brightness(0.95); }

.ratgeber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ratgeber-card {
    display: flex;
    flex-direction: column;
    background: var(--weiss);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    transition: border-color .16s ease;
}
.ratgeber-card:hover { border-color: var(--blau); text-decoration: none; }
.ratgeber-card-bild { width: 100%; height: 160px; object-fit: cover; display: block; }
.ratgeber-card-bild-platzhalter { display: flex; align-items: center; justify-content: center; background: var(--blau-hell); color: var(--blau); }
.ratgeber-card-bild-platzhalter .icon { width: 36px; height: 36px; }
.ratgeber-card-inhalt { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ratgeber-card-inhalt h2 { margin: 0; font-size: 17px; }
.ratgeber-card-inhalt p { margin: 0; color: var(--text-hell); font-size: 14px; flex: 1; }
.ratgeber-card-datum { color: var(--text-hell); font-size: 12px; }

.breadcrumb { font-size: 13px; color: var(--text-hell); margin-bottom: 20px; }
.breadcrumb span { margin: 0 6px; }
.breadcrumb a { color: var(--text-hell); font-weight: 600; }
.breadcrumb a:hover { color: var(--blau); }

.ratgeber-artikel { background: var(--weiss); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; max-width: 800px; margin: 0 auto; }
.ratgeber-artikel h1 { font-size: 28px; margin: 14px 0 6px; }
.ratgeber-artikel-datum { color: var(--text-hell); font-size: 13px; margin: 0 0 20px; }
.ratgeber-artikel-bild { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 24px; }
.ratgeber-artikel-inhalt { line-height: 1.75; }
.ratgeber-artikel-inhalt h2 { font-size: 20px; margin: 28px 0 10px; color: var(--text); }
.ratgeber-artikel-inhalt p { margin: 0 0 16px; }
.ratgeber-artikel-inhalt ul { margin: 0 0 16px; padding-left: 22px; }

.ratgeber-cta { background: var(--blau-hell); border-radius: var(--radius-sm); padding: 22px; margin-top: 32px; text-align: center; }
.ratgeber-cta p { margin: 0 0 14px; font-weight: 600; }

.ratgeber-weitere { max-width: 800px; margin: 32px auto 0; }
.ratgeber-weitere h2 { font-size: 18px; }
.ratgeber-weitere ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ratgeber-weitere a { font-weight: 600; }

/* Stellenmarkt */
.stellen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.stellen-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: var(--weiss);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    color: var(--text);
    transition: border-color .16s ease;
}
.stellen-card:hover { border-color: var(--blau); text-decoration: none; }
.stellen-card h2 { margin: 4px 0 0; font-size: 17px; }

.stellen-typ {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 999px;
}
.stellen-typ .icon { width: 13px; height: 13px; margin: 0; }
.stellen-typ-angebot { background: var(--blau-hell); color: var(--blau-dunkel); }
.stellen-typ-gesuch { background: var(--gold-bg); color: var(--gold-dunkel); }

/* Stellenmarkt-Banner auf der Startseite: Text links, vertikaler Anzeigen-Slider rechts */
.section-stellen-banner { padding: 64px 0; background: var(--blau-dunkel); position: relative; overflow: hidden; }
.stellen-banner-hintergrund { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .16; z-index: 0; }
.stellen-banner-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.stellen-banner-text h2 { margin: 0 0 10px; color: var(--weiss); font-size: 30px; }
.stellen-banner-text p { color: #f5ddd0; margin: 0 0 20px; max-width: 460px; }
.stellen-banner-aktionen { display: flex; gap: 12px; flex-wrap: wrap; }
.stellen-banner-aktionen .btn-primary { background: var(--gold-dunkel); border-color: var(--gold-dunkel); }
.stellen-banner-aktionen .btn-primary:hover { background: #8a5610; border-color: #8a5610; }
.stellen-banner-aktionen .btn-outline { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.5); }
.stellen-banner-aktionen .btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--weiss); }

/* Dekorative Hintergrundgrafik: Karriereweg mit Pfeil und Medaillons (Personal finden / Karriere machen) */
.sbg-road { fill: none; stroke: var(--weiss); stroke-width: 34; stroke-linecap: round; }
.sbg-road-dash { fill: none; stroke: var(--blau-dunkel); stroke-width: 3; stroke-dasharray: 14 16; stroke-linecap: round; }
.sbg-arrow { fill: var(--weiss); }
.sbg-medaillon { fill: var(--gold-dunkel); }
.sbg-icon { fill: none; stroke: var(--weiss); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sbg-dot { fill: var(--weiss); }

.section-stellen-banner-kompakt { padding: 44px 0; }
.section-stellen-banner-kompakt h1 { color: var(--weiss); margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 26px; }
.section-stellen-banner-kompakt p { color: #f5ddd0; margin: 0; max-width: 640px; }

.stellen-slider { position: relative; }
.stellen-slider-label {
    position: absolute; top: -11px; left: 20px; z-index: 2;
    background: var(--gold-dunkel); color: var(--weiss);
}
.stellen-slider-viewport {
    position: relative;
    min-height: 210px;
    background: var(--weiss);
    border: 1px solid var(--gold-border);
    border-radius: var(--radius);
    box-shadow: var(--schatten-gold);
    overflow: hidden;
}
.stellen-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 24px 22px;
    color: var(--text);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease;
}
.stellen-slide.aktiv { opacity: 1; visibility: visible; }
.stellen-slide:hover { text-decoration: none; }
.stellen-slide h3 { margin: 2px 0 0; font-size: 18px; }
.stellen-slide-link { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--blau); display: flex; align-items: center; }

.stellen-slider-punkte { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.stellen-punkt { width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; background: var(--border); cursor: pointer; transition: width .2s ease, background-color .2s ease; }
.stellen-punkt.aktiv { width: 22px; background: var(--blau); }

@media (max-width: 800px) {
    .stellen-banner-grid { grid-template-columns: 1fr; }
    .stellen-banner-text p { max-width: none; }
}

/* Footer */
.site-footer { background: var(--text); color: #d9c7b8; padding: 44px 0 18px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-inner h4 { color: var(--weiss); margin: 0 0 12px; font-family: var(--schrift-text); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.footer-inner a { display: block; color: #d9c7b8; margin-bottom: 8px; font-weight: 400; }
.footer-inner a:hover { color: var(--weiss); }
.logo-footer { display: inline-flex; margin-bottom: 12px; color: var(--weiss); }
.logo-footer span { color: #eba57e; }
.footer-bottom { text-align: center; font-size: 13px; color: #a68d7b; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); }

.footer-cookie-link { display: block; background: none; border: none; padding: 0; margin: 0 0 8px; color: #d9c7b8; font-weight: 400; font-size: 15px; font-family: inherit; cursor: pointer; text-align: left; }
.footer-cookie-link:hover { color: var(--weiss); text-decoration: underline; }

/* Cookie-Consent-Banner */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background: var(--text);
    color: #d9c7b8;
    box-shadow: 0 -6px 24px rgba(58, 42, 31, 0.25);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.cookie-banner-text { flex: 1 1 420px; min-width: 0; }
.cookie-banner-text strong { color: var(--weiss); display: block; margin-bottom: 4px; font-family: var(--schrift-titel); font-size: 17px; }
.cookie-banner-text p { margin: 0; font-size: 14px; }
.cookie-banner-text a { color: var(--weiss); text-decoration: underline; }
.cookie-banner-aktionen { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto; }
.cookie-banner-aktionen .btn-outline { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.5); }
.cookie-banner-aktionen .btn-outline:hover { background: rgba(255,255,255,.12); border-color: var(--weiss); }

@media (max-width: 700px) {
    .cookie-banner-inner { padding: 18px 16px; }
    .cookie-banner-aktionen { width: 100%; }
    .cookie-banner-aktionen .btn-outline, .cookie-banner-aktionen .btn-primary { flex: 1; }
}

@media (max-width: 800px) {
    .nav-toggle { display: flex; align-items: center; justify-content: center; }

    .main-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: var(--weiss);
        padding: 12px 20px 18px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--schatten);
    }
    .main-nav.nav-offen { display: flex; }
    .main-nav a { padding: 10px 4px; }
    .main-nav a.nav-cta { text-align: center; margin-top: 8px; }

    .hero-grid { gap: 24px; }
    .hero-illustration { display: none; }
    .hero h1 { font-size: 28px; }
    .hero { padding: 40px 0 44px; }
    .search-box { padding: 16px; }
    .btn-search { width: 100%; justify-content: center; }

    .profil-grid { grid-template-columns: 1fr; }
    .profil-kopf { flex-wrap: wrap; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }

    .anwalt-card { flex-direction: column; align-items: flex-start; }
    .anwalt-aktionen { flex-direction: row; width: 100%; }
    .anwalt-aktionen a { flex: 1; justify-content: center; }

    .ratgeber-artikel { padding: 22px 18px; }
    .ratgeber-artikel h1 { font-size: 24px; }

    /* Tabellen horizontal scrollbar machen, damit auf Handys nichts abgeschnitten wird */
    .tabelle-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.admin-tabelle { min-width: 640px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero h1 { font-size: 24px; }
    .search-field { flex: 1 1 100%; }
    .vorteile-grid, .kategorie-grid, .schritte-grid, .empfohlen-grid, .ratgeber-grid { grid-template-columns: 1fr; }
    .portal-grid { grid-template-columns: 1fr; }
    .admin-stat-card { flex: 1 1 100%; }
    .anwalt-card { padding: 16px; }
    .profil-kopf { flex-direction: column; align-items: flex-start; text-align: left; }
}
