/*
  Cascading Style Sheet – www.rechtsanwalt-hoelke.de
  version2: modernes, schlichtes Design (2026)
*/

/* ---------- Webfont: Open Sans, lokal gehostet ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/open-sans-v44-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/open-sans-v44-latin-700.woff2") format("woff2");
}

/* ---------- Farben & Maße ---------- */
:root {
  --navy: #1f2d3d;
  --navy-dark: #18222f;
  --ink: #2b3036;
  --muted: #5f6872;
  --line: #e2ddd3;
  --paper: #f6f4ef;
  --white: #ffffff;
  --accent: #9a7b4f;          /* gedämpftes Messing – nur für Akzente */
  --accent-dark: #7a6040;
  --link: #24456b;
  --sans: "Open Sans", "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 2px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

p, ul, ol, address { margin: 0 0 1.1em; }
address { font-style: normal; }
strong, b { font-weight: 700; color: var(--navy); }
img, svg { max-width: 100%; }
br.d-only { display: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Überschriften ---------- */
h1, h2, h3, .headline, .medium {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0;
}
h1 { font-size: clamp(28px, 4.2vw, 40px); margin: 0; }
h2, .headline { font-size: clamp(22px, 2.6vw, 26px); margin: 1.8em 0 .6em; }
.medium { font-size: 21px; margin: 1.8em 0 .5em; }
h2.question {
  font-size: 20px;
  margin: 1.9em 0 .5em;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.content > :first-child { margin-top: 0; }

/* ---------- Links ---------- */
a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(154, 123, 79, .55);
    text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a[href^="tel:"] { white-space: nowrap; }

.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; vertical-align: -.15em; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 8px 12px; border: 1px solid var(--navy);
}
.skip-link:focus { top: 8px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-dark); color: #c8ced6; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-contact { display: flex; gap: 24px; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { color: var(--accent); }
.topbar a { color: #e7eaee; text-decoration: none; }
.topbar a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Header & Hauptnavigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }

.brand { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--navy); line-height: 1.1; }
.brand:hover { color: var(--navy); }
.brand-name {
  font-family: var(--sans); font-weight: 700; font-size: 23px;
  letter-spacing: .14em; text-transform: uppercase;
}
.brand-sub {
  margin-top: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .32em;
  text-transform: uppercase; color: var(--accent-dark);
}

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav-list a {
  position: relative; display: block; padding: 10px 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.nav-list a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--navy); }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  font: 700 13px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: transparent; border: 1px solid var(--navy);
  border-radius: var(--radius); padding: 10px 14px; cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 18px; }
.nav-toggle-bars span { display: block; height: 2px; background: currentColor; margin: 3px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Seitenkopf ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(36px, 6vw, 64px) 0 clamp(30px, 5vw, 52px); }
.page-head h1::before {
  content: ""; display: block; width: 48px; height: 3px; background: var(--accent); margin-bottom: 20px;
}

/* ---------- Inhalt + Kontaktkarte ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 6vw, 80px);
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(48px, 7vw, 88px);
  align-items: start;
}
.content { max-width: 720px; }

.contact-card {
  position: sticky; top: 112px;
  background: var(--paper);
  border-top: 3px solid var(--accent);
  padding: 26px 26px 10px;
  font-size: 15px;
}
.card-label, .footer-label {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-dark); margin: 0 0 14px;
}
.contact-card p { margin-bottom: .9em; }
.contact-line { display: flex; align-items: center; gap: 10px; }
.contact-line .icon { color: var(--accent); }
.contact-line span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Listen ---------- */
.dash-list, .court-list, .dl-list { list-style: none; padding: 0; }

/* Tätigkeitsschwerpunkte */
.dash-list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px; margin: .4em 0 1.6em; border-top: 1px solid var(--line);
}
.dash-list li { position: relative; padding: 11px 0 11px 22px; border-bottom: 1px solid var(--line); }
.dash-list li::before {
  content: ""; position: absolute; left: 2px; top: 1.32em; width: 7px; height: 7px; background: var(--accent);
}

/* Gerichte */
.court-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.2em 0 1.6em; }
.court-list li {
  background: var(--paper); border-left: 3px solid var(--navy);
  padding: 12px 16px; font-size: 15px; color: var(--navy); line-height: 1.4;
}

/* Downloads */
.dl-list { margin: 1.6em 0; border-top: 1px solid var(--line); }
.dl-list li {
  position: relative; padding: 16px 0 16px 40px; border-bottom: 1px solid var(--line); line-height: 1.5;
}
.dl-list li::before {
  content: ""; position: absolute; left: 4px; top: 17px; width: 20px; height: 24px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 24'%3E%3Cpath d='M1 1h12l6 6v16H1z' fill='none' stroke='%239a7b4f' stroke-width='1.6'/%3E%3Cpath d='M13 1v6h6' fill='none' stroke='%239a7b4f' stroke-width='1.6'/%3E%3Cpath d='M5 13h10M5 17h7' stroke='%231f2d3d' stroke-width='1.6'/%3E%3C/svg%3E");
}
.dl-list a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8ced6; font-size: 15px; }
.site-footer a { color: #fff; text-decoration-color: rgba(255, 255, 255, .35); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
  padding-top: 52px; padding-bottom: 32px;
}
.footer-brand {
  font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: .4em;
}
.site-footer .footer-label { color: #c7a77a; }
.footer-bottom {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px;
  padding-top: 18px; padding-bottom: 22px; font-size: 13px;
}
.footer-bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: rgba(255, 255, 255, .14);
}
.footer-bottom p { margin: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .js .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; min-height: 72px; padding-top: 12px; padding-bottom: 12px; row-gap: 8px; }
  .site-nav { flex-basis: 100%; }
  .nav-list { flex-direction: column; gap: 0; padding: 4px 0 14px; }
  .nav-list a { padding: 13px 2px; font-size: 15px; border-top: 1px solid var(--line); }
  .nav-list a::after { left: 2px; right: auto; width: 32px; bottom: 8px; }
  .js .site-nav:not(.is-open) { display: none; }
}

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .content { max-width: none; }
  .contact-card { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar .topbar-address { display: none; }
  .topbar-inner { justify-content: center; }
  .topbar-contact { gap: 18px; flex-wrap: wrap; justify-content: center; }
  .brand-name { font-size: 19px; letter-spacing: .1em; }
  .brand-sub { font-size: 11px; letter-spacing: .26em; }
  .dash-list, .court-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 40px; }
  .content { overflow-wrap: break-word; hyphens: auto; }
  .content a { hyphens: manual; }
}

@media (max-width: 380px) {
  .topbar .topbar-contact > span:last-child { display: none; }
}

/* ---------- Druck ---------- */
@media print {
  .topbar, .site-nav, .nav-toggle, .skip-link, .site-footer { display: none !important; }
  .site-header { position: static; border: 0; }
  .page-head { background: none; padding: 0 0 12px; }
  .layout { display: block; padding: 0; }
  .contact-card { position: static; background: none; border-top: 1px solid #000; margin-top: 24px; }
  a { color: #000; text-decoration: none; }
}
