/*
Theme Name: Funnel Theme
Author: Copilot
Description: A conversion-first theme with a selector front page, white screen layout, and spacious landing pages.
Version: 1.1.0
Text Domain: funnel-theme
*/

:root {
  --funnel-bg: #f5f2ea;
  --funnel-surface: #ffffff;
  --funnel-ink: #15171c;
  --funnel-muted: #5b6068;
  --funnel-accent: #1b5cff;
  --funnel-accent-strong: #0b3fd6;
  --funnel-accent-soft: #e9f0ff;
  --funnel-border: rgba(21, 23, 28, 0.1);
  --funnel-shadow: 0 24px 70px rgba(21, 23, 28, 0.08);
  --funnel-radius: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--funnel-ink);
  /* Hintergrundverlauf bleibt erhalten – einheitlich auf allen Ansichten. */
  background: radial-gradient(circle at top, #ffffff 0, var(--funnel-bg) 52%, #efe7d8 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* Globaler Schalter: blendet sämtliche Überschriften aus (Customizer). */
.funnel-hide-headings h1,
.funnel-hide-headings h2,
.funnel-hide-headings h3,
.funnel-hide-headings h4,
.funnel-hide-headings h5,
.funnel-hide-headings h6 {
  display: none !important;
}

.site-shell,
.content-shell,
.landing-shell,
.minimal-shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
  padding: 1.25rem 0;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--funnel-border);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
}

.site-brand__img {
  display: block;
  height: 2.25rem;
  width: auto;
}

.site-brand__mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  color: #fff;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--funnel-accent), var(--funnel-accent-strong));
  box-shadow: 0 10px 24px rgba(27, 92, 255, 0.22);
}

.site-nav .menu,
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--funnel-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--funnel-ink);
}

/* ---------- Selector (Auswahlseite) ---------- */
.front-selector {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2.5rem 0;
}

.front-selector__panel {
  width: min(1080px, calc(100% - 2.5rem));
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--funnel-border);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--funnel-shadow);
}

.front-selector__eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--funnel-accent);
  font-weight: 600;
}

.front-selector__title {
  margin: 0;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
}

.front-selector__lead {
  max-width: 52rem;
  margin: 1rem 0 0;
  color: var(--funnel-muted);
  font-size: 1.05rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
}

.choice-card {
  display: block;
  min-height: 180px;
  padding: 1.5rem;
  border-radius: 1.1rem;
  text-decoration: none;
  border: 1px solid var(--funnel-border);
  background: var(--funnel-surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.choice-card:hover,
.choice-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(27, 92, 255, 0.4);
  box-shadow: 0 18px 44px rgba(21, 23, 28, 0.1);
}

.choice-card--accent {
  background: linear-gradient(180deg, var(--funnel-accent-soft), #ffffff);
  border-color: rgba(27, 92, 255, 0.25);
}

.choice-card h2 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
}

.choice-card p {
  margin: 0;
  color: var(--funnel-muted);
}

/* ---------- Inhalts-/Minimal-Ansicht ---------- */
.content-shell,
.minimal-shell {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.content-card,
.minimal-card {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--funnel-radius);
  border: 1px solid var(--funnel-border);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--funnel-shadow);
}

.rich-content {
  font-size: 1.05rem;
}

.rich-content > * + * {
  margin-top: 1.2rem;
}

.page-heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
}

/* ---------- Landing (bewusst ohne Card) ---------- */
.landing-shell {
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.landing-heading {
  max-width: 60rem;
  margin: 0 auto 1.5rem;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
}

.landing-content {
  max-width: 60rem;
  margin: 0 auto;
}

/* Slot für späteren Shortcode: großzügig, aber ohne Card-Optik. */
.landing-slot {
  min-height: 320px;
  margin-top: 2.5rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--funnel-muted);
}

/* ---------- Whitescreen ---------- */
.white-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.white-screen__logo {
  display: flex;
  flex-direction: column;   /* Logo oben, Überschrift immer darunter – nie daneben. */
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  font-weight: 700;
}

.white-screen__logo-img {
  display: block;
  max-width: min(60vw, 340px);
  height: auto;
}

.white-screen__logo-mark {
  display: inline-grid;
  place-items: center;
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.5rem;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--funnel-accent), var(--funnel-accent-strong));
  box-shadow: 0 24px 50px rgba(27, 92, 255, 0.18);
}

.white-screen__title {
  margin: 0;
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  letter-spacing: 0.02em;
}

/* ---------- Footer ---------- */
/* Wird nur dort eingebunden, wo wirklich ein Footer steht; die Trennlinie
   erscheint deshalb auch nur dann. */
.site-footer {
  padding: 2rem 0 3rem;
  color: var(--funnel-muted);
}

.site-footer__inner {
  border-top: 1px solid var(--funnel-border);
  padding-top: 1rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer__copy {
  margin: 0;
}

.site-footer__nav .menu,
.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__nav a {
  text-decoration: none;
  color: var(--funnel-muted);
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  color: var(--funnel-ink);
}

@media (max-width: 720px) {
  .site-header__bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
