/* Layout-Designer: Aussehen nach corporate-design.md Teil C und vorhaben/layout-designer/design.md (Pepper) */
:root {
  --bg: #0E0D12; --flaeche: #1D1A23; --karte: #17151D; --rand: #2A2732; --rand2: #3A3542;
  --titel: #F2EFF5; --text: #CFC9D6; --neben: #B9B3C2; --akzent: #FF7AC2;
  --pink: #D4007A; --lila: #7A35C8; --verlauf: linear-gradient(100deg, #D4007A, #7A35C8);
  --warn: #FFB547; --warn-bg: #2A2116; --fehler: #FF5C6C; --fehler-bg: #2A1519;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Manrope, system-ui, sans-serif; }
a { color: var(--akzent); }
h1, h2, h3 { font-family: Montserrat, sans-serif; font-weight: 800; color: var(--titel); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 32px; } h2 { font-size: 22px; } h3 { font-size: 18px; }
.oberzeile { font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--akzent); margin: 0 0 6px; }
.neben { color: var(--neben); font-size: 14px; }
.kopf { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rand); }
.kopf .marke { font-family: Montserrat; font-weight: 800; color: var(--titel); text-decoration: none; }
.seite { max-width: 1000px; margin: 0 auto; padding: 28px 16px 60px; }
.karte { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 24px; position: relative; overflow: hidden; }
.karte.strich::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--verlauf); }
.mitte { max-width: 440px; margin: 40px auto; }
label { display: block; font-weight: 700; color: var(--titel); margin: 14px 0 6px; font-size: 15px; }
input[type=text], input[type=email], input[type=password], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--titel); background: var(--bg); border: 1px solid var(--rand2);
  border-radius: 8px; padding: 10px 12px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, textarea:focus-visible { outline: 2px solid var(--akzent); outline-offset: 2px; }
.feld-raute { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--rand2); border-radius: 8px; }
.feld-raute span { padding: 0 4px 0 12px; color: var(--neben); font-weight: 700; }
.feld-raute input { border: 0; padding-left: 2px; }
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px;
  border-radius: 8px; border: 0; font: 700 16px Manrope, sans-serif; color: #fff; background: var(--verlauf); cursor: pointer; text-decoration: none; }
.knopf.zweit { background: transparent; border: 1px solid var(--titel); color: var(--titel); }
.knopf.text { background: none; color: var(--akzent); min-height: 44px; padding: 8px 6px; }
.knopf.klein { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.knopf[disabled], .knopf.aus { opacity: .45; cursor: default; }
.breit { width: 100%; }
.meldung { border-radius: 8px; padding: 10px 14px; margin: 12px 0; border: 1px solid; }
.meldung.fehler { background: var(--fehler-bg); border-color: var(--fehler); color: #FFD6DB; }
.meldung.warn { background: var(--warn-bg); border-color: var(--warn); color: #FFE4B8; }
.meldung.info { background: #1F1B26; border-color: var(--rand2); }
.pille { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; border: 1px solid var(--rand2); color: var(--neben); }
.pille.ok { border-color: var(--akzent); color: var(--akzent); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.fortschritt { height: 6px; background: var(--rand); border-radius: 999px; overflow: hidden; margin: 6px 0 22px; }
.fortschritt div { height: 100%; background: var(--verlauf); }
.skizze { background: var(--flaeche); border-radius: 8px; display: flex; align-items: center; justify-content: center; height: 170px; margin-bottom: 14px; }
.skizze img { max-height: 160px; max-width: 100%; border-radius: 4px; }
.fuss { text-align: center; color: var(--neben); font-size: 13px; padding: 24px 0; }
.fuss b { color: var(--akzent); }
details summary { cursor: pointer; color: var(--akzent); }

/* ---------- Gestalten ---------- */
.werkbank { display: grid; grid-template-columns: 250px 1fr 260px; height: calc(100vh - 57px); }
.werkzeuge, .eigenschaften { background: var(--karte); border-right: 1px solid var(--rand); overflow-y: auto; padding: 14px; }
.eigenschaften { border-right: 0; border-left: 1px solid var(--rand); }
.reiter { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.reiter button { all: unset; cursor: pointer; padding: 10px 12px; border-radius: 8px; color: var(--neben); font-weight: 700; border-left: 3px solid transparent; }
.reiter button.aktiv { color: #fff; border-image: var(--verlauf) 1; background: #1F1B26; }
.reiter-inhalt { display: none; } .reiter-inhalt.aktiv { display: block; }
.platte { background: var(--flaeche); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: auto; padding: 16px; position: relative; }
.platte .schild { max-width: 640px; margin-bottom: 10px; font-size: 14px; }
.leinwand-rahmen { box-shadow: 0 0 0 1px var(--rand2); background: repeating-conic-gradient(#2a2732 0% 25%, #1d1a23 0% 50%) 50% / 20px 20px; }
.farben { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.farben button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--rand2); cursor: pointer; }
.farben button:focus-visible { outline: 2px solid var(--akzent); }
.paletten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paletten button { all: unset; cursor: pointer; border-radius: 8px; height: 40px; border: 1px solid var(--rand2); font-size: 12px; font-weight: 700; display: flex; align-items: flex-end; padding: 4px 6px; }
.vorlagen-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vorlagen-liste button { all: unset; cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: #fff; }
.vorlagen-liste button.aktiv { border-color: var(--akzent); }
.vorlagen-liste img { width: 100%; display: block; }
.rahmenwahl { display: flex; flex-direction: column; gap: 6px; }
.rahmenwahl label { font-weight: 500; margin: 0; display: flex; gap: 8px; align-items: center; color: var(--text); }
.zeile { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
input[type=range] { width: 100%; accent-color: var(--akzent); }
input[type=color] { width: 44px; height: 36px; border: 1px solid var(--rand2); border-radius: 6px; background: none; padding: 2px; }
.kopf .status { font-size: 14px; color: var(--neben); }
dialog { background: var(--karte); color: var(--text); border: 1px solid var(--rand); border-radius: 12px; max-width: 520px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(0,0,0,.6); }
.vorschau-bild { max-width: 100%; max-height: 50vh; display: block; margin: 10px auto; background: #fff; }
.unten-leiste { display: none; }

@media (max-width: 1023px) {
  .werkbank { grid-template-columns: 220px 1fr; }
  .eigenschaften { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--rand); }
  .werkbank { height: auto; }
}
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  .werkbank { display: flex; flex-direction: column; }
  .platte { order: 1; min-height: 55vh; }
  .werkzeuge { order: 2; border: 0; }
  .eigenschaften { order: 3; }
  .knopf { width: 100%; }
  .kopf .knopf { width: auto; }
}

/* ---------- Admin ---------- */
.admin-menue { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-menue a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rand2); color: var(--titel); text-decoration: none; font-weight: 700; font-size: 14px; }
.admin-menue a.aktiv { border-color: var(--akzent); color: var(--akzent); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rand); vertical-align: top; }
th { color: var(--neben); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.warn-text { color: var(--warn); font-weight: 700; } .ok-text { color: var(--akzent); font-weight: 700; }
.kachel { background: var(--karte); border: 1px solid var(--rand); border-radius: 12px; padding: 10px; }
.kachel img { width: 100%; border-radius: 6px; background: #fff; display: block; }
.kachel.aus { opacity: .45; }
.kachel form { display: inline; }
@media (max-width: 767px) { table, tbody, tr, td, th { display: block; } thead { display: none; } tr { border: 1px solid var(--rand); border-radius: 12px; margin-bottom: 10px; padding: 6px; } td { border: 0; padding: 4px 8px; } }
