/* Rechtsanwältinnen Peteranderl & Puma – Stylesheet
   Keine externen Schriften oder Dienste (DSGVO-freundlich). */

:root {
  --ink: #1e2833;
  --muted: #5b6672;
  --primary: #1f3a52;
  --primary-dark: #152a3c;
  --accent: #9b7a4c;
  --accent-soft: #f3ece1;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e3ded4;
  --radius: 6px;
  --wrap: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--primary-dark); }
h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin: 0 0 .6em; }
h2 { font-size: 1.45rem; margin: 2em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.12rem; color: var(--ink); }
.subtitle { margin-top: -.6em; color: var(--accent); font-weight: 600; letter-spacing: .02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 12px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.55rem; color: var(--primary-dark); font-weight: 600; }
.brand-sub { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-top: 5px; }
.header-contact { font-size: .95rem; color: var(--muted); }
.header-contact a { font-weight: 600; text-decoration: none; }

.main-nav { border-top: 1px solid var(--line); }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0 auto; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: .95rem; border-bottom: 3px solid transparent; }
.nav-list > li > a:hover, .nav-list > li.is-active > a { color: var(--primary); border-bottom-color: var(--accent); }
.nav-list > li:first-child > a { padding-left: 0; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 270px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(20, 35, 50, .1); opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 8px 18px; text-decoration: none; color: var(--ink); font-size: .93rem; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--accent-soft); color: var(--primary); }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--primary); content: ""; transition: .2s; }
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { left: 0; top: -6px; }
.nav-toggle-bar::after { left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.hero-inner { padding-top: 72px; padding-bottom: 76px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); }
.hero .lead { color: #dce4ec; max-width: 680px; }
.eyebrow { text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; color: #d7bf98; margin-bottom: .8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn { display: inline-block; padding: 11px 22px; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: .95rem; border: 2px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #876738; color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--accent-soft); }
.section-title { margin-top: 0; }
.section-link { margin-top: 20px; font-weight: 600; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin: 1.4em 0; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-stack { grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 22px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.card:hover { color: var(--ink); box-shadow: 0 10px 26px rgba(20, 35, 50, .1); transform: translateY(-2px); }
.card h3 { margin: 0 0 .4em; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .more { font-size: .9rem; font-weight: 600; color: var(--primary); }
.card .more::after { content: " →"; }

.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: start; }
.contact-box { font-style: normal; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; margin: 1em 0 1.4em; }

/* Content pages */
.layout { padding-top: 48px; padding-bottom: 72px; max-width: var(--wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.layout.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; align-items: start; }
.content { max-width: 780px; }
.content > h1:first-child { margin-top: 0; }

.sidebar { position: sticky; top: 140px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 0; }
.sidebar-title { font-family: var(--serif); font-weight: 600; color: var(--primary-dark); padding: 0 20px; margin-bottom: .5em; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar a { display: block; padding: 7px 20px; text-decoration: none; color: var(--ink); font-size: .93rem; border-left: 3px solid transparent; }
.sidebar a:hover { background: var(--accent-soft); }
.sidebar a[aria-current="page"] { border-left-color: var(--accent); background: var(--accent-soft); color: var(--primary); font-weight: 600; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 24px 14px; margin: 1.6em 0; }
.panel h2 { font-size: 1.2rem; margin-top: 1em; }
.notice { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 4px 24px 12px; margin: 2em 0; }
.notice h2 { margin-top: .8em; }
.cta { border-top: 1px solid var(--line); margin-top: 2em; padding-top: 1.2em; color: var(--muted); }

ul.check { list-style: none; padding: 0; margin: 0 0 1em; }
ul.check li { position: relative; padding-left: 26px; margin-bottom: .45em; }
ul.check li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { margin-bottom: .35em; }

.info-grid { display: grid; gap: 0 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

table.bio { width: 100%; border-collapse: collapse; font-size: .96rem; margin-bottom: 1.4em; }
table.bio th { text-align: left; vertical-align: top; white-space: nowrap; padding: 10px 20px 10px 0; color: var(--accent); font-weight: 600; width: 1%; }
table.bio td { padding: 10px 0; }
table.bio tr { border-bottom: 1px solid var(--line); }

ul.talks { list-style: none; padding: 0; margin: 0; }
ul.talks li { padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.talks strong { display: block; font-weight: 600; }
ul.talks span { color: var(--muted); font-size: .93rem; }

.help-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.help { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 18px 8px; }
.help h3 { font-size: 1.02rem; margin-top: .9em; }
.help p { font-size: .93rem; color: var(--muted); }

.sitemap li { margin: .3em 0; }

/* Footer */
.site-footer { background: var(--primary-dark); color: #c9d3dd; font-size: .93rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #d7bf98; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand { font-family: var(--serif); color: #fff; font-size: 1.15rem; line-height: 1.35; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .35em; }
.copyright { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 16px; padding-bottom: 24px; font-size: .85rem; color: #93a3b3; }

/* Responsive */
@media (max-width: 900px) {
  .layout.with-sidebar { grid-template-columns: 1fr; gap: 32px; }
  .sidebar { position: static; }
  .contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 820px) {
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; padding: 8px 20px 16px; }
  .nav-list > li > a, .nav-list > li:first-child > a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-list > li.is-active > a { border-bottom-color: var(--line); color: var(--accent); }
  .has-sub > a::after { display: none; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; min-width: 0; padding: 0 0 6px 14px; }
  .sub a { padding: 7px 0; }
  .site-header { position: static; }
  .hero-inner { padding-top: 48px; padding-bottom: 52px; }
  body { font-size: 16px; }
}
@media print {
  .site-header nav, .nav-toggle, .sidebar, .hero-actions { display: none; }
  .site-header { position: static; }
  body { background: #fff; }
}

/* Cookie-Consent: gleiche Gewichtung für Zustimmung und Ablehnung. */
.consent-settings {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.site-footer .consent-settings { color: #fff; }
.consent-settings[hidden] { display: none; }
.klaro {
  --font-family: var(--sans);
  --font-size: 16px;
  --title-font-family: var(--serif);
  --dark1: var(--surface);
  --dark2: var(--line);
  --dark3: #c5ccd2;
  --light1: var(--ink);
  --light2: var(--muted);
  --light3: #465769;
  --green1: var(--primary);
  --green2: var(--primary-dark);
  --blue1: var(--primary);
  --border-radius: var(--radius);
}
.klaro .cookie-notice:not(.cookie-modal-notice) {
  box-shadow: 0 4px 24px rgba(21, 42, 60, .2);
  border: 1px solid var(--line);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
}
.klaro .cookie-notice .cn-body .cn-ok { flex-wrap: wrap; gap: 10px; }
.klaro .cookie-notice .cn-body .cn-ok .cn-learn-more { margin: 0; }
.klaro .cookie-notice .cn-body .cn-buttons .cm-btn,
.klaro .cookie-modal .cm-btn {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  font: inherit;
  padding: 10px 16px;
  min-height: 44px;
  white-space: normal;
}
.klaro .cookie-notice .cn-body .cn-buttons .cm-btn:hover,
.klaro .cookie-modal .cm-btn:hover { background: var(--primary-dark); }
.klaro button:focus-visible, .klaro a:focus-visible, .klaro input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.klaro .cookie-notice .cn-body .cn-ok .cn-buttons { display: flex; gap: 10px; }
.klaro .cookie-notice .cn-body .cn-buttons .cm-btn { flex: 1; margin: 0; }
@media (max-width: 480px) {
  .klaro .cookie-notice .cn-body .cn-ok { align-items: stretch; }
  .klaro .cookie-notice .cn-body .cn-ok .cn-learn-more { width: 100%; }
  .klaro .cookie-notice .cn-body .cn-ok .cn-buttons { width: 100%; }
  .klaro .cookie-notice .cn-body .cn-buttons .cm-btn { flex: 1; }
}
@media print { .klaro, .consent-settings { display: none !important; } }
