/* ==========================================================
   Dr Handymaa – Webseite
   Markenfarben aus dem Logo: Gold #f5a31c · Schwarz #161616
   ========================================================== */

:root {
  --gold: #f5a31c;
  --gold-dunkel: #c77c00;
  --gold-hell: #ffd48a;
  --schwarz: #161616;
  --gruen: #25d366;          /* WhatsApp */

  --bg: #faf8f4;
  --flaeche: #ffffff;
  --flaeche-2: #f2eee6;
  --text: #1b1a17;
  --text-2: #5b5750;
  --text-3: #8f897e;
  --linie: #e7e1d6;
  --schatten: 0 1px 2px rgba(27, 26, 23, .05), 0 16px 36px -16px rgba(27, 26, 23, .18);

  --radius: 22px;
  --breite: 1160px;
  --schrift: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121110; --flaeche: #1a1917; --flaeche-2: #23211e; --text: #f1ede6; --text-2: #b7b0a4; --text-3: #867f74; --linie: #2e2b27;
    --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg: #121110; --flaeche: #1a1917; --flaeche-2: #23211e; --text: #f1ede6; --text-2: #b7b0a4; --text-3: #867f74; --linie: #2e2b27;
  --schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--text-2); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; color: var(--text); }
h1 { font-size: clamp(2rem, 8.4vw, 5rem); hyphens: auto; overflow-wrap: break-word; font-weight: 800; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; font-weight: 700; }
::selection { background: var(--gold); color: var(--schwarz); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.sr-only:focus { left: 16px !important; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); }

.huelle { width: min(100% - 32px, var(--breite)); margin-inline: auto; }
.abschnitt { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.gold { color: var(--gold); }
.unterstrich { position: relative; white-space: nowrap; }
.unterstrich::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .28em; z-index: -1; border-radius: 4px;
  background: var(--gold); opacity: .55; transform: scaleX(0); transform-origin: left; animation: strich 1s var(--ease) .9s forwards;
}
@keyframes strich { to { transform: none; } }
.marke-klein {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: var(--flaeche); border: 1px solid var(--linie); font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 22px;
}
.marke-klein i { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 4px rgba(37, 211, 102, .2); animation: blinken 2s ease-in-out infinite; }
@keyframes blinken { 50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } }
.kopf { max-width: 700px; margin-bottom: clamp(40px, 6vw, 64px); }
.kopf p { font-size: 1.12rem; margin-top: 18px; }
.kopf.mitte { margin-inline: auto; text-align: center; }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dunkel); margin-bottom: 16px; }
:root[data-theme="dark"] .kicker { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kicker { color: var(--gold); } }

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; font-size: .96rem; background: var(--gold); color: var(--schwarz);
  box-shadow: 0 10px 24px -12px var(--gold); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.knopf:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 32px -12px var(--gold); background: #ffb230; }
.knopf svg { width: 20px; height: 20px; flex: none; }
.knopf.wa { background: var(--gruen); color: #fff; box-shadow: 0 10px 24px -12px var(--gruen); }
.knopf.wa:hover { background: #2fe072; box-shadow: 0 16px 32px -12px var(--gruen); }
.knopf.dunkel { background: var(--text); color: var(--bg); box-shadow: none; }
.knopf.rand { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--linie); }
.knopf.rand:hover { box-shadow: inset 0 0 0 1.5px var(--text); }

/* ---------- Kopfzeile ---------- */
.kopfzeile { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, box-shadow .4s; }
.kopfzeile.gescrollt { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--linie); }
.kopfzeile .huelle { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; transition: transform .6s var(--ease); }
.logo:hover img { transform: rotate(-10deg) scale(1.08); }
.logo b { font-size: 1.28rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.logo b span { color: var(--gold); font-style: italic; }
.logo small { display: block; font-size: .66rem; font-weight: 500; color: var(--text-3); letter-spacing: .02em; margin-top: 3px; }
.navi { display: flex; align-items: center; gap: 4px; }
.navi a:not(.knopf) { padding: 8px 14px; border-radius: 999px; font-size: .93rem; font-weight: 600; color: var(--text-2); transition: color .2s, background .2s; }
.navi a:not(.knopf):hover { color: var(--text); background: var(--flaeche-2); }
.navi .knopf { padding: 10px 18px; margin-left: 8px; font-size: .9rem; }
.rund-knopf { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.rund-knopf:hover { background: var(--flaeche-2); color: var(--text); }
.rund-knopf svg { width: 20px; height: 20px; }
#menue-knopf { display: none; }
@media (max-width: 960px) {
  #menue-knopf { display: grid; }
  .navi { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; padding: 16px; background: var(--bg); border-bottom: 1px solid var(--linie); opacity: 0; transform: translateY(-12px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
  .navi.offen { opacity: 1; transform: none; pointer-events: auto; }
  .navi a:not(.knopf) { padding: 14px 16px; font-size: 1.05rem; }
  .navi .knopf { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.hero .huelle { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { isolation: isolate; }
.hero .werte { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 22px 0 8px; font-weight: 700; font-size: 1.05rem; }
.hero .werte span { display: inline-flex; align-items: center; gap: 8px; }
.hero .werte span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero .lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 560px; margin: 18px 0 36px; }
.hero .aktionen { display: flex; flex-wrap: wrap; gap: 12px; }
.sonne { position: absolute; z-index: -1; width: 780px; height: 780px; right: -220px; top: 50%; translate: 0 -50%; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 40%, transparent), transparent 62%); animation: atmen 8s ease-in-out infinite; }
@keyframes atmen { 50% { transform: scale(1.08); } }
.punkte { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--linie) 1.2px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 30% 40%, #000, transparent 70%); mask-image: radial-gradient(ellipse 60% 60% at 30% 40%, #000, transparent 70%); }

.auftritt { opacity: 0; transform: translateY(18px); animation: auftritt .9s var(--ease) forwards; }
@keyframes auftritt { to { opacity: 1; transform: none; } }

/* Telefon mit Chat */
.telefon-buehne { position: relative; display: grid; place-items: center; }
.welle { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; animation: welle 4s ease-out infinite; }
.welle:nth-child(2) { animation-delay: 1.3s; } .welle:nth-child(3) { animation-delay: 2.6s; }
@keyframes welle { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(1.7); opacity: 0; } }
.telefon {
  position: relative; width: 280px; height: min(570px, 76svh); min-height: 480px; border-radius: 46px; padding: 12px; background: var(--schwarz);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .6), inset 0 0 0 2px #2d2b28; animation: schweben 6s ease-in-out infinite;
}
@keyframes schweben { 50% { transform: translateY(-14px) rotate(1.5deg); } }
.telefon::before { content: ""; position: absolute; top: 22px; left: 50%; width: 90px; height: 24px; margin-left: -45px; border-radius: 20px; background: #000; z-index: 2; }
.bildschirm { height: 100%; border-radius: 36px; overflow: hidden; background: #efe7dc; display: flex; flex-direction: column; }
:root[data-theme="dark"] .bildschirm { background: #1d1b18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bildschirm { background: #1d1b18; } }
.chat-kopf { padding: 52px 16px 12px; display: flex; align-items: center; gap: 10px; background: var(--gold); color: var(--schwarz); }
.chat-kopf img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 3px; }
.chat-kopf b { display: block; font-size: .9rem; }
.chat-kopf small { font-size: .7rem; opacity: .75; }
.verlauf { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.blase {
  max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: .8rem; line-height: 1.4; color: #1b1a17; background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .4s var(--ease), transform .5s var(--ease);
}
.blase.an { opacity: 1; transform: none; }
.blase.ich { align-self: flex-end; background: #ffe2ad; border-bottom-right-radius: 4px; }
.blase.er { align-self: flex-start; border-bottom-left-radius: 4px; }
.blase.tippt { display: flex; gap: 4px; padding: 12px 14px; }
.blase.tippt i { width: 7px; height: 7px; border-radius: 50%; background: #a39e95; animation: tippen 1s ease-in-out infinite; }
.blase.tippt i:nth-child(2) { animation-delay: .15s; } .blase.tippt i:nth-child(3) { animation-delay: .3s; }
@keyframes tippen { 50% { transform: translateY(-4px); opacity: .5; } }
.chat-eingabe { margin: 0 10px 14px; padding: 10px 14px; border-radius: 999px; background: #fff; font-size: .75rem; color: #a39e95; }
.plakette {
  position: absolute; padding: 12px 16px; border-radius: 16px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: 10px; animation: schweben 7s ease-in-out infinite;
}
.plakette svg { width: 22px; height: 22px; color: var(--gold); }
.plakette.a { left: -10px; top: 18%; animation-delay: -2s; }
.plakette.b { right: -20px; bottom: 20%; animation-delay: -4s; }
@media (max-width: 900px) {
  .hero .huelle { grid-template-columns: 1fr; }
  .telefon { width: 250px; height: 500px; }
  .plakette.a { left: 0; } .plakette.b { right: 0; }
}

/* ---------- Laufband ---------- */
.laufband { background: var(--schwarz); color: #fff; padding: 20px 0; overflow: hidden; transform: rotate(-1.2deg); margin: 0 -20px; }
.laufband .spur { display: flex; width: max-content; animation: laufen 32s linear infinite; }
.laufband span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.laufband span::after { content: "✦"; color: var(--gold); }
@keyframes laufen { to { transform: translateX(-50%); } }

/* ---------- Leistungen ---------- */
.gitter { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.karte {
  position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.karte:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--schatten); border-color: transparent; }
.karte .nr { position: absolute; right: 22px; top: 16px; font-size: 3.4rem; font-weight: 900; letter-spacing: -.05em; color: var(--flaeche-2); line-height: 1; transition: color .4s; }
.karte:hover .nr { color: color-mix(in srgb, var(--gold) 30%, transparent); }
.symbol { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-dunkel); transition: transform .5s var(--ease), background .3s; position: relative; }
.karte:hover .symbol { transform: rotate(-10deg) scale(1.1); background: var(--gold); color: var(--schwarz); }
.symbol svg { width: 26px; height: 26px; }
.karte h3 { margin: 22px 0 10px; }
.karte p { margin: 0; font-size: .98rem; }

/* ---------- Endgeräte ---------- */
.geraete { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.geraet {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--flaeche); border: 1px solid var(--linie); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.geraet::before { content: ""; position: absolute; inset: auto -30% -40% -30%; height: 70%; border-radius: 50%; z-index: -1; background: var(--gold); opacity: .0; transform: translateY(30%); transition: opacity .5s, transform .6s var(--ease); }
.geraet:hover { transform: translateY(-6px); box-shadow: var(--schatten); }
.geraet:hover::before { opacity: .22; transform: none; }
.geraet svg { width: 54px; height: 54px; color: var(--text); transition: transform .6s var(--ease); }
.geraet:hover svg { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
.geraet b { font-size: 1.05rem; }
.geraet small { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--text-3); font-weight: 600; }
.geraet small::after { content: "→"; transition: transform .3s; }
.geraet:hover small::after { transform: translateX(4px); }
@media (max-width: 960px) { .geraete { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .geraete { grid-template-columns: repeat(2, 1fr); } .geraet { aspect-ratio: 1; } }

/* ---------- Formulare ---------- */
.formular { padding: clamp(24px, 4vw, 38px); border-radius: 26px; background: var(--flaeche); border: 1px solid var(--linie); box-shadow: var(--schatten); display: grid; gap: 16px; }
.formular h3 { font-size: 1.4rem; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.feld { display: grid; gap: 6px; }
.feld > label, .feld > span { font-size: .85rem; font-weight: 700; color: var(--text-2); }
.feld input, .feld textarea, .feld select {
  font: inherit; font-size: .98rem; color: var(--text); width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--linie); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.feld textarea { min-height: 120px; resize: vertical; }
.feld input:focus, .feld textarea:focus, .feld select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 22%, transparent); }
.auswahl { display: flex; flex-wrap: wrap; gap: 8px; }
.auswahl label { position: relative; cursor: pointer; }
.auswahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.auswahl span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--linie); font-size: .88rem; font-weight: 600; color: var(--text-2); transition: all .2s; }
.auswahl input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--schwarz); }
.auswahl input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.formular .hinweis { font-size: .8rem; color: var(--text-3); margin: 0; }
.formular .knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .zwei { grid-template-columns: 1fr; } }



/* ---------- Kontakt ---------- */
.kontakt-raster { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.wege { display: grid; gap: 12px; margin-top: 30px; }
.weg { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--linie); transition: transform .4s var(--ease), border-color .3s; }
.weg:hover { transform: translateX(6px); border-color: var(--gold); }
.weg .symbol { width: 46px; height: 46px; border-radius: 14px; }
.weg.wa .symbol { background: rgba(37, 211, 102, .15); color: #16a34a; }
.weg small { display: block; font-size: .78rem; color: var(--text-3); }
.weg b { font-weight: 700; }
.sozial { display: flex; gap: 10px; margin-top: 20px; }
.sozial a { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--flaeche); border: 1px solid var(--linie); transition: all .3s; }
.sozial a:hover { background: var(--gold); border-color: var(--gold); color: var(--schwarz); transform: translateY(-3px); }
.sozial svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.fusszeile { padding: 56px 0 36px; border-top: 1px solid var(--linie); font-size: .9rem; }
.fusszeile .oben { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.fusszeile nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.fusszeile nav a { color: var(--text-2); } .fusszeile nav a:hover { color: var(--gold-dunkel); }
.fusszeile .unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 1px solid var(--linie); color: var(--text-3); }
.fusszeile .unten a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WhatsApp schwebend ---------- */
.wa-schwebend {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gruen); color: #fff; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8);
  transform: scale(0); transition: transform .5s var(--ease);
}
.wa-schwebend.da { transform: scale(1); }
.wa-schwebend:hover { transform: scale(1.1); }
.wa-schwebend svg { width: 28px; height: 28px; }

/* ---------- Rechtsseiten ---------- */

/* ---------- Scroll-Animationen ---------- */
.js .zeigen { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease) var(--v, 0s), translate .9s var(--ease) var(--v, 0s), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s; }
.js .zeigen.sichtbar { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .zeigen, .auftritt { opacity: 1; translate: none; transform: none; }
  .blase { opacity: 1; transform: none; }
}
