/* ===== Seitenwerk – gemeinsames Stylesheet ===== */
:root {
  --bg: #ffffff; --bg-soft: #f5f5f7; --text: #1d1d1f; --text-soft: #6e6e73;
  --accent: #0071e3; --accent-hover: #0077ed; --radius: 20px; --max: 980px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html { background: var(--bg); }
body { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", sans-serif; color: var(--text); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Sichtbarer Fokus für Tastaturbedienung */
:focus-visible { outline: 3px solid rgba(0, 113, 227, 0.55); outline-offset: 3px; border-radius: 6px; }

/* Weicher Seitenwechsel (Chrome, Edge, Safari 18.2+); Navigation bleibt stehen */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
}
nav { view-transition-name: site-nav; }

/* ===== Navigation ===== */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.75); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
nav .wrap { display: flex; align-items: center; height: 60px; }
.logo { font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); }
.logo span { color: var(--accent); }
.nav-separator { height: 16px; width: 1px; background-color: rgba(0, 0, 0, 0.15); margin: 0 16px; }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.nav-link { position: relative; padding: 6px 0; font-size: 0.95rem; color: var(--text-soft); font-weight: 500; transition: color 0.3s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-spring), opacity 0.3s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link:not([aria-current="page"]):hover::after { opacity: 0.35; }
@media (max-width: 480px) {
  nav .wrap { padding: 0 16px; }
  .nav-links { gap: 12px; }
  .nav-link { font-size: 0.88rem; }
  .nav-separator { display: none; }
}

/* ===== Header / Hero ===== */
header { padding: 90px 0 40px; text-align: center; }
header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
header p { font-size: 1.15rem; color: var(--text-soft); max-width: 600px; margin: 0 auto; }
header.hero { padding: 110px 0 70px; }
header.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
header.hero h1 span { color: var(--accent); }
header.hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 650px; margin: 0 auto 40px; }

/* ===== Buttons ===== */
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn { display: inline-block; border: 0; cursor: pointer; font-family: inherit; background: var(--accent); color: #fff; padding: 16px 36px; border-radius: 980px; font-size: 1.05rem; font-weight: 500; line-height: 1.5; box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2); transition: transform 0.4s var(--ease-spring), background-color 0.3s ease, box-shadow 0.4s var(--ease-spring); }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px) scale(1.02); box-shadow: 0 6px 20px rgba(0, 113, 227, 0.3); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn.secondary:hover { background: rgba(0, 113, 227, 0.08); box-shadow: inset 0 0 0 1.5px var(--accent-hover); }

/* ===== Sections ===== */
section { padding: 80px 0; }
section.soft { background: rgba(245, 245, 247, 0.72); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; text-align: center; margin-bottom: 16px; }
.sub { text-align: center; color: var(--text-soft); max-width: 620px; margin: 0 auto 56px; font-size: 1.1rem; }

.about { max-width: 680px; margin: 0 auto; text-align: center; }
.about p { color: var(--text-soft); font-size: 1.15rem; margin-bottom: 24px; line-height: 1.6; }

/* Karten */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: var(--radius); padding: 36px 32px; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04); border: 1px solid rgba(0, 0, 0, 0.02); transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring); }
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08); }
.card .icon { width: 48px; height: 48px; border-radius: 14px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 20px; }
.card h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 1rem; }

/* Team */
.team-label { text-align: center; color: var(--text-soft); font-size: 0.95rem; font-weight: 500; margin: 56px 0 20px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 560px; margin: 0 auto; }
.member { background: #fff; border-radius: 16px; padding: 28px 20px; text-align: center; box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04); transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring); }
.member:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08); }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.02em; margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25); }
.member h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.member span { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--text-soft); }
@media (max-width: 560px) { .team-grid { grid-template-columns: 1fr; } }

/* Schritte mit verbindender Linie */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; position: relative; max-width: 850px; margin: 0 auto; }
.steps::before { content: ""; position: absolute; top: 26px; left: 15%; right: 15%; height: 2px; background: #e5e5ea; z-index: 0; }
.step { text-align: center; padding: 0 12px; position: relative; z-index: 1; }
.step .num { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 1.2rem; margin: 0 auto 20px; box-shadow: 0 4px 12px rgba(0, 113, 227, 0.25); border: 4px solid #f5f5f7; }
.step h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 768px) { .steps::before { display: none; } }

/* Betreuung */
.betreuung { background: #fff; border-radius: var(--radius); padding: 48px 40px; max-width: 760px; margin: 0 auto; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); text-align: center; }
.betreuung h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 16px; }
.betreuung p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 20px; }
.betreuung ul { list-style: none; text-align: left; max-width: 460px; margin: 0 auto; }
.betreuung li { position: relative; padding-left: 32px; margin-bottom: 12px; font-size: 1.05rem; }
.betreuung li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* Kontaktseite */
section.contact-section { padding: 20px 0 100px; }
.contact-container { display: flex; flex-direction: column; gap: 40px; max-width: 800px; margin: 0 auto; }
.map-card, .contact-card { background: #fff; border-radius: var(--radius); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06); border: 1px solid rgba(0, 0, 0, 0.03); text-align: center; }
.map-card { padding: 40px; }
.map-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.map-card p { color: var(--text-soft); margin-bottom: 32px; font-size: 1rem; }
.map-container { width: 100%; max-width: 600px; margin: 0 auto; }
.map-container svg { width: 100%; height: auto; filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.08)); }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin-top: 32px; font-size: 0.9rem; color: var(--text-soft); font-weight: 500; }
.map-legend .dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: middle; }
.dot.blue { background: var(--accent); }
.dot.grey { background: #e5e5ea; }

.contact-card { padding: 48px 40px; }
.contact-card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.contact-card > p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 32px; }
.copy-hint { margin: 18px 0 0; font-size: 0.9rem; color: var(--text-soft); }
.info { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(0, 0, 0, 0.08); font-size: 0.95rem; color: var(--text-soft); }
.info p { margin-bottom: 10px; }
@media (max-width: 560px) { .map-card, .contact-card { padding: 32px 22px; } }

/* ===== Footer ===== */
footer { background: rgba(245, 245, 247, 0.85); padding: 48px 0; font-size: 0.9rem; color: var(--text-soft); border-top: 1px solid rgba(0, 0, 0, 0.05); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

/* ===== Einblend-Animation (nur mit JavaScript, sonst alles sichtbar) ===== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-spring), transform 0.9s var(--ease-spring); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Bewegung reduzieren, wenn vom System gewünscht */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== Dynamischer Hintergrund ===== */
.bg { position: fixed; inset: -20vh 0; z-index: -1; overflow: hidden; pointer-events: none; transform: translate3d(0, calc(var(--sy, 0) * -0.07px), 0); }
.bg i { position: absolute; border-radius: 50%; will-change: transform; }
.bg i:nth-child(1) { width: 60vmax; height: 60vmax; left: -18vmax; top: 4vh; background: radial-gradient(circle, rgba(0,113,227,.24), transparent 66%); animation: drift1 28s ease-in-out infinite alternate; }
.bg i:nth-child(2) { width: 52vmax; height: 52vmax; right: -16vmax; top: 30vh; background: radial-gradient(circle, rgba(64,156,255,.22), transparent 66%); animation: drift2 34s ease-in-out infinite alternate; }
.bg i:nth-child(3) { width: 46vmax; height: 46vmax; left: 28vw; bottom: -8vh; background: radial-gradient(circle, rgba(0,86,179,.16), transparent 66%); animation: drift3 40s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate3d(14vw, 10vh, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(-16vw, -8vh, 0) scale(1.1); } }
@keyframes drift3 { to { transform: translate3d(-12vw, -12vh, 0) scale(1.2); } }

/* ===== Sprachumschalter ===== */
.lang { display: flex; background: rgba(0,0,0,.06); border-radius: 99px; padding: 2px; margin-left: 4px; }
.lang button { border: 0; background: transparent; font: inherit; font-size: .78rem; font-weight: 600; color: var(--text-soft); padding: 3px 9px; border-radius: 99px; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ===== Geräte ===== */
.devices { display: flex; align-items: flex-end; justify-content: center; gap: 3.5%; max-width: 820px; margin: 56px auto 0; padding: 0 2%; }
.devices.big { max-width: 940px; margin-top: 0; }
.laptop { flex: 0 0 74%; animation: float 8s ease-in-out infinite; }
.lid { position: relative; background: #0b0b0d; border-radius: 18px 18px 4px 4px; padding: 1.5% 1.5% 3.2%; box-shadow: 0 0 0 1.5px #c4c4ca, 0 30px 60px rgba(0,60,140,.18), 0 8px 20px rgba(0,0,0,.12); }
.base { position: relative; height: 14px; margin: 0 -6%; background: linear-gradient(#ececf0, #d2d3d9 55%, #b7b8bf); border-radius: 0 0 20px 20px; box-shadow: 0 18px 30px rgba(0,0,0,.14); }
.base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; background: #a9aab1; border-radius: 0 0 9px 9px; transform: translateX(-50%); }
.screen { position: relative; overflow: hidden; background: #fff; container-type: inline-size; }
.laptop .screen { aspect-ratio: 16 / 10; border-radius: 6px; }
.laptop .screen::after { content: ""; position: absolute; top: 0; left: 50%; width: 15cqw; height: 2.7cqw; margin-left: -7.5cqw; background: #0b0b0d; border-radius: 0 0 1.3cqw 1.3cqw; z-index: 3; }
.phone { position: relative; flex: 0 0 18%; padding: .55%; background: linear-gradient(145deg, #dcdce0, #8e8e95 38%, #cfcfd5 62%, #7d7d84); border-radius: 18% / 8.3%; box-shadow: 0 24px 50px rgba(0,60,140,.25), 0 6px 16px rgba(0,0,0,.15); animation: float 7s ease-in-out -3s infinite; }
.phone::before, .phone::after { content: ""; position: absolute; width: 1.8%; background: #8a8a91; border-radius: 2px; }
.phone::before { left: -1.6%; top: 17%; height: 6%; box-shadow: 0 5.5cqw 0 #8a8a91; }
.phone::after { right: -1.6%; top: 24%; height: 11%; }
.phone .screen { aspect-ratio: 9 / 19.5; border-radius: 15.5% / 7.1%; box-shadow: 0 0 0 3px #0a0a0b; }
.phone .screen::after { content: ""; position: absolute; top: 2.4%; left: 50%; width: 30%; height: 2.4%; border-radius: 99px; background: #0a0a0b; transform: translateX(-50%); z-index: 3; }
.screen iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
@keyframes float { 50% { transform: translateY(-7px); } }
.dev-caption { text-align: center; color: var(--text-soft); font-size: .9rem; margin-top: 18px; }
@media (max-width: 560px) { .laptop { flex-basis: 70%; } .phone { flex-basis: 22%; padding: .7%; } }

/* Beispiel-Website auf den Geräten */
.mini { height: 100%; display: flex; flex-direction: column; background: #fff; font-size: 2.7cqw; transition: opacity .35s ease; }
.phone .mini { font-size: 6.4cqw; }
.mini.out { opacity: 0; }
.m-nav { display: flex; align-items: center; gap: 1.4em; padding: 1em 1.6em; border-bottom: 1px solid #eee; }
.phone .m-nav { padding-top: 2.6em; }
.m-brand { margin-right: auto; font-weight: 700; color: var(--accent); font-size: 1.1em; }
.m-nav i { width: 2.4em; height: .5em; border-radius: 9px; background: #d7d7dd; }
.m-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em; padding: 1.5em; text-align: center; background: linear-gradient(160deg, #eaf3ff, #fff 70%); }
.m-title { font-size: 2.1em; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.m-btn { background: var(--accent); color: #fff; border-radius: 99px; padding: .55em 1.3em; font-weight: 600; font-size: .95em; }
.m-chips { display: flex; gap: .8em; padding: 1.2em 1.6em 1.6em; }
.m-chips span { flex: 1; text-align: center; padding: .9em .3em; border-radius: 1em; background: #f2f6fc; color: #0058b0; font-weight: 600; font-size: .85em; }
.phone .m-chips { flex-direction: column; }

/* Fester Button am Handy */
.sticky-cta { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 90; transform: translate(-50%, 140%); opacity: 0; transition: transform .5s var(--ease-spring), opacity .4s ease; box-shadow: 0 8px 28px rgba(0,113,227,.35); }
.sticky-cta.show { transform: translate(-50%, 0); opacity: 1; }
@media (min-width: 769px) { .sticky-cta { display: none; } }

/* Eingebettete Vorschau (Infos-Seite) */
.embed { scroll-behavior: auto; }
.embed .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.embed .sticky-cta, .embed .devices, .embed .dev-caption, .embed .bg { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .bg { transform: none; }
  .bg i, .laptop, .phone { animation: none; }
}
