/*
  Regalruf – Website
  Farben, Schrift und Bausteine wie in der Regalruf-App. Keine externen Schriften oder Dienste.
*/

:root {
  color-scheme: light;
  --paper: #f6f7f8;
  --white: #ffffff;
  --soft: #f1f2f4;
  --line: #e4e6ea;
  --line-strong: #dcdfe3;
  --ink: #1d2025;
  --dark: #0f1114;
  --muted: #6b7079;
  --green: #1c8556;
  --green-soft: rgba(28, 133, 86, 0.1);
  --eyebrow: #5f6d57;
  --btn-bg: #0f1114;
  --btn-ink: #ffffff;
  --btn-hover: #2a2d33;
  --glow: radial-gradient(ellipse at 50% 0%, #ffffff 0%, transparent 70%);
  --header-bg: rgba(246, 247, 248, 0.86);
  --shadow: 0 20px 60px rgba(15, 17, 20, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 17, 20, 0.05);
  --red: #c4492f;
  --amber: #b7791f;
  --radius: 10px;
  --radius-lg: 20px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0d0e10;
  --white: #16171a;
  --soft: #1c1e22;
  --line: #2a2d33;
  --line-strong: #33363c;
  --ink: #e4e6ea;
  --dark: #f4f5f7;
  --muted: #8e939d;
  --green: #6fd3a0;
  --green-soft: rgba(111, 211, 160, 0.12);
  --eyebrow: #7c8a73;
  --btn-bg: #f1f2f4;
  --btn-ink: #0d0e10;
  --btn-hover: #ffffff;
  --glow: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  --header-bg: rgba(13, 14, 16, 0.82);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: none;
  --red: #f08a73;
  --amber: #e8b45c;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul { margin: 0; }
img, svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 14px;
}

/* Marke */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dark);
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.4px;
  text-decoration: none !important;
}
.brand svg { color: var(--green); }
.brand-dot { color: var(--green); }

/* Knöpfe wie in der App */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button.primary { background: var(--btn-bg); color: var(--btn-ink); }
.button.primary:hover { background: var(--btn-hover); }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--soft); }
.button.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.button.block { width: 100%; }
.button:disabled { opacity: .55; cursor: default; }

@media (hover: hover) {
  .button.secondary:hover, .tile:hover, .round-btn:hover,
  .nav-links a:hover, .site-header .button:hover { box-shadow: 0 0 0 2px var(--green); }
}

.round-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  padding: 0;
}
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Kopfleiste */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.nav-links { display: flex; gap: 10px; margin-right: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 550; padding: 6px 10px; border-radius: 7px; transition: box-shadow .15s ease, color .15s ease; }
.site-header .brand { font-size: 32px; letter-spacing: -1.8px; gap: 9px; }
.site-header .brand svg { width: 34px; height: 34px; }
.nav-links a:hover { color: var(--dark); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* Start */
.hero {
  background: var(--glow);
  padding: 84px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -2px;
  color: var(--dark);
  margin-bottom: 22px;
}
.hero-text { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* App-Vorschau */
.preview {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.preview-top .brand { font-size: 19px; letter-spacing: -1px; gap: 6px; }
.preview-crumb { font-size: 12px; color: var(--muted); }
.preview-body { padding: 18px; display: grid; gap: 14px; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--green-soft);
  border: 1px solid color-mix(in srgb, var(--green) 30%, transparent);
  font-size: 13px;
}
.toast svg { color: var(--green); flex: none; }
.toast strong { display: block; color: var(--dark); font-size: 13px; }
.toast span { color: var(--muted); font-size: 12px; }
.supplier {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.supplier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  background: var(--soft);
  font-size: 13px;
  font-weight: 650;
  color: var(--dark);
}
.supplier-head small { font-weight: 500; color: var(--muted); font-size: 12px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.mini {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mini img { width: 34px; height: 34px; object-fit: contain; }
.row-name { flex: 1; min-width: 0; }
.row-name strong { display: block; font-size: 14px; color: var(--dark); font-weight: 600; }
.row-name small { display: block; font-size: 12px; color: var(--muted); }
.qty {
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  padding: 4px 9px;
  white-space: nowrap;
}
.preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.preview-foot .button { min-height: 34px; font-size: 13px; padding: 0 12px; }

/* Abschnitte */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section h2 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -1.2px;
  color: var(--dark);
  margin-bottom: 14px;
}
.section-desc { font-size: 17px; color: var(--muted); }

/* Betriebsarten */
.kinds-section { padding: 72px 0; }
.kinds {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.kind {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.3;
}
.kind .mini { width: 56px; height: 56px; }
.kind .mini img { width: 48px; height: 48px; }

/* Ablauf */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.leaf {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--soft);
  color: var(--green);
  margin-bottom: 20px;
}
.step-no { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }
.step h3, .tile h3 { font-size: 18px; font-weight: 650; color: var(--dark); margin: 4px 0 8px; letter-spacing: -.3px; }
.step p, .tile p { font-size: 15px; color: var(--muted); }

/* Funktionen als Kachelgruppen wie im Dashboard */
.groups { display: grid; gap: 36px; }
.group-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: box-shadow .15s ease;
}
.tile .leaf { width: 42px; height: 42px; border-radius: 12px; margin-bottom: 16px; }

/* Vorteile */
.benefits {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.benefit { display: flex; gap: 16px; margin-top: 26px; }
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  margin-top: 2px;
}
.benefit strong { display: block; color: var(--dark); font-size: 17px; font-weight: 650; margin-bottom: 4px; }
.benefit p { color: var(--muted); font-size: 15px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; font-weight: 650; color: var(--dark); margin-bottom: 18px; }
.facts { list-style: none; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; font-size: 15px; }
.facts li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* Kontakt */
.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-rows { display: grid; gap: 12px; margin-top: 30px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none !important;
}
.contact-row .leaf { width: 42px; height: 42px; border-radius: 12px; margin: 0; }
.contact-row small { display: block; font-size: 12px; color: var(--muted); }
.contact-row strong { font-size: 16px; color: var(--dark); font-weight: 600; }
@media (hover: hover) { .contact-row:hover { box-shadow: 0 0 0 2px var(--green); } }

.form { display: grid; gap: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--paper);
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select:invalid { color: var(--muted); }
.field select option { color: var(--ink); background: var(--white); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.error { display: none; font-size: 13px; color: var(--red); margin-top: 5px; }
.has-error .error { display: block; }
.has-error input, .has-error textarea, .has-error select { border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.form-note { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 10px 14px; border: 1px solid #d64545; border-radius: 10px; color: #d64545; font-size: 14px; }
.form-error a { color: inherit; text-decoration: underline; }
.done { text-align: center; padding: 12px 0; }
.done .leaf { margin: 0 auto 18px; }
.done h3 { margin-bottom: 8px; }
.done p { color: var(--muted); font-size: 15px; margin-bottom: 10px; }

/* Fußzeile: schlicht und mittig wie in der App */
#kontakt { padding-bottom: 72px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer .brand { font-size: 28px; margin-bottom: 10px; }
.footer .eyebrow { margin-bottom: 24px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.footer-links a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 7px;
  transition: box-shadow .15s ease, color .15s ease;
}
.footer-links a:hover { color: var(--dark); text-decoration: none; }
@media (hover: hover) { .footer-links a:hover { box-shadow: 0 0 0 2px var(--green); } }
.footer-copy { margin-top: 20px; font-size: 13px; }
.footer-copy a { color: var(--muted); }
.footer-copy a:hover { color: var(--dark); }

/* Pfeil nach oben wie in der App */
.back-top {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--btn-bg);
  color: var(--btn-ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, box-shadow .15s ease;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { text-decoration: none; }
@media (hover: hover) { .back-top:hover { box-shadow: 0 0 0 2px var(--green), var(--shadow); } }
@media (max-width: 760px) { .back-top { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: 44px; height: 44px; } }

/* Rechtstexte */
.legal {
  width: min(680px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.legal::backdrop { background: rgba(8, 9, 11, .55); }
.legal-inner { padding: 34px 34px 24px; position: relative; }
.legal-close { position: absolute; top: 18px; right: 18px; }
.legal h2 { font-size: 26px; font-weight: 650; letter-spacing: -.6px; color: var(--dark); }
.legal-meta { font-size: 13px; color: var(--muted); margin: 4px 0 24px; }
.legal h3 { font-size: 15px; font-weight: 650; color: var(--dark); margin: 22px 0 6px; }
.legal p { font-size: 14px; line-height: 1.65; margin-bottom: 8px; }
.legal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.legal-foot .link-btn { color: var(--green); font-weight: 600; font-size: 14px; }

/* Tablet */
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .benefits, .contact { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: 42px; }
  .steps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .kinds { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
}

/* Handy */
@media (max-width: 760px) {
  .container { padding-inline: 16px; }
  .nav { gap: 12px; height: 60px; }
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-actions { margin-left: auto; }
  .nav-cta { display: none; }
  .menu-btn { display: grid; }
  .site-header .brand { font-size: 27px; letter-spacing: -1.4px; gap: 7px; }
  .site-header .brand svg { width: 29px; height: 29px; }
  .hero h1 { font-size: 34px; letter-spacing: -1.3px; }
  .hero-text { font-size: 16px; }
  .hero-buttons .button { flex: 1 1 100%; }
  .section h2 { font-size: 28px; }
  .tiles, .form-2 { grid-template-columns: 1fr; }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .kinds-section { padding: 56px 0; }
  .card, .step { padding: 22px; }
  .legal-inner { padding: 26px 20px 20px; }
  .site-footer { padding-bottom: 84px; }
  #kontakt { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
