/* nachhilfe-jura.de — Stylesheet
   Farben und Typografie übernommen von repetitorium-jura.de
   ------------------------------------------------------------------ */

/* Schriften: lokal gehostet (DSGVO). Die .woff2-Dateien gehören nach
   assets/fonts/ — siehe LIESMICH.txt. Ohne sie greifen die Fallbacks. */
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("fonts/lato-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --ink:        #1f1b1b;
  --text:       #332d2d;
  --muted:      #6e6767;
  --accent:     #6e1e26;
  --accent-dk:  #56161d;
  --tint:       #f8efef;
  --rule:       #e7e3e3;
  --bg:         #ffffff;

  --serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1080px;   /* Header / Footer */
  --col:  760px;    /* Textspalte */
  --pad:  24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 19.5px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-dk); text-decoration-thickness: 2px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.col  { width: 100%; max-width: var(--col);  margin: 0 auto; padding: 0 var(--pad); }


/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  position: relative;
  display: flex; align-items: center; gap: 24px;
  min-height: 78px;
}
.brand {
  font-family: var(--serif);
  font-size: 25px; line-height: 1;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand .tld { color: var(--accent); }
.brand:hover { color: var(--ink); text-decoration: none; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
/* Ankerlinks mittig in der Kopfzeile, Schaltfläche rechts */
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 30px;
}
.nav a:not(.btn) {
  font-family: var(--serif);
  font-size: 19px; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav a:not(.btn):hover { color: var(--accent); }
.nav a.btn, .nav a.btn:hover { color: #fff; font-family: var(--sans); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.2;
  padding: 15px 26px; border-radius: 3px;
  text-decoration: none; border: 0; cursor: pointer;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.btn-header { padding: 13px 22px; white-space: nowrap; }

.nav-toggle {
  display: none; margin-left: auto; align-items: center; min-height: 44px;
  background: none; border: 1px solid var(--rule); border-radius: 3px;
  font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--ink);
  padding: 0 16px; cursor: pointer;
}

/* ---------- Typografie ---------- */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 28px;
}
h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.2rem, 1.15rem + 3vw, 3.55rem);
  line-height: 1.1; letter-spacing: -.005em;
  color: var(--ink); margin: 0 0 40px; text-wrap: pretty;
}
h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.75rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.18; color: var(--ink);
  margin: 0 0 28px; text-wrap: pretty;
}
h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.35rem; line-height: 1.3; color: var(--ink);
  margin: 0 0 14px; text-wrap: pretty;
}
p { margin: 0 0 24px; text-wrap: pretty; }
p.lead { font-size: 1.32rem; line-height: 1.55; color: var(--text); }
p.muted { color: var(--muted); }
p.note { font-size: 1.0625rem; color: var(--muted); }
strong, b { font-weight: 700; color: var(--ink); }

ul, ol { margin: 0 0 24px; padding-left: 1.3em; }
li { margin-bottom: 10px; }

/* Numerierte Ablaufschritte */
ol.steps { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); }
ol.steps li {
  counter-increment: step; margin: 0;
  position: relative; padding: 22px 0 22px 62px;
  border-bottom: 1px solid var(--rule);
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 22px;
  font-family: var(--serif); font-size: 17px; line-height: 1.65; color: var(--accent);
}

/* Prüfliste */
ul.check { list-style: none; margin: 0 0 24px; padding: 0; }
ul.check li { position: relative; padding-left: 26px; margin-bottom: 14px; }
ul.check li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 9px; height: 9px; border: 1px solid var(--accent); border-radius: 50%;
}

/* Fallbeispiel und Zitatvorlage */
p.case {
  background: var(--tint); border-radius: 3px;
  padding: 22px 26px; margin-bottom: 28px;
}
blockquote {
  margin: 0 0 28px; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.28rem; line-height: 1.5; color: var(--ink);
}

/* Häufige Fragen */
.faq { border-top: 1px solid var(--rule); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 28px 0; }
.faq-item h3 { margin-bottom: 12px; }
.faq-item p { margin: 0; font-size: 1.0625rem; }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.section { padding: 76px 0; }
.section-tight { padding: 40px 0 76px; }
.hero { padding-top: 72px; }

/* ---------- Inhaltsverzeichnis ---------- */
.toc-label {
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 26px;
}
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { margin: 0; border-bottom: 1px solid var(--rule); }
.toc a {
  display: grid; grid-template-columns: 62px 1fr; align-items: baseline;
  padding: 19px 0; text-decoration: none; color: var(--ink);
}
.toc a:hover { color: var(--accent); }
.toc .num { font-family: var(--serif); font-size: 17px; color: var(--accent); }
.toc .title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.35; }

/* ---------- Karten ---------- */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--rule); border-radius: 3px;
  padding: 30px 28px; background: #fff;
}
.card h3 { margin-bottom: 18px; }
.card .num { color: var(--accent); }
.label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.card p { font-size: 1.0625rem; margin: 0 0 18px; }
.card p:last-child { margin-bottom: 0; }
.card h3 .num { font-size: 1.1rem; margin-right: 6px; }
.q-card p.example {
  border-left: 2px solid var(--rule); padding: 2px 0 2px 18px;
  color: var(--muted); margin-top: 20px;
}
.q-card p.example strong { color: var(--ink); }

.stack { display: grid; gap: 20px; }

/* ---------- Tabelle ---------- */
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--rule); }
thead th {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--ink);
}
tbody th { font-weight: 700; color: var(--ink); }

/* ---------- CTA ---------- */
.cta-inline { padding: 8px 0 20px; }
.cta-inline p { margin-bottom: 20px; }
.cta-box {
  background: var(--tint); border-radius: 4px;
  padding: 42px 40px;
}
.cta-box p:last-child { margin-bottom: 0; }
.cta-box .note { font-size: 1.0625rem; color: var(--muted); margin: 24px 0 0; }

/* ---------- Platzhalter (vor dem Einsetzen deiner Texte) ---------- */
.ph {
  border-left: 2px dashed #c9bdbd;
  padding: 2px 0 2px 16px;
  color: #6e6767;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9rem; line-height: 1.7;
}

/* ---------- Fußzeile ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: 40px; padding: 68px 0 0; }
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.6fr 1fr 1fr;
  padding-bottom: 56px;
}
.footer-brand { font-family: var(--serif); font-size: 25px; color: var(--ink); margin: 0 0 16px; }
.footer-brand .tld { color: var(--accent); }
.footer-grid p:not(.footer-brand):not(.footer-label) { font-size: 1.0625rem; color: var(--muted); margin: 0; }
.footer-label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-links li { margin: 0; line-height: 1.5; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 1.0625rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  padding: 24px 0 40px; font-size: 1rem; color: var(--muted);
}

/* ---------- Rechtstexte / schmale Seiten ---------- */
.legal h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-top: 48px; }
.legal h3 { font-size: 1.2rem; margin-top: 32px; }
.legal p, .legal li { font-size: 1.0625rem; }
.legal p.lead { font-size: 1.2rem; }
.legal h2 .sec-num { color: var(--accent); margin-right: 10px; }
.legal p.address { line-height: 1.85; }
.legal ul.check li { font-size: 1.0625rem; }

/* ---------- Mobil ---------- */
@media (max-width: 1000px) {
  html { scroll-padding-top: 88px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px);
    overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border-bottom: 1px solid var(--rule);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--pad) 20px;
  }
  .nav.open { display: flex; }
  .nav-links {
    position: static; left: auto; transform: none;
    flex-direction: column; align-items: stretch; gap: 0;
  }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 20px; }
  .nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .header-inner { min-height: 66px; }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 18px; }
  .section { padding: 54px 0; }
  .section-tight { padding: 32px 0 54px; }
  .hero { padding-top: 44px; }
  .cta-box { padding: 32px 24px; }
  .toc a { grid-template-columns: 44px 1fr; }
  ol.steps li { padding-left: 44px; }
  .card { padding: 26px 22px; }
  p.case { padding: 20px; }
  .site-footer { padding-top: 52px; }
}
@media (max-width: 600px) {
  p, li, td { -webkit-hyphens: auto; hyphens: auto; }
  /* Tabellen: Zeilen untereinander, Spaltenköpfe als Beschriftung je Zelle */
  .table-scroll { overflow: visible; }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-scroll tbody { border-bottom: 1px solid var(--rule); }
  .table-scroll tr { border-top: 1px solid var(--ink); padding-top: 18px; }
  .table-scroll tr + tr { border-top-color: var(--rule); }
  .table-scroll td { border: 0; padding: 0 0 18px; }
  .table-scroll td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  }
  main .btn { display: block; text-align: center; }
  .cta-box { margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); border-radius: 0; padding: 32px var(--pad); }
}
@media (max-width: 360px) {
  :root { --pad: 18px; }
  .brand, .footer-brand { font-size: 21px; }
  .header-inner { gap: 12px; }
  .header-inner > .btn-header { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; padding: 0 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 300px) {
  :root { --pad: 16px; }
  .brand { font-size: 19px; }
  .header-inner { gap: 10px; }
  .header-inner > .btn-header { font-size: 13px; padding: 0 12px; }
}

@media print {
  .site-header, .nav-toggle, .btn { display: none !important; }
  body { font-size: 11pt; }
}
