/* justiz.teslanow.de – Themenseiten § 826 BGB (03.12.2026)
   Eigenständige Vorlage: lädt weder style.css noch kanzlei.css, damit Bestandsänderungen hier nichts verschieben
   und die Reihe später als Ganzes umziehen kann. Farben und Schriften wie die Verfahrensdokumentation. */
:root {
    --t8-papier: #f4f1ec; --t8-papier-2: #ece8e0; --t8-weiss: #fff; --t8-flaeche: #faf8f3;
    --t8-tinte: #1a1d23; --t8-text: #2c2f35; --t8-grau: #5f6268; --t8-linie: #d6d2cc; --t8-linie-2: #e6e1d8;
    --t8-wein: #6b1f2c; --t8-wein-2: #8a3540; --t8-gold: #a08442; --t8-gold-dunkel: #6d5a2c; --t8-gold-hell: #f5efdc;
    --t8-serif: "Iowan Old Style", "Apple Garamond", Baskerville, "Source Serif Pro", Charter, Georgia, "Times New Roman", serif;
    --t8-sans: -apple-system, BlinkMacSystemFont, Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --t8-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --t8-breit: 76rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--t8-papier); color: var(--t8-text); font: 400 1.0625rem/1.65 var(--t8-serif); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--t8-wein); outline-offset: 2px; }
a { color: var(--t8-wein); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(107, 31, 44, .38); }
a:hover { color: var(--t8-wein-2); text-decoration-color: currentColor; }
.t8-skip { position: absolute; left: 1rem; top: -4rem; z-index: 60; padding: .6rem 1rem; background: var(--t8-tinte); color: #fff; font: 600 .9rem/1 var(--t8-sans); border-radius: 4px; text-decoration: none; }
.t8-skip:focus { top: 1rem; color: #fff; }

/* Kopf: Startlink und die Reihe § 826 BGB – ohne Terminbanner, Badge und Sprachumschalter */
.t8-kopf { background: rgba(244, 241, 236, .96); border-bottom: 1px solid var(--t8-linie); }
.t8-kopf__zeile { max-width: var(--t8-breit); margin: 0 auto; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.t8-marke { display: inline-flex; align-items: center; gap: .65rem; color: var(--t8-tinte); text-decoration: none; }
.t8-marke:hover { color: var(--t8-wein); }
.t8-marke__zeichen { flex: none; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 4px; background: var(--t8-tinte); color: #c9a861; font: 600 1.15rem/1 var(--t8-serif); }
.t8-marke__text { display: flex; flex-direction: column; gap: 2px; font: 600 1.02rem/1.1 var(--t8-serif); }
.t8-marke__text small { font: 400 .72rem/1.2 var(--t8-mono); color: var(--t8-grau); }
.t8-kopf__fall { font: 500 .82rem/1.3 var(--t8-sans); color: var(--t8-grau); text-decoration: none; text-align: right; }
.t8-kopf__fall:hover { color: var(--t8-wein); text-decoration: underline; }
.t8-reihe { border-top: 1px solid var(--t8-linie-2); }
.t8-reihe__innen { max-width: var(--t8-breit); margin: 0 auto; padding: 0 1.25rem; display: flex; align-items: stretch; gap: .15rem; overflow-x: auto; scrollbar-width: thin; }
.t8-reihe__titel { flex: none; align-self: center; margin: 0 .6rem 0 0; font: 600 .7rem/1 var(--t8-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t8-wein); white-space: nowrap; }
.t8-reihe ul { display: flex; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.t8-reihe a { display: block; padding: .8rem .65rem .7rem; border-bottom: 2px solid transparent; color: var(--t8-text); font: 500 .86rem/1.2 var(--t8-sans); text-decoration: none; white-space: nowrap; }
.t8-reihe a:hover { color: var(--t8-wein); border-bottom-color: rgba(107, 31, 44, .3); }
.t8-reihe a[aria-current="page"] { color: var(--t8-tinte); font-weight: 650; border-bottom-color: var(--t8-wein); }
@media (min-width: 64rem) {
    .t8-kopf { position: sticky; top: 0; z-index: 30; backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px); }
    html { scroll-padding-top: 8rem; }
}

/* Seitenkopf */
.t8-hero { max-width: var(--t8-breit); margin: 0 auto; padding: 2.4rem 1.25rem 1.6rem; }
.t8-krumen ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1.4rem; padding: 0; list-style: none; font: 500 .8rem/1.4 var(--t8-sans); color: var(--t8-grau); }
.t8-krumen li + li::before { content: "›"; margin-right: .35rem; color: var(--t8-gold); }
.t8-krumen a { color: var(--t8-grau); text-decoration-color: rgba(95, 98, 104, .35); }
.t8-krumen [aria-current] { color: var(--t8-tinte); }
.t8-hero h1 { max-width: 30ch; margin: 0 0 .8rem; font: 700 clamp(2rem, 1.45rem + 2.2vw, 3.3rem)/1.08 var(--t8-serif); letter-spacing: -.018em; color: var(--t8-tinte); text-wrap: balance; }
.t8-unterzeile { max-width: 46rem; margin: 0 0 1.1rem; font: 400 clamp(1.1rem, 1rem + .45vw, 1.3rem)/1.45 var(--t8-serif); color: var(--t8-grau); }
.t8-stand { display: inline-flex; align-items: center; gap: .55rem; margin: 0; font: 500 .74rem/1 var(--t8-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--t8-wein); }
.t8-stand::before { content: ""; width: 1.4rem; height: 1px; background: var(--t8-gold); }
.t8-az { white-space: nowrap; }

/* Rumpf: Vorspann, Inhaltsverzeichnis (breit: links mitlaufend), Seitentext */
.t8-rumpf { max-width: var(--t8-breit); margin: 0 auto; padding: 0 1.25rem 1rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
@media (min-width: 68rem) {
    .t8-rumpf { grid-template-columns: 15.5rem minmax(0, 47rem); justify-content: space-between; column-gap: 3.5rem; row-gap: 1.25rem; }
    .t8-vorspann { grid-column: 2; grid-row: 1; }
    .t8-inhalt { grid-column: 1; grid-row: 1 / span 2; align-self: start; position: sticky; top: 7.25rem; max-height: calc(100vh - 8.5rem); overflow: auto; }
    .t8-haupt { grid-column: 2; grid-row: 2; }
}
.t8-herausgeber { margin: 0 0 1.1rem; padding: .85rem 1.05rem; border: 1px dashed #c9c2b6; border-radius: 6px; font: 400 .84rem/1.55 var(--t8-sans); color: var(--t8-grau); }
.t8-herausgeber p { margin: 0; }
.t8-herausgeber strong { color: var(--t8-tinte); }
.t8-kurz { margin: 0; padding: 1.35rem 1.5rem 1.4rem; background: var(--t8-weiss); border: 1px solid var(--t8-linie); border-left: 4px solid var(--t8-wein); border-radius: 6px; font-size: 1.14rem; line-height: 1.62; color: var(--t8-tinte); box-shadow: 0 1px 0 rgba(26, 29, 35, .03); }
.t8-kurz p { margin: 0; }
.t8-kurz__kennung { display: block; margin-bottom: .55rem; font: 600 .72rem/1 var(--t8-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t8-wein); }
.t8-inhalt { padding: 1.1rem 1.15rem; background: var(--t8-flaeche); border: 1px solid var(--t8-linie-2); border-radius: 6px; font-family: var(--t8-sans); }
.t8-inhalt__titel { margin: 0 0 .7rem; font: 600 .72rem/1 var(--t8-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t8-wein); }
.t8-inhalt ol { margin: 0; padding: 0; list-style: none; counter-reset: t8i; }
.t8-inhalt li { counter-increment: t8i; display: flex; gap: .55rem; margin: 0; padding: .28rem 0; font-size: .86rem; line-height: 1.38; }
.t8-inhalt li::before { content: counter(t8i, decimal-leading-zero); flex: none; min-width: 1.6rem; font: 500 .72rem/1.65 var(--t8-mono); color: var(--t8-gold); }
.t8-inhalt a { color: var(--t8-text); text-decoration: none; }
.t8-inhalt a:hover { color: var(--t8-wein); text-decoration: underline; }
@media (max-width: 67.99rem) { .t8-inhalt ol { columns: 2 16rem; column-gap: 1.5rem; } .t8-inhalt li { break-inside: avoid; } }

/* Seitentext */
.t8-haupt { counter-reset: t8a; font-size: 1.1rem; line-height: 1.7; }
.t8-abschnitt { margin-top: 2.6rem; padding-top: 2.2rem; border-top: 1px solid var(--t8-linie); }
.t8-haupt > .t8-abschnitt:first-child { margin-top: 1rem; }
.t8-abschnitt > h2 { margin: 0 0 1.05rem; font: 700 clamp(1.45rem, 1.2rem + 1vw, 1.95rem)/1.2 var(--t8-serif); letter-spacing: -.01em; color: var(--t8-tinte); text-wrap: balance; }
.t8-abschnitt > h2::before { counter-increment: t8a; content: counter(t8a, decimal-leading-zero); display: block; margin-bottom: .55rem; font: 600 .74rem/1 var(--t8-mono); letter-spacing: .16em; color: var(--t8-gold); }
.t8-weiter > h2::before { content: "§ 826 BGB"; counter-increment: none; }
.t8-haupt h3 { margin: 1.9rem 0 .55rem; font: 700 1.2rem/1.32 var(--t8-serif); color: var(--t8-tinte); }
.t8-haupt p { margin: 0 0 1.05rem; }
.t8-haupt ul, .t8-haupt ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
.t8-haupt li { margin: .4rem 0; padding-left: .15rem; }
.t8-haupt li::marker { color: var(--t8-gold); }
.t8-haupt ol > li::marker { font: 600 .9em var(--t8-mono); }
.t8-haupt strong { color: var(--t8-tinte); }
.t8-haupt em { font-style: italic; }
.t8-ext::after { content: "↗"; display: inline-block; margin-left: .12em; font: 400 .72em/1 var(--t8-sans); color: var(--t8-gold); text-decoration: none; }

/* Tabellen: Kopfzeile, Beleg in der letzten Spalte, mobil seitlich scrollbar */
.t8-tabelle { margin: 1.3rem 0 1.6rem; overflow-x: auto; background: var(--t8-weiss); border: 1px solid var(--t8-linie); border-radius: 6px; -webkit-overflow-scrolling: touch; }
.t8-tabelle table { width: 100%; min-width: 34rem; border-collapse: collapse; font: 400 .9rem/1.48 var(--t8-sans); color: var(--t8-text); }
.t8-tabelle th { padding: .7rem .85rem; background: var(--t8-flaeche); border-bottom: 1px solid var(--t8-linie); text-align: left; vertical-align: bottom; font: 600 .7rem/1.3 var(--t8-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--t8-grau); }
.t8-tabelle td { padding: .72rem .85rem; border-bottom: 1px solid var(--t8-linie-2); vertical-align: top; }
.t8-tabelle tr:last-child td { border-bottom: 0; }
.t8-tabelle td:first-child { font-weight: 600; color: var(--t8-tinte); }
.t8-tabelle td.t8-beleg { font-size: .82rem; color: var(--t8-grau); }
.t8-tabelle td.t8-beleg a { color: var(--t8-wein); }

/* Kästen aus dem Seitentext */
.t8-norm { margin: 1.4rem 0 1.6rem; padding: 1.2rem 1.4rem 1.1rem; background: var(--t8-gold-hell); border-left: 3px solid var(--t8-gold); border-radius: 0 6px 6px 0; }
.t8-norm p { margin: 0 0 .55rem; }
.t8-norm p:last-child { margin-bottom: 0; }
.t8-norm__titel { font: 600 .8rem/1.4 var(--t8-mono); letter-spacing: .02em; color: var(--t8-gold-dunkel); }
.t8-norm__titel strong { color: inherit; font-weight: 600; }
.t8-norm__text { font-size: 1.12rem; line-height: 1.62; color: var(--t8-tinte); }
.t8-norm__quelle { font: 400 .84rem/1.45 var(--t8-sans); color: var(--t8-grau); }
.t8-stand-kasten { margin: 1.2rem 0 1.6rem; padding: 1.1rem 1.3rem 1.15rem; background: var(--t8-weiss); border: 1px solid var(--t8-linie); border-top: 3px solid var(--t8-wein); border-radius: 6px; font: 400 .95rem/1.55 var(--t8-sans); }
.t8-stand-kasten p { margin: 0 0 .4rem; }
.t8-stand-kasten p:last-child { margin-bottom: 0; }
.t8-stand-kasten__titel { font: 600 .72rem/1.3 var(--t8-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--t8-wein); }
.t8-stand-kasten__titel strong { color: inherit; font-weight: 600; }
.t8-kurzschema { margin: 1.2rem 0 1.4rem; padding: 1.3rem 1.45rem; overflow-x: auto; background: var(--t8-tinte); color: #efe9dd; border-radius: 6px; font: 400 .84rem/1.62 var(--t8-mono); white-space: pre; tab-size: 4; }

/* Häufige Fragen */
.t8-faq h3 { margin: 1.5rem 0 .45rem; padding-top: 1.35rem; border-top: 1px solid var(--t8-linie-2); font: 700 1.1rem/1.38 var(--t8-serif); }
.t8-faq h2 + h3 { margin-top: 0; padding-top: 0; border-top: 0; }

/* Weiterlesen */
.t8-weiter__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); gap: .8rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.t8-weiter__liste li { position: relative; margin: 0; padding: 1.05rem 1.1rem 1.1rem; background: var(--t8-weiss); border: 1px solid var(--t8-linie); border-radius: 6px; transition: border-color .15s ease, transform .15s ease; }
.t8-weiter__liste li:hover { border-color: var(--t8-wein); transform: translateY(-1px); }
.t8-weiter__liste a { display: block; margin-bottom: .4rem; font: 700 1.03rem/1.3 var(--t8-serif); color: var(--t8-wein); text-decoration: none; }
.t8-weiter__liste a::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.t8-weiter__liste span { display: block; font: 400 .86rem/1.5 var(--t8-sans); color: var(--t8-grau); }
@media (prefers-reduced-motion: reduce) { .t8-weiter__liste li { transition: none; } .t8-weiter__liste li:hover { transform: none; } }

/* Rechts- und Korrekturhinweis */
.t8-hinweise { margin-top: 2.6rem; display: grid; gap: .8rem; }
.t8-hinweis { margin: 0; padding: 1rem 1.2rem; background: var(--t8-papier-2); border-radius: 6px; font: 400 .88rem/1.58 var(--t8-sans); color: var(--t8-text); }
.t8-hinweis p { margin: 0; }

/* Fuß: Reihe, Verfahren, Service – ohne Badge und Terminkasten */
.t8-fuss { margin-top: 4.5rem; padding: 3rem 1.25rem 2.2rem; background: var(--t8-tinte); color: rgba(244, 241, 236, .78); font: 400 .9rem/1.5 var(--t8-sans); }
.t8-fuss__innen { max-width: var(--t8-breit); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.2rem 2rem; }
.t8-fuss__titel { display: flex; align-items: center; gap: .6rem; margin: 0 0 .95rem; font: 600 .7rem/1 var(--t8-mono); letter-spacing: .15em; text-transform: uppercase; color: #f4f1ec; }
.t8-fuss__titel::before { content: ""; flex: none; width: 18px; height: 1px; background: #b89758; }
.t8-fuss ul { margin: 0; padding: 0; list-style: none; }
.t8-fuss li { margin: 0; padding: .2rem 0; }
.t8-fuss a { color: rgba(244, 241, 236, .78); text-decoration: none; }
.t8-fuss a:hover, .t8-fuss a:focus-visible { color: #fff; text-decoration: underline; text-decoration-color: #b89758; text-underline-offset: 3px; }
.t8-fuss a[aria-current="page"] { color: #e9dfc9; font-weight: 600; }
.t8-fuss__unten { max-width: var(--t8-breit); margin: 2.4rem auto 0; padding-top: 1.2rem; border-top: 1px solid rgba(244, 241, 236, .12); font-size: .8rem; color: rgba(244, 241, 236, .55); }

@media (max-width: 40rem) {
    .t8-kopf__fall { display: none; }
    .t8-hero { padding-top: 1.7rem; }
    .t8-haupt { font-size: 1.05rem; }
    .t8-kurz { padding: 1.1rem 1.15rem; font-size: 1.06rem; }
    .t8-norm, .t8-stand-kasten { padding-left: 1rem; padding-right: 1rem; }
}

/* Druck: Kopf, Fuß, Navigation weg; auf /826-bgb-schema nur das Kurzschema */
@media print {
    .t8-skip, .t8-kopf, .t8-fuss, .t8-inhalt, .t8-weiter { display: none !important; }
    body { background: #fff; color: #000; font-size: 10.5pt; }
    a { color: #000; text-decoration: none; }
    .t8-rumpf { display: block; padding: 0; }
    .t8-kurz, .t8-tabelle, .t8-stand-kasten, .t8-norm { box-shadow: none; break-inside: avoid; }
    .t8-ext::after { content: none; }
    .t8--schema .t8-hero, .t8--schema .t8-vorspann, .t8--schema .t8-haupt > :not(.t8-abschnitt--kurzschema) { display: none !important; }
    .t8--schema .t8-abschnitt--kurzschema { margin: 0; padding: 0; border: 0; }
    .t8--schema .t8-abschnitt--kurzschema > h2::before { content: none; }
    .t8-kurzschema { background: #fff; color: #000; border: 1px solid #000; white-space: pre-wrap; font-size: 9.5pt; }
}
