/* ========================================================================
   Hausmann Consulting — Shared styles for legal pages
   (impressum.html, datenschutz.html, agb.html)

   Header & footer styles are extracted verbatim from index.html so the
   chrome is visually identical. Content area gets its own block.
   ======================================================================== */

/* ====== Theme tokens (mutable via data-* attrs on <html>) ====== */
:root {
  --petrol: #0E3F47;
  --petrol-deep: #082930;
  --petrol-soft: #1A5660;
  --mint: #21D5C2;
  --mint-deep: #14A695;
  --mint-soft: #C8EEE9;
  --ocker: #C8843D;
  --ocker-deep: #A36825;
  --ocker-soft: #EFD8B5;
  --cream: #F6F1E8;
  --cream-warm: #EFE6D4;
  --paper: #FBF9F4;
  --ink: #18272C;
  --ink-soft: #4A5A60;
  --rule: #E4DED1;
  --rule-soft: #ECE7DC;

  --bg: var(--paper);
  --bg-elev: #FFFFFF;
  --bg-section: var(--cream);
  --bg-deep: var(--petrol);
  --bg-deep-text: var(--cream);
  --accent: var(--mint);
  --accent-deep: var(--mint-deep);
  --warm: var(--ocker);
  --warm-deep: var(--ocker-deep);
  --warm-soft: var(--ocker-soft);
  --headline: var(--petrol);
  --eyebrow: var(--ocker-deep);

  --serif: "Instrument Serif", "Newsreader", Georgia, serif;
  --sans: "Geist", "Manrope", -apple-system, system-ui, sans-serif;
  --display-tracking: -0.025em;
  --display-line: 1.0;
  --body-line: 1.55;
}

/* ====== Reset ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { font-size: 16px; line-height: var(--body-line); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

/* ====== Layout helpers ====== */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 64px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--eyebrow);
  font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: var(--display-line);
  letter-spacing: var(--display-tracking);
  color: var(--headline);
}

/* ====== TOPBAR (identical to index.html) ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  overflow: visible;
}
.topbar .inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: visible;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark .label {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
  color: var(--headline);
  letter-spacing: -0.005em;
}
img.logo-wordmark-sm {
  display: block;
  width: 200px;
  height: auto;
}

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  font-size: 14px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0.005em;
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav a:hover { color: var(--accent-deep); }
.nav .cta {
  background: var(--petrol);
  color: var(--bg-deep-text);
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  transition: background .15s;
}
.nav .cta:hover { background: var(--petrol-deep); color: var(--bg-deep-text); }

/* ====== Legal content area ====== */
.legal-page {
  padding: 80px 0 120px;
}
.legal-page .head {
  max-width: 780px;
  margin: 0 auto 56px;
  text-align: left;
}
.legal-page .head .eyebrow {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.legal-page .head .eyebrow::before {
  content: ""; display: block; width: 28px; height: 1px; background: var(--warm);
}
.legal-page h1.display {
  font-size: 64px;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 24px;
}
.legal-page .head .lede {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 56ch;
}
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--headline);
  margin: 64px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--headline);
  margin: 36px 0 14px;
}
.legal-content h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: var(--headline);
  margin: 28px 0 10px;
  text-transform: none;
}
.legal-content p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}
.legal-content p strong,
.legal-content strong {
  color: var(--ink);
  font-weight: 600;
}
.legal-content a {
  color: var(--accent-deep);
  border-bottom: 1px solid currentColor;
}
.legal-content a:hover {
  color: var(--petrol);
}
.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 22px;
  color: var(--ink-soft);
}
.legal-content li {
  margin-bottom: 6px;
}
.legal-content .address {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  color: var(--headline);
  padding: 24px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin: 16px 0 24px;
  letter-spacing: -0.005em;
}
.legal-content .tbd {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 99px;
  background: var(--ocker-soft);
  color: var(--ocker-deep);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.legal-content .notice {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--cream);
  border-left: 3px solid var(--ocker);
  border-radius: 0 4px 4px 0;
  font-size: 14.5px;
  color: var(--ink);
}
.legal-content .notice strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  color: var(--ocker-deep);
}
.legal-content .uppercase-block {
  font-size: 13.5px;
  line-height: 1.7;
  background: var(--bg-section);
  padding: 18px 22px;
  border-radius: 4px;
  margin: 16px 0;
  color: var(--ink);
}

/* ====== FOOTER (identical to index.html) ====== */
footer {
  background: var(--petrol-deep);
  color: rgba(246, 241, 232, 0.7);
  padding: 80px 0 40px;
}
footer .top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
footer .col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(246, 241, 232, 0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
footer .col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer .col ul li { font-size: 14px; line-height: 1.55; color: rgba(246, 241, 232, 0.78); }
footer .col ul a { font-size: 14px; color: rgba(246, 241, 232, 0.78); }
footer .col ul a:hover { color: var(--bg-deep-text); }
footer .brand-col .name {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--bg-deep-text);
  margin-bottom: 16px;
}
footer .brand-col p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(246, 241, 232, 0.6);
  max-width: 36ch;
  margin-bottom: 20px;
}
footer .jh-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(246, 241, 232, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
footer .jh-link::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--mint);
  display: inline-block;
}
footer .bottom {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(246, 241, 232, 0.4);
  letter-spacing: 0.04em;
}
footer .bottom .legal { display: flex; gap: 24px; }


/* ====== MOBILE / TABLET RESPONSIVE ====== */
html, body { overflow-x: hidden; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--petrol);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .topbar .inner { padding: 14px 20px; gap: 12px; }
  img.logo-wordmark-sm { width: 140px; height: auto; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--paper, #fbf9f4);
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--rule, #e0d8c8);
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: 0 20px 40px -20px rgba(8,41,48,0.25);
    align-items: stretch;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    z-index: 40;
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--rule-soft, #efe9da);
    white-space: normal;
  }
  .nav a:last-child { border-bottom: 0; }
  .nav .cta {
    margin-top: 12px;
    text-align: center;
    padding: 14px 18px;
    border-radius: 99px;
  }
  .legal-page, .legal-content { padding: 32px 20px !important; }
  .legal-page h1 { font-size: 32px !important; }
  .legal-page h2 { font-size: 22px !important; }
}
