/* PLAN 3 Ausstellerportal – abgeleitet aus den PLAN 3 Standbauunterlagen.
   Schrift: Nunito Sans (selbst gehostet, SIL OFL) als freie Alternative zu Steagal;
   Caveat als Ersatz für die Handschrift-Akzente. Keine externen Ressourcen (DSGVO). */

@font-face { font-family: "Nunito Sans"; font-weight: 300; font-display: swap; src: url("fonts/nunito-sans-latin-300-normal.0c12283bf2e5.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url("fonts/nunito-sans-latin-400-normal.bf4fb9047908.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url("fonts/nunito-sans-latin-600-normal.74243e9a5da8.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url("fonts/nunito-sans-latin-700-normal.36fbea3bf71d.woff2") format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url("fonts/nunito-sans-latin-800-normal.1e1f107c15b0.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.018947f2ec96.woff2") format("woff2"); }

:root {
  --rot: #c5122c;
  --rot-dunkel: #a00e23;
  --text: #4a4a49;
  --text-hell: #7a7a79;
  --balken: #dadada;
  --flaeche: #f2f2f2;
  --linie: #d6d6d6;
  --weiss: #ffffff;
  --ok: #2e7d32;
  --warn: #b26a00;
  --radius: 2px;
  --max: 1180px;
  --schrift: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--weiss); color: var(--text);
  font-family: var(--schrift); font-weight: 400; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }
strong { font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--weiss); border-bottom: 1px solid var(--linie); }
.kopf .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.kopf .p3 img { height: 34px; width: auto; }
.kopf .titel { flex: 1; text-align: center; color: var(--rot); text-transform: uppercase; letter-spacing: .18em; font-weight: 400; font-size: 18px; }
.kopf .nutzer { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--text-hell); }
.kopf form { margin: 0; }
.link-btn { background: none; border: 0; color: var(--rot); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }

.anker { background: var(--flaeche); border-bottom: 1px solid var(--linie); }
.anker .wrap { display: flex; gap: 4px; overflow-x: auto; }
.anker a { padding: 12px 14px; text-decoration: none; color: var(--text); text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.anker a:hover { color: var(--rot); border-bottom-color: var(--rot); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 300px; }
.hero .links { background: var(--flaeche); padding: 48px 48px 40px max(24px, calc((100vw - var(--max)) / 2 + 24px)); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.hero .rechts { padding: 40px max(24px, calc((100vw - var(--max)) / 2 + 24px)) 40px 48px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; text-align: center; }
.hero .rechts img { max-height: 90px; width: auto; }
.hero .rechts .vlogo img { max-height: 70px; }
.ueberzeile { text-transform: uppercase; letter-spacing: .2em; font-size: 14px; color: var(--text); margin: 0; }
.hero h1 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 800; color: var(--text); margin: 6px 0 0; line-height: 1.05; letter-spacing: -.01em; }
.hero .unter { text-transform: uppercase; letter-spacing: .2em; font-size: 15px; margin: 10px 0 0; }
.fakten { display: flex; flex-wrap: wrap; gap: 0; margin: 0; }
.fakten { row-gap: 12px; }
.fakten div { padding: 0 22px 0 0; margin-right: 22px; border-right: 1px solid var(--balken); }
.fakten div:last-child { border: 0; }
.fakten dt { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-hell); }
.fakten dd { margin: 0; font-size: 20px; font-weight: 600; color: var(--text); }
.datum-gross { font-size: 26px; font-weight: 300; letter-spacing: .04em; }

/* ---------- Abschnitte ---------- */
.bereich { padding: 52px 0 12px; }
.bereich-kopf { text-align: center; margin-bottom: 30px; }
.bereich-kopf h2 { color: var(--rot); text-transform: uppercase; letter-spacing: .2em; font-weight: 400; font-size: clamp(22px, 2.6vw, 30px); margin: 0; }
.balken { background: var(--flaeche); padding: 10px 16px; margin: 28px 0 18px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.balken h3 { margin: 0; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 18px; color: var(--text); }
.hand { font-family: var(--hand); color: var(--rot); font-size: 22px; line-height: 1; transform: rotate(-4deg); display: inline-block; }
.trenner { border: 0; border-top: 1px solid var(--rot); margin: 26px 0; }
.intro { max-width: 820px; margin: 0 auto 8px; text-align: center; font-size: 18px; font-weight: 300; }

/* Kontakte */
.kontakte { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 32px; }
.kontakt h4 { margin: 0 0 4px; font-weight: 600; font-size: 18px; color: var(--text); }
.kontakt .name { color: var(--rot); font-weight: 700; margin: 0 0 2px; }
.kontakt p { margin: 0; font-size: 15px; }
.kontakt a { color: var(--text); text-decoration: none; }
.kontakt a:hover { color: var(--rot); }

/* Termine – Pfeil-Panels wie im PDF */
.termine { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; }
.termin { background: var(--balken); padding: 18px 34px 20px 22px; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%); min-height: 150px; }
.termin:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); }
.termin .tag { color: var(--rot); font-weight: 700; font-size: 20px; margin: 0 0 8px; }
.termin .eintrag { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.termin .eintrag strong { color: var(--rot); display: block; font-size: 15px; }
.termin.messe { background: var(--balken); display: flex; align-items: center; justify-content: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 22px 50%); }
.termin.messe .wort { color: var(--weiss); font-size: 46px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; }
.termin.messe .wann { color: var(--text); font-weight: 700; text-align: center; }

/* Fristen-Karten */
.fristen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.frist { border: 1px solid var(--linie); border-left: 5px solid var(--ok); padding: 14px 18px; background: var(--weiss); }
.frist.zu { border-left-color: var(--rot); background: #fff6f7; }
.frist .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-hell); }
.frist .wert { font-size: 19px; font-weight: 700; }
.frist .rest { font-size: 14px; }

/* Infoblöcke */
.infos { display: grid; gap: 22px; }
.info { display: grid; grid-template-columns: 1fr; gap: 18px; border-top: 1px solid var(--linie); padding-top: 18px; }
.info.mit-bild { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
.info h3 { color: var(--rot); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 17px; margin: 0 0 8px; }
.info p, .info ul { margin: 0 0 10px; }
.info ul { padding-left: 20px; }
.info li::marker { color: var(--rot); }
.info .bild { background: var(--flaeche); padding: 10px; }
details.info-klapp { border-top: 1px solid var(--linie); }
details.info-klapp > summary { list-style: none; cursor: pointer; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; color: var(--rot); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
details.info-klapp > summary::-webkit-details-marker { display: none; }
details.info-klapp > summary::after { content: "+"; font-size: 26px; font-weight: 300; }
details.info-klapp[open] > summary::after { content: "–"; }
details.info-klapp .info { border: 0; padding-top: 0; padding-bottom: 20px; }

/* Grundriss */
.grundriss { border: 1px solid var(--linie); background: var(--flaeche); padding: 12px; }
.grundriss img { margin: 0 auto; cursor: zoom-in; }
.grundriss iframe { width: 100%; height: 75vh; border: 0; background: var(--weiss); }
.grundriss-aktionen { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; font-size: 14px; }

/* ---------- Formular ---------- */
.hinweis { padding: 14px 18px; border-left: 5px solid var(--rot); background: #fff6f7; margin: 16px 0; }
.hinweis.ok { border-color: var(--ok); background: #f1f8f1; }
.hinweis.info { border-color: var(--text-hell); background: var(--flaeche); }
.hinweis.warn { border-color: var(--warn); background: #fff8ec; }
.raster { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 24px; }
.feld { grid-column: span 6; }
.feld.halb { grid-column: span 3; }
.feld.drittel { grid-column: span 2; }
.feld label.lbl, .feld .lbl { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.feld .pflicht { color: var(--rot); }
.feld .hilfe { font-size: 13px; color: var(--text-hell); margin-top: 4px; }
.feld .fehler { font-size: 13px; color: var(--rot); margin-top: 4px; font-weight: 600; }
.feld.hat-fehler input, .feld.hat-fehler textarea, .feld.hat-fehler select { border-color: var(--rot); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--weiss);
  border: 0; border-bottom: 1.5px dotted #8f8f8e; padding: 9px 2px 7px; border-radius: 0;
}
textarea { border: 1px solid var(--balken); padding: 10px; min-height: 96px; resize: vertical; }
select { border: 1px solid var(--balken); padding: 9px 10px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--rot); border-bottom-style: solid; box-shadow: 0 2px 0 -0.5px var(--rot); }
input:disabled, textarea:disabled, select:disabled { background: var(--flaeche); color: var(--text); opacity: 1; }
.feld-text { grid-column: span 6; font-size: 15px; background: var(--flaeche); padding: 12px 16px; }
.feld-text p { margin: 0; }
.optionen { display: grid; gap: 8px; }
.opt, .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.opt input, .check input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 20px; height: 20px; border: 1.5px solid var(--text); background: var(--weiss); margin: 2px 0 0; display: grid; place-content: center; cursor: pointer; }
.opt input[type=radio] { border-radius: 50%; }
.opt input:checked, .check input:checked { border-color: var(--rot); }
.check input:checked::before, .opt input[type=checkbox]:checked::before { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--rot); border-bottom: 2.5px solid var(--rot); transform: translateY(-2px) rotate(-45deg); }
.opt input[type=radio]:checked::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); }
.opt input:focus-visible, .check input:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.opt input:disabled, .check input:disabled { cursor: not-allowed; background: var(--flaeche); }
.preis { margin-left: auto; white-space: nowrap; color: var(--text-hell); font-size: 14px; }
.ausgeblendet { display: none !important; }

.leiste { position: sticky; bottom: 0; z-index: 15; background: rgba(255,255,255,.97); border-top: 3px solid var(--rot); margin-top: 34px; padding: 14px 0; box-shadow: 0 -6px 18px rgba(0,0,0,.06); }
.leiste .wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.leiste .status { flex: 1; font-size: 14px; min-width: 220px; }
.leiste .summe { font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--rot); background: var(--rot); color: var(--weiss); padding: 11px 22px; font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 14px; cursor: pointer; text-decoration: none; border-radius: var(--radius); }
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.btn.zweit { background: var(--weiss); color: var(--rot); }
.btn.zweit:hover { background: #fff1f3; color: var(--rot-dunkel); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.klein { padding: 6px 12px; font-size: 12px; }

.badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border-radius: 20px; background: var(--flaeche); color: var(--text); }
.badge.ok { background: #e3f1e4; color: var(--ok); }
.badge.zu { background: #fbe3e6; color: var(--rot); }
.badge.warn { background: #fff0d6; color: var(--warn); }

/* ---------- Uploads ---------- */
.rechte { border: 1px solid var(--linie); padding: 16px 18px; background: var(--flaeche); margin-bottom: 22px; }
.uploads { display: grid; gap: 22px; }
.upload { border: 1px solid var(--linie); }
.upload-kopf { display: flex; justify-content: space-between; gap: 14px; align-items: center; background: var(--flaeche); padding: 12px 18px; flex-wrap: wrap; }
.upload-kopf h3 { margin: 0; text-transform: uppercase; letter-spacing: .05em; font-size: 17px; font-weight: 700; }
.upload-body { padding: 16px 18px 18px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 22px; }
.upload-body .vorgaben { font-size: 14px; }
.upload-body .vorgaben p, .upload-body .vorgaben ul { margin: 0 0 8px; }
.upload-body .vorgaben ul { padding-left: 18px; }
.upload-body .formate { font-size: 13px; color: var(--text-hell); }
.dropzone { border: 2px dashed #b9b9b8; padding: 22px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; display: block; }
.dropzone:hover, .dropzone.drueber { border-color: var(--rot); background: #fff6f7; }
.dropzone .gross { font-weight: 700; color: var(--text); display: block; }
.dropzone .klein { font-size: 13px; color: var(--text-hell); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone.gesperrt { cursor: not-allowed; background: var(--flaeche); border-color: var(--balken); color: var(--text-hell); }
.liste { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.liste li { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--linie); padding: 6px 10px 6px 6px; background: var(--weiss); }
.liste .thumb { width: 54px; height: 44px; background: var(--flaeche) center/cover no-repeat; display: grid; place-content: center; font-size: 11px; font-weight: 800; color: var(--text-hell); text-transform: uppercase; }
.liste .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.liste .name a { color: var(--text); text-decoration: none; font-weight: 600; }
.liste .name a:hover { color: var(--rot); }
.liste .meta { display: block; font-size: 12px; color: var(--text-hell); }
.liste .del { background: none; border: 0; color: var(--text-hell); cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; }
.liste .del:hover { color: var(--rot); }
.fortschritt { height: 6px; background: var(--flaeche); margin-top: 6px; overflow: hidden; }
.fortschritt span { display: block; height: 100%; width: 0; background: var(--rot); transition: width .2s; }
.liste li.fehler { border-color: var(--rot); }
.liste li.fehler .meta { color: var(--rot); font-weight: 600; }

/* ---------- Login & einfache Seiten ---------- */
.login-seite { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-seite .bild { background: var(--flaeche); display: flex; flex-direction: column; justify-content: space-between; padding: 48px; }
.login-seite .bild > img { align-self: flex-start; }
.login-seite .bild h1 { font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: 1; margin: 0; color: var(--text); text-transform: uppercase; letter-spacing: .02em; }
.login-seite .bild h1 span { display: block; color: var(--rot); }
.login-seite .bild p { max-width: 420px; font-size: 18px; font-weight: 300; }
.login-seite .form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.karte { width: 100%; max-width: 420px; }
.karte h2 { color: var(--rot); text-transform: uppercase; letter-spacing: .2em; font-weight: 400; margin: 0 0 24px; }
.karte .feld { margin-bottom: 18px; }
.karte .btn { width: 100%; justify-content: center; margin-top: 8px; }
.karte .unten { margin-top: 18px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.errorlist { list-style: none; padding: 0; margin: 4px 0 0; color: var(--rot); font-size: 13px; font-weight: 600; }
.einfach { max-width: 760px; margin: 60px auto; padding: 0 24px; }
.einfach h1 { color: var(--rot); text-transform: uppercase; letter-spacing: .15em; font-weight: 400; }
.auswahl { display: grid; gap: 14px; margin-top: 24px; }
.auswahl a { display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--linie); padding: 16px; text-decoration: none; color: var(--text); }
.auswahl a:hover { border-color: var(--rot); }
.auswahl img { max-height: 50px; width: auto; }

.meldungen { list-style: none; margin: 0; padding: 0; }

.fuss { margin-top: 60px; background: var(--flaeche); padding: 26px 0; font-size: 14px; }
.fuss .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.fuss a { color: var(--text); margin-left: 18px; }
.vorschau-band { background: #222; color: #fff; text-align: center; padding: 8px; font-size: 14px; letter-spacing: .05em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(20,20,20,.92); z-index: 100; display: none; overflow: auto; cursor: zoom-out; }
.lightbox.offen { display: block; }
.lightbox img { max-width: none; width: 200%; margin: 0 auto; }

@media (max-width: 900px) {
  .hero, .login-seite { grid-template-columns: 1fr; }
  .hero .links, .hero .rechts { padding: 28px 24px; }
  .login-seite .bild { padding: 32px 24px; min-height: 0; gap: 24px; }
  .info.mit-bild, .upload-body { grid-template-columns: 1fr; }
  .feld.halb, .feld.drittel { grid-column: span 6; }
  .kopf .titel { display: none; }
  .termin, .termin:first-child, .termin.messe { clip-path: none; min-height: 0; }
  .termin.messe .wort { font-size: 30px; }
  .auswahl a { grid-template-columns: 1fr; }
  .lightbox img { width: 300%; }
}
