/* ══════════════════════════════════════════
   weberding.de – Gemeinsames Design-Theme
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Design Tokens ── */
:root {
  --clr-bg:           #0f1117;
  --clr-surface:      #181d27;
  --clr-text:         #e8edf5;
  --clr-muted:        #7b8599;
  --clr-accent:       #38bdf8;
  --clr-accent-light: #7dd3fc;
  --clr-divider:      #252c3d;
  --font-display:     'Inter', 'Segoe UI', sans-serif;
  --font-body:        'Inter', 'Segoe UI', sans-serif;
  --radius:           12px;
  --shadow:           0 4px 24px rgba(0,0,0,.35);
  --shadow-hover:     0 8px 40px rgba(0,0,0,.55);
}

html { scroll-behavior: smooth; }

/* ── Basis-Body ── */
body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
}

/* ── Dekorativer Hintergrund-Gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, var(--clr-glow, rgba(56,189,248,.06)), transparent),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(30,37,53,.80), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Links (Basis) ── */
a { color: var(--clr-accent); }

/* ── Header (Unterseiten: Impressum, Datenschutz etc.) ── */
header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}

header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -.03em;
  color: var(--clr-text);
  margin-bottom: .35rem;
}

header p {
  font-size: 1.05rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto;
}

/* ── Hero Section (Startseite – Ethereal Shadow) ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 2rem 1.5rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__svg-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero__displacement {
  position: absolute;
  inset: -80px;
  filter: url(#ethereal) blur(4px);
}

.hero__color {
  width: 100%;
  height: 100%;
  background-color: var(--clr-hero, rgba(56,189,248,1));
  -webkit-mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  -webkit-mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-image: url('https://framerusercontent.com/images/ceBGguIpUU8luwByxuQz79t7To.png');
  mask-size: cover;
  mask-repeat: no-repeat;
  mask-position: center;
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url('https://framerusercontent.com/images/g0QcWrxr87K0ufOxIUFBakwYA8.png');
  background-size: 240px;
  background-repeat: repeat;
  opacity: 0.3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  animation: fadeDown .8s ease-out;
}

.hero__content h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -.03em;
  color: var(--clr-text);
  margin-bottom: .4rem;
}

.hero__content h1 span { color: var(--clr-accent); }

.hero__content p {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 520px;
  margin: 0 auto;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--clr-muted);
  opacity: 0.5;
  animation: heroBounce 2s ease-in-out infinite;
}

@keyframes heroBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__displacement { filter: none !important; }
  .hero__scroll { animation: none; }
}

@media (max-width: 600px) {
  .hero { min-height: 100svh; padding: 1.5rem 1.2rem; }
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-light));
  border-radius: 2px;
  margin: 1.5rem auto 0;
}

/* ── Haupt-Layout ── */
main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}

/* ── Oberflächen (Karten, Panels, Content-Boxen) ── */
.surface,
.content,
.panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ── Pill-Links / Quick-Links (identische Komponente) ── */
.pill,
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  background: rgba(232,80,10,.07);
  border: 1px solid rgba(232,80,10,.18);
  color: var(--clr-text);
  padding: .55rem .95rem;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 400;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.pill:hover,
.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(232,80,10,.40);
  background: rgba(232,80,10,.13);
}

/* ── Footer ── */
footer {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 2.5rem;
  border-top: 1px solid var(--clr-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  font-size: .88rem;
  color: var(--clr-muted);
}

footer nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--clr-muted);
  text-decoration: none;
  transition: color .2s ease;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

footer a:hover { color: var(--clr-accent); }
footer a:hover::after { transform: scaleX(1); }

.footer-links {
  display: flex;
  gap: 1.6rem;
}

/* ── Zurück-Link (privat-Bereich) ── */
a.back {
  text-decoration: none;
  color: var(--clr-accent);
  font-weight: 700;
}

a.back:hover { color: var(--clr-accent-light); }

/* ── Animationen ── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  header { padding: 3rem 1.2rem 2rem; }
  footer { flex-direction: column; text-align: center; }
}
