/* ============================================================================
 * Nur Seite "Website fuer Anwaelte" (body.anwaelte). Das gemeinsame Design steckt in theme.css, die wiederverwendeten
 * Startseiten-Bausteine (Webdesign-Text, Leistungskarten, Ueber mich, Kontakt) in home.css.
 * ========================================================================== */

/* ---------- Hero ---------- */
/* Die Headline steht in zwei Zeilen ("Professionelle Website" / "für Anwälte und Kanzleien") und nutzt die volle Breite */
body.anwaelte .anw-hero-text { max-width: 64rem; }
body.anwaelte .anw-title {
    font-size: clamp(1.75rem, 5vw, 4.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}
body.anwaelte .anw-subline {
    font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
    line-height: 1.6;
    max-width: 38rem;
    text-wrap: pretty;
}
@media (max-width: 1023px) { body.anwaelte .anw-subline { margin-inline: auto; } }

/* Beleg-Zeile unter dem Button */
body.anwaelte .hero-proof {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: center;
    color: var(--muted-on-dark);
    font-size: 0.875rem;
}
@media (min-width: 1024px) { body.anwaelte .hero-proof { justify-content: flex-start; } }
body.anwaelte .hero-proof li { display: inline-flex; align-items: center; gap: 0.4rem; }
body.anwaelte .hero-proof svg { flex-shrink: 0; color: #fff; }

/* Sichtbare TODO-Markierungen (Platzhalter fuer fehlende Angaben) */
body.anwaelte .todo-inline {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.35rem 0.75rem;
    border: 2px dashed #a16207;
    border-radius: 8px;
    background: #fde047;
    color: var(--ink-blue);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Leistungen: direkt an den weissen Abschnitt davor anschliessen ---------- */
body.anwaelte #kanzlei-webdesign,
body.anwaelte #individuelles-webdesign { padding-bottom: clamp(3rem, 6vw, 5rem); }

/* ---------- Preise ---------- */
body.anwaelte #preise.price { padding: clamp(4rem, 9vw, 9rem) 0; }
body.anwaelte .price-slogan {
    max-width: 62rem;
    font-size: clamp(2.25rem, 1rem + 5vw, 5.75rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--white);
    text-wrap: balance;
}
body.anwaelte .price-body { max-width: 46rem; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
body.anwaelte .price-body h3 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 600; color: var(--white); margin-bottom: 1.25rem; }
body.anwaelte .price-body p { font-size: 1.0625rem; line-height: 1.75; color: var(--muted-on-dark); }
body.anwaelte .price-body p + p { margin-top: 1.25rem; }
body.anwaelte .price-range { color: var(--white); font-weight: 700; white-space: nowrap; }
body.anwaelte .price-body .btn-primary { margin-top: 2rem; }

/* ---------- Ablauf: sticky Titel links, Schritt-Liste mit mitlaufender Linie rechts ---------- */
body.anwaelte #ablauf.process { padding: clamp(4rem, 9vw, 9rem) 0; }
body.anwaelte .proc-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}
body.anwaelte .proc-title {
    position: sticky;
    top: 7rem;
    font-size: clamp(3.5rem, 1.5rem + 8.5vw, 9.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--ink);
}
body.anwaelte .proc-list { position: relative; list-style: none; margin: 0; padding: 0 0 0 3.25rem; --fill: 100%; }
/* Linie: grauer Verlauf als Spur, schwarze Fuellung darueber */
body.anwaelte .proc-list::before,
body.anwaelte .proc-list::after {
    content: "";
    position: absolute;
    left: 0.6875rem;
    top: 0.9rem;
    width: 2px;
    border-radius: 2px;
}
body.anwaelte .proc-list::before { bottom: 0.9rem; background: #dcdcdc; }
body.anwaelte .proc-list::after { height: var(--fill); max-height: calc(100% - 1.8rem); background: var(--ink); }
body.anwaelte .proc-step { position: relative; padding-bottom: clamp(3rem, 8vw, 7rem); }
body.anwaelte .proc-step:last-child { padding-bottom: 0.5rem; }
body.anwaelte .proc-step::before {
    content: "";
    position: absolute;
    left: -3.25rem;
    top: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
    box-sizing: border-box;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: var(--ink);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
body.anwaelte .proc-num {
    display: block;
    font-size: clamp(2.75rem, 1.5rem + 4vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    transition: color 0.3s ease;
}
body.anwaelte .proc-step h3 { margin-top: 0.75rem; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 600; color: var(--ink); transition: color 0.3s ease; }
body.anwaelte .proc-step p { margin-top: 0.6rem; max-width: 30rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); transition: color 0.3s ease; }

/* Mit JavaScript: noch nicht erreichte Schritte sind gedaempft grau (Text mind. 4.5:1) */
body.anwaelte .proc-live::after { height: var(--fill); max-height: calc(100% - 1.8rem); transition: height 0.12s linear; }
body.anwaelte .proc-live .proc-step:not(.is-reached)::before { background: #fff; border-color: #bdbdbd; }
body.anwaelte .proc-live .proc-step:not(.is-reached) .proc-num { color: #b4b4b4; }
body.anwaelte .proc-live .proc-step:not(.is-reached) h3,
body.anwaelte .proc-live .proc-step:not(.is-reached) p { color: #767676; }

@media (max-width: 899px) {
    body.anwaelte .proc-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    body.anwaelte .proc-title { position: static; font-size: clamp(3.5rem, 18vw, 6rem); }
    body.anwaelte .proc-list { padding-left: 2.75rem; }
    body.anwaelte .proc-list::before, body.anwaelte .proc-list::after { left: 0.4375rem; }
    body.anwaelte .proc-step::before { left: -2.75rem; width: 1.25rem; height: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    body.anwaelte .proc-step::before, body.anwaelte .proc-num, body.anwaelte .proc-step h3, body.anwaelte .proc-step p { transition: none; }
}

/* ---------- Kontakt: direkt hinter "Ueber mich", daher kein zusaetzlicher Abstand oben ---------- */
body.anwaelte #kontakt.contact { padding-top: 0; }

/* ============================================================================
 * Ergaenzungen fuer die Anwaltsseite (Texte, Tabellen, Ratgeber-Links). Neue Klassennamen, bestehende Regeln bleiben unveraendert.
 * ========================================================================== */

/* Links im Fliesstext der hellen Abschnitte und im Preisabschnitt */
body.anwaelte .webdesign-text p a,
body.anwaelte .bx-lead a,
body.anwaelte .bx-text a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
body.anwaelte .webdesign-text p a:hover,
body.anwaelte .bx-lead a:hover,
body.anwaelte .bx-text a:hover { color: var(--accent-text); text-decoration-thickness: 2px; }
body.anwaelte .price-body p a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
body.anwaelte .price-body p a:hover { color: var(--accent-light); }

/* Einleitungstext unter einer zentrierten Ueberschrift; Abschnitt, der direkt an einen hellen Abschnitt anschliesst */
body.anwaelte .anw-lead-center { margin-inline: auto; text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
body.anwaelte .sec-follow { padding-top: 0; }

/* ---------- Tabellen (Probleme, Baukasten-Vergleich) ---------- */
body.anwaelte .cmp-lead { max-width: 46rem; margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-on-dark); }
body.anwaelte .cmp-wrap { margin-top: clamp(2rem, 4vw, 3.5rem); }
body.anwaelte .cmp { width: 100%; border-collapse: collapse; text-align: left; }
body.anwaelte .cmp th,
body.anwaelte .cmp td { padding: 1.1rem 1.5rem 1.1rem 0; vertical-align: top; font-size: 1.0625rem; line-height: 1.6; border-bottom: 1px solid var(--line-dark); }
body.anwaelte .cmp thead th { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); border-bottom-color: rgba(255, 255, 255, 0.4); }
body.anwaelte .cmp tbody th { width: 28%; font-weight: 600; color: var(--white); }
body.anwaelte .cmp td { color: var(--muted-on-dark); }
body.anwaelte .cmp td a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
body.anwaelte .cmp td a:hover { color: var(--accent-light); }

body.anwaelte .cmp-light th,
body.anwaelte .cmp-light td { border-bottom-color: rgba(var(--ink-blue-rgb), 0.16); }
body.anwaelte .cmp-light thead th { color: var(--subtle-on-light); border-bottom-color: var(--ink); }
body.anwaelte .cmp-light tbody th { color: var(--ink); }
body.anwaelte .cmp-light td { color: var(--muted-on-light); }

/* Schmale Bildschirme: jede Zeile wird zu einem Block, die Spaltenueberschrift steht vor dem Wert */
@media (max-width: 719px) {
    body.anwaelte .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    body.anwaelte .cmp,
    body.anwaelte .cmp tbody,
    body.anwaelte .cmp tr,
    body.anwaelte .cmp th,
    body.anwaelte .cmp td { display: block; width: auto; }
    body.anwaelte .cmp tbody th { width: auto; }
    body.anwaelte .cmp tr { padding: 1.25rem 0; border-bottom: 1px solid var(--line-dark); }
    body.anwaelte .cmp-light tr { border-bottom-color: rgba(var(--ink-blue-rgb), 0.16); }
    body.anwaelte .cmp th,
    body.anwaelte .cmp td { padding: 0.2rem 0; border-bottom: 0; }
    body.anwaelte .cmp td { margin-top: 0.6rem; }
    body.anwaelte .cmp td::before { content: attr(data-label); display: block; margin-bottom: 0.1rem; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); }
    body.anwaelte .cmp-light td::before { color: var(--subtle-on-light); }
}

/* ---------- Ablauf: Titel und kurze Einleitung zusammen links (sticky) ---------- */
body.anwaelte .proc-head { position: sticky; top: 7rem; }
body.anwaelte .proc-head .proc-title { position: static; }
body.anwaelte .proc-lead { margin-top: 1.5rem; max-width: 26rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted-on-light); }
@media (max-width: 899px) { body.anwaelte .proc-head { position: static; } }

/* ---------- Kontaktformular: Datenschutzhinweis ---------- */
body.anwaelte .contact-note { margin-top: 1rem; font-size: 0.8125rem; line-height: 1.6; color: var(--muted-on-dark); }
body.anwaelte .contact-note a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Weitere Angebote: Ratgeber-Links ---------- */
body.anwaelte .guides { margin-top: clamp(3rem, 6vw, 5rem); }
body.anwaelte .guides h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 600; line-height: 1.2; color: var(--ink); }
body.anwaelte .guides-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 5vw, 4rem); border-top: 1px solid rgba(var(--ink-blue-rgb), 0.16); }
body.anwaelte .guides-list li { border-bottom: 1px solid rgba(var(--ink-blue-rgb), 0.16); }
body.anwaelte .guides-list a { display: block; padding: 1rem 0; font-size: 1.0625rem; line-height: 1.4; color: var(--ink); text-decoration: none; }
body.anwaelte .guides-list a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 719px) { body.anwaelte .guides-list { grid-template-columns: minmax(0, 1fr); } }
