:root {
  color-scheme: light;
  --page-bg: #f3f6f4;
  --surface: #ffffff;
  --surface-raised: #fbfcfb;
  --ink: #162024;
  --text: #243038;
  --muted: #66757d;
  --border: #d9e1de;
  --brand: #106b67;
  --brand-dark: #0b5652;
  --brand-soft: #dcefed;
  --accent: #df654d;
  --accent-soft: #ffe2d7;
  --gold: #d99a2b;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(22, 32, 36, 0.12);
  --shadow-soft: 0 10px 28px rgba(22, 32, 36, 0.08);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: #111719;
  --surface: #182022;
  --surface-raised: #202a2d;
  --ink: #f3f7f6;
  --text: #e6eeec;
  --muted: #a7b5b2;
  --border: #334245;
  --brand: #5bbdb6;
  --brand-dark: #83d3ce;
  --brand-soft: #173b3a;
  --accent: #ff987f;
  --accent-soft: #4a251f;
  --gold: #f0bd5a;
  --danger: #ffb4a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

.skip-link {
  background: var(--ink);
  color: var(--surface);
  left: 1rem;
  padding: 0.65rem 0.9rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-160%);
  z-index: 2000;
}

.skip-link:focus {
  color: var(--surface);
  transform: translateY(0);
}

.site-header,
.site-footer {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-color: var(--border);
}

.site-header {
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-main {
  flex: 1;
}

.navbar {
  padding-block: 0.85rem;
}

.navbar-brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 0.65rem;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: var(--radius);
  color: var(--surface);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.nav-link {
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 650;
  padding-inline: 0.75rem;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.navbar-toggler {
  border-color: var(--border);
  border-radius: var(--radius);
}

.theme-button {
  align-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: inline-flex;
  justify-content: center;
  min-width: 2.25rem;
}

.container-narrow {
  margin-inline: auto;
  max-width: 860px;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  font-size: 2.35rem;
  line-height: 1.04;
}

@media (min-width: 900px) {
  h1 {
    font-size: 3.8rem;
  }
}

h2 {
  font-size: 1.35rem;
}

h3 {
  font-size: 1.12rem;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.7rem;
  text-transform: uppercase;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 62ch;
}

.landing-hero {
  align-items: center;
  background-image: url("../img/hero-nrw-singles.webp");
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  isolation: isolate;
  margin-inline: calc(50% - 50vw);
  min-height: min(620px, calc(100svh - 150px));
  overflow: hidden;
  padding: 4rem max(1rem, calc((100vw - 1140px) / 2)) 3.25rem;
  position: relative;
}

.landing-hero::before {
  background: rgba(8, 18, 20, 0.24);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.landing-hero__content {
  max-width: 44rem;
}

.landing-hero h1,
.landing-hero .eyebrow {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.26);
}

.landing-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.24);
}

.hero-actions,
.hero-facts,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-actions {
  margin-top: 1.6rem;
}

.hero-facts {
  margin-top: 2rem;
}

.hero-fact {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  min-width: 9rem;
  padding: 0.75rem 0.85rem;
}

.hero-fact strong {
  color: #ffffff;
  display: block;
  font-size: 1.2rem;
}

.page-intro {
  margin-bottom: 1.6rem;
  max-width: 760px;
}

.page-kicker {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.content-grid,
.feature-grid,
.dashboard-grid,
.legal-layout {
  display: grid;
  gap: 1rem;
}

.content-grid,
.feature-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 820px) {
  .content-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .legal-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

.trust-panel,
.form-shell,
.content-grid > section,
.feature-card,
.dashboard-card,
.legal-card,
.fact-panel,
.search-panel,
.profile-result,
.conversation-row,
.message-compose,
.message-thread,
.photo-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.content-grid > section,
.feature-card,
.dashboard-card,
.legal-card,
.fact-panel,
.search-panel,
.conversation-row,
.message-compose,
.message-thread {
  padding: 1.15rem;
}

.feature-card,
.dashboard-card,
.legal-card,
.fact-panel {
  min-height: 100%;
}

.feature-card--accent {
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
}

.section-band {
  margin-block: 2rem;
}

.section-band__header {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.metric-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.metric {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
}

.metric strong {
  color: var(--ink);
  display: block;
  font-size: 1.35rem;
}

.dashboard-hero {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.dashboard-hero__text {
  max-width: 720px;
}

.status-pill,
.tag {
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: var(--radius);
  color: var(--brand-dark);
  display: inline-block;
  font-weight: 700;
  margin: 0.15rem;
  padding: 0.25rem 0.55rem;
}

.status-pill--accent {
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  color: color-mix(in srgb, var(--accent) 70%, var(--ink));
}

.form-shell {
  margin: 0 auto;
  max-width: 520px;
  padding: 1.25rem;
}

.form-shell-wide {
  max-width: 980px;
}

.form-control,
.form-select {
  background-color: var(--surface);
  border-color: var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

.form-label {
  color: var(--ink);
  font-weight: 700;
}

.btn {
  border-radius: var(--radius);
  font-weight: 750;
}

.btn-primary {
  background-color: var(--brand);
  border-color: var(--brand);
}

.btn-primary:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn-outline-primary {
  border-color: color-mix(in srgb, var(--brand) 65%, var(--border));
  color: var(--brand-dark);
}

.btn-outline-primary:hover {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.btn-outline-secondary {
  border-color: var(--border);
  color: var(--text);
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
}

.alert {
  border-radius: var(--radius);
}

.photo-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.photo-item {
  overflow: hidden;
}

.photo-item img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-meta,
.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
}

.photo-meta {
  color: var(--muted);
  flex-direction: column;
}

.profile-header {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 800px) {
  .profile-header {
    grid-template-columns: 300px minmax(0, 1fr);
  }
}

.profile-main-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  width: 100%;
}

.search-panel {
  padding: 1rem;
}

.search-grid,
.profile-result-grid {
  display: grid;
  gap: 1rem;
}

.search-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.profile-result-grid {
  grid-template-columns: minmax(0, 1fr);
}

.profile-result {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(96px, 140px) minmax(0, 1fr);
  padding: 1rem;
}

.profile-result img {
  aspect-ratio: 1;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}

.profile-result-placeholder {
  align-items: center;
  aspect-ratio: 1;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: var(--radius);
  color: var(--brand-dark);
  display: flex;
  font-weight: 850;
  justify-content: center;
  width: 100%;
}

.conversation-list,
.message-thread {
  display: grid;
  gap: 1rem;
}

.conversation-row,
.conversation-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.message-thread {
  min-height: 280px;
}

.message-row {
  display: flex;
}

.message-row-own {
  justify-content: flex-end;
}

.message-row-other {
  justify-content: flex-start;
}

.message-bubble {
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: var(--radius);
  max-width: min(68ch, 85%);
  padding: 0.75rem;
}

.message-row-own .message-bubble {
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border));
}

.message-report-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.moderation-evidence {
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.pagination-nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.draft-notice {
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: var(--radius);
  color: #7c2d12;
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 1rem;
}

[data-theme="dark"] .draft-notice {
  background: #3b230e;
  border-color: #9a5a22;
  color: #ffd7ae;
}

.legal-stack {
  display: grid;
  gap: 1rem;
}

.legal-card address {
  margin-bottom: 0;
}

.fact-list {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.fact-list div {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.fact-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.fact-list dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.fact-list dd {
  color: var(--ink);
  font-weight: 750;
  margin: 0;
}

.plan-price {
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 850;
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
  }

  .landing-hero {
    min-height: auto;
    padding-block: 3rem;
  }

  .hero-fact {
    min-width: min(100%, 9rem);
  }

  .profile-result {
    grid-template-columns: minmax(0, 1fr);
  }

  .conversation-row,
  .conversation-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* © 2026 Erik Schauer, do1ffe@darc.de */
