/* Praxis Dr. Degen & Partner – Startseite. Reines CSS, Schriften lokal (keine Verbindung zu Google). */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/dm-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/dm-sans-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #F7F5F0;
  --text: #1A1A1A;
  --muted: #5C5A55;
  --sand: #C4B5A0;
  --gold: #8B7355;
  --gold-dark: #6F5A41;
  --rose: #E7A9C0;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Kopfzeile ---------- */
.top { position: absolute; inset: 0 0 auto 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand-small { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 25px; }
.brand .amp { font-style: italic; font-weight: 500; }
.top nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.top nav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 2px; border-bottom: 1px solid transparent; transition: border-color .25s, color .25s; }
.top nav a:hover { color: var(--gold-dark); border-color: var(--gold); }
.top nav a.ext { border: 1px solid var(--gold); border-radius: 999px; padding: 6px 16px; }
.top nav a.ext:hover { background: rgba(255,255,255,.7); }

/* ---------- Hero (Variante 3: Ebenen mit Tiefe, Maus bewegt Bäume, Formen und Sofa) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 95% at 50% 30%, #F8F6F1 0%, #EFECE4 100%); }

.layer { position: absolute; left: -5%; width: 110%; pointer-events: none; will-change: transform; z-index: 0; }
.layer img { display: block; width: 100%; height: auto; }
.l-far  { bottom: 11%; z-index: 0; }
.l-far img { transform: scaleX(-1) scale(1.18); filter: blur(5px); opacity: .30; }
.l-near { left: -1.5%; width: 103%; bottom: 0; z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 54%, rgba(0,0,0,.55) 66%, transparent 78%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, #000 0, #000 54%, rgba(0,0,0,.55) 66%, transparent 78%); mask-composite: intersect; }
.l-near-r { -webkit-mask-image: linear-gradient(180deg, #000 0, #000 64%, rgba(0,0,0,.55) 75%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0, #000 64%, rgba(0,0,0,.55) 75%, transparent 88%); }
.sofa-shadow { position: absolute; z-index: 4; left: 50%; bottom: -1svh; width: min(66vw, 1020px, 92svh); height: 6svh; margin-left: calc(min(66vw, 1020px, 92svh) / -2); pointer-events: none;
  background: radial-gradient(closest-side, rgba(70,50,45,.34), rgba(70,50,45,.12) 60%, rgba(70,50,45,0)); filter: blur(4px); }
.l-near img { opacity: 1; }
.l-near-r { bottom: 135px; }

.glow { position: absolute; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,247,232,.92), rgba(255,238,216,.50) 50%, rgba(255,238,216,0)); transition: opacity .5s ease; will-change: transform; }
.glow.on { opacity: 1; }

.shapes, .petals { position: absolute; inset: 0; pointer-events: none; }
.shapes { z-index: 3; }
.petals { inset: -6% 0; z-index: 4; overflow: hidden; }
.shape { position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h, var(--w)); will-change: transform; pointer-events: none; }
.shape > i { display: block; width: 100%; height: 100%; background: var(--c); border-radius: var(--r, 50%); opacity: .93;
  animation: drift var(--dur, 8s) ease-in-out var(--del, 0s) infinite alternate; }
@keyframes drift { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(7deg); } }

.petal { position: absolute; top: -4%; left: var(--x); width: var(--s); height: calc(var(--s) * .72); background: #F4BCD2; border-radius: 85% 0 85% 0; opacity: 0;
  animation: fall var(--d) linear var(--del) infinite; }
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .8; }
  50%  { transform: translate3d(var(--sway), 55vh, 0) rotate(200deg); }
  92%  { opacity: .7; }
  100% { transform: translate3d(calc(var(--sway) * -.6), 112vh, 0) rotate(420deg); opacity: 0; }
}

.hero-copy { position: absolute; z-index: 6; left: 0; right: 0; top: 0; padding: clamp(100px, 14vh, 142px) 8vw 0 0; text-align: center; pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero-copy::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 4%; width: min(780px, 70vw); height: 82%; margin-left: calc(-4vw - min(390px, 35vw)); pointer-events: none;
  background: radial-gradient(closest-side, rgba(248,246,241,.92), rgba(248,246,241,.65) 55%, rgba(248,246,241,0)); }
.shape-green { left: 50%; top: clamp(92px, 12.5vh, 128px); width: clamp(40px, 4.2vw, 66px); height: clamp(40px, 4.2vw, 66px); margin-left: -13%; z-index: -1; }
h1 { margin: 0; font-weight: 500; }
h1 .eyebrow { display: block; font-size: clamp(12px, 1vw, 15px); letter-spacing: .32em; text-transform: uppercase; color: var(--text); font-weight: 500; padding-left: .32em; }
h1 .name { display: block; margin-top: 14px; font-family: var(--serif); font-size: clamp(46px, 5.4vw, 90px); line-height: 1.0; letter-spacing: -.01em; }
h1 .amp { font-style: italic; }
h1 .tagline { display: block; margin-top: 16px; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.7vw, 28px); color: var(--gold-dark); }
h1 .tagline::before { content: "~ "; } h1 .tagline::after { content: " ~"; }
.sub { margin: 16px auto 0; max-width: 460px; font-size: 16px; color: #3f3c37; font-weight: 500; text-shadow: 0 0 10px rgba(248,246,241,.95), 0 0 4px rgba(248,246,241,.9); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }

.btn { display: inline-block; text-decoration: none; font-weight: 500; font-size: 16px; padding: 15px 30px; border-radius: 999px; border: 1.5px solid var(--gold); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(139,115,85,.28); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(139,115,85,.34); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--text); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }

.hero-sofa { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; margin-inline: auto; width: min(70vw, 1100px, 98svh); pointer-events: none; }
.hero-sofa img { width: 100%; filter: drop-shadow(0 14px 22px rgba(90,70,50,.16)); }

/* ---------- Angebote ---------- */
.angebote { padding: clamp(56px, 9vw, 110px) var(--pad); max-width: 1240px; margin: 0 auto; text-align: center; }
.trust { margin: 0 0 12px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
h2 { margin: 0 0 34px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; text-align: left; }
.tile { background: #fff; border: 1px solid #ece6dc; border-radius: 20px; padding: 28px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px) scale(1.01); box-shadow: 0 16px 34px rgba(80,60,40,.10); }
.tile h3 { margin: 0 0 10px; font-family: var(--serif); font-weight: 600; font-size: 25px; }
.tile p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Kontakt ---------- */
.kontakt { text-align: center; padding: clamp(48px, 8vw, 96px) var(--pad); background: linear-gradient(180deg, #f4ece6, #f7ecf0); }
.kontakt p { max-width: 560px; margin: 0 auto 14px; color: var(--muted); }
.kontakt-daten { font-size: 20px; color: var(--text) !important; }
.kontakt-daten a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.kontakt-daten a:hover { color: var(--gold-dark); border-color: var(--gold); }
.kontakt-daten span { margin: 0 10px; color: var(--sand); }
.adresse { font-size: 15px; margin-bottom: 26px !important; }

/* ---------- Fuß ---------- */
.foot { text-align: center; padding: 34px var(--pad) 44px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-bottom: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-dark); text-decoration: underline; }
.foot p { margin: 0; }

/* ---------- Flache Bildschirme (Laptop mit wenig Höhe) ---------- */
@media (min-width: 901px) and (max-height: 760px) {
  .hero-copy { padding: 84px 24vw 0 0; }
  h1 .name { font-size: clamp(40px, 4.4vw, 68px); }
  h1 .tagline { margin-top: 10px; }
  .sub { display: none; }
  .cta { margin-top: 16px; }
  .l-near { bottom: -12%; }
  .l-near-r { bottom: calc(-12% + 100px); }
}

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .top nav { display: none; }
  .hero-copy { position: relative; padding: 92px var(--pad) 6px; }
  .hero-copy::before { left: 50%; width: 120%; margin-left: -60%; top: 2%; height: 92%; }
  .shape-green { margin-left: -22%; }
  .sub { font-size: 15px; }
  .layer { left: -40%; width: 190%; }
  .l-far { bottom: 24%; } .l-near { bottom: 0; } .l-near-r { bottom: 80px; }
  .hero-sofa { position: relative; left: auto; right: 0; margin: auto 0 0 0; align-self: flex-end; width: 125vw; max-width: none; }
  .glow { display: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .btn { width: 100%; text-align: center; }
  .cta { flex-direction: column; }
  .hero-sofa { width: 142vw; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shape > i { animation: none; }
  .petals, .glow { display: none; }
  .btn, .tile { transition: none; }
}
