/* Rechtsanwalt Rouven Spruth – Stylesheet
   Keine externen Schriften, keine externen Dienste. */

:root {
  --navy: #0f2a43;
  --navy-2: #173a5a;
  --turf: #2b6b4a;
  --card: #f2c230;
  --paper: #f5f7f8;
  --white: #ffffff;
  --ink: #14202b;
  --muted: #55646f;
  --line: #d5dce2;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; }
a:hover { color: var(--turf); }
:focus-visible { outline: 3px solid var(--card); outline-offset: 3px; box-shadow: 0 0 0 5px var(--navy); }

.skip { position: absolute; left: -999px; top: 0; background: var(--card); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); line-height: 1.18; color: var(--navy); margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; max-width: 68ch; }
li { margin-bottom: .45em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand-mark { width: 2.4rem; height: auto; color: var(--navy); flex: none; }
.foot-mark { width: 2.6rem; height: auto; color: var(--card); margin-bottom: .8rem; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.brand-sub { display: block; font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--card); color: var(--navy); }
.nav a[aria-current="page"] { border-bottom-color: var(--navy); font-weight: 600; }
.nav .btn { color: var(--white); border-bottom: 0; padding: .6rem 1.1rem; }
.nav .btn:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy); color: var(--navy); border-radius: 4px; padding: .5rem .8rem; font: inherit; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: flex-start; gap: 0; padding: .5rem var(--gutter) 1.2rem; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; width: 100%; font-size: 1.05rem; }
  .nav .btn { width: auto; margin-top: .5rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--navy); color: var(--white); text-decoration: none; padding: .85rem 1.5rem; border-radius: 4px; font-weight: 600; border: 2px solid var(--navy); transition: background .15s, color .15s; cursor: pointer; font-size: 1rem; font-family: var(--sans); }
.btn:hover { background: var(--card); color: var(--ink); border-color: var(--card); }
.btn-card { background: var(--card); color: var(--ink); border-color: var(--card); }
.btn-card:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding-top: clamp(3rem, 8vw, 6rem); padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p { color: #dbe5ee; font-size: 1.2rem; max-width: 46ch; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .8rem; aspect-ratio: 1 / 1; }
.hero-photos figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--navy-2); }
.hero-photos figure:first-child { grid-row: span 2; }
.hero-photos img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; gap: 2rem; }
  .hero-photos { aspect-ratio: 3 / 2; grid-template-rows: 1fr; grid-template-columns: 1fr 2fr; }
  .hero-photos figure:first-child { grid-row: auto; }
  .hero-photos figure:nth-child(3) { display: none; }
}

.page-hero { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4.5rem) 0; position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4.4vw, 3rem); max-width: 22ch; }
.page-hero p { color: #dbe5ee; font-size: 1.15rem; max-width: 56ch; margin-bottom: 0; }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: #b9c9d8; }
.crumbs a { color: #dbe5ee; }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--paper); }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--muted); max-width: none; }
@media (min-width: 1000px) { .section-head p { font-size: .97rem; } }

.halfway { display: flex; align-items: center; gap: 0; height: 1.2rem; margin: 0 auto; max-width: var(--wrap); padding: 0 var(--gutter); }
.halfway::before, .halfway::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.halfway span { width: 1.1rem; height: 1.1rem; border: 2px solid var(--line); border-radius: 50%; margin: 0 .4rem; }

/* Rechtsgebiete */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.area img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.area-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.area-body p { color: var(--muted); font-size: 1rem; }
.area-body .more { margin-top: auto; font-weight: 600; }
.area:first-child { border-top: 4px solid var(--card); }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } }

/* Themenliste */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; margin: 0; max-width: none; }
.topics li { background: var(--white); margin: 0; }
.topics a { display: block; padding: 1.3rem 1.4rem; text-decoration: none; height: 100%; }
.topics a:hover { background: var(--paper); }
.topics strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: .2rem; }
.topics span { color: var(--muted); font-size: .98rem; }
@media (max-width: 700px) { .topics { grid-template-columns: 1fr; } }
.topics-10 { grid-template-columns: repeat(5, 1fr); }
.topics-10 a { padding: 1rem 1.1rem; display: flex; align-items: center; }
.topics-10 strong { margin: 0; font-size: 1.02rem; line-height: 1.25; }
@media (max-width: 1000px) { .topics-10 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .topics-10 { grid-template-columns: 1fr; } }

/* Profil */
.profile { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.profile img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: none; }
.facts li { border-top: 1px solid var(--line); padding: .8rem 0; margin: 0; display: grid; grid-template-columns: 10.5rem 1fr; gap: 1rem; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { font-family: var(--serif); color: var(--navy); }
@media (max-width: 860px) { .profile { grid-template-columns: 1fr; gap: 1.5rem; } .profile img { max-width: 360px; } .facts li { grid-template-columns: 1fr; gap: .1rem; } }

/* Fließtext-Seiten */
.content { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; align-items: start; }
.content h2 { margin-top: 1.6em; }
.content h2:first-child { margin-top: 0; }
.aside { position: sticky; top: 6rem; background: var(--paper); border-left: 4px solid var(--card); padding: 1.4rem; border-radius: 0 4px 4px 0; }
.aside h3 { font-size: 1.1rem; }
.aside p, .aside li { font-size: .98rem; }
.aside ul { padding-left: 1.1em; }
.note { background: var(--paper); border-left: 4px solid var(--turf); padding: 1rem 1.2rem; margin: 1.5rem 0; max-width: 68ch; font-size: .98rem; }
.note p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .content { grid-template-columns: 1fr; gap: 2rem; } .aside { position: static; } }

.photo-wide { margin: 0 0 2rem; }
.photo-wide img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 4px; }

/* Aktuelles */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.tip { border: 1px solid var(--line); border-radius: 4px; padding: 1.5rem; background: var(--white); }
.tip h3 { margin-bottom: .4rem; }
.tip p { color: var(--muted); }
@media (max-width: 700px) { .cards { grid-template-columns: 1fr; } }

.tip[hidden] { display: none; }
.tip:target { border-color: var(--card); box-shadow: 0 0 0 3px var(--card); }
.tip-meta { display: flex; flex-wrap: wrap; gap: .4rem .7rem; align-items: center; font-size: .9rem; color: var(--muted); margin-bottom: .6rem; }
.tag { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .65rem; font-size: .82rem; color: var(--navy); }
.tip-az { font-size: .88rem; color: var(--muted); }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0 0 2rem; }
.chip { font: inherit; font-size: .98rem; padding: .5rem 1.2rem; border: 1.5px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; cursor: pointer; }
.chip:hover { background: var(--paper); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.tiplist { list-style: none; padding: 0; margin: 0 0 1rem; max-width: none; }
.tiplist li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; padding: .65rem 0; border-top: 1px solid var(--line); margin: 0; }
.tiplist li:last-child { border-bottom: 1px solid var(--line); }
.tiplist time { color: var(--muted); font-size: .95rem; }
.more { font-weight: 600; }
.content .topics { margin: 1.2rem 0 0; }
@media (max-width: 520px) { .tiplist li { grid-template-columns: 1fr; gap: .1rem; } }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact dl { margin: 0; }
.contact dt { font-family: var(--serif); font-weight: 700; color: var(--navy); margin-top: 1.1rem; }
.contact dd { margin: 0; }
form { display: grid; gap: 1rem; }
label { font-weight: 600; font-size: .98rem; display: block; margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: .75rem .85rem; border: 1px solid #8a98a4; border-radius: 4px; font: inherit; background: var(--white); color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .4rem; flex: none; width: 1.1rem; height: 1.1rem; }
.hp { position: absolute; left: -5000px; }
.hint { font-size: .92rem; color: var(--muted); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 2rem; } }

/* Kontaktband */
.cta-band { background: var(--navy); color: var(--white); padding: clamp(2.5rem, 6vw, 4rem) 0; }
.cta-band h2 { color: var(--white); margin-bottom: .4rem; }
.cta-band p { color: #dbe5ee; }
.cta-in { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }

/* Footer */
.site-footer { background: #0a1d30; color: #b9c9d8; padding: 3rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #dbe5ee; }
.site-footer a:hover { color: var(--card); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot h3 { color: var(--white); font-size: 1.05rem; font-family: var(--sans); margin-bottom: .6rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: .3rem; }
.legal-line { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal h3 { font-size: 1.1rem; font-family: var(--sans); margin-top: 1.3em; }
.todo { background: #fff3c4; padding: .1em .3em; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print { .site-header, .cta-band, .site-footer, .nav-toggle { display: none; } }
