@font-face {
  font-family: "Gambetta";
  src: url("fonts/Gambetta-Variable.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("fonts/GeneralSans-Variable.woff2") format("woff2-variations");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --paper: #fbf6ef;
  --card: #ffffff;
  --border: #e4d9c7;
  --ink: #193153;
  --muted-fg: #55636f;
  --teal: #0b5777;
  --blush: #f9d4e0;
  --status-good: #1a6b52;
  --shadow-lift: 0 2px 4px rgba(25, 49, 83, 0.07), 0 16px 40px -20px rgba(25, 49, 83, 0.26);
  --shadow-stage: 0 30px 80px -30px rgba(11, 87, 119, 0.45);
  --font-heading: "Gambetta", Georgia, "Times New Roman", serif;
  --font-sans: "General Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --radius-field: 12px;
  --radius-card: 18px;
  --radius-stage: 28px;
  --radius-pill: 999px;
  --gutter: clamp(20px, 5vw, 72px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.lang-switch {
  position: fixed;
  top: 20px;
  right: var(--gutter);
  z-index: 10;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--teal);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
}

.hero {
  padding: clamp(80px, 12vh, 120px) 0 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.grid {
  display: grid;
  gap: clamp(32px, 5vw, 64px);
  /* start, not center: DE and EN copy wrap to different heights, and center-aligning
     against the fixed-height photo would shift the whole text block up/down per language. */
  align-items: start;
}
@media (min-width: 900px) {
  .grid {
    grid-template-columns: 1.35fr 1fr;
  }
}

.logo {
  width: clamp(200px, 26vw, 300px);
  color: var(--teal);
  margin-bottom: clamp(20px, 4vw, 36px);
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin: 0 0 20px;
}

.heading {
  font-family: var(--font-heading);
  font-weight: 500;
  /* Sized so both "Delivering digital care" and "to people with Dementia" each stay on
     their own line (the <br> between them) at every width. Single-column layout scales
     with viewport; the two-column desktop layout (>=900px) jumps to a narrower text
     column, so it gets its own smaller fixed sizes instead of continuing the vw curve. */
  font-size: clamp(22px, 7vw, 72px); /* 7vw: auch „für Menschen mit Demenz.“ bleibt am Handy in einer Zeile */
  line-height: 1.02;
  letter-spacing: -0.022em;
  margin: 0 0 20px;
}
@media (min-width: 900px) {
  .heading {
    font-size: 38px;
  }
}
@media (min-width: 1180px) {
  .heading {
    font-size: 46px;
  }
}

mark {
  background: linear-gradient(transparent 62%, var(--blush) 62%, var(--blush) 92%, transparent 92%);
  color: inherit;
  padding: 0 0.04em;
}

.lede {
  max-width: 46ch;
  margin: 0 0 32px;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 440px;
}
form[hidden] {
  display: none; /* sonst hebt display: flex das hidden nach dem Absenden auf */
}

input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 13px 18px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-field);
}
input[type="email"]:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}

form button {
  flex: none;
  padding: 13px 24px;
  min-height: 48px;
  /* Fixed so the DE ("Auf dem Laufenden bleiben") and EN ("Keep me posted") labels
     render the same button size — only the text should change on language switch. */
  min-width: 280px;
  font: inherit;
  font-weight: 500;
  color: var(--paper);
  background: var(--teal);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}
form button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
form button:active {
  transform: scale(0.97);
}
form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
form button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.hidden-field {
  display: none;
}

.form-note {
  font-size: 13px;
  color: var(--muted-fg);
  margin: 10px 0 0;
}

.form-message {
  margin: 0;
  font-weight: 500;
}
.form-message[data-state="error"] {
  color: #9a4f6b;
}
.form-message[data-state="success"] {
  color: var(--status-good);
}

.stage {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-stage);
  box-shadow: var(--shadow-stage);
  overflow: hidden;
}

.stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.call-card {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  max-width: 300px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}

.preview-pill {
  position: absolute;
  top: -12px;
  right: 12px;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.call-card .name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.call-card .name {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 17px;
}
.call-card .time {
  font-size: 13px;
  color: var(--muted-fg);
  margin: 0 0 6px;
}
.call-card .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  padding: 4px 10px 4px 8px;
  font-weight: 500;
  font-size: 13px;
  color: var(--status-good);
  background: color-mix(in srgb, var(--status-good) 13%, transparent);
  margin: 0 0 6px;
}
.call-card .status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.call-card .sentence {
  margin: 0;
  font-size: 15px;
}

.site-foot {
  padding-bottom: 32px;
  font-size: 13px;
  color: var(--muted-fg);
}

.legal {
  max-width: calc(70ch + 2 * var(--gutter));
  padding-top: clamp(48px, 8vh, 96px);
  padding-bottom: 64px;
}
.legal h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.1;
  margin: 24px 0 16px;
}
.legal h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin: 36px 0 8px;
}
.legal p,
.legal ul {
  margin: 0 0 12px;
}

/* Banner offen (consent.js setzt --cb-h): unten Platz lassen, damit sich das Formular über das Banner scrollen lässt, wie .ft auf der großen Seite */
html.cb-open .site-foot {
  padding-bottom: calc(var(--cb-h, 0px) + 24px);
}

/* Textteil unter dem Einstieg: So funktioniert Fonora und Fragen (für Besucher und für Google) */
.info {
  padding-top: 24px;
  padding-bottom: 56px;
}
.info h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.info-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .info-liste {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.info h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 6px;
}
.info p {
  margin: 0;
}
.info details {
  max-width: 760px;
  border-top: 1px solid var(--border);
  padding: 14px 0;
}
.info details:last-of-type {
  border-bottom: 1px solid var(--border);
}
.info summary {
  cursor: pointer;
  font-weight: 600;
}
.info summary:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.info details p {
  margin-top: 8px;
}

/* Linkseite für Instagram (/bio/): eine schmale Spalte, Anmeldung als Hauptkarte, darunter Karten als ganze Links. Vorbild src/css/bio.css */
.bio {
  max-width: calc(480px + 2 * var(--gutter));
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}
.bio-logo {
  display: block;
  width: 180px;
  margin: 0 auto 8px;
  color: var(--teal);
}
.bio-logo .logo {
  display: block;
  width: 100%;
  margin: 0;
}
.bio .heading {
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.1;
  margin: 0;
}
.bio-lede {
  margin: 0 0 8px;
}
.bio-haupt {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-stage);
  box-shadow: var(--shadow-lift);
  padding: 20px;
}
.bio-haupt .eyebrow {
  margin: 0 0 10px;
}
.bio-haupt h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.bio-haupt > p {
  margin: 0 0 14px;
}
.bio-haupt form button {
  min-width: 0;
  flex: 1 1 auto;
}
.bio-haupt .form-note {
  margin: 10px 0 0;
}
.bio-liste {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.bio-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}
.bio-link > span {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bio-link strong {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 19px;
}
.bio-link span span {
  font-size: 15px;
  color: var(--muted-fg);
}
.bio-link .bio-pf {
  flex: none;
  color: var(--teal);
  transition: transform 0.2s;
}
.bio-link:hover {
  border-color: var(--teal);
}
.bio-link:hover .bio-pf {
  transform: translateX(3px);
}
.bio-link:active {
  transform: scale(0.98);
}
.bio-link:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.bio-foot {
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .bio-link,
  .bio-pf {
    transition: none;
  }
  .bio-link:active {
    transform: none;
  }
}
