/* rechtsanwalt-eisenach.com – Layout (statisch)
   Erscheinungsbild aus dem bisherigen Child-Theme schleip-child 1.0.8 übernommen:
   Anwaltsblau, Messing, warmes Papier, Lora + Inter lokal. */

/* ---------- 1. Tokens ---------- */
:root {
    --sc-ink: #15263F;
    --sc-ink-2: #1E3350;
    --sc-paper: #F4F2EC;
    --sc-paper-2: #EEEBE1;
    --sc-paper-soft: #FBFAF6;
    --sc-surface: #FFFFFF;
    --sc-brass: #A6803F;
    --sc-brass-dark: #8A6A30;
    --sc-brass-bright: #C8A05A;
    --sc-text: #2A3340;
    --sc-muted: #5F6779;
    --sc-line: #E1DBCF;
    --sc-line-dark: rgba(255,255,255,.18);
    --sc-serif: "Lora", Georgia, "Times New Roman", serif;
    --sc-sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
    --sc-maxw: 1140px;
    --sc-maxw-narrow: 820px;
    --sc-radius: 4px;
    --sc-section-y: clamp(3.5rem, 7vw, 6rem);
    --sc-shadow-lift: 0 2px 4px rgba(21,38,63,.06), 0 20px 40px -20px rgba(21,38,63,.40);
    --sc-ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--sc-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--sc-text);
    background: var(--sc-paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--sc-serif); color: var(--sc-ink); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0 0 1rem; }
a { color: var(--sc-brass-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--sc-ink); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sc-brass); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sc-ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sc-container { max-width: var(--sc-maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ---------- 3. Kopf / Navigation ---------- */
.kopf { background: var(--sc-paper-soft); border-bottom: 1px solid var(--sc-line); position: sticky; top: 0; z-index: 50; }
.kopf__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.kopf__logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; }
.kopf__logo img { width: 44px; height: 44px; border-radius: 8px; }
.kopf__name { font-family: var(--sc-serif); font-weight: 600; font-size: 1.22rem; color: var(--sc-ink); line-height: 1.15; display: block; }
.kopf__sub { font-size: .8rem; color: var(--sc-muted); display: block; letter-spacing: .02em; }
.nav__liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav__liste a { font-weight: 500; font-size: .95rem; color: var(--sc-ink); text-decoration: none; display: block; padding: .3rem 0; }
.nav__liste a:hover, .nav__liste a[aria-current="page"] { color: var(--sc-brass-dark); }
@media (min-width: 901px) {
    .nav__liste a::after { content: ""; display: block; height: 2px; width: 0; background: var(--sc-brass); transition: width .25s var(--sc-ease); margin-top: 4px; }
    .nav__liste a:hover::after, .nav__liste a[aria-current="page"]::after { width: 100%; }
}
.burger { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.burger span { display: block; width: 26px; height: 2px; background: var(--sc-ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
    .burger { display: block; }
    .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sc-paper-soft); border-bottom: 1px solid var(--sc-line); display: none; }
    .nav.offen { display: block; }
    .nav__liste { flex-direction: column; gap: 0; padding: .5rem clamp(1.25rem, 5vw, 2.5rem) 1rem; }
    .nav__liste a { padding: .75rem 0; border-bottom: 1px solid var(--sc-line); }
    .nav__liste li:last-child a { border-bottom: 0; }
}
@media (max-width: 420px) { .kopf__sub { display: none; } .kopf__name { font-size: 1.05rem; } }

/* ---------- 4. Bausteine ---------- */
.sc-eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-brass-dark); display: inline-flex; align-items: center; gap: .65rem; margin: 0 0 1rem; }
.sc-eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; display: inline-block; }
.sc-section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; }
.sc-lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.7; }
.sc-btn { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--sc-sans); font-weight: 600; font-size: .98rem; line-height: 1; padding: .95rem 1.6rem; border-radius: var(--sc-radius); border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .2s var(--sc-ease), background-color .2s var(--sc-ease), color .2s var(--sc-ease), border-color .2s var(--sc-ease); }
.sc-btn--primary { background: var(--sc-brass-dark); color: #fff; }
.sc-btn--primary:hover { background: var(--sc-brass-bright); color: #1a1408; transform: translateY(-1px); }
.sc-btn--ghost { background: transparent; color: #fff; border-color: var(--sc-line-dark); }
.sc-btn--ghost:hover { border-color: var(--sc-brass-bright); color: var(--sc-brass-bright); }
.sc-btn--dark { background: var(--sc-ink); color: #fff; }
.sc-btn--dark:hover { background: var(--sc-ink-2); color: #fff; transform: translateY(-1px); }

/* ---------- 5. Hero ---------- */
.sc-hero { position: relative; background: var(--sc-ink); color: #EAF0F7; overflow: hidden; isolation: isolate; }
.sc-hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.045) 0, rgba(255,255,255,.045) 1px, transparent 1px, transparent 34px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 100%); pointer-events: none; z-index: -1; }
.sc-hero::after { content: ""; position: absolute; top: -40%; right: -10%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(200,160,90,.16), transparent 70%); pointer-events: none; z-index: -1; }
.sc-hero__inner { display: grid; gap: clamp(1rem, 3vw, 2rem); padding-block: clamp(4.5rem, 11vw, 8rem); justify-items: start; }
.sc-hero__inner > * { max-width: 820px; }
.sc-hero .sc-eyebrow { color: var(--sc-brass-bright); }
.sc-hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.05; margin: 0; }
.sc-hero__lead-word { display: block; font-size: clamp(1rem, 2vw, 1.35rem); font-family: var(--sc-sans); font-weight: 500; letter-spacing: .04em; color: var(--sc-brass-bright); margin-bottom: .5rem; }
.sc-hero .sc-lead { color: #C7D2E0; max-width: 56ch; margin: 0; }
.sc-hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .5rem; align-items: center; }
.sc-hero__note { font-size: .88rem; color: #A9B5C6; display: inline-flex; align-items: center; gap: .5rem; }
.sc-hero__note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-brass-bright); display: inline-block; }

/* ---------- 6. Werte ---------- */
.sc-values { background: var(--sc-paper-2); border-bottom: 1px solid var(--sc-line); }
.sc-values__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sc-line); border-inline: 1px solid var(--sc-line); }
.sc-value { background: var(--sc-paper-2); padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem); }
.sc-value h2 { font-size: 1.12rem; margin: 0 0 .4rem; }
.sc-value p { margin: 0; color: var(--sc-muted); font-size: .96rem; line-height: 1.6; }
.sc-value__num { font-family: var(--sc-serif); color: var(--sc-brass-dark); font-size: .95rem; font-weight: 600; display: block; margin-bottom: .75rem; }

/* ---------- 7. Rechtsgebiete ---------- */
.sc-areas { padding-block: var(--sc-section-y); }
.sc-head { max-width: 640px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sc-areas__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.sc-area { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.6rem 1.5rem; position: relative; transition: transform .25s var(--sc-ease), box-shadow .25s var(--sc-ease), border-color .25s var(--sc-ease); }
.sc-area::before { content: ""; position: absolute; left: 0; top: 1.6rem; bottom: 1.6rem; width: 3px; background: var(--sc-brass); border-radius: 3px; opacity: 0; transition: opacity .25s var(--sc-ease); }
.sc-area:hover { transform: translateY(-3px); box-shadow: var(--sc-shadow-lift); border-color: transparent; }
.sc-area:hover::before { opacity: 1; }
.sc-area h3 { font-size: 1.15rem; margin: 0 0 .45rem; }
.sc-area p { margin: 0; color: var(--sc-muted); font-size: .94rem; line-height: 1.6; }

/* ---------- 8. Kanzlei / Team ---------- */
.sc-firm { background: var(--sc-paper-soft); border-block: 1px solid var(--sc-line); padding-block: var(--sc-section-y); scroll-margin-top: 80px; }
.sc-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.sc-person { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); overflow: hidden; }
.sc-person__photo { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--sc-ink), var(--sc-ink-2)); }
.sc-person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sc-person__body { padding: 1.2rem 1.3rem 1.4rem; }
.sc-person__name { font-size: 1.18rem; margin: 0 0 .15rem; }
.sc-person__role { color: var(--sc-brass-dark); font-weight: 600; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 .8rem; }
.sc-person__text { margin: 0; color: var(--sc-muted); font-size: .94rem; line-height: 1.6; }
.sc-person__fields { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.sc-person__fields li { font-size: .9rem; padding: .18rem 0 .18rem 1rem; position: relative; break-inside: avoid; }
.sc-person__fields li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--sc-brass); border-radius: 1px; }
.sc-person__link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: .92rem; }

/* ---------- 9. Kontakt ---------- */
.sc-contact { padding-block: var(--sc-section-y); scroll-margin-top: 80px; }
.sc-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.sc-contact__info { max-width: 40ch; }
.sc-contact dl { margin: 1.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1.25rem; }
.sc-contact dt { color: var(--sc-muted); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding-top: .15rem; }
.sc-contact dd { margin: 0; font-size: 1.02rem; color: var(--sc-ink); }
.sc-contact dd a { color: var(--sc-ink); font-weight: 500; }
.sc-contact dd a:hover { color: var(--sc-brass-dark); }
.sc-contact__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.karte { display: block; border-radius: var(--sc-radius); overflow: hidden; border: 1px solid var(--sc-line); background: var(--sc-paper-2); }
.karte img { width: 100%; }
.karte__credit { font-size: .8rem; color: var(--sc-muted); margin: .5rem 0 0; }
.karte__credit a { color: var(--sc-muted); }

/* ---------- 10. Unterseiten ---------- */
.seitenkopf { background: var(--sc-ink); color: #EAF0F7; padding-block: clamp(2.5rem, 6vw, 4rem); position: relative; overflow: hidden; isolation: isolate; }
.seitenkopf::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0, rgba(255,255,255,.04) 1px, transparent 1px, transparent 34px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); z-index: -1; }
.seitenkopf .sc-eyebrow { color: var(--sc-brass-bright); margin-bottom: .6rem; }
.seitenkopf h1 { color: #fff; margin: 0; font-size: clamp(2rem, 4.5vw, 3rem); }
.inhalt { max-width: var(--sc-maxw-narrow); margin-inline: auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 2.5rem) var(--sc-section-y); }
.inhalt h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; }
.inhalt h2:first-child { margin-top: 0; }
.inhalt--breit { max-width: var(--sc-maxw); }
.zwei { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.karte-box { background: var(--sc-surface); border: 1px solid var(--sc-line); border-radius: var(--sc-radius); padding: 1.6rem 1.6rem 1.4rem; }
.karte-box h2, .karte-box h3 { margin-top: 0; }
.karte-box + .karte-box { margin-top: 1.25rem; }
.schild { max-width: 320px; border-radius: var(--sc-radius); border: 1px solid var(--sc-line); margin-top: 1.25rem; }
.kooperation p { margin: 0; }
.kooperation__name { font-family: var(--sc-serif); font-size: 1.3rem; color: var(--sc-ink); font-weight: 600; margin-bottom: 1rem !important; }

/* Rechtstexte (Bausteine) */
.recht__lead { font-size: 1.05rem; color: var(--sc-muted); margin-bottom: 1.5rem; }
.recht .feat, .recht .lead { background: var(--sc-surface); border: 1px solid var(--sc-line); border-left: 3px solid var(--sc-brass); border-radius: var(--sc-radius); padding: 1.3rem 1.5rem; margin-bottom: 1.1rem; }
.recht .lead p { margin: .6rem 0 0; }
.recht h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.recht h3 ~ h3 { margin-top: 1.1rem; }
.recht h4 { font-family: var(--sc-sans); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-muted); margin: 1rem 0 .3rem; }
.recht p:last-child { margin-bottom: 0; }
.recht ul { margin: .3rem 0 1rem; padding-left: 1.2rem; }
.recht li { margin-bottom: .25rem; }
.recht__stand { color: var(--sc-muted); font-size: .9rem; margin-top: 1.5rem; }
.recht code { font-size: .88em; background: var(--sc-paper-2); padding: .05em .35em; border-radius: 3px; }

/* 404 */
.fehler { max-width: var(--sc-maxw-narrow); margin-inline: auto; padding: var(--sc-section-y) clamp(1.25rem, 5vw, 2.5rem); }
.fehler h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }

/* ---------- 11. Footer ---------- */
.fuss { background: var(--sc-ink); color: #B7C3D3; font-size: .95rem; }
.fuss__in { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.fuss h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .8rem; }
.fuss p { margin: 0 0 .5rem; }
.fuss a { color: var(--sc-brass-bright); }
.fuss a:hover { color: #fff; }
.fuss__name { font-family: var(--sc-serif); color: #fff; font-size: 1.15rem; }
.fuss__copy { border-top: 1px solid var(--sc-line-dark); font-size: .86rem; }
.fuss__copy-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding-block: 1.2rem; }
.fuss__links { display: flex; gap: 1.25rem; }
.fuss__ver { opacity: .7; }

/* ---------- 12. Scroll-Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--sc-ease), transform .6s var(--sc-ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. Responsive ---------- */
@media (max-width: 860px) {
    .sc-values__grid { grid-template-columns: 1fr; }
    .sc-contact__grid, .zwei { grid-template-columns: 1fr; }
    .sc-person__fields { columns: 1; }
    .fuss__in { grid-template-columns: 1fr; gap: 1.5rem; }
}
@media (max-width: 600px) {
    .sc-hero__actions { flex-direction: column; align-items: stretch; }
    .sc-hero__actions .sc-btn { justify-content: center; }
    .sc-hero__note { justify-content: center; margin-top: .25rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
