/* OpenGH Website. Farben und Schrift wie in der App (docs/design/DESIGN.md). */

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #ffffff;
  --bg: #f4f2ee;
  --surface: #ffffff;
  --border: #e7e3dc;
  --border-strong: #c9cdd4;
  --text: #1b1d21;
  --text-muted: #4a4e55;
  --text-subtle: #5b5f66;
  --brand: #b91c1c;
  --brand-hover: #991b1b;
  --on-termine: #ffffff;

  --m-ankuendigung: #b91c1c;
  --m-termine: #1d4ed8;
  --m-maengel: #c2410c;
  --m-maengel-text: #9a3412;
  --m-fristen: #6d28d9;
  --m-reservierungen: #15803d;
  --m-abstimmungen: #0f766e;

  --info-bg: #f1f5fe;
  --ok-bg: #e8f3e8;
  --ok-fg: #1f5e24;
  --warn-bg: #fef3c7;
  --warn-fg: #78350f;

  --shadow: 0 40px 80px -30px rgba(27, 29, 33, 0.35), 0 16px 32px -16px rgba(27, 29, 33, 0.2);
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #111315;
    --bg: #181b1f;
    --surface: #1c1f24;
    --border: #2d3139;
    --border-strong: #50565f;
    --text: #eceef1;
    --text-muted: #bec2c9;
    --text-subtle: #a9aeb6;
    --brand-hover: #c42a2a;
    --on-termine: #111315;
    --m-ankuendigung: #f87171;
    --m-termine: #8ab4f8;
    --m-maengel: #fb923c;
    --m-maengel-text: #fb923c;
    --m-fristen: #c4b5fd;
    --m-reservierungen: #4ade80;
    --m-abstimmungen: #2dd4bf;
    --info-bg: #1e2a44;
    --ok-bg: #17301b;
    --ok-fg: #a7e3ae;
    --warn-bg: #3a2c0b;
    --warn-fg: #fcd98a;
    --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 16px 32px -16px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #111315;
  --bg: #181b1f;
  --surface: #1c1f24;
  --border: #2d3139;
  --border-strong: #50565f;
  --text: #eceef1;
  --text-muted: #bec2c9;
  --text-subtle: #a9aeb6;
  --brand-hover: #c42a2a;
  --on-termine: #111315;
  --m-ankuendigung: #f87171;
  --m-termine: #8ab4f8;
  --m-maengel: #fb923c;
  --m-maengel-text: #fb923c;
  --m-fristen: #c4b5fd;
  --m-reservierungen: #4ade80;
  --m-abstimmungen: #2dd4bf;
  --info-bg: #1e2a44;
  --ok-bg: #17301b;
  --ok-fg: #a7e3ae;
  --warn-bg: #3a2c0b;
  --warn-fg: #fcd98a;
  --shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8), 0 16px 32px -16px rgba(0, 0, 0, 0.6);
}

/* Grundlagen */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--m-termine);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--text);
  color: var(--page);
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: clamp(80px, 11vw, 136px) 0;
  text-align: center;
}
.titel {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
}
.unter {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
}
.pille {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}
.pille-gelb {
  background: var(--warn-bg);
  border-color: transparent;
  color: var(--warn-fg);
  font-weight: 800;
}

/* Knöpfe (wie in der App: mind. 48 px, Radius 14) */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-rot {
  background: var(--brand);
  color: #fff;
}
.btn-rot:hover {
  background: var(--brand-hover);
}
.btn-zweit {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  font-weight: 600;
}
.btn-zweit:hover {
  border-color: var(--text-subtle);
}
.btn-klein {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
}

/* Kopfzeile */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--page) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.gescrollt {
  border-bottom-color: var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}
.logo img {
  width: 32px;
  height: 32px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-muted);
}
.nav a:hover {
  color: var(--text);
}
@media (max-width: 760px) {
  .nav {
    display: none;
  }
  .site-header .btn {
    margin-left: auto;
  }
}

/* Hero */

.hero {
  padding: clamp(56px, 8vw, 96px) 0 0;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero .lead {
  margin: 24px auto 0;
  max-width: 44ch;
  font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
  color: var(--text-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.buehne {
  position: relative;
  margin-top: clamp(56px, 7vw, 80px);
  display: flex;
  justify-content: center;
  text-align: left;
}
.buehne::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 22%;
  width: min(900px, 140%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent);
  pointer-events: none;
}

/* Handy mit dem Startbildschirm der App (unten angeschnitten) */

.handy {
  position: relative;
  width: min(100%, 360px);
  height: 600px;
  border-radius: 48px 48px 0 0;
  background: #1b1d21;
  padding: 10px 10px 0;
  box-shadow: var(--shadow), inset 0 0 0 2px #3a3e45;
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 38px 38px 0 0;
  background: var(--bg);
  overflow: hidden;
  font-size: 15px;
}
.screen::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}
.statusleiste {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 26px 0;
  font-size: 0.8em;
  font-weight: 800;
}
.statusleiste i {
  display: inline-block;
  width: 22px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.statusleiste i::after {
  content: "";
  position: absolute;
  inset: 1.5px 5px 1.5px 1.5px;
  background: currentColor;
  border-radius: 1px;
}
.app-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 18px 16px 14px;
}
.app-wehr {
  font-size: 0.95em;
  color: var(--text-subtle);
  font-weight: 600;
}
.gruss {
  font-size: 1.75em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.app-stift {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
}
.app-raster {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
}
.a {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 104px;
}
.a::after {
  content: "›";
  position: absolute;
  top: 6px;
  right: 12px;
  font-size: 22px;
  line-height: 1;
  opacity: 0.55;
}
.a.breit {
  grid-column: span 2;
}
.a-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 800;
  color: var(--c, var(--text));
}
.a-h .icon {
  width: 17px;
  height: 17px;
}
.a-inhalt {
  font-weight: 600;
  font-size: 1.05em;
  line-height: 1.25;
}
.a-titel {
  font-size: 1.3em;
  font-weight: 800;
  line-height: 1.15;
}
.a-meta {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95em;
}
.a-zahl {
  color: var(--text-muted);
  font-size: 0.92em;
  font-weight: 600;
}
.a-zahl b {
  color: var(--text);
  font-weight: 800;
}
.a-knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a-knoepfe button,
.a-antwort {
  min-height: 46px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 1em;
  cursor: pointer;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  transition: transform 0.12s ease;
}
.a-knoepfe button:active,
.a-antwort:active {
  transform: scale(0.97);
}
.a-knoepfe .ja {
  background: var(--m-termine);
  border-color: var(--m-termine);
  color: var(--on-termine);
}
.a-antwort {
  width: 100%;
  background: var(--info-bg);
  border-color: var(--info-bg);
  font-weight: 600;
}
.ampel {
  display: grid;
  gap: 6px;
}
.ampel li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.punkt {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 800;
  flex: none;
  vertical-align: -4px;
}
.punkt.ok {
  background: var(--ok-bg);
  color: var(--ok-fg);
}
.punkt.warn {
  background: var(--warn-bg);
  color: var(--warn-fg);
}
.a.aktion {
  background: #c2410c;
  border-color: #c2410c;
  color: #fff;
}
.a.aktion .plus {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
}
@media (max-width: 380px) {
  .handy {
    height: 560px;
    border-radius: 40px 40px 0 0;
    padding: 8px 8px 0;
  }
  .screen {
    border-radius: 32px 32px 0 0;
    font-size: 14px;
  }
}

/* Funktionen */

#funktionen {
  border-top: 1px solid var(--border);
}
.funktionen {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px);
  text-align: left;
}
.funktionen article {
  display: grid;
  gap: 8px;
  align-content: start;
}
.symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  margin-bottom: 8px;
}
.symbol .icon {
  width: 24px;
  height: 24px;
}
.funktionen h3 {
  font-size: 1.25rem;
}
.funktionen p {
  color: var(--text-muted);
}
@media (max-width: 860px) {
  .funktionen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .funktionen {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Open Source */

.band {
  background: var(--bg);
}
.werte {
  margin-top: clamp(48px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.werte strong {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.werte p {
  margin: 10px auto 0;
  max-width: 28ch;
  color: var(--text-muted);
}
@media (max-width: 760px) {
  .werte {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* Hosting-Pakete */

.pakete {
  margin-top: clamp(48px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}
.paket {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}
.paket-top {
  border: 2px solid var(--text);
}
.schild {
  align-self: flex-start;
  padding: 3px 10px;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.paket h3 {
  font-size: 1.25rem;
  line-height: 1.25;
}
.paket ul {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}
.paket li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
}
.paket li::before {
  content: "✓";
  color: var(--ok-fg);
  font-weight: 800;
}
.paket .btn {
  margin-top: auto;
}
@media (max-width: 860px) {
  .pakete {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fußzeile */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.footer-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-zeile nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
}
.site-footer a,
.linkknopf {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover,
.linkknopf:hover {
  color: var(--text);
  text-decoration: underline;
}
.site-footer .logo {
  color: var(--text);
}
.linkknopf {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.klein {
  color: var(--text-subtle);
}
.footer-unten {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-subtle);
}
@media (max-width: 760px) {
  .footer-zeile nav {
    margin-left: 0;
    width: 100%;
  }
}

/* Rechtstexte */

.recht {
  padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px);
}
.recht .wrap {
  max-width: calc(760px + 2 * var(--gutter));
}
.recht h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 12px;
}
.recht .stand {
  color: var(--text-subtle);
  margin-bottom: 40px;
}
.recht h2 {
  font-size: 1.375rem;
  margin: 40px 0 12px;
}
.recht p,
.recht li {
  color: var(--text-muted);
  max-width: 70ch;
}
.recht p + p {
  margin-top: 12px;
}
.recht ul {
  list-style: disc;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.recht a {
  color: var(--m-termine);
}
.recht address {
  font-style: normal;
  color: var(--text);
  font-weight: 600;
  line-height: 1.6;
}
.recht .karte {
  background: var(--bg);
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 12px;
}

/* Cookie-Einstellungen */

.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 90;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: left;
}
.consent[hidden] {
  display: none;
}
.consent h2 {
  font-size: 1.1875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.consent > p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9875rem;
}
.consent a {
  color: var(--m-termine);
}
.consent-knoepfe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.consent-knoepfe .btn {
  min-height: 48px;
  padding: 0 12px;
  font-size: 1rem;
}
.consent-knoepfe .breit {
  grid-column: 1 / -1;
}
.consent-details {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.consent-details[hidden] {
  display: none;
}
.kategorie {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--bg);
}
.kategorie strong {
  font-size: 1rem;
}
.kategorie p {
  grid-column: 1;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.kategorie .schalter {
  grid-row: 1 / span 2;
  grid-column: 2;
}
.schalter {
  position: relative;
  width: 56px;
  height: 32px;
  flex: none;
}
.schalter input {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.schalter input:disabled {
  cursor: not-allowed;
}
.schalter span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color 0.2s ease;
}
.schalter span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}
.schalter input:checked + span {
  background: var(--ok-fg);
}
.schalter input:checked + span::after {
  transform: translateX(24px);
}
.schalter input:disabled + span {
  opacity: 0.6;
}
.schalter input:focus-visible + span {
  outline: 3px solid var(--m-termine);
  outline-offset: 3px;
}

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