/* ==========================================================================
   Rechtsanwalt Andreas Rohe, Insolvenzrecht, Kirschgartenstraße Nürnberg
   Haltung: freundlich, aufgeräumt, nahbar. Alles steht in Kacheln mit
   abgerundeten Ecken auf einem sehr hellen Rosé-Grund. Kirschrot ist die
   einzige kräftige Farbe. Schrift lokal (DSGVO): Figtree.
   ========================================================================== */

@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #faf6f6;
  --white: #ffffff;
  --rose: #f6e8e9;
  --cherry: #a3203d;
  --cherry-deep: #861631;
  --ink: #231c1e;
  --ink-2: #5c4f53;
  --ink-3: #8a7c80;
  --line: #ecdfe1;
  --on-cherry-2: rgba(255, 255, 255, 0.8);
  --font: "Figtree", "Segoe UI", Arial, sans-serif;
  --max: 1240px;
  --pad: clamp(1rem, 3vw, 2rem);
  --gap: clamp(0.75rem, 1.4vw, 1.1rem);
  --r: 16px;
  --tile-p: clamp(1.35rem, 2.4vw, 2.1rem);
}

*, *::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.6; -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(--cherry); color: #fff; }
:focus-visible { outline: 2px solid var(--cherry); 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(--cherry); color: #fff; padding: 0.8rem 1.1rem; font-weight: 600; text-decoration: none; border-radius: 8px; }
.skip:focus { top: 1rem; }

h1, h2 { font-weight: 720; letter-spacing: -0.025em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-weight: 680; font-size: 1.2rem; letter-spacing: -0.01em; line-height: 1.3; }
.tag { font-size: 0.875rem; font-weight: 650; color: var(--cherry); }
.num { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem; border-radius: 10px; background: var(--rose); color: var(--cherry); font-weight: 700; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* ---------- Kacheln ---------- */
.tile { background: var(--white); border-radius: var(--r); padding: var(--tile-p); }
.tile--rose { background: var(--rose); }
.tile--cherry { background: var(--cherry); color: #fff; }
.tile--cherry .tag { color: var(--on-cherry-2); }
.tile--photo { padding: 0; overflow: hidden; position: relative; min-height: 14rem; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Kopf ---------- */
.head { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 246, 0.94); backdrop-filter: blur(8px); padding: 0.85rem max(var(--pad), calc((100% - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.brand img { height: 2.6rem; width: auto; }
.nav { display: flex; align-items: center; gap: 0.25rem; background: var(--white); border-radius: 12px; padding: 0.3rem; }
.nav a { font-weight: 550; font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; white-space: nowrap; padding: 0.5rem 0.85rem; border-radius: 9px; transition: background-color 160ms ease, color 160ms ease; }
.nav a:hover { background: var(--rose); color: var(--ink); }
.nav a[aria-current="true"] { background: var(--rose); color: var(--cherry); }
.nav .nav__cta { background: var(--cherry); color: #fff; font-weight: 650; }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="true"] { background: var(--cherry-deep); color: #fff; }
.menu { display: none; }

/* ---------- Auftakt als Kachelfeld ---------- */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: var(--gap); padding: clamp(0.5rem, 2vw, 1.25rem) 0 var(--gap); }
.hero__intro { grid-column: 1 / span 7; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; padding: clamp(1.75rem, 4vw, 3.5rem); }
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 4.4rem); }
.hero__lede { color: var(--ink-2); font-size: clamp(1.05rem, 1.3vw, 1.2rem); max-width: 34em; text-wrap: pretty; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.hero__photo { grid-column: 8 / span 5; grid-row: 1 / span 3; min-height: 34rem; }
.hero__photo img { object-position: 50% 25%; }
.hero__photo figcaption { position: absolute; left: 1rem; bottom: 1rem; background: var(--white); border-radius: 10px; padding: 0.45rem 0.8rem; font-size: 0.875rem; font-weight: 600; }
.hero__call { grid-column: 1 / span 4; grid-row: 3; display: grid; gap: 0.2rem; text-decoration: none; transition: background-color 160ms ease; }
.hero__call:hover { background: var(--cherry-deep); }
.hero__call span { font-size: 0.875rem; color: var(--on-cherry-2); }
.hero__call b { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 720; letter-spacing: -0.02em; line-height: 1.15; }
.hero__addr { grid-column: 5 / span 3; grid-row: 3; display: grid; gap: 0.25rem; align-content: start; }
.hero__addr span { font-size: 0.875rem; color: var(--ink-3); }
.hero__addr b { font-weight: 650; line-height: 1.4; }
.hero__addr a { color: var(--cherry); font-weight: 600; font-size: 0.9375rem; text-underline-offset: 0.2em; margin-top: 0.35rem; }
:focus-visible.hero__call, .tile--cherry :focus-visible { outline-color: var(--ink); }

.btn { display: inline-flex; align-items: center; min-height: 3.1rem; padding: 0.65rem 1.35rem; background: var(--cherry); color: #fff; border-radius: 10px; font-weight: 650; text-decoration: none; transition: background-color 160ms ease; }
.btn:hover { background: var(--cherry-deep); }
.btn--quiet { background: var(--white); color: var(--ink); }
.btn--quiet:hover { background: #fff; color: var(--cherry); }

/* ---------- Abschnitte ---------- */
.sec { padding: clamp(3.5rem, 7vw, 6rem) 0 0; }
.sec__head { display: grid; gap: 0.75rem; max-width: 40rem; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.sec__head > p:last-child { color: var(--ink-2); }

.services { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: var(--gap) clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.services .sec__head { position: sticky; top: 6.5rem; margin-bottom: 0; }
.services .tile:not(.tile--photo) { display: grid; gap: 0.7rem; align-content: start; }
.services .tile p { color: var(--ink-2); font-size: 1rem; }

.dials__num { font-weight: 760; font-size: clamp(3.4rem, 5.5vw, 4.8rem); line-height: 1; letter-spacing: -0.04em; color: var(--cherry); display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.6rem; }
.dials__num small { font-size: 1rem; font-weight: 650; letter-spacing: 0; color: var(--ink); }
.dials .tile { display: grid; gap: 0.35rem; align-content: start; }
.dials .tile > p:not(.dials__num) { color: var(--ink-2); font-size: 1rem; }
.dials .dials__norm { font-size: 0.875rem; color: var(--ink-3); }
.calc-row { margin-top: var(--gap); }
.calc { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.5rem; align-content: start; }
.calc h3 { grid-column: 1 / -1; font-size: 1.45rem; }
.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: 600; color: var(--ink-3); }
.field { display: grid; gap: 0.5rem; align-content: start; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--rose); border-radius: 12px; 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.8rem; padding: 0.3rem 0.5rem; border-radius: 9px; font-weight: 650; 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(--cherry); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--cherry); outline-offset: 2px; }
.calc input[type="date"] { width: 100%; min-height: 3.3rem; padding: 0.4rem 0.9rem; background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font); font-weight: 600; font-size: 1.0625rem; accent-color: var(--cherry); }
.calc input[type="date"]:focus-visible { border-color: var(--cherry); }
.calc__out { grid-column: 1 / -1; background: var(--bg); border-radius: 12px; padding: 1rem 1.15rem; min-height: 7rem; color: var(--ink-2); font-size: 1rem; }
.calc__out strong { display: block; color: var(--cherry); font-weight: 720; 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(--cherry); font-weight: 650; white-space: nowrap; text-underline-offset: 0.2em; }
.fine { margin-top: 1rem; font-size: 0.8438rem; line-height: 1.6; color: var(--ink-3); max-width: 60em; }

.steps__list { grid-column: span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.steps__list .tile { display: grid; gap: 0.6rem; align-content: start; }
.steps__list p { color: var(--ink-2); font-size: 1rem; }
.steps__photo { min-height: 100%; }
.steps__photo img { object-position: 50% 35%; }

.about__photo { grid-column: span 2; min-height: 24rem; }
.about__text { display: grid; gap: 0.9rem; align-content: center; }
.about__text p:not(.tag) { color: var(--ink-2); }
.team { margin-top: var(--gap); }
.team .tile { padding: 0.6rem 0.6rem 1.1rem; display: grid; gap: 0.1rem; }
.team img { width: 100%; aspect-ratio: 4 / 4.5; object-fit: cover; object-position: 50% 22%; border-radius: 11px; margin-bottom: 0.8rem; }
.team b { font-weight: 680; padding: 0 0.5rem; }
.team span { font-size: 0.9063rem; color: var(--ink-3); padding: 0 0.5rem; }

.questions { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr); gap: var(--gap) clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.questions .sec__head { position: sticky; top: 6.5rem; margin-bottom: 0; }
.faq { display: grid; gap: 0.6rem; }
.faq details { padding: 0; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.15rem 1.35rem; font-weight: 650; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; background: var(--rose); color: var(--cherry); font-size: 1.25rem; font-weight: 500; line-height: 1; transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.35rem 1.3rem; color: var(--ink-2); }

.contact { grid-template-rows: auto auto; }
.contact__main { grid-column: span 2; display: grid; gap: 0.9rem; padding: clamp(1.75rem, 4vw, 3rem); }
.contact__main p:not(.tag) { color: var(--on-cherry-2); max-width: 34em; }
.contact__phone { font-weight: 760; font-size: clamp(2.3rem, 4.8vw, 4rem); letter-spacing: -0.03em; line-height: 1; color: #fff; text-decoration: none; margin-top: 0.5rem; }
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.contact__photo { grid-column: 3; grid-row: 1 / span 2; min-height: 26rem; }
.contact__item { display: grid; gap: 0.3rem; align-content: start; }
.contact__item span { font-size: 0.875rem; color: var(--ink-3); }
.contact__item a { color: var(--cherry); font-weight: 650; font-size: 1.15rem; text-underline-offset: 0.2em; overflow-wrap: anywhere; }
.contact__item b { font-weight: 600; line-height: 1.45; }

/* ---------- Fuß ---------- */
.foot { margin-top: clamp(3.5rem, 7vw, 6rem); margin-bottom: var(--pad); background: var(--white); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.foot img { height: 2.6rem; width: auto; }
.foot nav { display: flex; gap: 1.25rem; font-weight: 600; }
.foot nav a { text-underline-offset: 0.25em; text-decoration-color: var(--line); }
.foot nav a:hover { color: var(--cherry); text-decoration-color: currentColor; }
.foot p { grid-column: 1 / -1; font-size: 0.875rem; color: var(--ink-3); }
.foot .foot__line { border-top: 1px solid var(--line); padding-top: 0.9rem; font-size: 0.8125rem; }

/* ---------- Rechtstexte ---------- */
.legal { width: min(100% - 2 * var(--pad), var(--max)); margin: clamp(1rem, 3vw, 2rem) auto 0; background: var(--white); border-radius: var(--r); padding: clamp(2rem, 5vw, 4rem); }
.legal__body { max-width: 46em; }
.legal h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin-bottom: clamp(1.5rem, 3vw, 2.25rem); hyphens: auto; }
.legal h2 { font-size: clamp(1.2rem, 1.7vw, 1.4rem); margin: 2.2rem 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(--cherry); text-underline-offset: 0.22em; }
.todo { background: #f0dd8c; color: var(--ink); padding: 0.05em 0.35em; }
.legal__back { margin-top: 3rem; font-weight: 650; }

/* ---------- Anpassung ---------- */
@media (max-width: 1060px) {
  .menu { display: grid; gap: 6px; place-content: center; width: 2.9rem; height: 2.9rem; background: var(--white); border: 0; border-radius: 10px; cursor: pointer; }
  .menu span:not(.sr) { display: block; width: 1.2rem; height: 2px; background: var(--cherry); 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: var(--pad); right: var(--pad); top: calc(100% + 0.25rem); flex-direction: column; align-items: stretch; padding: 0.5rem; display: none; box-shadow: 0 12px 32px rgba(35, 28, 30, 0.12); }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.85rem 1rem; font-size: 1.0625rem; }
  .hero__intro { grid-column: 1 / -1; grid-row: auto; }
  .hero__photo { grid-column: 1 / span 7; grid-row: auto; min-height: 30rem; }
  .hero__call, .hero__addr { grid-column: 8 / -1; grid-row: auto; }
  .hero__call { align-self: end; }
  .services, .questions { grid-template-columns: minmax(0, 1fr); }
  .services .sec__head, .questions .sec__head { position: static; margin-bottom: 0.5rem; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero__intro, .hero__photo, .hero__call, .hero__addr { grid-column: 1; }
  .hero__photo { min-height: 0; aspect-ratio: 4 / 4.6; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .calc, .steps__list, .about__photo, .contact__main { grid-column: auto; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: minmax(0, 1fr); }
  .tile--photo { min-height: 0; aspect-ratio: 4 / 3; }
  .steps__photo, .contact__photo { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 4.4; min-height: 0; }
  .about__photo { aspect-ratio: 3 / 2; min-height: 0; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}

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

/* Korrekturen: Marke im Kopf als Text, Nummern kompakt */
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand img { width: 2.6rem; height: 2.6rem; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text b { font-weight: 700; font-size: 1.2rem; letter-spacing: -0.015em; }
.brand__text span { font-size: 0.75rem; font-weight: 550; color: var(--ink-3); }
.num { justify-self: start; }
