/* =========================================================
   Unterseiten – medien-kreativ.de
   Gleiches Design-System wie index.html (Navy/Gold, DM-Schriften lokal)
   Genutzt von: erleben.html, impressum.html, datenschutz.html, barrierefreiheit.html
   ========================================================= */

/* ---------- Schriften (lokal, DSGVO) ---------- */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/dm-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/dm-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/dm-serif-display-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --navy: #0f2133;
  --navy-2: #1d3a57;
  --gold: #c8873a;
  --gold-light: #e2ab62;
  --gold-ink: #7f5218;   /* Gold für Text: ≥ 4,5:1 auf hellen Flächen */
  --ink: #0f2133;
  --muted: #45566a;      /* ≥ 5:1 */
  --line: rgba(15,33,51,0.12);
  --ok: #166534;
  --ok-bg: #effaf2;
  --bad: #9f1d1d;
  --bad-bg: #fdf0f0;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --orb: radial-gradient(circle at 50% 30%, #f0c27f 0%, #c8873a 55%, #7a4a12 100%);
  --glass-inset: inset 0 1.5px 2px rgba(255,255,255,0.7), 0 8px 30px rgba(15,33,51,0.06);
  --panel-bg: rgba(255,255,255,0.8);
  --header-h: 76px;
}
@media (min-width: 768px) { :root { --header-h: 88px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink);
  background: #f4f6f9;
  hyphens: manual;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; border-radius: 6px; }
.footer :focus-visible, .mnav :focus-visible { outline-color: var(--gold-light); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px; background: var(--navy); color: #fff;
  font-weight: 600; text-decoration: none; transform: translateY(-160%); transition: transform .2s ease;
}
.skip:focus { transform: none; }

.ic { display: inline-flex; flex-shrink: 0; }
.ic svg { display: block; width: 100%; height: 100%; }

/* ---------- Ruhiger Hintergrund ---------- */
.bg {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(226,171,98,0.20), transparent 60%),
    radial-gradient(circle at 30% 20%, #ffffff 0%, #eef2f7 45%, #d9e2ec 100%);
}

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  height: var(--header-h); padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background .4s ease, box-shadow .4s ease;
}
.header.scrolled {
  background: rgba(255,255,255,0.82);
  -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(15,33,51,0.35);
}
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--navy); }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0.01em; }
.brand-name span { color: var(--gold-ink); }
.brand-sub { margin-top: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

.nav { display: none; gap: 26px; }
.nav a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--navy); white-space: nowrap;
  padding: 6px 0; background: linear-gradient(var(--gold), var(--gold)) no-repeat left bottom / 0% 2px;
  transition: background-size .35s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 2px; }
.nav a[aria-current="page"] { font-weight: 600; }

.header-right { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.55); background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: var(--glass-inset); color: var(--navy); transition: background .3s;
}
.icon-btn:hover { background: rgba(255,255,255,0.8); }
.icon-btn .ic { width: 18px; height: 18px; }
.menu-btn { display: inline-flex; }
.contact-pill {
  display: none; align-items: center; gap: 12px; white-space: nowrap;
  padding: 6px 6px 6px 20px; border-radius: 999px; text-decoration: none;
  background: rgba(255,255,255,0.5);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.6); box-shadow: var(--glass-inset);
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.orb {
  width: 32px; height: 32px; border-radius: 999px; background: var(--orb); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform .4s var(--ease-out);
}
.orb .ic { width: 16px; height: 16px; }
.contact-pill:hover .orb, .btn:hover .orb { transform: scale(1.06); }
@media (min-width: 560px) { .contact-pill { display: inline-flex; } }
@media (min-width: 768px) { .header { padding: 0 40px; } }
@media (min-width: 1080px) { .nav { display: flex; } .menu-btn { display: none; } }
@media (max-width: 359px) { .brand-sub { letter-spacing: 0.08em; font-size: 9px; } .header-right { gap: 6px; } .header { gap: 8px; } }

/* Mobiles Menü */
.mnav {
  position: fixed; inset: 0; z-index: 25; background: var(--navy); color: #fff;
  padding: calc(var(--header-h) + 24px) 24px 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s;
}
.mnav.open { opacity: 1; visibility: visible; transition: opacity .3s ease, visibility 0s; }
.mnav ul { display: flex; flex-direction: column; gap: 6px; }
.mnav a { color: #fff; text-decoration: none; }
.mnav .big a { font-family: var(--serif); font-size: clamp(30px, 8vw, 44px); line-height: 1.25; }
.mnav .big a[aria-current="page"] { color: var(--gold-light); }
.mnav .small { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.mnav .small a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3); font-size: 15px;
}
.mnav .small .ic { width: 14px; height: 14px; }
body.menu-open .header { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.menu-open .brand, body.menu-open .brand-sub, body.menu-open .brand-name span { color: #fff; }
body.menu-open .icon-btn { color: #fff; background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); }
body.menu-open .contact-pill { display: none; }

/* ---------- Grundlayout ---------- */
main { display: block; position: relative; z-index: 1; padding: calc(var(--header-h) + 24px) 16px 96px; }
@media (min-width: 768px) { main { padding: calc(var(--header-h) + 40px) 40px 128px; } }
.wrap { max-width: 1160px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }

.panel {
  position: relative; background: var(--panel-bg);
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(255,255,255,0.85); border-radius: 24px;
  box-shadow: 0 24px 60px -30px rgba(15,33,51,0.35), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 26px 22px;
}
@media (min-width: 768px) { .panel { padding: 36px; border-radius: 28px; } }

.eyebrow, .label {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink);
}
.h1 {
  margin-top: 14px; font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.04; letter-spacing: -0.015em; text-wrap: balance;
}
.h2 {
  margin-top: 10px; font-family: var(--serif); font-weight: 400; color: var(--navy);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08; text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; color: var(--navy); }
.h1 em, .h2 em { font-style: italic; color: var(--gold-ink); }
.lead { margin-top: 16px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--muted); max-width: 42rem; }
.txt { color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; cursor: pointer;
  padding: 8px 8px 8px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; min-height: 48px;
  transition: background .3s, border-color .3s, opacity .3s;
}
.btn-primary { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary .orb { width: 34px; height: 34px; }
.btn-ghost { padding: 8px 22px; border: 1px solid rgba(15,33,51,0.3); color: var(--navy); background: rgba(255,255,255,0.7); }
.btn-ghost:hover { border-color: var(--navy); background: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-stop { padding: 8px 22px; border: 1.5px solid var(--bad); color: var(--bad); background: #fff; }
.btn-stop:hover { background: var(--bad-bg); }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; overflow: hidden; background: var(--navy); color: #fff; border-radius: 2.5rem 2.5rem 0 0; }
.bloom { position: absolute; border-radius: 999px; filter: blur(40px); pointer-events: none; }
.bloom-a { width: 28rem; height: 28rem; top: -10rem; right: -8rem; background: radial-gradient(circle, rgba(200,135,58,0.4) 0%, transparent 65%); }
.bloom-b { width: 32rem; height: 32rem; bottom: -12rem; left: -10rem; background: radial-gradient(circle, rgba(61,95,133,0.55) 0%, transparent 65%); }
.footer-body { position: relative; padding: 64px 20px 36px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; max-width: 1240px; margin: 0 auto; }
.cta-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.cta h2 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.05; text-wrap: balance; }
.cta h2 em { color: var(--gold-light); }
.mail-pill {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 16px; text-decoration: none;
  padding: 8px 8px 8px 26px; border-radius: 999px; max-width: 100%;
  border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.06);
  font-weight: 600; font-size: clamp(15px, 2vw, 18px); color: #fff; transition: background .3s;
}
.mail-pill:hover { background: rgba(255,255,255,0.12); }
.mail-pill .orb { width: 42px; height: 42px; }
.link-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 480px) { .link-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .link-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.link-col h3 { margin: 0 0 18px; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.link-col ul { display: flex; flex-direction: column; gap: 10px; }
.flink { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: rgba(255,255,255,0.85); text-decoration: none; transition: color .3s; }
.flink:hover, .flink[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.bottom-bar {
  max-width: 1240px; margin: 72px auto 0; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.bb-left { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bb-word { font-family: var(--serif); font-size: 22px; }
.bb-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gold); }
.bb-copy { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.72); }
.socials { display: flex; gap: 10px; }
.social {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); transition: color .3s, background .3s;
}
.social:hover { color: #fff; background: rgba(255,255,255,0.1); }
.social .ic { width: 17px; height: 17px; }
@media (min-width: 768px) { .footer { border-radius: 4rem 4rem 0 0; } .footer-body { padding: 96px 40px 40px; } .bottom-bar { margin-top: 104px; } }
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cta { grid-column: span 5 / span 5; }
  .link-cols { grid-column: span 7 / span 7; }
}

/* ---------- Rechtstexte ---------- */
.legal-head { margin-bottom: 18px; }
.legal { margin-top: 18px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.2; color: var(--navy); margin-top: 36px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-top: 22px; }
.legal p, .legal li, .legal dd { color: var(--muted); }
.legal p { margin-top: 10px; }
.legal ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 999px; background: var(--gold); }
.legal a { color: var(--navy); font-weight: 600; text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--navy); margin-top: 10px; }
.legal strong { color: var(--navy); }
.toc { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.toc ol { margin-top: 10px; display: grid; gap: 6px 24px; grid-template-columns: 1fr; counter-reset: toc; }
@media (min-width: 700px) { .toc ol { grid-template-columns: 1fr 1fr; } }
.toc li { counter-increment: toc; }
.toc a { color: var(--navy); text-decoration: none; font-weight: 500; }
.toc a::before { content: counter(toc, decimal-leading-zero) " "; font-family: var(--mono); font-size: 12px; color: var(--gold-ink); margin-right: 6px; }
.toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.stand { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); }

/* ---------- Bewegung pausiert / reduziert, Kontrast ---------- */
@media (prefers-contrast: more) {
  :root { --panel-bg: #ffffff; --muted: #22303f; }
  .panel { border: 2px solid var(--navy); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .panel, .btn, .icon-btn { border: 1px solid CanvasText; }
  .bg { display: none; }
}

/* ---------- Werkzeuge in der Navigation (wie Startseite) ---------- */
.nav { align-items: center; }
.nav-sep { width: 1px; height: 22px; background: rgba(15,33,51,0.22); }
.nav a.nav-tool {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,0.72); border: 1.5px solid var(--gold);
  box-shadow: 0 6px 18px -10px rgba(200,135,58,0.7); font-weight: 600;
  transition: background .25s, transform .3s var(--ease-out);
}
.nav a.nav-tool:hover { background: #fff; transform: translateY(-1px); }
.nav a.nav-tool[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav-tool-ic { width: 26px; height: 26px; border-radius: 999px; background: var(--orb); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; }
.nav-tool-ic .ic { width: 14px; height: 14px; }

.mtools { padding: 18px; border-radius: 22px; background: rgba(255,255,255,0.07); border: 1px solid rgba(226,171,98,0.55); }
.mtools-label { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 12px; }
.mtools ul { gap: 10px; }
.mnav .mtool { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 16px; transition: background .25s; }
.mnav .mtool:hover, .mnav .mtool[aria-current="page"] { background: rgba(255,255,255,0.1); }
.mtool .orb { width: 44px; height: 44px; }
.mtool .orb .ic { width: 20px; height: 20px; }
.mtool strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; }
.mtool small { display: block; font-size: 14px; color: rgba(255,255,255,0.75); }

/* ---------- Kleine Kugel im Kopfbereich (Wiedererkennung) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; }
.intro-text { min-width: 0; }
.intro .lead { color: var(--navy); }
@media (min-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr) 200px; gap: 40px; padding: 44px 48px; } }
.buddy { position: relative; width: 96px; height: 112px; justify-self: start; order: -1; }
@media (min-width: 860px) { .buddy { width: 150px; height: 176px; justify-self: center; order: 0; } }
.buddy svg { position: absolute; left: 0; top: 0; width: 100%; height: auto; overflow: visible; }
.buddy-body { animation: buddyFloat 6s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.buddy-eyes { transition: transform .25s ease-out; }
.buddy-lids { animation: buddyBlink 5.5s infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.buddy-shadow { animation: buddyShadow 6s ease-in-out infinite; transform-origin: 50% 50%; transform-box: fill-box; }
.buddy-mouth { transition: d .4s ease; }
@keyframes buddyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes buddyShadow { 0%, 100% { transform: scaleX(1); opacity: .28; } 50% { transform: scaleX(.86); opacity: .18; } }
@keyframes buddyBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.motion-paused .buddy-body, .motion-paused .buddy-lids, .motion-paused .buddy-shadow { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .buddy-body, .buddy-lids, .buddy-shadow { animation: none; } }

.step-n {
  width: 36px; height: 36px; border-radius: 999px; background: var(--navy); color: var(--gold-light);
  display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; flex-shrink: 0;
}
.how { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 860px) { .how { grid-column: 1 / -1; } }
.how li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.how strong { display: block; color: var(--navy); }
.how span:not(.step-n) { color: var(--muted); font-size: 15px; }

/* Mobil: Kugel klein oben rechts, damit der Inhalt früher beginnt */
@media (max-width: 859px) {
  .intro { padding-top: 22px; }
  .buddy { position: absolute; top: 14px; right: 14px; width: 60px; height: 70px; order: 0; }
  .intro .eyebrow { display: block; min-height: 56px; padding-right: 72px; padding-top: 6px; }
  .intro .h1 { margin-top: 0; }
}

/* Einsatzgebiet im Footer */
.region { max-width: 1240px; margin: 56px auto 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.78); }
