@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Medium.ttf"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-SemiBold.ttf"); font-weight: 600; font-display: swap; }

:root {
  --orange: #FF6600; --orange-text: #B84300; --ink: #0D0F12; --t2: #4a4d52; --t3: #74787f;
  --linie: #e6e7e9; --flaeche: #f6f6f4; --weiss: #fff;
  --gruen: #1f8a4c; --gelb: #e3a008; --rot: #c43b2b;
}
/* Kopf wie bei TagWerk: links App-Symbol, Mitte Name, rechts Marketing Concierge, darunter die Unterzeile */
.kopf { padding: 24px 32px 18px; border-bottom: 1px solid var(--linie); }
.kopf-zeile { display: flex; align-items: center; gap: 20px; }
.app-marke { display: flex; align-items: center; gap: 18px; min-width: 0; margin-right: auto; }
.app-icon { width: 84px; height: 84px; border-radius: 20px; display: block; }
.mc-logo { width: 84px; height: 84px; display: block; }
.app-name { margin: 0; font-size: 50px; font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.app-name span { color: var(--orange); }
.unterzeile { margin: 12px 0 0; color: var(--t2); font-size: 17px; }
.kopf-rechts { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.kopf-rechts:not(:has(> :not([hidden]))) { display: none; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--weiss); color: var(--ink); font: 16px/1.5 "Outfit", system-ui, sans-serif; }
[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; padding: 13px 26px; }
button:hover { background: #2a2d33; }
button:disabled { opacity: .5; cursor: wait; }
button.leise { background: var(--flaeche); color: var(--ink); border: 1px solid var(--linie); padding: 9px 18px; font-weight: 500; }
input { font: inherit; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #cfd2d6; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
label { display: block; font-weight: 500; font-size: 15px; color: var(--t2); }
label small { font-weight: 400; color: var(--t3); }

button.klein { padding: 7px 14px; font-size: 14px; }
#anmeldeform label + label { margin-top: 12px; }
.chip { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: #fff1e6; color: var(--orange-text); font-weight: 500; white-space: nowrap; }

main { max-width: 1280px; margin: 0 auto; padding: 28px 32px 40px; }
.karte { background: var(--flaeche); border-radius: 18px; padding: 26px; }
.karte.schmal { max-width: 420px; margin: 40px auto; }
.karte h2 { margin: 0 0 14px; font-size: 22px; }
#anmeldeform button { margin-top: 14px; width: 100%; }
label.haupt { font-size: 17px; color: var(--ink); }
label.haupt input { font-size: 20px; padding: 16px 18px; }
button.link { background: none; color: var(--orange-text); padding: 10px 0 0; font-weight: 500; border-radius: 0; }
button.link:hover { background: none; text-decoration: underline; }
#vergleich { margin-top: 14px; }
.tipp { display: block; margin-top: 4px; color: var(--ink); font-size: 14.5px; }
.tipp::before { content: "→ "; color: var(--orange-text); font-weight: 600; }
.aktion { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.fortschritt { margin: 0; color: var(--t2); }
.fehler { color: var(--rot); margin: 10px 0 0; min-height: 1em; }
.verlauf { margin-top: 18px; color: var(--t2); font-size: 15px; }
.verlauf summary { cursor: pointer; }
.verlauf ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.verlauf a { color: var(--ink); text-decoration: none; display: flex; gap: 10px; align-items: baseline; }
.verlauf a:hover b { color: var(--orange-text); }
.verlauf small { color: var(--t3); }

.werkzeug { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.seiten { display: grid; grid-template-columns: repeat(var(--anzahl, 1), 1fr); gap: 22px; }
.seite { background: var(--flaeche); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; }
.seite-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.seite-kopf .rolle { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); font-weight: 500; }
.seite-kopf .domain { font-size: 20px; font-weight: 600; word-break: break-all; }
.punkte { text-align: center; min-width: 92px; border-radius: 16px; padding: 8px 12px; color: #fff; }
.punkte b { display: block; font-size: 34px; line-height: 1; }
.punkte span { font-size: 13px; opacity: .9; }
.punkte.gut { background: var(--gruen); } .punkte.mittel { background: #c98000; } .punkte.schwach { background: var(--rot); }
.bilder { display: flex; gap: 14px; align-items: flex-end; }
.bilder .desk { flex: 1; min-width: 0; }
.bilder .desk img { width: 100%; display: block; border-radius: 10px; border: 1px solid var(--linie); background: #fff; }
.bilder .mob { width: 26%; max-width: 170px; }
.bilder .mob img { width: 100%; display: block; border: 6px solid #16181a; border-radius: 20px; background: #16181a; }
.bilder figcaption { font-size: 12px; color: var(--t3); text-align: center; margin-top: 4px; }
.bilder figure { margin: 0; }
.kennzahlen { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.kennzahlen li { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 4px 12px; font-size: 14px; color: var(--t2); }
.kennzahlen b { color: var(--ink); font-weight: 600; }
.fazit { margin: 14px 0 0; color: var(--t2); }

.tabelle-rahmen { margin-top: 26px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--linie); }
thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); font-weight: 500; }
tbody th { width: 26%; font-weight: 400; }
tbody th b { display: block; font-weight: 600; }
tbody th small { color: var(--t3); font-size: 13.5px; }
td { color: var(--t2); }
td.besser { background: #eef8f1; }
.ampel { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.a2 { background: var(--gruen); } .a1 { background: var(--gelb); } .a0 { background: var(--rot); }
.pfeil { color: var(--gruen); font-weight: 600; margin-left: 6px; }
.legende { color: var(--t3); font-size: 13.5px; margin-top: 14px; }
.legende .ampel { margin-left: 10px; margin-right: 4px; }
.fuss { text-align: center; color: var(--t3); font-size: 13px; padding: 20px; border-top: 1px solid var(--linie); }

@media (max-width: 900px) {
  .kopf { padding: 16px 16px 12px; } main { padding: 18px 16px 30px; }
  .kopf-zeile { gap: 12px; } .app-marke { gap: 10px; } .app-icon, .mc-logo { width: 56px; height: 56px; } .app-icon { border-radius: 13px; }
  .app-name { font-size: clamp(24px, 7.4vw, 32px); } .unterzeile { font-size: 15px; margin-top: 10px; }
  .seiten { grid-template-columns: 1fr; }
  /* Tabelle als Karten untereinander */
  #tabelle thead { display: none; }
  #tabelle, #tabelle tbody, #tabelle tr, #tabelle th, #tabelle td { display: block; width: auto; }
  #tabelle tr { padding: 14px 0; border-bottom: 1px solid var(--linie); }
  #tabelle th, #tabelle td { border: 0; padding: 0; }
  #tabelle th { margin-bottom: 6px; }
  #tabelle td + td { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--linie); }
  #tabelle td[data-rolle]::before { content: attr(data-rolle); display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: 2px; }
  #tabelle td.besser { background: #eef8f1; padding: 8px 10px; border-radius: 10px; }
  .aktion button[type=submit] { width: 100%; }
  tbody th { width: 34%; }
}

@media print {
  @page { size: A4 landscape; margin: 7mm; }
  body { font-size: 10pt; }
  .kopf { padding: 0 0 4mm; } .mc-logo { width: 25mm; height: 25mm; } .app-icon { width: 16mm; height: 16mm; border-radius: 4mm; }
  main { padding: 0; max-width: none; }
  #eingabe, .werkzeug, .fuss, #modus { display: none !important; }
  body { font-size: 8.5pt; line-height: 1.3; }
  .app-name { font-size: 22pt; } .unterzeile { font-size: 9pt; }
  .seiten { gap: 5mm; }
  .seite { padding: 3.5mm; break-inside: avoid; border-radius: 3mm; }
  .seite-kopf { margin-bottom: 2.5mm; } .seite-kopf .domain { font-size: 11pt; }
  .punkte { min-width: 18mm; padding: 1.2mm 2.5mm; } .punkte b { font-size: 17pt; }
  .bilder { height: 30mm; }
  .kopf { border-bottom: 0; } .unterzeile { display: none; }
  .seiten { margin-top: -2mm; } .bilder figure { height: 100%; display: flex; flex-direction: column; }
  .bilder .desk img, .bilder .mob img { height: calc(100% - 4mm); width: auto; max-width: 100%; object-fit: cover; object-position: top; }
  .bilder .mob { width: auto; max-width: none; } .bilder .mob img { border-width: 1.2mm; border-radius: 3mm; }
  .bilder figcaption { font-size: 7pt; margin-top: .5mm; }
  .kennzahlen { margin-top: 2mm; gap: 1.5mm; } .kennzahlen li { padding: .5mm 2mm; font-size: 7.5pt; }
  .fazit { margin-top: 2mm; font-size: 8pt; }
  .tipp { font-size: 7.4pt; margin-top: .4mm; }
  th, td { padding: .9mm 2mm; } tbody th small { font-size: 6.8pt; }
  thead th { font-size: 7pt; }
  .tabelle-rahmen { margin-top: 3mm; overflow: visible; }
  .legende { font-size: 7pt; margin-top: 1.5mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Einrichtungsseite */
.hinweis { color: var(--t2); margin: 18px 0 8px; }
.qr { background: #fff; display: inline-block; padding: 10px; border-radius: 12px; border: 1px solid var(--linie); }
.qr svg { display: block; width: 220px; height: 220px; }
code { font-size: 15px; background: #fff; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
#form button[type=submit] { margin-top: 16px; width: 100%; }
#form label + label { margin-top: 12px; }
a.knopf-link { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 24px; border-radius: 999px; }

@media (max-width: 600px) {

}
