/* DayOperator Website – Design passend zur App (dunkles Marineblau, Amber).
   Schriften werden selbst gehostet (kein Google Fonts: DSGVO-freundlich). */

@font-face { font-family: "Sora"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/sora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #111827;
  --bg-deep: #0c1220;
  --surface: #1f2a44;
  --surface-2: #26334f;
  --line: #2e3b5a;
  --line-soft: rgba(46, 59, 90, 0.6);
  --ink: #f3f4f6;
  --muted: #9ca8bf;
  --amber: #f5a623;
  --amber-light: #ffd36b;
  --amber-soft: #3a2e17;
  --blue: #3b82f6;
  --danger: #f87171;
  --success: #4ade9a;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Instrument Sans", system-ui, sans-serif;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 12% -6%, rgba(245, 166, 35, 0.12), transparent 60%),
    radial-gradient(900px 600px at 100% 8%, rgba(59, 130, 246, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
.icon { flex-shrink: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--bg); box-shadow: 0 10px 30px -12px rgba(245, 166, 35, 0.7); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover, .btn-ghost.is-current { border-color: var(--amber); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-disabled { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--line); cursor: not-allowed; box-shadow: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(17, 24, 39, 0.78); border-bottom: 1px solid var(--line-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand img { height: 32px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.15s, background 0.15s; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.menu-button { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 42px; height: 42px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.menu-close { display: none; }
.menu-button[aria-expanded="true"] .menu-open { display: none; }
.menu-button[aria-expanded="true"] .menu-close { display: inline-flex; }
.menu-open { display: inline-flex; }

@media (max-width: 880px) {
  .menu-button { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 22px; background: rgba(17, 24, 39, 0.97); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: flex; }
  .nav-link { padding: 12px 14px; font-size: 16px; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; padding: 13px 18px; }
}

/* ---------- Hero ---------- */
.eyebrow { font: 600 13px/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 60ch; }
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(28px, 4vw, 56px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--amber) 10%, var(--amber-light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--muted); font-size: 14px; }
.hero-note .icon { color: var(--success); }
.hero-visual { position: relative; }
.hero-glow { position: absolute; inset: -12% -8%; background: radial-gradient(closest-side, rgba(245, 166, 35, 0.22), transparent 70%); filter: blur(10px); z-index: 0; }
.hero-visual .shot { position: relative; z-index: 1; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform 0.5s ease; }
.hero-visual:hover .shot { transform: perspective(1400px) rotateY(0) rotateX(0); }
.hero-fire { position: absolute; z-index: 2; right: -14px; bottom: -22px; filter: drop-shadow(0 12px 30px rgba(47, 111, 228, 0.55)); background: rgba(17, 24, 39, 0.6); border: 1px solid var(--line); border-radius: 24px; padding: 10px 14px 4px; backdrop-filter: blur(6px); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual .shot { transform: none; }
  .hero-fire { right: 8px; bottom: -18px; }
  .hero-fire .fire { height: 84px; width: auto; }
}

/* Screenshot im Browserrahmen */
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-deep); box-shadow: var(--shadow); }
.shot-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-bar span:nth-child(1) { background: #f87171; opacity: 0.8; }
.shot-bar span:nth-child(2) { background: #f5a623; opacity: 0.8; }
.shot-bar span:nth-child(3) { background: #4ade9a; opacity: 0.8; }
.shot img { width: 100%; height: auto; aspect-ratio: 1440 / 900; background: var(--bg-deep); }

/* ---------- Säulen ---------- */
.pillars { padding: 20px 0 clamp(36px, 5vw, 72px); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar { display: block; text-decoration: none; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(31, 42, 68, 0.75), rgba(31, 42, 68, 0.4)); transition: transform 0.2s ease, border-color 0.2s ease; }
.pillar:hover { transform: translateY(-3px); border-color: rgba(245, 166, 35, 0.6); }
.pillar-icon { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: var(--amber-soft); color: var(--amber); margin-bottom: 16px; }
.pillar h2 { font-size: 19px; margin-bottom: 8px; }
.pillar p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars-grid { grid-template-columns: 1fr; } }

/* ---------- Sektionen ---------- */
.section { padding: clamp(48px, 8vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(12, 18, 32, 0.55) 12%, rgba(12, 18, 32, 0.55) 88%, transparent); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2, .section-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 14px; max-width: 22ch; }
.page-head { padding-top: clamp(40px, 6vw, 80px); }

/* ---------- Tabs ---------- */
.tablist { display: flex; gap: 8px; padding: 6px; margin-bottom: 30px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12, 18, 32, 0.6); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); font: 600 15px/1 var(--font-sans); cursor: pointer; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--amber); color: var(--bg); box-shadow: 0 8px 24px -10px rgba(245, 166, 35, 0.8); }
.tab-panel { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; animation: panelIn 0.35s ease; }
.tab-panel[hidden] { display: none; }
.no-js .tab-panel[hidden] { display: grid; margin-bottom: 56px; }
.no-js .tablist { display: none; }
.panel-media { position: sticky; top: 92px; }
.panel-text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 22px; }
.info-block { margin-bottom: 22px; }
.info-block h4 { font: 600 13px/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.info-block p { color: #c9d1e2; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: #c9d1e2; }
.checks .icon { color: var(--amber); margin-top: 3px; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) {
  .tab-panel { grid-template-columns: 1fr; }
  .panel-media { position: static; }
}
@media (max-width: 560px) { .tab { padding: 10px 14px; font-size: 14px; } .tab .icon { display: none; } }

/* ---------- Lagerfeuer-Demo ---------- */
.fire-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fire-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.fire-copy .lead { margin-bottom: 26px; }
.fire-demo { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px 26px; text-align: center; background: radial-gradient(420px 260px at 50% 18%, rgba(245, 166, 35, 0.09), transparent 70%), rgba(31, 42, 68, 0.5); }
.fire-demo[data-blue="true"] { background: radial-gradient(420px 260px at 50% 18%, rgba(47, 111, 228, 0.2), transparent 70%), rgba(31, 42, 68, 0.5); }
.fire-stage-wrap { position: relative; height: 200px; display: flex; justify-content: center; }
.fire-stage { position: absolute; inset: 0; display: flex; justify-content: center; align-items: flex-end; opacity: 0; transform: scale(0.94); transition: opacity 0.35s ease, transform 0.35s ease; }
.fire-stage.is-active { opacity: 1; transform: none; }
.fire-label { font: 600 22px/1.2 var(--font-display); margin: 14px 0 20px; }
.fire-controls { text-align: left; }
.fire-controls label { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.fire-controls label strong { color: var(--ink); }
.fire-heat { margin-top: 12px; color: var(--muted); font-size: 14px; text-align: center; }
.fire-heat strong { color: var(--amber-light); }
.fire-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; padding: 6px 4px 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--amber) var(--fill, 0%), var(--line) var(--fill, 0%)); outline-offset: 6px; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); border: 4px solid var(--amber); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 4px solid var(--amber); }
.fire-flicker { transform-origin: 24px 47px; transform-box: view-box; animation: fireFlicker 1.6s ease-in-out infinite; }
.fire-glow { animation: fireGlow 2.4s ease-in-out infinite; }
@keyframes fireFlicker { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 25% { transform: scale(0.96, 1.05) skewX(2deg); } 50% { transform: scale(1.03, 0.97) skewX(-2deg); } 75% { transform: scale(0.98, 1.04) skewX(1deg); } }
@keyframes fireGlow { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (max-width: 960px) { .fire-grid { grid-template-columns: 1fr; } }

/* ---------- Abschluss-Band ---------- */
.cta-band { display: flex; align-items: center; gap: 28px; padding: clamp(26px, 4vw, 44px); border: 1px solid rgba(245, 166, 35, 0.35); border-radius: var(--radius-lg); background: radial-gradient(700px 240px at 0% 50%, rgba(245, 166, 35, 0.16), transparent 70%), linear-gradient(135deg, rgba(31, 42, 68, 0.9), rgba(17, 24, 39, 0.9)); }
.cta-text { flex: 1; }
.cta-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 8px; }
.cta-text p { color: var(--muted); }
@media (max-width: 760px) { .cta-band { flex-direction: column; text-align: center; } .cta-band .btn { width: 100%; } }

/* ---------- Preise ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 880px; margin: 0 auto 64px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 32px 30px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(31, 42, 68, 0.55); }
.plan-free { border-color: rgba(245, 166, 35, 0.55); background: radial-gradient(420px 220px at 50% 0%, rgba(245, 166, 35, 0.12), transparent 70%), rgba(31, 42, 68, 0.7); box-shadow: 0 30px 70px -40px rgba(245, 166, 35, 0.5); }
.plan h2 { font-size: 24px; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-price .amount { font: 600 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font-display); letter-spacing: -0.03em; }
.plan-price .period { color: var(--muted); font-size: 15px; }
.plan-text { color: var(--muted); }
.plan .checks { flex: 1; margin: 6px 0 12px; }
.plan.is-disabled { opacity: 0.55; filter: grayscale(1); }
.plan.is-disabled .checks .icon { color: var(--muted); }
.plan-badge { position: absolute; top: 22px; right: 22px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.07); color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { font-size: 1.6rem; margin-bottom: 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 4px; }
.faq summary { cursor: pointer; font: 600 17px/1.4 var(--font-sans); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 10px; }

/* ---------- Anmeldung ---------- */
.auth .container { display: flex; justify-content: center; }
.auth-card { width: min(440px, 100%); padding: 34px 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(31, 42, 68, 0.65); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; margin-bottom: 10px; }
.auth-card .lead { font-size: 16px; margin-bottom: 24px; }
.auth-form { display: grid; gap: 8px; }
.auth-form label { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.auth-form input { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 16px var(--font-sans); outline: none; transition: border-color 0.15s; }
.auth-form input:focus { border-color: var(--amber); }
.auth-form .btn { margin-top: 18px; }
.form-error { color: var(--danger); font-size: 14px; margin-top: 6px; }
.form-error[hidden] { display: none; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.auth-alt a { color: var(--amber); font-weight: 600; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* ---------- Rechtliches / 404 ---------- */
.legal h1 { margin-bottom: 20px; }
.notice { padding: 14px 18px; border: 1px solid rgba(245, 166, 35, 0.5); border-radius: 12px; background: var(--amber-soft); color: var(--amber-light); margin-bottom: 22px; }
.legal-body h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal-body h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal-body p, .legal-body li { color: #c9d1e2; margin-bottom: 10px; }
.legal-body a { color: var(--amber); }
.legal-fields { color: var(--muted); padding-left: 20px; display: grid; gap: 8px; }
.nf-fire { display: flex; justify-content: center; margin-bottom: 14px; }
.center .lead { margin: 12px auto 22px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); padding: 44px 0 36px; margin-top: 24px; background: rgba(12, 18, 32, 0.5); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 36ch; }
.footer-brand img { height: 28px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line-soft); padding-top: 20px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* ---------- Einblend-Animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
