/* ============================================================
   Kanzlei Mag. Valentin Piskernik — Design tokens
   Palette: warm plaster cream / deep plaque blue / muted brass
   Type: Georgia (display + body) — system serif, no external fonts
   Signature motif: § (Paragraphenzeichen) + the brass-riveted
   blue plaque, taken directly from the firm's actual door sign
   ============================================================ */

:root{
  --paper: #f1ebdc;
  --paper-card: #faf7ef;
  --ink: #14294f;
  --ink-soft: #3d5170;
  --charcoal: #232b3a;
  --brass: #a9865a;
  --brass-light: #cbad81;
  --line: #cdd3de;
  --line-soft: #e2e6ee;
  --max-w: 1120px;

  --plaque: #1c3f74;
  --plaque-dark: #122b52;
  --plaque-line: rgba(255,255,255,.5);

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --font-body: Georgia, "Times New Roman", serif;
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation: none !important; transition: none !important; }
}

body{
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a{ color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible{
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Eyebrow / section label styled as a statute citation ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  color: var(--brass);
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  margin: 0 0 0.9rem 0;
}
.eyebrow .mark{
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.1em;
  color: var(--ink);
}

h1, h2, h3{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  font-weight: 600;
}
h1{ font-size: clamp(2.3rem, 5.4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 3.4vw, 2.15rem); }
h3{ font-size: 1.2rem; }

p{ margin: 0 0 1.1em 0; max-width: 62ch; }

section{ padding: 5.5rem 0; }
section + section{ border-top: 1px solid var(--line-soft); }

/* ---------- Header ---------- */
header.site{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(241, 235, 220, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 2px solid var(--brass);
}
.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
}
.wordmark{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark .sign{ color: var(--brass); margin-right: 0.35em; }

nav.primary ul{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}
nav.primary a{
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
}
nav.primary a:hover{ border-bottom-color: var(--brass); color: var(--ink); }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle span{ top: 18px; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }

/* ---------- Hero ---------- */
.hero{
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: clip;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hero-mark{
  position: absolute;
  right: -0.4em;
  top: -1.6rem;
  font-family: var(--font-display);
  font-size: 22rem;
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
}
.hero .role{
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.01em;
  margin-bottom: 0.7rem;
  display: block;
}
.hero .tagline{
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero .cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.78em 1.4em;
  border-radius: 3px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.btn.primary{ background: var(--plaque); color: #fff; border-color: var(--plaque); }
.btn.primary:hover{ background: var(--plaque-dark); border-color: var(--plaque-dark); }
.btn.ghost{ color: var(--ink); border-color: var(--brass); background: transparent; }
.btn.ghost:hover{ background: rgba(169,134,90,0.1); color: var(--ink); }

/* Brass-riveted blue plaque — the site's signature element,
   modelled on the firm's actual door sign */
.plaque{
  background: var(--plaque);
  color: #fff;
  border-radius: 8px;
  padding: 2rem 2.1rem 1.9rem 2.1rem;
  position: relative;
  box-shadow: 0 20px 44px -18px rgba(18,43,82,.5);
  background-image:
    radial-gradient(circle at 16px 16px, #d7c7a6 0, var(--brass) 55%, transparent 58%),
    radial-gradient(circle at calc(100% - 16px) 16px, #d7c7a6 0, var(--brass) 55%, transparent 58%),
    radial-gradient(circle at 16px calc(100% - 16px), #d7c7a6 0, var(--brass) 55%, transparent 58%),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #d7c7a6 0, var(--brass) 55%, transparent 58%);
  background-repeat: no-repeat;
  background-size: 12px 12px;
}
.plaque h3{
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #cdd9ee;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 1.1rem;
}
.plaque hr{
  border: none;
  border-top: 1px solid var(--plaque-line);
  margin: 0.2rem 0 1rem;
}
.plaque .line{
  margin: 0 0 0.55em 0;
  font-size: 1.05rem;
  color: #e7ecf5;
}
.plaque .line .label{
  color: #cdd9ee;
  font-style: italic;
}
.plaque a{ color: #fff; text-decoration: none; border-bottom: 1px solid var(--plaque-line); }
.plaque a:hover{ border-color: #fff; }

/* ---------- Rechtsgebiete as statute list ---------- */
.statute-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--plaque-line);
  border: 1px solid var(--plaque);
  margin-top: 2.2rem;
  overflow: hidden;
  border-radius: 6px;
}
.statute-item{
  background: var(--plaque);
  padding: 1.9rem 2rem;
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
}
.statute-item .num{
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--brass-light);
  flex: 0 0 auto;
}
.statute-item p{ margin: 0; font-weight: 500; color: #eef1f7; }

/* ---------- Historie timeline ---------- */
.timeline{
  margin-top: 2.2rem;
  border-left: 2px solid var(--brass);
  padding-left: 2rem;
}
.timeline-item{ position: relative; padding-bottom: 2.2rem; }
.timeline-item:last-child{ padding-bottom: 0; }
.timeline-item::before{
  content: "";
  position: absolute;
  left: -2.42rem;
  top: 0.35rem;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline-year{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  display: block;
  margin-bottom: 0.25rem;
}
.timeline-item p{ margin: 0; color: var(--ink-soft); max-width: 58ch; }

/* ---------- Kontakt ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
  align-items: stretch;
}
.map-link-card{
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brass);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.map-link-card .map-mark{
  font-family: var(--font-display);
  position: absolute;
  right: 0.2em;
  top: -0.5rem;
  font-size: 6rem;
  color: var(--ink);
  opacity: 0.06;
  pointer-events: none;
}
.map-link-card h3{
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass);
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  margin-bottom: 0.2rem;
}
.map-link-card p{ color: var(--ink-soft); margin-bottom: 1.3rem; }

/* ---------- Footer ---------- */
footer.site{
  padding: 2.6rem 0;
  border-top: none;
  background: var(--plaque-dark);
  color: #cdd9ee;
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #cdd9ee;
}
.footer-links{ display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-links a{ text-decoration: none; color: #cdd9ee; font-weight: 500; border-bottom: 1px solid rgba(205,217,238,.4); }
.footer-links a:hover{ color: #fff; border-color: #fff; }

/* ---------- Simple legal pages (Impressum / Datenschutz) ---------- */
.legal main{ padding: 4rem 0 5rem 0; }
.legal h2{ margin-top: 2.2rem; font-size: 1.3rem; }
.legal h2:first-of-type{ margin-top: 0; }
.legal p, .legal li{ color: var(--ink-soft); max-width: 68ch; }
.legal a{ color: var(--ink); border-bottom: 1px solid var(--line); text-decoration: none; }
.legal a:hover{ color: var(--brass); border-color: var(--brass); }
.back-link{
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  text-decoration: none;
  color: var(--ink-soft);
}
.back-link:hover{ color: var(--brass); }

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .hero-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .statute-list{ grid-template-columns: 1fr; }
  .hero-mark{ font-size: 12rem; top: -0.5rem; }
}

@media (max-width: 720px){
  nav.primary{
    position: fixed;
    top: 66px; left: 0; right: 0; bottom: 0;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }
  nav.primary.open{ transform: translateX(0); }
  nav.primary ul{ flex-direction: column; gap: 0.4rem; }
  nav.primary a{
    display: block;
    padding: 0.85em 0.2em;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav-toggle{ display: block; }
  section{ padding: 3.2rem 0; }
  .hero{ padding: 2.6rem 0 3rem 0; }
}