/* ============================================================
   legal.css — gemeinsames Stylesheet für alle Rechtsseiten
   (Impressum, Datenschutz, AGB, Widerruf, Barrierefreiheit, Kontakt)
   Markenidentität synchron mit index.html / checkout.html
   ============================================================ */
:root {
  --color-primary:   #004d2d;
  --color-primary-d: #003820;
  --color-primary-l: #006b3e;
  --color-gold:      #C9A84C;
  --color-gold-l:    #F0CF7A;
  --color-dark:      #004d2d;
  --color-neutral:   #4A4A4A;
  --color-neutral-l: #F2F2F2;
  --color-white:     #FFFFFF;
  --color-bg:        #F7F4EC;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);

  --transition-fast: 160ms ease;
  --transition-med:  280ms ease;

  --max-w: 980px;
  --header-h: 64px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--color-neutral);
  background: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
a { color: var(--color-primary-l); }
a:hover { color: var(--color-primary); }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: .5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: .5rem; }

/* ============================================================
   HEADER
   ============================================================ */
.lp-header {
  background: linear-gradient(150deg, #005c35 0%, #004d2d 50%, #003820 100%);
  color: var(--color-white);
  border-bottom: 1px solid rgba(201,168,76,.30);
  box-shadow: 0 1px 8px rgba(0,0,0,.18);
}
.lp-header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding: .8rem clamp(1rem, 4vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lp-back {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  padding: .35rem .7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.lp-back:hover {
  background: rgba(255,255,255,.10);
  color: var(--color-white);
  border-color: rgba(201,168,76,.5);
}
.lp-logo { display: flex; align-items: center; gap: .5rem; color: var(--color-white); text-decoration: none; }
.lp-logo-text { display: flex; flex-direction: column; gap: .1rem; }
.lp-logo-name { font-size: 1.05rem; font-weight: 900; letter-spacing: -.01em; line-height: 1; }
.lp-logo-name .lg { color: var(--color-gold); }
.lp-logo-name .ld { color: rgba(255,255,255,.65); font-weight: 600; }
.lp-logo-tagline { font-size: .56rem; font-weight: 600; color: var(--color-gold); letter-spacing: .04em; line-height: 1; }
.lp-phone {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
}
.lp-phone:hover { color: var(--color-gold-l); }

/* ============================================================
   MAIN / CONTENT
   ============================================================ */
.lp-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1rem, 4vw, 2rem) 3rem;
}
.lp-breadcrumb {
  font-size: .8rem;
  color: var(--color-neutral);
  margin-bottom: 1rem;
}
.lp-breadcrumb a { text-decoration: none; }
.lp-breadcrumb a:hover { text-decoration: underline; }

.lp-content {
  background: var(--color-white);
  border: 1px solid #E5DDC8;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.lp-content h1 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: .5rem;
}
.lp-updated {
  font-size: .82rem;
  color: var(--color-neutral);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E5DDC8;
}
.lp-content h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 800;
  color: var(--color-primary-d);
  margin: 2.25rem 0 .75rem;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.lp-content h2:first-of-type { margin-top: .5rem; }
.lp-content h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--color-dark);
  margin: 1.5rem 0 .5rem;
}
.lp-content p { margin-bottom: 1rem; }
.lp-content ul,
.lp-content ol { margin: 0 0 1rem 1.4rem; }
.lp-content li { margin-bottom: .4rem; }
.lp-content strong { color: var(--color-dark); }
.lp-content a { word-break: break-word; }

.lp-content address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Hervorgehobener Hinweiskasten */
.lp-note {
  background: #FAF6E9;
  border: 1px solid #E5DDC8;
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: .92rem;
}
.lp-note.important {
  background: #FFF7F5;
  border-left-color: #DC2626;
}
.lp-note p:last-child { margin-bottom: 0; }

/* Platzhalter, die der Betreiber ausfüllen muss */
.lp-fill {
  background: #FFF3CD;
  border-bottom: 2px dotted #B8860B;
  padding: 0 .2rem;
  font-weight: 600;
  color: #7A5A00;
}

/* Inhaltsübersicht (Sprungmarken) */
.lp-toc {
  background: var(--color-neutral-l);
  border: 1px solid #E5DDC8;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.3rem;
  margin-bottom: 2rem;
}
.lp-toc h2 {
  font-size: .95rem !important;
  margin: 0 0 .6rem !important;
  color: var(--color-dark) !important;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lp-toc ol { margin: 0 0 0 1.2rem; columns: 2; column-gap: 2rem; }
.lp-toc li { margin-bottom: .3rem; font-size: .88rem; }
.lp-toc a { text-decoration: none; }
.lp-toc a:hover { text-decoration: underline; }

/* Tabellen (z. B. Datenschutz Speicherfristen) */
.lp-table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.lp-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  min-width: 420px;
}
.lp-content th,
.lp-content td {
  text-align: left;
  padding: .6rem .8rem;
  border: 1px solid #E5DDC8;
  vertical-align: top;
}
.lp-content th { background: #FAF6E9; color: var(--color-dark); font-weight: 800; }

/* Kontaktkarten (Kontaktseite) */
.lp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.lp-card {
  background: #FAF6E9;
  border: 1px solid #E5DDC8;
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.lp-card-icon { font-size: 1.6rem; margin-bottom: .5rem; }
.lp-card h3 { margin-top: 0; }
.lp-card a { font-weight: 700; }

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-l));
  color: #002818;
  border-radius: var(--radius-full);
  font-weight: 800;
  text-decoration: none;
  margin-top: .5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.lp-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,.4); color: #002818; }

/* Karte (Klick-zum-Laden, datenschutzfreundlich) */
.lp-map {
  margin: 1rem 0 1.5rem;
  border: 1px solid #E5DDC8;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FAF6E9;
}
.lp-map-load {
  width: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 2rem 1rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  background:
    repeating-linear-gradient(45deg, rgba(0,77,45,.03) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #FAF6E9 0%, #F1E9D0 100%);
  transition: background var(--transition-fast);
}
.lp-map-load:hover { background: linear-gradient(135deg, #F4ECD6 0%, #EBE0C2 100%); }
.lp-map-pin { font-size: 2.6rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.lp-map-text { display: flex; flex-direction: column; gap: .25rem; text-align: center; }
.lp-map-text strong { color: var(--color-dark); font-size: 1rem; }
.lp-map-text .lp-map-cta {
  color: #002818;
  font-weight: 800;
  font-size: .85rem;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-l));
  padding: .5rem 1.2rem;
  border-radius: var(--radius-full);
  margin-top: .35rem;
}
.lp-map-frame { width: 100%; height: 360px; border: 0; display: block; }
.lp-map-hint { font-size: .72rem; color: var(--color-neutral); padding: .55rem .85rem; margin: 0; background: #fff; }
.lp-map-hint a { text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */
.lp-footer {
  background: var(--color-primary-d);
  color: rgba(255,255,255,.65);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  font-size: .78rem;
}
.lp-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1rem;
  margin-bottom: .75rem;
}
.lp-footer-links a { color: rgba(255,255,255,.8); text-decoration: none; }
.lp-footer-links a:hover { color: var(--color-gold-l); }
.lp-footer-meta { color: rgba(255,255,255,.5); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 600px) {
  .lp-toc ol { columns: 1; }
  .lp-header-inner { padding: .65rem .85rem; gap: .6rem; }
  .lp-phone { font-size: .8rem; }
  .lp-back { font-size: .8rem; }
  .lp-content { padding: 1.25rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
