/* ============================================================
   UNTERSEITEN  ::  Ausgabe Nº02 "Der Teich"
   Impressum, Datenschutz, Statuten (Beitritt nutzt bis zur Umstellung noch legal.css)
   Text liegt auf einem Papierblatt, das auf dem Teich treibt.
   ============================================================ */

/* Fonts: selbst gehostet, wie auf der Startseite */
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/fredoka-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(fonts/fredoka-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-var-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(fonts/nunito-var-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/space-mono-400-latin.woff2) format('woff2'); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/space-mono-700-latin.woff2) format('woff2'); }

:root {
  --pond: #2acca3; --pond-2: #22b28e; --pond-3: #188a6e;
  --deeper: #204633; --mud: #2f3122;
  --ink: #2f3122; --ink-soft: #4d5440;
  --frog: #6e9e60; --frog-lt: #86b874; --olive: #444e30; --belly: #acdd9e;
  --cream: #fff6dc; --paper: #fffbec; --lily: #ff8fb1; --sun: #ffd95a;
  --bw: 3px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
  --maxw: 820px; --gutter: clamp(1rem, 4.5vw, 3rem);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C60 6 120 6 180 22 S300 38 360 22 V40 H0 Z'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background-color: var(--pond-2);
  /* Lichtkringel auf dem Wasser, wie im Hero */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M20 30 q18 -10 36 0'/%3E%3Cpath d='M150 80 q22 -12 44 0'/%3E%3Cpath d='M95 105 q10 -6 20 0'/%3E%3Cpath d='M210 20 q12 -7 24 0'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink); font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: inherit; }
a, button, summary, label { -webkit-tap-highlight-color: transparent; }
::selection { background: var(--belly); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

/* ---------- Kopfleiste ---------- */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem var(--gutter);
  background: var(--pond); border-bottom: var(--bw) solid var(--ink);
}
.legal-nav .brand {
  display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.01em;
}
.legal-nav .brand img {
  width: 42px; height: 42px; border-radius: 50%;
  border: var(--bw) solid var(--ink); background: var(--pond);
  transition: transform 0.35s var(--bounce);
}
.legal-nav .back {
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--sun); color: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 999px; padding: 0.4em 1.1em;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.legal-nav .back:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--belly); }
.legal-nav .back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ---------- Papierblatt ---------- */
.legal-wrap {
  position: relative; width: calc(100% - 2 * var(--gutter)); max-width: var(--maxw);
  margin: clamp(2.5rem, 7vw, 4.5rem) auto clamp(4rem, 9vw, 6rem);
  padding: clamp(1.6rem, 5vw, 3.4rem) clamp(1.2rem, 5vw, 3.4rem) clamp(1.6rem, 4vw, 2.8rem);
  background: var(--paper);
  border: var(--bw) solid var(--ink); border-radius: 22px;
  box-shadow: 0 8px 0 var(--ink);
}
/* Seerosenblatt mit Blüte an der oberen Ecke */
.legal-wrap::before {
  content: ""; position: absolute; top: -2rem; right: -0.6rem;
  width: clamp(80px, 12vw, 120px); aspect-ratio: 1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-54 -54 108 108'%3E%3Cpath d='M0 0 L23 -39.8 A46 46 0 1 0 37.7 -26.4 Z' fill='%2386b874' stroke='%232f3122' stroke-width='4' stroke-linejoin='round'/%3E%3Cg stroke='%23444e30' stroke-width='2.5' stroke-linecap='round' opacity='.55'%3E%3Cpath d='M0 0 L-30 -26'/%3E%3Cpath d='M0 0 L-40 6'/%3E%3Cpath d='M0 0 L-22 34'/%3E%3Cpath d='M0 0 L14 40'/%3E%3Cpath d='M0 0 L38 14'/%3E%3C/g%3E%3Cg transform='translate(-18 -14)' fill='%23ff8fb1' stroke='%232f3122' stroke-width='2.5'%3E%3Cellipse cy='-9' rx='6' ry='11'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(72)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(144)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(216)'/%3E%3Cellipse cy='-9' rx='6' ry='11' transform='rotate(288)'/%3E%3Ccircle r='5' fill='%23ffd95a'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  transform: rotate(12deg);
  filter: drop-shadow(0 5px 0 rgba(32, 70, 51, 0.35));
}

.kicker {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--belly); border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 0.2em 0.9em; box-shadow: 0 3px 0 var(--ink);
}
.kicker::before { content: ""; width: 0.75em; height: 0.75em; border-radius: 50%; background: var(--frog); border: 2px solid var(--ink); }

.legal-wrap h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 5rem); line-height: 0.95; letter-spacing: -0.01em;
  margin: 1.1rem 0 1.8rem; overflow-wrap: anywhere;
}
.legal-wrap h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.15;
  margin: 2.6rem 0 0.9rem; padding-top: 1.3rem;
  border-top: 2px dashed rgba(47, 49, 34, 0.3);
  display: flex; align-items: baseline; gap: 0.55rem;
}
/* kleines Seerosen-Blatt vor jeder Überschrift */
.legal-wrap h2::before {
  content: ""; flex: none; width: 0.8em; height: 0.8em; transform: translateY(0.08em);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-52 -52 104 104'%3E%3Cpath d='M0 0 L23 -39.8 A46 46 0 1 0 37.7 -26.4 Z' fill='%2386b874' stroke='%232f3122' stroke-width='9' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.legal-wrap h3 {
  font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.05em;
  margin: 1.5rem 0 0.4rem; color: var(--deeper);
}
.legal-wrap p { margin-bottom: 1rem; max-width: 68ch; }
.legal-wrap a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--frog);
  text-decoration-thickness: 2px; text-underline-offset: 3px; border-radius: 4px;
  transition: background 0.15s;
}
.legal-wrap ul, .legal-wrap ol { margin: 0 0 1rem 1.3rem; max-width: 68ch; padding: 0; }
.legal-wrap ol ol, .legal-wrap ul ul { margin-top: 0.45rem; }
.legal-wrap li { margin-bottom: 0.45rem; padding-left: 0.2rem; }
.legal-wrap ul li::marker { color: var(--frog); }
.legal-wrap ol li::marker { color: var(--deeper); font-family: var(--font-mono); font-weight: 700; font-size: 0.9em; }
.legal-wrap strong { font-weight: 800; }

/* Steckbrief-Kasten (Verein, Adresse, ZVR …) */
.idcard {
  background: rgba(172, 221, 158, 0.32);
  border: var(--bw) solid var(--ink); border-radius: 20px;
  padding: clamp(1.1rem, 3vw, 1.8rem); margin: 0.6rem 0 1.6rem;
}
.idcard dl { display: grid; grid-template-columns: 1fr; gap: 0.2rem 1.2rem; margin: 0; }
@media (min-width: 560px) { .idcard dl { grid-template-columns: minmax(0, 160px) 1fr; } }
.idcard dt { font-family: var(--font-mono); font-weight: 700; text-transform: uppercase; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--ink-soft); padding-top: 0.5rem; }
.idcard dd { margin: 0 0 0.7rem; font-weight: 600; }
.idcard dd:last-child { margin-bottom: 0; }

.note {
  font-family: var(--font-mono); font-size: 0.82rem; line-height: 1.55; color: var(--ink-soft);
  background: rgba(255, 217, 90, 0.25); border-left: 5px solid var(--sun); border-radius: 0 12px 12px 0;
  padding: 0.7rem 1rem; margin: 1.6rem 0;
}

/* Statuten: PDF-Knopf und Errichtungsvermerk */
.legal-wrap .pdf-link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none !important;
  background: var(--sun) !important; border: var(--bw) solid var(--ink); border-radius: 999px;
  padding: 0.5em 1.2em; margin: 0.3rem 0 0.6rem; box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.18s var(--bounce), box-shadow 0.18s var(--ease), background 0.18s;
}
.legal-wrap .pdf-link::before { content: "↓"; }
.legal-wrap .pdf-link:focus-visible { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); background: var(--belly) !important; }
.statute-sig {
  font-family: var(--font-mono); font-size: 0.88rem; font-style: italic; color: var(--ink-soft);
  margin-top: 2.6rem; padding-top: 1.2rem; border-top: 2px dashed rgba(47, 49, 34, 0.3);
}

/* ---------- Fuß: Schlamm mit Wellenkante ---------- */
.legal-foot {
  position: relative; margin-top: auto;
  background: var(--mud); color: var(--cream);
  padding: 2.2rem var(--gutter) 2.4rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.legal-foot::before, .legal-foot::after {
  content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none;
  -webkit-mask: var(--wave) repeat-x 0 0 / 360px 40px; mask: var(--wave) repeat-x 0 0 / 360px 40px;
}
.legal-foot::before { top: -42px; background: #1d1f15; }
.legal-foot::after { top: -39px; background: var(--mud); }
.legal-foot a { color: var(--cream); text-decoration: underline; text-decoration-color: var(--frog); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-foot a { display: inline-block; padding-block: 0.7rem; } /* Tippfläche */
.legal-foot .sep { display: inline-block; width: 0.5em; height: 0.5em; margin: 0 0.8em; border-radius: 50%; background: var(--belly); vertical-align: 0.1em; }

@media (min-width: 521px) {
  .legal-wrap { border-radius: 28px; }
  .legal-wrap::before { top: -2.6rem; right: -1rem; }
  .legal-nav .brand { font-size: 1.45rem; }
}

/* Hover-Effekte nur mit Maus/Trackpad, Touch bekommt :active */
@media (hover: hover) {
  .legal-nav .brand:hover img { transform: translateY(-4px) rotate(-8deg); }
  .legal-nav .back:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--belly); }
  .legal-wrap a:hover { background: var(--belly); text-decoration-color: var(--ink); }
  .legal-wrap .pdf-link:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); background: var(--belly) !important; }
  .legal-foot a:hover { color: var(--sun); text-decoration-color: var(--sun); }
}
.legal-wrap .pdf-link:active, .legal-nav .back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.001ms !important; }
}

/* Gemeinsames Markup mit Ausgabe 1: deren Schriftzug "V/ROGS" hier ausblenden */
.legal-nav .brand .b1 { display: none; }
