/* ---------------------------------------------------------------
   Gemeinsame Stile für die Rechtstexte-Unterseiten
   (AGB, Datenschutzerklärung, Widerrufsbelehrung)
   Übernimmt Farben, Typografie, Header und Footer von index.html
   --------------------------------------------------------------- */
:root {
  --bg:          #faf8f5;
  --bg-alt:      #f2efe8;
  --surface:     #ffffff;
  --ink:         #12243a;
  --ink-soft:    #4c5f75;
  --ink-muted:   #7c8b9c;
  --line:        #e3ded4;
  --line-strong: #d2cabb;
  --accent:      #0d7d72;
  --accent-deep: #0a5f57;
  --navy:        #0f1e33;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: 'Lato', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); line-height: 1.12; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-deep); }

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

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: .85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Header
   --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark { text-decoration: none; line-height: 1.2; }
.wordmark__name {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
}
.wordmark__sub {
  display: block;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
  color: var(--ink);
  text-decoration: none;
  padding-block: .4rem;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

.header__actions { display: flex; align-items: center; gap: 1rem; }
.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header__phone:hover { color: var(--accent-deep); }

.menu-toggle {
  display: none;
  width: 2.5rem; height: 2.5rem;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--ink); cursor: pointer;
}

#mobileMenu { display: none; border-top: 1px solid var(--line); background: var(--bg); }
#mobileMenu.open { display: block; }
#mobileMenu a {
  display: block;
  padding: .9rem var(--gutter);
  color: var(--ink);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  border-bottom: 1px solid var(--line);
}
#mobileMenu a:last-child { border-bottom: 0; }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 620px) {
  .header__phone span { display: none; }
  /* Auf schmalen Displays bleibt nur Telefon-Icon und Menue, wie auf der Startseite */
  .site-header .btn--primary { display: none; }
}

/* ---------------------------------------------------------------
   Kopfbereich der Rechtsseite
   --------------------------------------------------------------- */
.legal-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(2.75rem, 6vw, 4.5rem);
}
.legal-hero__lead {
  max-width: 42rem;
  margin-top: 1.1rem;
  font-size: 1.05rem;
}
.legal-hero__meta {
  margin-top: 1.5rem;
  font-size: .85rem;
  color: var(--ink-muted);
}

.breadcrumb {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
}
.breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-deep); }

/* ---------------------------------------------------------------
   Textkörper
   --------------------------------------------------------------- */
.legal-body { padding-block: clamp(2.75rem, 6vw, 4.5rem); }

.legal-body .wrap {
  max-width: 52rem;
  margin-inline: auto;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 2.75rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal-body > .wrap > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.legal-body h3 {
  font-size: 1.02rem;
  margin: 1.9rem 0 .6rem;
  color: var(--ink);
}

.legal-body ul { padding-left: 1.25rem; margin: 0 0 1.15rem; }
.legal-body li { margin-bottom: .5rem; }

.legal-body address {
  font-style: normal;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.35rem;
  margin: 0 0 1.15rem;
}

/* Hervorgehobener Kasten, z. B. Widerspruchsrecht */
.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout h3 { margin-top: 0; }

/* Formular zum Ausdrucken (Muster-Widerrufsformular) */
.formblock {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin: 1.5rem 0;
}
.formblock__line {
  display: block;
  border-bottom: 1px solid var(--line-strong);
  min-height: 2.4rem;
  margin-bottom: .35rem;
}
.formblock__label {
  display: block;
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: 1.35rem;
}
.formblock__note { font-size: .85rem; color: var(--ink-muted); }

/* Inhaltsverzeichnis */
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.35rem 1.6rem;
  margin-bottom: 2.5rem;
}
.toc h2 {
  font-size: .78rem !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 .9rem !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.toc ol, .toc ul {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 2rem;
  font-size: .95rem;
}
.toc li { margin-bottom: .4rem; break-inside: avoid; }
.toc ul { list-style: none; padding-left: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 620px) {
  .toc ol, .toc ul { columns: 1; }
}

/* Querverweise auf die anderen Rechtstexte */
.legal-links {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .875rem;
}

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.62);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: .9rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.site-footer .wordmark__name { color: #fff; }
.site-footer .wordmark__sub { color: rgba(255,255,255,.5); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.62); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__bar {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.site-footer__bar nav { display: flex; flex-wrap: wrap; gap: 1.75rem; }

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

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

/* ---------------------------------------------------------------
   Druckansicht
   --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .legal-links, .toc, .breadcrumb { display: none; }
  body { background: #fff; font-size: 11pt; }
  .legal-hero { background: #fff; border: 0; padding-block: 0 1.5rem; }
  .legal-body h2 { break-after: avoid; }
}
