/* Axionia Kundenportal */
:root {
  --nacht: #0d1626;
  --nacht-2: #16233a;
  --akzent: #2f8cff;
  --akzent-dunkel: #1d6fd6;
  --glut: #f29a38;
  --text: #1b2433;
  --leise: #5d6b80;
  --linie: #e3e8ef;
  --flaeche: #f5f7fa;
  --weiss: #ffffff;
  --gruen: #1f9d63;
  --gelb: #c98a12;
  --rot: #d14343;
  --radius: 12px;
  --schatten: 0 1px 2px rgba(13, 22, 38, .06), 0 4px 16px rgba(13, 22, 38, .05);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; line-height: 1.55; color: var(--text); background: var(--flaeche);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--akzent-dunkel); }
h1 { font-size: 1.7rem; margin: 0 0 .3rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
.leise { color: var(--leise); }
.klein { font-size: .875rem; }
.inline { display: inline; }

/* Kopf */
.kopf { background: linear-gradient(120deg, var(--nacht), var(--nacht-2)); color: #fff; }
.kopf-innen { max-width: 1100px; margin: 0 auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.marke { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: .6rem; }
.marke-name { font-weight: 800; letter-spacing: .18em; font-size: 1.15rem; }
.marke-name::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .35rem; border-radius: 50%; background: var(--glut); vertical-align: middle; }
.marke-zusatz { color: #a9b8cf; font-size: .9rem; }
.navi { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.navi a, .link-knopf { color: #d6e1f2; text-decoration: none; font-size: .95rem; }
.navi a:hover, .link-knopf:hover { color: #fff; }
.link-knopf { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* Inhalt */
.inhalt { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 2rem 1.25rem 3rem; }
.begruessung { margin-bottom: 1.5rem; }
.zurueck { margin: 0 0 1rem; }
.zurueck a { text-decoration: none; }

/* Karten */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.1rem; }
.karte { display: block; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.2rem 1.25rem; color: inherit; text-decoration: none; box-shadow: var(--schatten); transition: transform .12s ease, border-color .12s ease; }
.karte:hover { transform: translateY(-2px); border-color: #c9d6ea; }
.karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.karte-kopf h2 { margin: 0; }
.karte-text { color: var(--leise); margin: .6rem 0; }
.karte-fuss { margin: .6rem 0 0; }
.leer { background: var(--weiss); border: 1px dashed var(--linie); border-radius: var(--radius); padding: 2rem; text-align: center; }

/* Status */
.status { display: inline-block; white-space: nowrap; font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: #eef2f7; color: var(--leise); vertical-align: middle; }
.status.gross { font-size: .9rem; padding: .35rem .85rem; }
.status-anfrage, .status-angebot { background: #eef2fb; color: #3b5b9a; }
.status-in_arbeit { background: #e5f0ff; color: var(--akzent-dunkel); }
.status-abnahme { background: #fff3e0; color: #b4680e; }
.status-abgeschlossen, .status-erledigt { background: #e3f5ec; color: var(--gruen); }
.status-pausiert, .status-zurueckgestellt { background: #f1f1f1; color: #777; }
.status-offen { background: #fdf2dc; color: var(--gelb); }

/* Fortschritt */
.fortschritt { height: 8px; background: #e9eef5; border-radius: 999px; overflow: hidden; margin: .8rem 0 .3rem; }
.fortschritt span { display: block; height: 100%; background: linear-gradient(90deg, var(--akzent), #57c4ff); border-radius: 999px; }

/* Projektseite */
.projekt-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.block { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.1rem; box-shadow: var(--schatten); }
.beschreibung { margin: 0; }
.spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 820px) { .spalten { grid-template-columns: 1fr; } }

.punkte { list-style: none; margin: .5rem 0 0; padding: 0; }
.punkt { display: flex; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--linie); }
.punkt:first-child { border-top: 0; }
.punkt-zeichen { flex: 0 0 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid #c3cdd9; }
.punkt-in_arbeit .punkt-zeichen { border-color: var(--akzent); background: radial-gradient(circle, var(--akzent) 35%, transparent 40%); }
.punkt-erledigt .punkt-zeichen { border-color: var(--gruen); background: var(--gruen); }
.punkt-erledigt .punkt-titel { color: var(--leise); }
.punkt-titel { font-weight: 600; }
.punkt-titel .status { margin-left: .35rem; font-weight: 500; }

.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: .55rem 0; border-top: 1px solid var(--linie); }
.liste li:first-child { border-top: 0; padding-top: 0; }
.liste a { font-weight: 600; text-decoration: none; }
.liste a:hover { text-decoration: underline; }

/* Nachrichten */
.verlauf { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.2rem; }
.nachricht { padding: .75rem .9rem; border-radius: 10px; max-width: 88%; }
.nachricht-kunde { background: #f1f4f8; align-self: flex-start; }
.nachricht-axionia { background: #e8f1ff; align-self: flex-end; }
.nachricht-kopf { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .25rem; flex-wrap: wrap; }

/* Formulare */
.schmal { max-width: 440px; margin: 1rem auto; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--schatten); }
.formular { display: flex; flex-direction: column; gap: .45rem; margin: 1rem 0; }
.formular label { font-weight: 600; font-size: .92rem; margin-top: .4rem; }
.formular input, .formular textarea { width: 100%; font: inherit; padding: .65rem .75rem; border: 1px solid #ccd5e1; border-radius: 8px; background: #fff; }
.formular input:focus, .formular textarea:focus { outline: 2px solid rgba(47, 140, 255, .35); border-color: var(--akzent); }
.hilfe ul { margin: .2rem 0 0; padding-left: 1.1rem; }
.errorlist { list-style: none; padding: 0; margin: 0; color: var(--rot); font-size: .88rem; }
.knopf { display: inline-block; align-self: flex-start; margin-top: .6rem; background: var(--akzent); color: #fff; border: 0; border-radius: 8px; padding: .65rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); }

/* Hinweise */
.hinweis { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; background: #eef4ff; border: 1px solid #cfe0ff; }
.hinweis-success { background: #e9f7ef; border-color: #bfe6cf; }
.hinweis-warning { background: #fff6e5; border-color: #f3d9a4; }
.hinweis-error { background: #fdecec; border-color: #f2c2c2; }

/* Fuß */
.fuss { text-align: center; padding: 1.5rem 1rem; color: var(--leise); font-size: .85rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.fuss a { color: var(--leise); }

/* --- Verwaltung im Portal --------------------------------------------- */
.navi .navi-leise { color: #8ea0bb; font-size: .85rem; }
.seiten-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.knopf-hell { background: #eaf2ff; color: var(--akzent-dunkel); }
.knopf-hell:hover { background: #d9e8ff; }
.suche { margin-bottom: 1rem; }
.suche input { width: 100%; max-width: 360px; font: inherit; padding: .55rem .75rem; border: 1px solid #ccd5e1; border-radius: 8px; }

.tabelle-block { padding: 0; overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); padding: .75rem 1rem; border-bottom: 1px solid var(--linie); }
.tabelle td { padding: .8rem 1rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle a { text-decoration: none; color: var(--text); }
.klickbar { cursor: pointer; }
.klickbar:hover { background: #f7faff; }
.inaktiv { opacity: .55; }

.projekt-liste { list-style: none; margin: 0 0 1rem; padding: 0; }
.projekt-liste li { border-top: 1px solid var(--linie); }
.projekt-liste li:first-child { border-top: 0; }
.projekt-zeile { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .85rem .25rem; color: inherit; text-decoration: none; border-radius: 8px; }
.projekt-zeile:hover { background: #f7faff; }
.projekt-zeile > div { flex: 1; }
.schmal-balken { height: 5px; margin: .45rem 0 0; max-width: 320px; }
.zeilen-formular { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; padding-top: .75rem; border-top: 1px dashed var(--linie); }
.zeilen-formular input { flex: 1; min-width: 200px; font: inherit; padding: .6rem .75rem; border: 1px solid #ccd5e1; border-radius: 8px; }
.zeilen-formular .knopf { margin-top: 0; }

.schmal.breiter { max-width: 560px; }
.haken { display: flex; align-items: center; gap: .5rem; font-weight: 500 !important; }
.haken input { width: auto !important; }
.formular select { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #ccd5e1; border-radius: 8px; background: #fff; }
.formular input[type="file"] { padding: .45rem; }

/* Nur für dich sichtbare Werkzeuge: blau markiert */
.nur-du { color: var(--akzent-dunkel); font-weight: 600; }
.nur-du-block { background: #f3f8ff; border: 1px dashed #b9d3fb; border-radius: 10px; padding: .9rem 1rem; margin-top: 1rem; }
.nur-du-block label:first-of-type { margin-top: 0; }
.bearbeiten { border-color: #b9d3fb; background: #f8fbff; }
.bearbeiten summary { cursor: pointer; font-weight: 600; color: var(--akzent-dunkel); }
.bearbeiten[open] summary { margin-bottom: .5rem; }

.punkt-inhalt { flex: 1; }
.punkt-werkzeug { display: flex; align-items: center; gap: .35rem; }
.punkt-werkzeug select { font: inherit; font-size: .85rem; padding: .3rem .4rem; border: 1px solid #b9d3fb; border-radius: 6px; background: #f3f8ff; color: var(--akzent-dunkel); }
.x-knopf { background: none; border: 0; color: #a0abba; cursor: pointer; font-size: .95rem; padding: .2rem .35rem; border-radius: 6px; }
.x-knopf:hover { color: var(--rot); background: #fdecec; }
.mit-werkzeug { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.gefahr { color: var(--rot); margin-top: .75rem; font-size: .9rem; }
.gefahr:hover { text-decoration: underline; }

/* --- Adminbereich (/intern/) – bewusst anders als der Kundenbereich ---- */
body.intern { background: #f1f2f4; }
.kopf-intern { background: linear-gradient(120deg, #1b1d22, #2a2e36); border-top: 4px solid var(--glut); }
.bereich-schild { background: var(--glut); color: #1b1d22; font-weight: 800; font-size: .72rem; letter-spacing: .12em; padding: .2rem .55rem; border-radius: 5px; }
.intern .knopf { background: #2a2e36; }
.intern .knopf:hover { background: #111318; }
.intern .knopf-hell { background: #fff3e3; color: #9a5a10; }
.intern .knopf-hell:hover { background: #ffe6c4; }
.intern .bearbeiten { border-color: #f3d3a8; background: #fffaf3; }
.intern .bearbeiten summary { color: #9a5a10; }
.intern .punkt-werkzeug select { border-color: #d8dbe1; background: #fff; color: var(--text); }
.unter-block { background: #f7f8fa; border: 1px dashed #d4d8df; border-radius: 10px; padding: .9rem 1rem; margin-top: 1rem; }
.unter-block label:first-of-type { margin-top: 0; }
.kopf-rechts { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.kopf-rechts .knopf { margin-top: 0; }

/* Vorschau der Kundenansicht für dich */
.vorschau-band { background: #fff3e0; border: 1px solid #f3d9a4; color: #8a560e; font-weight: 600; padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; }
.vorschau-band a { color: #8a560e; margin-left: .5rem; }

/* =====================================================================
   KUNDENBEREICH – dunkles Design (wie Lilo)
   ===================================================================== */
body.kunde {
  --text: #dfe6f5;
  --leise: #8a9bbf;
  --linie: #263457;
  --flaeche: #1a1b2e;
  --weiss: #16213e;
  --akzent: #e8445f;
  --akzent-dunkel: #cf3550;
  --rot: #ff8a9e;
  --schatten: 0 10px 30px rgba(0, 0, 0, .28);
  background: radial-gradient(ellipse at top, #20264a 0%, #1a1b2e 55%) fixed;
  color: var(--text);
}
body.kunde a { color: #f2879a; }
body.kunde a:hover { color: #ffb0bd; }

/* Kopf */
body.kunde .kopf { background: rgba(14, 20, 40, .65); border-bottom: 1px solid #222d4d; backdrop-filter: blur(6px); }
body.kunde .marke-name { color: #fff; }
body.kunde .marke-name::after { background: var(--akzent); }
body.kunde .marke-zusatz { color: #7f90b8; }
body.kunde .navi a, body.kunde .link-knopf { color: #a9b6d3; }
body.kunde .navi a:hover, body.kunde .link-knopf:hover { color: #fff; }

/* Karten, Blöcke */
body.kunde .karte, body.kunde .block, body.kunde .schmal, body.kunde .leer {
  background: #16213e; border: 1px solid #24325a; box-shadow: var(--schatten);
}
body.kunde .schmal { border-radius: 18px; }
body.kunde .karte { color: var(--text); }
body.kunde .karte:hover { border-color: #3a4c80; }
body.kunde h1, body.kunde h2 { color: #f1f4fb; }
body.kunde .liste li, body.kunde .punkt { border-color: #24325a; }
body.kunde .liste a { color: #f1f4fb; }
body.kunde .liste a:hover { color: #ffb0bd; }

/* Formulare */
body.kunde .formular label { color: #8ea2c8; font-weight: 500; }
body.kunde .formular input, body.kunde .formular textarea {
  background: #e8f0fe; border: 1px solid transparent; color: #1b2433; border-radius: 10px; padding: .75rem .9rem;
}
body.kunde .formular input:focus, body.kunde .formular textarea:focus { outline: 2px solid rgba(232, 68, 95, .55); border-color: transparent; }
body.kunde .knopf { background: var(--akzent); color: #fff; border-radius: 10px; }
body.kunde .knopf:hover { background: var(--akzent-dunkel); color: #fff; }
body.kunde .hilfe { color: #7f90b8; }

/* Login-Karte */
.login-marke { text-align: center; font-size: 2.1rem; font-weight: 800; letter-spacing: .02em; color: var(--akzent); margin: .2rem 0 .15rem; }
.login-zusatz { text-align: center; color: #7f90b8; margin-bottom: 1.6rem; }
body.kunde .login-karte { margin-top: 3rem; padding: 2.2rem 2.2rem 1.6rem; }
body.kunde .login-karte .knopf { align-self: stretch; text-align: center; padding: .8rem; font-size: 1.05rem; margin-top: 1.1rem; }
.login-fuss { text-align: center; margin: 1rem 0 0; font-size: .85rem; }
.login-powered { text-align: center; color: #3c4a6e; font-size: .78rem; margin-top: 1.2rem; }

/* Status-Schilder */
body.kunde .status { background: #22304f; color: #a9b8d8; }
body.kunde .status-anfrage, body.kunde .status-angebot { background: rgba(130, 150, 255, .16); color: #b3c1ff; }
body.kunde .status-in_arbeit { background: rgba(80, 160, 255, .16); color: #8cc4ff; }
body.kunde .status-abnahme { background: rgba(242, 154, 56, .16); color: #f5b56b; }
body.kunde .status-abgeschlossen, body.kunde .status-erledigt { background: rgba(46, 204, 113, .15); color: #6fdc9b; }
body.kunde .status-pausiert, body.kunde .status-zurueckgestellt { background: rgba(255, 255, 255, .07); color: #9aa5bd; }
body.kunde .status-offen { background: rgba(245, 196, 81, .15); color: #f3cd6b; }

/* Fortschritt & Punkte */
body.kunde .fortschritt { background: #24304f; }
body.kunde .fortschritt span { background: linear-gradient(90deg, #e8445f, #ff8a9e); }
body.kunde .punkt-zeichen { border-color: #3a4a72; }
body.kunde .punkt-in_arbeit .punkt-zeichen { border-color: #8cc4ff; background: radial-gradient(circle, #8cc4ff 35%, transparent 40%); }
body.kunde .punkt-erledigt .punkt-zeichen { border-color: #2ecc71; background: #2ecc71; }
body.kunde .punkt-erledigt .punkt-titel { color: #8a9bbf; }

/* Nachrichten */
body.kunde .nachricht-kunde { background: #1d2a4a; }
body.kunde .nachricht-axionia { background: rgba(232, 68, 95, .13); }

/* Hinweise */
body.kunde .hinweis { background: #1d2a4a; border-color: #2c3c66; color: var(--text); }
body.kunde .hinweis-success { background: rgba(46, 204, 113, .12); border-color: rgba(46, 204, 113, .35); }
body.kunde .hinweis-warning { background: rgba(245, 180, 80, .12); border-color: rgba(245, 180, 80, .35); }
body.kunde .hinweis-error { background: rgba(232, 68, 95, .14); border-color: rgba(232, 68, 95, .4); }
body.kunde .errorlist { color: #ff8a9e; }
body.kunde .vorschau-band { background: rgba(245, 180, 80, .14); border-color: rgba(245, 180, 80, .4); color: #f5c27a; }
body.kunde .vorschau-band a { color: #f5c27a; }

/* Fuß */
body.kunde .fuss, body.kunde .fuss a { color: #4a5a82; }
body.kunde .fuss a:hover { color: #8a9bbf; }
