/* ==========================================================================
   Rechtsanwalt Ingo Vogel, Insolvenzrecht, Nürnberg
   Haltung: nüchtern und hell. Weiß, eine Hausfarbe (Petrol), eckige Formen,
   klare Grotesk, keine Verläufe, keine Effekte. Der Auftakt ist ein
   farbiger Textblock neben einem Foto.
   Schrift lokal (DSGVO): Archivo.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #eef3f4;
  --petrol: #114b5f;
  --petrol-deep: #0c3644;
  --ink: #14242b;
  --ink-2: #44555c;
  --ink-3: #66767d;
  --line: #d5dee1;
  --on-petrol: #ffffff;
  --on-petrol-2: rgba(255, 255, 255, 0.8);
  --on-petrol-line: rgba(255, 255, 255, 0.28);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --max: 1200px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --inline: max(var(--pad), calc((100% - var(--max)) / 2));
  --sec-y: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.62; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--petrol); color: #fff; }
:focus-visible { outline: 2px solid var(--petrol); 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(--petrol); color: #fff; padding: 0.8rem 1.1rem; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Kopf ---------- */
.head { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); padding: 0 var(--inline); min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex: none; }
.brand img { width: 2.6rem; height: 2.6rem; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text b { font-weight: 650; font-stretch: 90%; font-size: 1.35rem; letter-spacing: -0.01em; }
.brand__text span { font-size: 0.875rem; color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a { font-weight: 500; font-size: 0.9688rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 0.4rem 0; border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.nav a:hover { color: var(--petrol); }
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--petrol); }
.nav .nav__cta { background: var(--petrol); color: #fff; padding: 0.65rem 1.15rem; border-bottom: 0; font-weight: 600; transition: background-color 160ms ease; }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="true"] { background: var(--petrol-deep); color: #fff; }
.menu { display: none; }

/* ---------- Auftakt: Farbblock neben Foto ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--petrol); color: var(--on-petrol); }
.hero__text { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 4.5vw, 4.5rem) clamp(3rem, 6vw, 5rem) max(var(--pad), calc((100vw - var(--max)) / 2)); display: grid; gap: clamp(1.1rem, 2vw, 1.6rem); align-content: center; justify-items: start; }
.tag { font-size: 0.9375rem; font-weight: 600; color: var(--petrol); }
.hero .tag { color: var(--on-petrol-2); }
h1, h2 { font-weight: 620; font-stretch: 90%; letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.06; }
.hero__lede { font-size: clamp(1.0625rem, 1.3vw, 1.2rem); color: var(--on-petrol-2); max-width: 32em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.4rem; }
.hero__facts { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem clamp(1.25rem, 3vw, 2.5rem); margin-top: clamp(1rem, 2.6vw, 2rem); padding-top: 1.3rem; border-top: 1px solid var(--on-petrol-line); width: 100%; }
.hero__facts dt { font-size: 0.8438rem; color: var(--on-petrol-2); }
.hero__facts dd { font-size: 1rem; font-weight: 600; }
.hero__figure { position: relative; min-height: clamp(24rem, 46vw, 40rem); }
.hero__figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hero__figure figcaption { position: absolute; left: 0; bottom: 0; background: var(--bg); color: var(--ink-2); font-size: 0.875rem; padding: 0.5rem 0.9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; padding: 0.7rem 1.5rem; background: var(--petrol); color: #fff; border: 1.5px solid var(--petrol); font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.btn:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.hero .btn { background: #fff; border-color: #fff; color: var(--petrol-deep); }
.hero .btn:hover { background: var(--tint); border-color: var(--tint); }
.hero .btn--line { background: transparent; border-color: var(--on-petrol-line); color: #fff; }
.hero .btn--line:hover { background: transparent; border-color: #fff; }

/* ---------- Abschnitte ---------- */
.sec { padding: var(--sec-y) var(--inline); }
.sec--raised { background: var(--tint); }
.sec__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1rem clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; margin-top: 0.5rem; }
.sec__intro { color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
h3 { font-weight: 620; font-size: 1.2rem; letter-spacing: -0.012em; line-height: 1.25; }

/* ---------- Leistungen: Liste mit kleinem Bild ---------- */
.slider__nav { display: none; }
.slider { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 4vw, 4rem); border-top: 2px solid var(--petrol); }
.slide { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: clamp(1.25rem, 2.4vw, 1.9rem) 0; border-bottom: 1px solid var(--line); }
.slide img { width: 6.5rem; height: 6.5rem; object-fit: cover; }
.slide__text { display: grid; gap: 0.4rem; }
.slide__no { font-size: 0.875rem; font-weight: 600; color: var(--petrol); }
.slide p { color: var(--ink-2); font-size: 1rem; }
.slide .slide__more { font-size: 0.9063rem; color: var(--ink-3); margin-top: 0.2rem; }
.slide:first-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.slide:first-child img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.slide:first-child h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-stretch: 90%; }
.slide:first-child p:not(.slide__no):not(.slide__more) { font-size: 1.0625rem; max-width: 30em; }

/* ---------- Fristen ---------- */
.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--bg); border: 1px solid var(--line); }
.dials li { position: relative; padding: clamp(1.4rem, 2.6vw, 2.25rem); border-left: 1px solid var(--line); display: grid; gap: 0.4rem; align-content: start; }
.dials li:first-child { border-left: 0; }
.dials svg { display: none; }
.dials__num { font-weight: 620; font-stretch: 90%; font-size: clamp(2.8rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.03em; color: var(--petrol); display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.5rem; }
.dials__num small { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.dials li > p:not(.dials__num) { color: var(--ink-2); font-size: 1rem; }
.dials .dials__norm { font-size: 0.9063rem; color: var(--ink-3); margin-top: 0.3rem; }

.calc { margin-top: clamp(1.5rem, 3vw, 2.5rem); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); background: var(--bg); border: 1px solid var(--line); }
.calc__img { width: 100%; height: 100%; min-height: 16rem; object-fit: cover; }
.calc__form { padding: clamp(1.4rem, 3vw, 2.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; align-content: start; }
.calc h3 { grid-column: 1 / -1; font-size: clamp(1.3rem, 1.9vw, 1.55rem); font-stretch: 90%; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 0.5rem; align-content: start; }
.calc legend, .field { padding: 0; font-size: 0.9063rem; font-weight: 600; color: var(--ink-2); }
.field { display: grid; gap: 0.5rem; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; }
.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: 3rem; padding: 0.3rem 0.6rem; border: 1.5px solid var(--petrol); font-weight: 500; font-size: 0.9375rem; text-align: center; line-height: 1.15; color: var(--petrol); transition: background-color 160ms ease, color 160ms ease; }
.seg label + label span { border-left: 0; }
.seg input:checked + span { background: var(--petrol); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--petrol); outline-offset: 3px; }
.calc input[type="date"] { width: 100%; min-height: 3rem; padding: 0.4rem 0.85rem; background: var(--bg); color: var(--ink); border: 1.5px solid var(--petrol); border-radius: 0; font-family: var(--font); font-weight: 500; font-size: 1.0625rem; font-variant-numeric: tabular-nums; accent-color: var(--petrol); }
.calc__out { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 1.1rem; min-height: 8rem; color: var(--ink-2); font-size: 1rem; }
.calc__out strong { display: block; color: var(--petrol); font-weight: 620; font-stretch: 90%; font-size: clamp(1.4rem, 2.2vw, 1.85rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0.2rem 0 0.5rem; text-wrap: balance; }
.calc__out a { color: var(--petrol); font-weight: 600; white-space: nowrap; text-underline-offset: 0.2em; }
.fine { margin-top: 1.4rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-3); max-width: 56em; }

/* ---------- Ablauf ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split__head { display: grid; justify-items: start; }
.split__head img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.list { counter-reset: s; border-top: 2px solid var(--petrol); }
.list li { counter-increment: s; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; padding: clamp(1.2rem, 2.4vw, 1.75rem) 0; border-bottom: 1px solid var(--line); }
.list li::before { content: counter(s); grid-row: 1 / span 2; width: 2.4rem; height: 2.4rem; background: var(--petrol); color: #fff; display: grid; place-items: center; font-weight: 600; }
.list h3 { align-self: center; font-size: clamp(1.2rem, 1.7vw, 1.4rem); }
.list p { color: var(--ink-2); max-width: 32em; }

/* ---------- Kanzlei ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--tint); }
.about__bg { order: 2; width: 100%; height: 100%; min-height: 22rem; object-fit: cover; }
.about__card { padding: var(--sec-y) clamp(1.5rem, 4.5vw, 4.5rem) var(--sec-y) max(var(--pad), calc((100vw - var(--max)) / 2)); display: grid; gap: 1rem; justify-items: start; align-content: center; }
.about__card h2 { margin-top: 0.3rem; }
.about__card p:not(.tag) { color: var(--ink-2); max-width: 32em; }
.sec--team { padding-block: clamp(2.5rem, 5vw, 4rem) var(--sec-y); }
.team { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: clamp(0.9rem, 2vw, 1.5rem); align-items: start; }
.team li { display: grid; gap: 0.05rem; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; margin-bottom: 0.7rem; }
.team .team__lead { align-self: stretch; grid-template-rows: 1fr auto auto; }
.team .team__lead img { aspect-ratio: auto; height: 0; min-height: 100%; }
.team b { font-weight: 620; }
.team span { font-size: 0.9063rem; color: var(--ink-3); }
.team .team__wide { display: none; }

/* ---------- Fragen ---------- */
.faq { columns: 2; column-gap: clamp(1.5rem, 4vw, 4rem); }
.faq details { break-inside: avoid; border-top: 1px solid var(--line); background: transparent; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.15rem 0; font-weight: 600; font-size: clamp(1.05rem, 1.35vw, 1.15rem); line-height: 1.3; transition: color 160ms ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 0.7rem; height: 0.7rem; border-right: 2px solid var(--petrol); border-bottom: 2px solid var(--petrol); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--petrol); }
.faq details p { padding: 0 2rem 1.3rem 0; color: var(--ink-2); font-size: 1rem; }

/* ---------- Kontakt ---------- */
.contact { background: var(--petrol); color: var(--on-petrol); padding: var(--sec-y) var(--inline); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 5vw, 5rem); row-gap: 0.9rem; align-items: start; grid-template-rows: auto auto auto 1fr; }
.contact > .tag, .contact > h2, .contact > .contact__phone, .contact > .contact__lede { grid-column: 1; }
.contact .tag { color: var(--on-petrol-2); }
.contact h2 { margin-top: 0; }
.contact__phone { font-weight: 620; font-stretch: 90%; font-size: clamp(2.3rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; margin-top: 0.8rem; justify-self: start; border-bottom: 2px solid transparent; transition: border-color 160ms ease; }
.contact__phone:hover { border-bottom-color: #fff; }
.contact__lede { color: var(--on-petrol-2); max-width: 30em; }
.contact__grid { grid-column: 2; grid-row: 1 / span 4; display: grid; gap: 1.5rem; }
.contact__grid img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.contact dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem); }
.contact dt { font-size: 0.8438rem; color: var(--on-petrol-2); margin-bottom: 0.2rem; }
.contact dd { font-size: 0.9688rem; line-height: 1.5; overflow-wrap: anywhere; }
.contact dd a { text-underline-offset: 0.2em; }
.contact :focus-visible, .hero :focus-visible { outline-color: #fff; }

/* ---------- Fuß ---------- */
.foot { padding: clamp(2rem, 4vw, 2.75rem) var(--inline) 1.75rem; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 2.5rem; align-items: center; }
.foot p { font-size: 0.9063rem; color: var(--ink-3); max-width: 38em; }
.foot nav { display: flex; gap: 1.5rem; font-weight: 500; font-size: 0.9688rem; }
.foot nav a { text-underline-offset: 0.25em; text-decoration-color: var(--line); }
.foot nav a:hover { color: var(--petrol); text-decoration-color: currentColor; }
.foot .foot__line { grid-column: 1 / -1; max-width: none; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8438rem; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) var(--inline) clamp(4rem, 8vw, 6rem); }
.legal__body { max-width: 46em; }
.legal h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.08; margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem); hyphens: auto; }
.legal h2 { font-stretch: 100%; font-size: clamp(1.15rem, 1.6vw, 1.3rem); letter-spacing: -0.012em; line-height: 1.25; 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(--petrol); text-underline-offset: 0.22em; }
.todo { background: #f0dd8c; color: #14242b; padding: 0.05em 0.35em; }
.legal__back { margin-top: 3rem; font-weight: 600; }

/* ---------- Anpassung ---------- */
@media (max-width: 1000px) {
  .menu { display: grid; gap: 6px; place-content: center; width: 2.9rem; height: 2.9rem; background: none; border: 1.5px solid var(--petrol); cursor: pointer; }
  .menu span:not(.sr) { display: block; width: 1.2rem; height: 2px; background: var(--petrol); 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(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--pad) 1.25rem; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="true"] { border-bottom-color: var(--line); color: var(--petrol); }
  .nav .nav__cta { margin-top: 1rem; text-align: center; }
  .sec__head { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team .team__lead { grid-column: 1 / -1; }
  .team .team__lead img { height: auto; min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 820px) {
  .hero, .about, .contact, .calc, .split { grid-template-columns: minmax(0, 1fr); }
  .hero__text, .about__card { padding: 2.5rem var(--pad); }
  .hero__figure { min-height: 0; aspect-ratio: 4 / 3.6; }
  .hero__facts { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .slider { grid-template-columns: minmax(0, 1fr); }
  .slide:first-child { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .dials { grid-template-columns: minmax(0, 1fr); }
  .dials li { border-left: 0; border-top: 1px solid var(--line); }
  .dials li:first-child { border-top: 0; }
  .calc__img { min-height: 0; aspect-ratio: 16 / 9; }
  .about__bg { order: 0; min-height: 0; aspect-ratio: 16 / 9; }
  .faq { columns: 1; }
  .contact__grid { grid-column: 1; grid-row: auto; margin-top: 1.5rem; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .hero__actions { flex-direction: column; align-self: stretch; width: 100%; }
  .team { grid-template-columns: 1fr 1fr; }
  .calc__form { grid-template-columns: minmax(0, 1fr); }
  .contact dl { grid-template-columns: minmax(0, 1fr); }
  .slide { grid-template-columns: 4.75rem minmax(0, 1fr); gap: 1rem; }
  .slide img { width: 4.75rem; height: 4.75rem; }
  .faq details p { padding-right: 0; }
}

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