/* Optik angelehnt an videoconverter.dev-becker.de */
:root {
  --primary: #e61616;
  --link: #c81010;
  --hover: #156aea;
  --bg: #f5f5f5;
  --dark: #1a1a2e;
  --text: #333333;
  --muted: #666666;
  --white: #ffffff;
  --accent-light: #fef2f2;
  --border: #e0e0e0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  --max: 1100px;

  /* Schichtfarben im Beispielkalender */
  --frueh: #156aea;
  --spaet: #e61616;
  --nacht: #0f3460;
  --urlaub: #2f9e6f;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.7 var(--font);
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--hover); }

:focus-visible { outline: 3px solid var(--hover); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Kopfzeile */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  padding-block: 16px;
}
.site-head .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-weight: 700; font-size: 1.0625rem; text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 8px; display: block; }
.logo:hover { color: var(--white); }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-head nav a { color: rgba(255, 255, 255, 0.85); font-size: 0.8125rem; font-weight: 500; text-decoration: none; }
.site-head nav a:hover { color: var(--white); text-decoration: underline; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 0 110px;
  clip-path: polygon(0 0, 100% 0, 100% 93%, 0 100%);
}
.hero h1 { margin: 0 0 20px; font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 800; letter-spacing: -1px; line-height: 1.15; color: var(--white); }
.hero h1 span { color: var(--primary); display: block; }
.hero p { max-width: 38rem; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); font-size: 1.0625rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero .hint { margin: 20px auto 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font: 600 0.9375rem var(--font);
  border-radius: 6px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--hover); color: var(--white); }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }
.btn-outline:hover { color: var(--white); border-color: var(--white); }

/* Abschnitte */
section { padding-block: 80px; }
section.alt { background: var(--white); }

.section-title {
  margin: 0;
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}
.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin: 16px auto 0;
  background: var(--primary);
}
.section-sub { max-width: 35rem; margin: 20px auto 52px; text-align: center; color: var(--muted); font-size: 1.0625rem; }

/* Funktionskarten */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 28px;
}
section.alt .feature-card { background: var(--bg); }
.feature-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent-light);
  font-size: 1.25rem;
}
.feature-card h3 { margin: 0 0 8px; font-size: 1.0625rem; color: var(--dark); }
.feature-card p { margin: 0; font-size: 0.9375rem; color: var(--muted); }

/* Beispielkalender */
.cal {
  max-width: 28rem;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}
.cal-title { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-weight: 700; font-size: 1.125rem; color: var(--dark); }
.cal-title small { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.cal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-variant-numeric: tabular-nums; }
.cal-grid li { aspect-ratio: 1; display: grid; place-items: center; border-radius: 6px; font-size: 0.8125rem; color: var(--muted); }
.cal-grid .dow { aspect-ratio: auto; height: 1.5rem; font-weight: 600; color: var(--dark); }
.cal-grid .gap { visibility: hidden; }
.cal-grid .f, .cal-grid .s, .cal-grid .n, .cal-grid .u { color: var(--white); font-weight: 600; }
.cal-grid .f { background: var(--frueh); }
.cal-grid .s { background: var(--spaet); }
.cal-grid .n { background: var(--nacht); }
.cal-grid .u { background: var(--urlaub); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 0.8125rem; }
.legend li::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; background: var(--muted); }
.legend .f::before { background: var(--frueh); }
.legend .s::before { background: var(--spaet); }
.legend .n::before { background: var(--nacht); }
.legend .u::before { background: var(--urlaub); }

.cal-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border); }
.cal-sum dt { font-size: 0.75rem; color: var(--muted); }
.cal-sum dd { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.cal figcaption { margin-top: 14px; font-size: 0.8125rem; color: var(--muted); }

/* Einmalige Einblendung, Woche für Woche */
@media (prefers-reduced-motion: no-preference) {
  .cal-grid li:not(.dow):not(.gap) { animation: pop 0.45s ease-out backwards; }
  .cal-grid li:nth-child(n+14) { animation-delay: 0.05s; }
  .cal-grid li:nth-child(n+21) { animation-delay: 0.15s; }
  .cal-grid li:nth-child(n+28) { animation-delay: 0.25s; }
  .cal-grid li:nth-child(n+35) { animation-delay: 0.35s; }
  .cal-grid li:nth-child(n+42) { animation-delay: 0.45s; }
  @keyframes pop { from { opacity: 0; transform: scale(0.6); } }
}

/* Listen mit roten Haken bzw. Zahlen */
.checklist { list-style: none; max-width: 42rem; margin: 0 auto; padding: 0; }
.checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--border); font-size: 0.9375rem; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 6px; top: 14px; color: var(--primary); font-weight: 800; }
.checklist.steps { counter-reset: step; }
.checklist.steps li { counter-increment: step; }
.checklist.steps li::before { content: counter(step); font-weight: 700; }
.checklist strong { color: var(--dark); }

.more { margin: 32px 0 0; text-align: center; }

/* Abschluss-Block */
.cta {
  background: linear-gradient(160deg, #1a1a2e, #0f3460);
  color: var(--white);
  text-align: center;
  padding-block: 80px;
}
.cta h2 { margin: 0 0 12px; font-size: 1.75rem; font-weight: 700; color: var(--white); }
.cta p { max-width: 36rem; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.85); }
.coming-soon {
  display: inline-block;
  padding: 16px 40px;
  border: 2px solid var(--primary);
  border-radius: 10px;
  background: rgba(230, 22, 22, 0.1);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}
.coming-soon small { display: block; margin-bottom: 4px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; color: #ff8a8a; }
.coming-soon:hover { color: var(--white); background: rgba(21, 106, 234, 0.2); border-color: var(--hover); }
.cta p.hint { margin: 20px auto 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }

/* Text-Seiten */
.doc {
  max-width: 48rem;
  margin: 48px auto 80px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.doc h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 4.5vw, 2.25rem); font-weight: 800; letter-spacing: -0.5px; color: var(--dark); line-height: 1.2; }
.doc h2 { margin: 40px 0 12px; font-size: 1.375rem; color: var(--dark); }
.doc h3 { margin: 28px 0 8px; font-size: 1.125rem; color: var(--dark); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 6px; }
.stand { color: var(--muted); font-size: 0.9375rem; }
.todo { background: #fde68a; color: #3b2a00; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Fußzeile */
.site-foot { background: var(--dark); padding-block: 40px; text-align: center; font-size: 0.8125rem; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: center; margin-bottom: 12px; }
.site-foot a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; }
.site-foot p { margin: 0; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 52rem) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 64px 0 80px; }
  section { padding-block: 56px; }
  .doc { padding: 24px 20px; margin-block: 24px 56px; }
}
@media (min-width: 52.0625rem) and (max-width: 70rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
