/* ==========================================================================
   Rechtsanwalt Jörg Hoberück, Insolvenzrecht, Nürnberg
   Haltung: offen, direkt, hell. Geteilter Bildschirm: links ein Foto über die
   volle Höhe, das beim Lesen zum Abschnitt wechselt, rechts der Inhalt.
   Weiß mit Kobaltblau als einzigem Akzent, jede Überschrift endet mit einem
   blauen Punkt wie die Wortmarke. Schrift lokal (DSGVO): Schibsted Grotesk.
   ========================================================================== */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --white: #ffffff;
  --grey: #f3f4f7;
  --tint: #eef1fc;
  --cobalt: #2443c0;
  --cobalt-deep: #1a3295;
  --ink: #16181d;
  --ink-2: #4a4f5c;
  --ink-3: #747a88;
  --line: #e1e4ea;
  --font: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --side: 42vw;
  --px: clamp(1.25rem, 4.5vw, 4.5rem);
  --sec-y: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 60; background: var(--cobalt); color: #fff; padding: 0.8rem 1.1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

h1, h2 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); margin-top: 0.6rem; }
h3 { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
.dot { color: var(--cobalt); }
.tag { font-size: 0.9375rem; font-weight: 600; color: var(--cobalt); }
.intro { color: var(--ink-2); max-width: 36em; margin-top: 1.1rem; }

/* ---------- Bildseite links ---------- */
.visual { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; background: #2a2d33; }
.visual__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 700ms ease; }
.visual__img.is-on { opacity: 1; }
.visual__cap { position: absolute; left: 1.25rem; bottom: 1.25rem; background: var(--white); color: var(--ink); font-size: 0.8125rem; font-weight: 500; padding: 0.45rem 0.75rem; border-radius: 4px; }

/* ---------- Inhaltsseite rechts ---------- */
.page { min-width: 0; display: flex; flex-direction: column; }
.head { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); padding: 0 var(--px); min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand img { width: auto; height: 2.3rem; }
.nav { display: flex; align-items: center; gap: clamp(0.9rem, 1.6vw, 1.6rem); }
.nav a { font-weight: 500; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 0.35rem 0; border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.nav a:hover { color: var(--cobalt); }
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.nav .nav__cta { background: var(--cobalt); color: #fff; padding: 0.55rem 1rem; border-radius: 6px; border-bottom: 0; font-weight: 600; }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="true"] { background: var(--cobalt-deep); color: #fff; }
.menu { display: none; }

.hero { padding: clamp(3rem, 8vh, 6rem) var(--px) var(--sec-y); min-height: calc(100vh - 4.5rem); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3rem, 5.6vw, 5.4rem); margin-top: 0.9rem; }
.hero__lede { color: var(--ink-2); font-size: clamp(1.0625rem, 1.25vw, 1.2rem); max-width: 34em; margin-top: 1.4rem; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; min-height: 3.2rem; padding: 0.7rem 1.5rem; background: var(--cobalt); color: #fff; border-radius: 6px; font-weight: 600; text-decoration: none; transition: background-color 160ms ease; }
.btn:hover { background: var(--cobalt-deep); }
.call { display: grid; text-decoration: none; font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.call small { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.call:hover { color: var(--cobalt); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 1.5rem; margin-top: clamp(2.5rem, 6vh, 4rem); padding-top: 1.4rem; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.2rem; }
.facts dd { font-weight: 500; font-size: 0.9688rem; line-height: 1.45; }

.sec { padding: var(--sec-y) var(--px); }
.sec--grey { background: var(--grey); }

/* ---------- Leistungen als aufklappbare Liste ---------- */
.svc { margin-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--ink); }
.svc details { border-bottom: 1px solid var(--line); }
.svc summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.2rem 0; }
.svc summary::-webkit-details-marker { display: none; }
.svc i { font-style: normal; font-weight: 600; color: var(--cobalt); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.svc span { display: grid; gap: 0.1rem; }
.svc b { font-weight: 600; font-size: clamp(1.15rem, 1.5vw, 1.3rem); letter-spacing: -0.01em; }
.svc small { font-size: 0.9063rem; color: var(--ink-3); }
.svc summary::after { content: ""; width: 0.65rem; height: 0.65rem; border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms ease; }
.svc details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.svc summary:hover b { color: var(--cobalt); }
.svc details p { padding: 0 2rem 1.4rem 3.75rem; color: var(--ink-2); max-width: 42em; }

/* ---------- Fristen ---------- */
.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.dials li { display: grid; gap: 0.35rem; align-content: start; border-top: 2px solid var(--cobalt); padding-top: 1rem; }
.dials__num { font-weight: 500; font-size: clamp(3.4rem, 5vw, 4.6rem); line-height: 1; letter-spacing: -0.04em; color: var(--cobalt); display: flex; align-items: baseline; gap: 0.45rem; margin-bottom: 0.3rem; }
.dials__num small { font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.dials li > p:not(.dials__num) { color: var(--ink-2); font-size: 0.9688rem; }
.dials .dials__norm { font-size: 0.8125rem; color: var(--ink-3); }
.calc { margin-top: clamp(2rem, 4vw, 3rem); background: var(--white); border-radius: 10px; padding: clamp(1.4rem, 3vw, 2.25rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; }
.calc h3 { grid-column: 1 / -1; font-size: 1.35rem; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; align-content: start; }
.calc legend, .field { padding: 0; font-size: 0.875rem; font-weight: 500; color: var(--ink-3); }
.field { display: grid; gap: 0.5rem; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--grey); border-radius: 8px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.3rem 0.5rem; border-radius: 6px; font-weight: 600; font-size: 0.9063rem; text-align: center; line-height: 1.15; color: var(--ink-2); transition: background-color 160ms ease, color 160ms ease; }
.seg input:checked + span { background: var(--cobalt); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--cobalt); outline-offset: 2px; }
.calc input[type="date"] { width: 100%; min-height: 3.2rem; padding: 0.4rem 0.85rem; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 8px; font-family: var(--font); font-weight: 500; font-size: 1.0625rem; accent-color: var(--cobalt); }
.calc input[type="date"]:focus-visible { border-color: var(--cobalt); }
.calc__out { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1rem; min-height: 7.5rem; color: var(--ink-2); font-size: 1rem; }
.calc__out strong { display: block; color: var(--cobalt); font-weight: 600; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0.2rem 0 0.5rem; text-wrap: balance; }
.calc__out a { color: var(--cobalt); font-weight: 600; white-space: nowrap; text-underline-offset: 0.2em; }
.fine { margin-top: 1.25rem; font-size: 0.8438rem; line-height: 1.6; color: var(--ink-3); max-width: 52em; }

/* ---------- Ablauf ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.steps li { counter-increment: s; display: grid; gap: 0.4rem; align-content: start; }
.steps li::before { content: "Schritt " counter(s); font-size: 0.8125rem; font-weight: 600; color: var(--cobalt); border-bottom: 1px solid var(--line); padding-bottom: 0.6rem; margin-bottom: 0.4rem; }
.steps p { color: var(--ink-2); font-size: 0.9688rem; }

/* ---------- Kanzlei ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.team li { display: grid; gap: 0.1rem; }
.team img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 25%; border-radius: 8px; margin-bottom: 0.8rem; }
.team b { font-weight: 600; font-size: 1.0625rem; }
.team span { font-size: 0.9063rem; color: var(--ink-3); }

/* ---------- Fragen ---------- */
.faq { margin-top: clamp(1.75rem, 3vw, 2.5rem); display: grid; gap: 0.6rem; }
.faq details { background: var(--white); border-radius: 8px; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; font-weight: 600; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cobalt); font-size: 1.5rem; font-weight: 400; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--ink-2); }

/* ---------- Kontakt ---------- */
.contact { background: var(--tint); }
.contact__phone { display: inline-block; margin-top: 1.25rem; font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: 1; color: var(--cobalt); text-decoration: none; }
.contact__phone:hover { color: var(--cobalt-deep); }
.contact dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid #d3d9f0; }
.contact dt { font-size: 0.8125rem; color: var(--ink-3); margin-bottom: 0.2rem; }
.contact dd { font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.contact dd a { color: var(--cobalt); text-underline-offset: 0.2em; }

/* ---------- Fuß ---------- */
.foot { background: var(--ink); color: #fff; padding: 2.5rem var(--px) 1.75rem; display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 1.25rem 2rem; align-items: center; margin-top: auto; }
.foot img { height: 2.3rem; width: auto; }
.foot nav { display: flex; gap: 1.5rem; font-weight: 500; }
.foot nav a { text-underline-offset: 0.25em; text-decoration-color: rgba(255, 255, 255, 0.35); }
.foot nav a:hover { text-decoration-color: currentColor; }
.foot p { grid-column: 1 / -1; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.foot .foot__line { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.8125rem; }
.foot :focus-visible { outline-color: #fff; }

/* ---------- Rechtstexte (Unterseiten ohne Bildseite) ---------- */
body.plain { display: block; }
.legal { padding: clamp(3rem, 6vw, 5rem) var(--px) clamp(4rem, 8vw, 6rem); max-width: 60rem; margin: 0 auto; }
.legal__body { max-width: 46em; }
.legal h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); hyphens: auto; }
.legal h2 { font-size: clamp(1.25rem, 1.8vw, 1.45rem); margin: 2.4rem 0 0.6rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.2rem; margin-top: 0.5rem; display: grid; gap: 0.25rem; }
.legal a { color: var(--cobalt); text-underline-offset: 0.22em; }
.todo { background: #f0dd8c; color: var(--ink); padding: 0.05em 0.35em; }
.legal__back { margin-top: 3rem; font-weight: 600; }

/* ---------- Anpassung ---------- */
@media (max-width: 1280px) {
  :root { --side: 38vw; }
  .nav a:not(.nav__cta) { font-size: 0.875rem; }
}

@media (max-width: 1100px) {
  body { display: block; }
  .visual { position: relative; height: 72vh; height: 72svh; }
  .visual__img { transition: none; }
  .visual__img:not([data-for="top"]) { display: none; }
  .visual__img[data-for="top"] { opacity: 1; object-position: 50% 25%; }
  .head { position: fixed; left: 0; right: 0; top: 0; }
  .visual { margin-top: 4.5rem; }
  .menu { display: grid; gap: 6px; place-content: center; width: 2.9rem; height: 2.9rem; background: none; border: 1.5px solid var(--cobalt); border-radius: 6px; cursor: pointer; }
  .menu span:not(.sr) { display: block; width: 1.2rem; height: 2px; background: var(--cobalt); transition: transform 200ms ease; }
  .menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
  .menu[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--px) 1.25rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a, .nav a:not(.nav__cta) { padding: 0.95rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav .nav__cta { margin-top: 1rem; text-align: center; }
  .hero { min-height: 0; }
  body.plain .head { position: sticky; }
}

@media (max-width: 640px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .dials, .steps, .calc, .contact dl { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .svc summary { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .svc details p { padding: 0 0 1.3rem 3rem; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .visual__img { transition: none; } }
@media print { .head, .skip, .visual { display: none; } body { display: block; } }

/* Marke im Kopf als Text, damit die Berufsbezeichnung lesbar bleibt */
.brand { display: grid; line-height: 1.1; text-decoration: none; }
.brand__name { font-weight: 640; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand__role { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; color: var(--ink-3); }
.foot img { height: 3rem; }
