:root {
  color-scheme: light;
  --text: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --bg: #f8fafc;
  --panel: #ffffff;
  --accent: #14b8a6;
  --accent-dark: #0f766e;
  --danger: #dc2626;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
}

.kopf {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.marke {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.marke-logo {
  display: block;
  width: 158px;
  height: 42px;
}

.kopf-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.kopf-nav a {
  text-decoration: none;
}

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

.arbeitsflaeche {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

[id] {
  scroll-margin-top: 136px;
}

.start {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: 42px 0;
  gap: clamp(28px, 5vw, 70px);
}

.kennung {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 13px;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.einleitung {
  max-width: 620px;
  color: #334155;
  font-size: clamp(18px, 2vw, 22px);
}

.preise {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.preise span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.start-vorschau {
  min-width: 0;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.18);
}

.browser-leiste {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  background: #e5e7eb;
}

.browser-leiste span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.browser-leiste span:nth-child(2) {
  background: #f59e0b;
}

.browser-leiste span:nth-child(3) {
  background: #22c55e;
}

.browser-leiste b {
  margin-left: auto;
  margin-right: auto;
  font-size: 13px;
}

.browser-inhalt {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: #f8fafc;
}

.mini-video {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.8), rgba(239, 68, 68, 0.62)),
    #111827;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 900;
}

.mini-felder {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.mini-felder span {
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.ablauf-band,
.beispiel-band,
.preis-band,
.generator-band,
.vorlagen-band,
.projekt,
.bezahlen,
.download,
.admin,
.promotion,
.meldeseite {
  padding: 54px 0;
}

.ablauf-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ablauf-raster div,
.beispiel-raster article,
.preis-raster {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.ablauf-raster div {
  padding: 18px;
}

.ablauf-raster b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #042f2e;
}

.ablauf-raster p,
.preis-raster p {
  color: var(--muted);
}

.beispiel-raster {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 18px;
}

.beispiel-raster article {
  padding: 18px;
}

.video.hochkant {
  width: min(100%, 320px);
  margin-inline: auto;
  display: block;
}

.preis-raster {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: center;
  padding: clamp(18px, 4vw, 34px);
}

.preis-karten {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preis-karten article {
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.preis-karten span {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.preis-karten b {
  display: block;
  margin-top: 18px;
  font-size: 28px;
}

.generator {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.formular-kopf {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.formular-kopf p,
.bereichskopf p,
.seitenkopf p,
.zahl-panel p,
.qr-box p,
.download-panel p {
  color: var(--muted);
}

.formular-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
}

.formular-hilfe {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.feld-ausgeblendet {
  display: none !important;
}

.formular-breit {
  grid-column: 1 / -1;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  background: #ffffff;
}

textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  line-height: 1.45;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--text);
  background: #ffffff;
  font: inherit;
}

.credits-editor {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.credits-editor legend {
  padding: 0 6px;
  color: #334155;
  font-size: 14px;
  font-weight: 850;
}

.credits-kopf,
.credits-zeile {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(120px, 0.8fr) minmax(170px, 1.2fr) 116px;
  gap: 10px;
  align-items: center;
}

.credits-kopf {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.credits-liste {
  display: grid;
  gap: 10px;
}

.credits-aktionen {
  display: flex;
  justify-content: flex-start;
}

input[type="color"] {
  padding: 3px;
}

button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.primaer {
  background: var(--accent);
  color: #042f2e;
}

.primaer:hover {
  background: #2dd4bf;
}

.sekundaer {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
}

.aktionen,
.panel-aktionen {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.aktionen span {
  color: var(--muted);
  font-weight: 750;
}

.bereichskopf,
.seitenkopf {
  margin-bottom: 24px;
}

.bereichskopf.abstand {
  margin-top: 44px;
}

.vorlagen-raster {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.vorlage {
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.vorlage-video {
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.vorlage-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #0f172a;
  object-fit: cover;
}

.vorlage-bild {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 108px;
  margin-bottom: 14px;
  padding: 12px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--v2);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--v3) 62%, transparent), transparent 52%),
    linear-gradient(160deg, transparent 0 54%, color-mix(in srgb, var(--v3) 24%, transparent) 55% 100%),
    var(--v1);
}

.vorlage-bild::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid color-mix(in srgb, var(--v2) 28%, transparent);
  border-radius: 7px;
  opacity: 0.55;
}

.vorlage-bild::after {
  content: "";
  position: absolute;
  inset: auto 12px 14px 38%;
  height: 8px;
  border-radius: 999px;
  background: var(--v3);
  opacity: 0.78;
}

.vorlage-bild span {
  position: relative;
  font-size: 13px;
  font-weight: 900;
}

.vorlage-bild b {
  position: relative;
  font-size: 19px;
}

.vorlage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.vorlage-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}

.vorlage p {
  color: var(--muted);
  font-size: 14px;
}

.vorlage-beispiel {
  margin-bottom: 0;
  color: #0f766e !important;
  font-weight: 800;
}

.projekt-grid,
.zahl-grid,
.promotion-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.video,
.leere-vorschau {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.video {
  display: block;
  height: auto;
}

.video.klein {
  margin-top: 18px;
}

.video-raster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.video-karte {
  min-width: 0;
}

.video-karte .video.klein {
  margin-top: 0;
}

.video-karte-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.video-karte-kopf h2 {
  margin: 0;
  font-size: 18px;
}

.leere-vorschau {
  display: grid;
  place-items: center;
  min-height: 380px;
  color: #ffffff;
  font-weight: 850;
}

.fortschritt {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.fortschritt-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.fortschritt-kopf span {
  overflow-wrap: anywhere;
}

.fortschritt-kopf strong {
  white-space: nowrap;
}

.fortschritt-balken {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

.fortschritt-balken span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  transition: width 220ms ease;
}

.projekt-panel,
.zahl-panel,
.qr-box,
.download-panel,
.promotion-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

dl {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 9px 14px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 750;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.qr-box {
  text-align: center;
}

.qr-box img {
  width: min(100%, 340px);
  height: auto;
}

.textlink {
  display: inline-flex;
  margin-top: 14px;
  color: var(--accent-dark);
  font-weight: 800;
}

.download-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.trennlinie {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.trennlinie::before,
.trennlinie::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.promocode-formular {
  padding-top: 2px;
}

.promocode-formular h3 {
  margin-bottom: 12px;
}

.promocode-hinweis {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.promocode-hinweis b {
  display: block;
  margin-bottom: 4px;
}

.promocode-hinweis p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.promocode-hinweis code {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 850;
}

.promocode-direktkauf {
  margin-top: 8px;
}

.promocode-direktkauf .checkbox-zeile {
  margin: 10px 0;
}

.panel-aktionen .promocode-hinweis {
  flex: 1 0 100%;
  width: 100%;
  margin: 4px 0 0;
}

.checkbox-zeile {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 14px 0;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
}

.checkbox-zeile input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.checkbox-zeile a {
  color: var(--accent-dark);
  font-weight: 850;
}

.meldung {
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfeff;
  color: #155e75;
  font-weight: 750;
}

.meldung.fehler {
  background: #fef2f2;
  color: var(--danger);
}

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.kennzahlen div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.kennzahlen b {
  display: block;
  font-size: 28px;
}

.kennzahlen span {
  color: var(--muted);
}

.tabellenrahmen {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: #475569;
  background: #f8fafc;
  font-size: 13px;
}

.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 13px;
  font-weight: 800;
}

.status.offen {
  background: #dcfce7;
  color: #166534;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 850;
}

.admin-block {
  margin-bottom: 24px;
}

.admin-formular {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-kopierfeld {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.admin-kopierfeld textarea {
  min-height: 86px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 750;
}

.tabellen-aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tabellen-aktionen button {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-detail-grid .projekt-panel h2 {
  margin-bottom: 18px;
  font-size: 24px;
}

.admin-detail-grid dd {
  overflow-wrap: anywhere;
}

.admin-aktionen {
  align-items: stretch;
  flex-direction: column;
}

.admin-aktionen .link-button,
.admin-aktionen button {
  width: 100%;
}

.fuss {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  padding: 34px 16px 42px;
  color: var(--muted);
  font-size: 14px;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.fuss-links a {
  color: #334155;
  font-weight: 800;
  text-decoration: none;
}

.fuss-links a:hover {
  color: var(--accent-dark);
}

.recht {
  max-width: 920px;
  padding: 54px 0;
}

.recht-text {
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.recht-text h2 {
  margin-top: 30px;
  margin-bottom: 10px;
  font-size: 24px;
}

.recht-text h2:first-child {
  margin-top: 0;
}

.recht-text p {
  color: #334155;
}

.recht-text a {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 940px) {
  .kopf {
    align-items: flex-start;
    flex-direction: column;
  }

  .kopf-nav {
    flex-wrap: wrap;
  }

  .start,
  .projekt-grid,
  .zahl-grid,
  .admin-detail-grid,
  .video-raster,
  .ablauf-raster,
  .beispiel-raster,
  .preis-raster,
  .promotion-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .formular-grid,
  .admin-formular,
  .admin-kopierfeld,
  .kennzahlen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vorlagen-raster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .arbeitsflaeche {
    width: min(100% - 20px, 1180px);
  }

  h1 {
    font-size: 40px;
  }

  .formular-grid,
  .admin-formular,
  .admin-kopierfeld,
  .kennzahlen,
  .preis-karten,
  .vorlagen-raster,
  .mini-felder {
    grid-template-columns: 1fr;
  }

  .formular-kopf,
  .aktionen,
  .panel-aktionen {
    align-items: stretch;
    flex-direction: column;
  }

  button,
  .link-button {
    width: 100%;
  }

  .credits-kopf {
    display: none;
  }

  .credits-zeile {
    grid-template-columns: 1fr;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
  }
}

/* © 2026 Erik Schauer, do1ffe@darc.de */
