/* Made by PapaGordon */
/* Gemeinsame Basis für alle fünf MeFriendos-Seiten.
   Quelle: www/Website/assets/mf-base.css
   Nach Änderungen: node scripts/sync-public-base.cjs */

/* Schriften (selbst gehostet, keine externen Anfragen). */
@font-face { font-family: "MF Display"; src: url("fonts/InterDisplay-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "MF Display"; src: url("fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "MF Text"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "MF Text"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

/* Farben und Maße. */
:root {
  --night: #17152b;
  --deck: #211e3a;
  --deck-high: #2b2749;
  --moon: #eeeaf6;
  --haze: #a9a4c2;
  --soft: #d9d5e6;
  --line: rgba(238, 234, 246, .12);
  --coral: #f06a4f;
  --sun: #e3c65c;
  --sky: #72a9d5;
  --leaf: #82bd79;
  --mint: #94cdb6;
  --plum: #b294cc;
  --live: #5fd38d;
  --radius-tile: 18px;
  --radius-small: 10px;
  --page: min(1240px, calc(100vw - 48px));
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font-display: "MF Display", "MF Text", system-ui, sans-serif;
  --font-text: "MF Text", system-ui, sans-serif;
  interpolate-size: allow-keywords;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--moon); font: 400 17px/1.6 var(--font-text); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--coral); color: var(--night); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; border-radius: 4px; }
.visuallyHidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skipLink { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-small); background: var(--moon); color: var(--night); font-weight: 600; transform: translateY(-160%); }
.skipLink:focus { transform: none; }

/* Header. */
.siteHeader { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 28px; padding: 14px max(24px, calc((100vw - 1240px) / 2)); background: rgba(23, 21, 43, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--moon); text-decoration: none; font: 900 19px/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 11px; background: var(--coral); padding: 4px; }
.brand small { color: var(--haze); font: 600 15px/1 var(--font-text); letter-spacing: 0; }
.siteNav { display: flex; gap: 4px; margin-left: auto; }
.siteNav a { padding: 8px 12px; border-radius: 999px; color: var(--haze); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .2s, background .2s; }
.siteNav a:hover, .siteNav a[aria-current="page"] { color: var(--moon); background: var(--deck-high); }
.languageSwitch { display: flex; padding: 3px; border-radius: 999px; background: var(--deck); }
.languageSwitch button { min-width: 44px; min-height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--haze); font-size: 14px; font-weight: 600; cursor: pointer; }
.languageSwitch button[aria-pressed="true"] { background: var(--moon); color: var(--night); }
.mobileMenu { display: none; position: relative; }
.mobileMenu summary { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; background: var(--deck); cursor: pointer; list-style: none; }
.mobileMenu summary::-webkit-details-marker { display: none; }
.mobileMenu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--moon); transition: transform .25s var(--ease-out); }
.mobileMenu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
.mobileMenu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobileMenu nav { position: absolute; top: calc(100% + 10px); right: 0; width: min(300px, calc(100vw - 32px)); display: grid; padding: 8px; border-radius: 18px; background: var(--deck); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgba(6, 4, 20, .9); }
.mobileMenu nav a { padding: 12px 14px; border-radius: 12px; color: var(--moon); font-weight: 600; text-decoration: none; }
.mobileMenu nav a:hover, .mobileMenu nav a[aria-current="page"] { background: var(--deck-high); }
.mobileMenu nav hr { width: 100%; margin: 6px 0; border: 0; border-top: 1px solid var(--line); }

/* Buttons und Links. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease-out), background .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.98); }
.buttonCoral { background: var(--coral); color: #1a0f0b; }
.buttonGhost { border: 1px solid var(--line); background: var(--deck); color: var(--moon); }
.buttonGhost:hover { background: var(--deck-high); }
.buttonDark { background: var(--night); color: var(--moon); }
.buttonLight { background: var(--moon); color: var(--night); }
.textLink { display: inline-block; color: var(--moon); font-weight: 600; text-decoration-color: var(--coral); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Seitenkopf für Unterseiten. */
.pageHero { width: var(--page); margin: 0 auto; padding: clamp(56px, 9vw, 120px) 0 clamp(36px, 5vw, 56px); }
.pageHero h1 { font-size: clamp(52px, 8vw, 116px); line-height: .92; letter-spacing: -.05em; }
.pageHero h1 em { font-style: normal; color: var(--coral); }
.pageHero > p { max-width: 36em; margin-top: 24px; color: var(--haze); font-size: clamp(17px, 1.4vw, 19px); }
.pageHero .heroActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.section { width: var(--page); margin: 0 auto; padding-top: clamp(72px, 10vw, 130px); }
.sectionHead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 60px; align-items: end; margin-bottom: 36px; }
.sectionHead h2 { font-size: clamp(40px, 5.2vw, 72px); }
.sectionHead p { max-width: 34em; color: var(--haze); }
.sectionHead a { color: var(--moon); text-underline-offset: 4px; }

/* Rechtliche Seiten. */
.legalHero { width: var(--page); margin: 0 auto; padding: clamp(56px, 9vw, 110px) 0 clamp(32px, 5vw, 48px); }
.legalHero .eyebrow { display: none; }
.legalHero h1 { font-size: clamp(48px, 8vw, 104px); line-height: .92; letter-spacing: -.05em; text-transform: none; }
.legalHero > p:last-child { margin-top: 18px; color: var(--haze); font-size: 18px; }
.legalContent { width: var(--page); margin: 0 auto; display: grid; gap: 12px; }
.legalLead, .legalSection { display: grid; grid-template-columns: minmax(200px, .38fr) minmax(0, 1fr); gap: 0 48px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-tile); background: var(--deck); }
.legalLead { background: var(--deck-high); }
.legalLead > span { color: var(--haze); font-size: 14px; font-weight: 600; }
.legalLead h2 { margin-bottom: 12px; font-size: clamp(28px, 3.6vw, 46px); overflow-wrap: anywhere; hyphens: auto; }
.legalLead > *, .legalSection > * { min-width: 0; }
.legalLead p, .legalSection > p, .legalSection > address, .legalSection > ul { max-width: 46em; color: var(--soft); font-style: normal; line-height: 1.7; }
.legalLead p + p, .legalSection > p + p, .legalSection > p + address, .legalSection > address + p { margin-top: 10px; }
.legalSection h2 { font: 800 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -.02em; }
.legalSection > h2, .legalSection > h3 { grid-row: span 30; }
.legalContent address { font-style: normal; }
.legalSection > :not(h2):not(h3) { grid-column: 2; }
.legalSection > div > p + p { margin-top: 10px; }
.legalSection > div > p { max-width: 46em; color: var(--soft); line-height: 1.7; }
.legalSection > h3 { margin: 0; font: 800 clamp(20px, 2vw, 26px)/1.2 var(--font-display); letter-spacing: -.02em; }
.legalHero h1 em { font-style: normal; color: var(--coral); }
.legalSection h3 { margin: 14px 0 4px; font: 800 18px/1.3 var(--font-display); letter-spacing: -.01em; }
.legalContent a { color: var(--moon); font-weight: 600; text-decoration-color: var(--coral); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legalHighlight { background: color-mix(in srgb, var(--mint) 18%, var(--deck)); }
.legalDate { color: var(--haze) !important; font-size: 14px !important; }

/* Footer. */
.siteFooter { width: var(--page); margin: clamp(90px, 12vw, 150px) auto 0; padding: 28px 0 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; border-top: 1px solid var(--line); color: var(--haze); font-size: 14px; }
.siteFooter b { color: var(--moon); }
.siteFooter nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.siteFooter a { text-underline-offset: 4px; }

/* Bewegung. */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes tickIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(95,211,141,.55); } 70% { box-shadow: 0 0 0 12px rgba(95,211,141,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,141,0); } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Responsive. */
@media (max-width: 1000px) {
  .siteNav { display: none; }
  .languageSwitch { margin-left: auto; }
  .mobileMenu { display: block; }
  .sectionHead { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  :root { --page: calc(100vw - 32px); }
  .siteHeader { padding: 12px 16px; gap: 10px; }
  .brand small { display: none; }
  .legalLead, .legalSection { grid-template-columns: 1fr; }
  .legalSection > h2, .legalSection > h3 { grid-row: auto; margin-bottom: 12px; }
  .legalSection > :not(h2):not(h3) { grid-column: 1; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
