/* Flowsen – ein Stylesheet für alle Seiten. Keine Webfonts, kein Framework.
   Farben stehen als Variablen oben, Dark Mode folgt der Systemeinstellung. */

:root {
  color-scheme: light dark;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --text: #15140f;
  --muted: #67635a;
  --line: rgba(21, 20, 15, 0.1);
  --line-strong: rgba(21, 20, 15, 0.2);
  --accent: #ff5b23;
  --accent-text: #c2410c;
  --accent-soft: rgba(255, 91, 35, 0.12);
  --shadow: 0 1px 2px rgba(21, 20, 15, 0.04), 0 12px 32px -12px rgba(21, 20, 15, 0.16);
  --radius: 1.25rem;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0b;
    --surface: #181714;
    --text: #f3f1ea;
    --muted: #a19d93;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #ff6a35;
    --accent-text: #ff8a5c;
    --accent-soft: rgba(255, 106, 53, 0.14);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
  }
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

main {
  flex: 1;
  padding-block: 1rem 6rem;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.2s, color 0.2s, background-color 0.2s, border-color 0.2s, transform 0.2s;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Kopfzeile */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

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

.topbar nav a:hover {
  color: var(--text);
}

.topbar nav .button {
  color: var(--bg);
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.375rem;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.button:hover {
  transform: translateY(-1px);
}

.button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s;
}

.button:hover svg {
  transform: translateX(2px);
}

.button.small {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  font-size: 0.9375rem;
}

.button.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.button.ghost:hover {
  border-color: var(--text);
}

/* Hero */

.hero {
  padding-block: clamp(3rem, 12vh, 7rem) clamp(1rem, 4vh, 2rem);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.75rem, 8.5vw, 5.5rem);
}

.hero h1 .flow {
  color: var(--accent);
}

.lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 2.4vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2.25rem;
}

/* Abschnitte */

section + section {
  margin-top: clamp(4.5rem, 12vh, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  max-width: 22ch;
  margin-bottom: 2rem;
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9688rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Referenz: Mr. Cook */

.feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.25rem);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.feature-head img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.875rem;
}

.feature h3 {
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.feature-head p {
  color: var(--muted);
}

.feature-text {
  margin-top: 1.25rem;
  color: var(--muted);
}

.feature-text + .feature-text {
  margin-top: 0.75rem;
}

.feature .button {
  margin-top: 1.5rem;
}

.stats {
  display: grid;
  align-content: center;
  gap: 1.25rem;
  margin: 0;
  padding-left: 2rem;
  border-left: 1px solid var(--line);
}

.stats div {
  display: flex;
  flex-direction: column-reverse;
}

.stats dt {
  font-size: 0.875rem;
  color: var(--muted);
}

.stats dd {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stats .star {
  font-size: 0.6em;
  vertical-align: 0.3em;
  color: #f5a524;
}

.stats .small {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  padding-top: 0.25rem;
}

/* Ablauf */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 1.25rem;
  border-top: 2px solid var(--text);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent-text);
  font-variant-numeric: tabular-nums;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
}

/* Über */

.about {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
}

.about h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
}

.about p:not(.eyebrow) {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.about .more {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 600;
}

/* Kontakt */

.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
  gap: 2rem 3rem;
  padding: clamp(1.75rem, 6vw, 3.5rem);
  border-radius: calc(var(--radius) + 0.5rem);
  background: var(--text);
  color: var(--bg);
}

.contact .eyebrow {
  color: inherit;
  opacity: 0.6;
}

.contact .eyebrow::after {
  background: currentColor;
  opacity: 0.3;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.contact p:not(.eyebrow) {
  max-width: 30rem;
  margin-top: 1.25rem;
  opacity: 0.72;
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact .button {
  background: var(--accent);
  color: #fff;
  box-shadow: none;
}

.email {
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.email:hover {
  text-decoration-color: currentColor;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem 2.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Einblenden beim Laden */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .rise {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .rise:nth-child(2) { animation-delay: 0.06s; }
  .rise:nth-child(3) { animation-delay: 0.12s; }
  .rise:nth-child(4) { animation-delay: 0.18s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

/* Rechtstexte und Statusseiten */

.legal {
  max-width: 44rem;
}

.legal h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  margin-top: 1.5rem;
}

.legal h2 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 2.5rem;
}

.legal h3 {
  font-size: 1rem;
  margin-top: 1.5rem;
}

.legal p,
.legal ul,
.legal address {
  margin-top: 0.75rem;
}

.legal p,
.legal li,
.legal address {
  color: var(--muted);
}

.legal address {
  font-style: normal;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal a {
  color: var(--text);
  overflow-wrap: anywhere;
}

.back {
  font-size: 0.9375rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--text);
}

.status {
  max-width: 40rem;
}

.status h1 {
  font-size: clamp(2.5rem, 8vw, 4rem);
}

/* Mobil */

@media (max-width: 48rem) {
  .feature,
  .contact {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    padding-left: 0;
    padding-top: 1.5rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 34rem) {
  .topbar nav .text-link {
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .avatar {
    width: 5rem;
    height: 5rem;
  }

  .contact-cta,
  .contact .button,
  .actions .button {
    width: 100%;
  }
}
