/* ==========================================================
   Geborgen – Grav Theme
   Glasrahmen-Look mit warmer Abendszene (reines CSS, keine Fremdbilder)
   ========================================================== */

@font-face { font-family: "Fraunces"; font-weight: 500; font-display: swap; src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 600; font-display: swap; src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --sky-top: #16404a;
  --sky-mid: #2b6b72;
  --sky-low: #4f8f8c;
  --glow: #ffcf8a;
  --accent: #f08a3c;
  --accent-soft: #ffd9b3;
  --ink: #2b2a33;
  --ink-soft: #6b6874;
  --card: #f7f6f3;
  --pill: #3a393f;
  --radius-frame: 30px;
  --radius-card: 22px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sky-top);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------------- Szene (Hintergrund) ---------------- */
.scene {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 30%, rgba(255, 207, 138, .35), transparent 70%),
    radial-gradient(70% 50% at 15% 85%, rgba(255, 170, 110, .30), transparent 70%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--sky-low) 100%);
}

/* Sterne */
.star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #fff6dc; box-shadow: 0 0 6px 1px rgba(255, 240, 200, .8);
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* Mond (Sichel) */
.moon {
  position: absolute; top: 22%; right: 6%;
  width: clamp(110px, 14vw, 190px); aspect-ratio: 1; border-radius: 50%;
  box-shadow: calc(clamp(110px, 14vw, 190px) * .2) calc(clamp(110px, 14vw, 190px) * .1) 0 0 #f6c46d;
  filter: drop-shadow(0 0 28px rgba(255, 205, 120, .75)) blur(1.5px);
  transform: rotate(-18deg);
  animation: floaty 9s ease-in-out infinite;
}

/* Wolken */
.cloud {
  position: absolute; width: 220px; height: 70px; border-radius: 70px;
  background: #fff; filter: blur(10px); opacity: .85;
  animation: drift 40s linear infinite alternate;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 110px; height: 110px; top: -55px; left: 30px; }
.cloud::after  { width: 140px; height: 140px; top: -80px; left: 85px; }
.cloud--1 { top: 18%; left: -2%; transform: scale(1.1); }
.cloud--2 { top: 8%;  left: 58%; transform: scale(.55); opacity: .55; animation-duration: 55s; }
.cloud--3 { top: 62%; right: -4%; left: auto; transform: scale(.8); opacity: .5; animation-duration: 48s; }
@keyframes drift { from { translate: 0 0; } to { translate: 60px 0; } }

/* Lichter / Bokeh */
.bokeh {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd2a1, var(--accent) 70%);
  filter: blur(6px); opacity: .7;
  animation: floaty 8s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Hügel + Blumen im Vordergrund */
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; min-height: 200px; }
.hills .far  { filter: blur(3px); }
.hills .near { filter: blur(1px); }
.hills .flower { filter: blur(2.5px); }

/* ---------------- Glasrahmen ---------------- */
.stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 56px) clamp(12px, 3vw, 40px);
}
.frame {
  width: min(1120px, 100%);
  padding: 14px clamp(14px, 2.4vw, 28px) clamp(14px, 2.4vw, 28px);
  border-radius: var(--radius-frame);
  background: linear-gradient(160deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .10));
  border: 1px solid rgba(255, 255, 255, .45);
  box-shadow: 0 30px 80px rgba(10, 35, 40, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.frame__bar { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.dots { display: flex; gap: 7px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; }
.dots span:nth-child(1) { background: #ff6b6b; }
.dots span:nth-child(2) { background: #ffc35a; }
.dots span:nth-child(3) { background: #7bd88f; }
.address {
  justify-self: center; width: min(420px, 100%);
  padding: 6px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 12px; color: var(--ink-soft); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.address::before { content: "🔒 "; font-size: 10px; }

/* ---------------- Weiße Karte ---------------- */
.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.6vw, 30px) clamp(20px, 4vw, 48px) 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
  min-height: min(560px, 72vh);
  display: flex; flex-direction: column;
}

/* Navigation */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-family: var(--sans); font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.brand em { font-family: var(--serif); font-weight: 500; font-style: italic; color: var(--accent); }
.menu { display: flex; gap: clamp(12px, 2vw, 26px); list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 14px; color: var(--ink); padding-bottom: 3px; border-bottom: 1.5px solid transparent; transition: border-color .2s, color .2s; }
.menu a:hover, .menu a.active { border-color: var(--ink); }
.nav__cta {
  font-size: 13px; font-weight: 800; text-decoration: none;
  padding: 8px 14px; border-radius: 999px; background: var(--accent-soft); color: #8a3d0b;
}
.nav__toggle, .nav__burger { display: none; }

/* Hero */
.hero { flex: 1; display: grid; place-items: center; text-align: center; padding: clamp(24px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.hero__title {
  position: relative; margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(48px, 9.5vw, 128px); line-height: .92; letter-spacing: -.02em;
  color: var(--ink);
}
.hero__title span { display: block; }
.hero__title span:first-child { transform: translateX(-6%); }
.hero__title span:last-child  { transform: translateX(10%); }
.hero__badge {
  position: absolute; top: -2%; right: -7%;
  width: clamp(72px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #3f8d93, #1d4f57);
  border: 4px solid var(--card); box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  animation: floaty 6s ease-in-out infinite;
}
.hero__badge img, .hero__badge svg { width: 100%; height: 100%; object-fit: cover; }
.hero__sub { margin: 18px auto 0; max-width: 560px; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 17px); line-height: 1.55; }

/* Anzeigefläche (die dunkle Pille) */
.display {
  margin: clamp(22px, 3.4vw, 40px) auto 0;
  width: min(560px, 100%);
  display: block; padding: 18px 28px; border-radius: 999px;
  background: var(--pill); color: #fff;
  font-weight: 800; font-size: clamp(15px, 1.9vw, 22px); letter-spacing: .02em; text-transform: uppercase;
  text-decoration: none; text-align: center;
  box-shadow: 0 14px 30px rgba(40, 38, 45, .28);
  transition: transform .2s, background .2s;
}
a.display:hover { transform: translateY(-2px); background: #2b2a30; }

/* Fußzeile der Karte */
.card__foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card__foot a { text-decoration: none; }
.foot__left { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.foot__left::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.foot__mid { justify-self: center; font-size: 18px; color: var(--ink); animation: floaty 2.4s ease-in-out infinite; }
.foot__right { justify-self: end; color: #7a6fd0; }
.foot__right::before { content: "▶ "; font-size: 9px; }

/* ---------------- Inhaltsbereich unter dem Hero ---------------- */
.content {
  position: relative; z-index: 1;
  width: min(1120px, calc(100% - 24px)); margin: 0 auto clamp(40px, 6vw, 80px);
  padding: clamp(24px, 4vw, 52px);
  border-radius: var(--radius-frame);
  background: rgba(247, 246, 243, .94);
  box-shadow: 0 30px 80px rgba(10, 35, 40, .3);
  line-height: 1.7; font-size: 17px;
}
.content h1, .content h2, .content h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.content h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 0; }
.content a { color: #b4561a; }
.content img { border-radius: 16px; }

.sitefoot { position: relative; z-index: 1; text-align: center; color: rgba(255, 255, 255, .8); font-size: 13px; padding: 0 16px 32px; }
.sitefoot a { color: #fff; }

/* ---------------- Mobil ---------------- */
@media (max-width: 760px) {
  .frame__bar { grid-template-columns: auto 1fr; }
  .frame__bar > :last-child { display: none; }
  .nav { flex-wrap: wrap; }
  .nav__burger { display: inline-flex; flex-direction: column; gap: 4px; cursor: pointer; padding: 8px; margin-left: auto; }
  .nav__burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav__cta { display: none; }
  .menu { display: none; width: 100%; flex-direction: column; gap: 10px; padding: 10px 0 4px; }
  .nav__toggle:checked ~ .menu { display: flex; }
  .hero__title span:first-child, .hero__title span:last-child { transform: none; }
  .hero__badge { right: -6%; top: -28%; width: 64px; }
  .card__foot { grid-template-columns: 1fr auto; row-gap: 10px; }
  .foot__mid { display: none; }
  .cloud--1 { transform: scale(.7); }
}

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