@charset "UTF-8";

/* =========================================================
   DG-Home: html_onDark.css (modern, dunkel, klar, nicht neon)
   ========================================================= */

:root{
  --bg:        #141a23;
  --surface:   #1b2231;
  --surface2:  #212a3d;
  --border:    #4a5878;

  --text:      #f6f9ff;
  --muted:     #cdd6ea;

  --accent:    #5c8fff;
  --accent2:   #4b79e6;

  --ok:        #4fd8a5;
  --warn:      #f6c85e;
  --bad:       #f17878;
}


/* ---------- Base ---------- */
*{ box-sizing:border-box; }

html, body{
  width:100%;
  height:100%;
  padding:0;
  margin:0;
}

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 20% 0%, rgba(92,143,255,.10), transparent 60%),
    radial-gradient(800px 500px at 90% 20%, rgba(79,216,165,.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ---------- Layout Sections (deine absoluten Boxen bleiben) ---------- */
section{
  -webkit-appearance:none;
  overflow:auto;
  text-align:center;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 4px;
}


main.layout{
  display:flex;
  height:100vh;
  box-sizing:border-box;
}

section.nav{
  flex:0 0 26%;
  padding:6px;
}

section.half{
  flex:0 0 50%;
  padding: 0px 10px 10px 10px;
}

section.right{
  flex:0 0 26%;
  padding:6px;
}

section.main{
  flex:1;
  padding:6px;
  text-align:left;
  display: flex;
  flex-direction: column;
}

section.centerTop  { 
  padding: 0px;
  flex: 0 0 260px; 
  display: flex;
  flex-direction: row;
}
section.centerMain { 
  text-align:left;
  flex: 1;
}

section.grundriss {
  padding: 0px;
  text-align:left;
  flex: 0 0 auto;
}

section.cam {
  padding: 0px;
  text-align:left;
  display: flex;
}

section.center {
  display: flex;
  justify-content: center;  /* Main Axis */
  align-items: center;      /* Cross Axis */
}

section.infos {
  flex:1;
  padding:10px;
  text-align:center;
}


/* Trenner */
.separator {
    margin: 10px 0;
    border-top: 1px solid var(--border);
}

.mobile{
  padding:10px;
  margin:10px;
  width:auto;
}

/* Titel */
.nav-title {
    margin: 0 0 5px 0;
    font-weight: 600;
}

/* Button-Container */
.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.main-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Buttons */
.nav-btn {
    min-height:25px;
    font-size:14px;
    width: 100%;
    min-width: 30px;
}

/* Aktiver Eintrag */
.nav-btn.selected {
    font-weight: 600;
    transform: translateY(1px);
    background: rgba(111,157,255,.22);
}

/* Grid-Layout für kleine Buttons */
.nav-grid{
    display: grid;
    gap: 4px;
    margin-bottom: 6px;
}

.nav-grid-2{ grid-template-columns: repeat(2, 1fr); }
.nav-grid-3{ grid-template-columns: repeat(3, 1fr); }
.nav-grid-4{ grid-template-columns: repeat(4, 1fr); }
.nav-grid-5{ grid-template-columns: repeat(5, 1fr); }

/* Weißer “show”-Block (falls du ihn wirklich brauchst) */
.show{
  background: #f7f9fe;
  color: #181e29;
  overflow:auto;
  border-radius: var(--radius);
}

/* ---------- Header ---------- */
header{
  width:100%;
  height:42px;
  background: linear-gradient(180deg, rgba(111,157,255,.20), rgba(111,157,255,.08));
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ---------- Table Wrapper ---------- */
.table-show{
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  overflow:auto;
  text-align:center;
}

/* ---------- Objects ---------- */
object{
  width:100%;
  height:85%;
  overflow:auto;
  border-radius: var(--radius);
}

/* ---------- Tables ---------- */

table{
  width:100%;
  padding:0;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-collapse: collapse;
}

table.list {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table.list thead th {
    text-align: left;
    padding: 4px 4px;
    Font-size: 14px;
    font-weight: 400;
    color: #ffffff;

    background: linear-gradient(
        180deg,
        rgba(78,140,255,.25),
        rgba(59,116,230,.15)
    );

    border-bottom: 2px solid rgba(59,116,230,.20);
}

table.list thead tr:first-child th {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
}

table.list td {
    padding: 6px;
    border-bottom: 1px solid rgba(255,255,255,.12);
    vertical-align: middle;
}

table.list tr.row-click {
    cursor: pointer;
}

table.list tr.row-click:hover {
    background: rgba(92,143,255,0.12);
}

table.list tr.row-click:focus {
    outline: none;
    background: rgba(111,157,255, 0.25);
}

table.list tr.row-click.active {
    background: rgba(92,143,255,0.28);
    font-weight: 600;
}

table.list tr.saved td{
  background: rgba(111,157,255,.14);
}

table.list tr.saved{
  outline: 2px solid rgba(111,157,255,.45);
  outline-offset: -2px;
}

table.list tr.row-locked { opacity: .45; cursor: not-allowed; }
table.list tr.row-locked:hover { background: inherit; }

table.list tr.row-ready {
  background-color: rgba(88,216,168, 0.12);
}

table.list tr.row-ready:hover {
  background-color: rgba(88,216,168, 0.18);
}

table.list tr.row-error td {
  background: rgba(243,138,138,.22);
}

table.list tr.row-warn td {
  background: rgba(247,207,122,.28);
}


#btnNew {
    margin-top: 12px;
    width: 100%;
    align:left;
}

th, td{
  padding: 3px 4px;
  border-style: solid;
  border-color: var(--border);
  border-width: 0;
}

tr:last-child td{ border-bottom-width:0; }

th{
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;

  background: linear-gradient(
    180deg,
    rgba(78,140,255,.55),
    rgba(59,116,230,.70)
  );

  text-align:center;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-color: rgba(78,140,255,.65);
}

/* Zeilen-Hover */
tr:hover td{
  background: rgba(111,157,255,.08);
}


.list-wrap {
    display: inline-block;   /* schrumpft auf Tabellenbreite */
}

.list-wrap table.list {
    width: auto;             /* wichtig */
}

.list-wrap .btn-neu {
    display: block;
    width: 100%;             /* = Breite der Tabelle */
    margin-top: 10px;
}



/* ---------- Links ---------- */
a:link, a:visited{
  color: #e3ebff;
  text-decoration:underline;
}
a:hover{
  text-decoration:underline;
}
a:active{
  color:#ffffff;
}

/* ---------- Info / Warnung ---------- */
.info, .warnung{
  -webkit-appearance:none;
  overflow:auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  width: min(640px, 86vw);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  margin: 20px auto auto;
}

.info{
  background: linear-gradient(180deg, rgba(88,216,168,.22), rgba(88,216,168,.10));
}

.warnung{
  background: linear-gradient(180deg, rgba(243,138,138,.25), rgba(243,138,138,.12));
}

/* ---------- Buttons ---------- */
button{
  -webkit-appearance:none;
  appearance:none;
  cursor:pointer;

  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(30,38,55,0.85);
  color: var(--text);

  font-size: 12px;
  padding: 2px 2px;
  min-height: 22px;
  line-height: 1.2;
  text-align: center;

  transition: background .15s ease,
              border-color .15s ease,
              transform .05s ease,
              box-shadow .15s ease;
}


button:hover, button:focus-visible{
  background: rgba(92,143,255,.25);
  border-color: rgba(92,143,255,.55);
  box-shadow: 0 0 0 3px rgba(92,143,255,.18);
  outline:none;
}

button:active{
  transform: translateY(1px);
  background: rgba(111,157,255,.22);
}

button:disabled{
  cursor:not-allowed;
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.08);
  color: rgba(243,246,251,.45);
}

/* Bildbuttons */
button.img_small{
  width:196px;
  height:131px;
  background-size:100% 100%;
  margin:6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
}

button.img_home{
  width:400px;
  height:265px;
  background-size:100% 100%;
  margin:6px;
  border-radius: 14px;
  border: 0;
  box-shadow: var(--shadow);
}

/* Deine Button-Größenklassen bleiben */
.B00{min-height:25px;width:100%;}
.B01{min-height:25px;width:30px;font-size:10px;}
.B02{min-height:32px;width:70px;font-size:10px;}
.B03{min-height:25px;width:40px;}
.B04{min-height:25px;width:26px;}
.B05{min-height:25px;width:120px;}
.B06{min-height:25px;width:80px;}
.B07{min-height:25px;width:10%;}
.BOK{min-height:25px;width:38px;}

/* ---------- Inputs / Feld ---------- */
input.feld,
select.feld{
  -webkit-appearance:none;
  width:100%;
  height:25px;

  background: rgba(30,38,55,.90);
  border: 1px solid var(--border);
  border-radius: 5px;

  color: var(--text);
  font-size: 13px;
  text-align:left;

  padding: 0 8px;
  line-height: 23px; 

  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.feld:hover, .feld:focus{
  outline:none;
  background: rgba(255,255,255,.10);
  border-color: rgba(92,143,255,.65);
  box-shadow: 0 0 0 3px rgba(92,143,255,.18);
}

.feld.readonly {
  background: rgba(255,255,255,.06);
  padding: 8px;
  white-space: pre-line;
}

textarea.feld{
  width: 100%;
  min-height: 80px;
  padding: 8px 10px;

  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 5px;

  color: var(--text);
  font-size: 13px;
  line-height: 1.4;

  resize: none;
}



/* ---------- Farbklassen (deutlich, aber elegant) ---------- */
.Green{
  background: rgba(88,216,168,.25);
  border: 1px solid rgba(88,216,168,.45);
  color: var(--text);
}
.Red{
  background: rgba(243,138,138,.25);
  border: 1px solid rgba(243,138,138,.45);
  color: var(--text);
}
.Blue{
  background: rgba(111,157,255,.25);
  border: 1px solid rgba(111,157,255,.45);
  color: var(--text);
}

.Grey1{
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--text);
}
.Grey2{
  background: rgba(255,255,255,.20);
  border: 1px solid rgba(255,255,255,.30);
  color: var(--text);
}
.Yellow{
  background: rgba(247,207,122,.50);
  border: 1px solid rgba(247,207,122,.75);
  color: var(--text);
}

.Orange{
  background: rgba(230,150,70,.40);
  border: 1px solid rgba(230,150,70,.50);
  color: var(--text);
}

.Hellblau{
  background: rgba(160,170,255,.25);
  border: 1px solid rgba(160,170,255,.45);
  color: var(--text);
}

.Alarm_Red{
  background: #ff3b3b;
}

.div_Red{
  background: rgba(243,138,138,.45);
}

.div_Green{
  background: rgba(88,216,168,.45);
}

.div_Yellow{
  background: rgba(247,207,122,.45);
}



/* ---------- LED Farben ---------- */

.LED_Red{
  background: #ff3b3b;
  box-shadow:
    0 0 6px rgba(255,59,59,.9),
    0 0 14px rgba(255,59,59,.7),
    0 0 22px rgba(255,59,59,.4);
}

.LED_Green{
  background: #2bff9e;
  box-shadow:
    0 0 6px rgba(43,255,158,.9),
    0 0 14px rgba(43,255,158,.7),
    0 0 22px rgba(43,255,158,.4);
}

.LED_Yellow{
  background: #ffd84a;
  box-shadow:
    0 0 6px rgba(255,216,74,.9),
    0 0 14px rgba(255,216,74,.7),
    0 0 22px rgba(255,216,74,.4);
}

.LED_Blue{
  background: #5c8fff;
  box-shadow:
    0 0 6px rgba(92,143,255,.9),
    0 0 14px rgba(92,143,255,.7),
    0 0 22px rgba(92,143,255,.4);
}

.LED_Dunkel{
  background: #1a1f2b;
  box-shadow:
    inset 0 0 4px rgba(0,0,0,.8),
    0 0 4px rgba(0,0,0,.5);
}

/* ---------- Range Slider (modernisiert, ohne Kantenkrampf) ---------- */
input[type=range]{
  -webkit-appearance:none;
  width: 120px;
  vertical-align: middle;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track{
  height: 10px;
  background: rgba(255,255,255,.10);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
}

input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  cursor:pointer;
  height: 18px;
  width: 18px;
  border-radius: 999px;
  background: rgba(243,246,251,.85);
  border: 2px solid rgba(111,157,255,.50);
  margin-top: -5px;
}

input[type=range]::-webkit-slider-thumb:hover{
  border-color: rgba(111,157,255,.75);
}

/* MS Legacy bleibt ok, aber ohne extra Kram: */
input[type=range]::-ms-track{ background: transparent; border-color: transparent; color: transparent; }

/* ---------- Rotation ---------- */
.senkrecht-l{
  transform-origin: top left;
  transform: rotate(-90deg);
}
.senkrecht-r{
  transform-origin: top right;
  transform: rotate(-90deg);
}

/* ---------- LED ---------- */
.LED{
  display:inline-block;
  vertical-align:text-bottom;
  height:12px;
  width:12px;
  border-radius:50%;
  box-shadow: 0 0 0 2px rgba(0,0,0,.25) inset;
}

/* ---------- DG-Home Dialog (global) ---------- */

dialog.mainDlg{
  border: 0;
  padding: 14px 16px;
  width: min(520px, 92vw);
  max-width: 520px;
  border-radius: 12px;

  background: rgba(27,34,49,.98);
  color: var(--text);

  box-shadow: 0 12px 40px rgba(0,0,0,.60);
  border: 1px solid var(--border);
  font-family: inherit;
}

dialog.mainDlg::backdrop{
  background: rgba(0,0,0,.75);
}

dialog.mainDlg > form > div:first-child{
  font-size: 1.05em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

/* falls du irgendwo noch inline font-size:12px drin hast */
dialog.mainDlg div[style*="font-size:12px"]{
  color: var(--muted);
}

/* ---------- Felder ---------- */
.mainDlg label{
  display: block;
  margin-bottom: 10px;     /* Abstand zum nächsten Feld */
  font-size: 0.9em;
}

.mainDlg label > input,
.mainDlg label > select{
  margin-top: 4px;         /* Abstand Text → Feld */
}

/* Inputs/Select/Textarea */
.mainDlg .feld{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
}

.mainDlg .feld:focus{
  outline: none;
  border-color: rgba(111,157,255,.50);
  box-shadow: 0 0 0 3px rgba(111,157,255,.12);
}

.mainDlg .feld.readonly {
  background: rgba(255,255,255,.06);
  padding: 8px;
  white-space: pre-line;
}

.mainDlg textarea.feld{
  resize: none;
}

/* Checkbox hübscher: Label nicht als Grid-Feld */
.mainDlg label > input[type="checkbox"]{
  width: auto;
  justify-self: start;
}
dialog.mainDlg textarea.feld{
  resize: none;
  line-height: 1.4em;
}

dialog.mainDlg form > div:last-child{
  margin-top: 14px;
}

/* ---------- Buttonbar ---------- */
.mainDlg form > div{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Buttons */
dialog.mainDlg .ButtonGrey{
  background: rgba(255,255,255,.10);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  cursor: pointer;
  width: 100px;
}
dialog.mainDlg .ButtonGrey:hover{
  background: rgba(255,255,255,.14);
}

dialog.mainDlg .ButtonGreen{
  background: rgba(88,216,168,.22);
  color: var(--text);
  border: 1px solid rgba(88,216,168,.35);
  border-radius: 9px;
  cursor: pointer;
  width: 100px;
}
dialog.mainDlg .ButtonGreen:hover{
  background: rgba(88,216,168,.28);
}

.mainDlg button.ButtonGrey[id$="_del"]{
  border-color: rgba(243,138,138,.35);
  background: rgba(243,138,138,.12);
}

.mainDlg button.ButtonGrey[id$="_del"]:hover{
  border-color: rgba(243,138,138,.55);
  background: rgba(243,138,138,.18);
}

/* Textblock im Dialog */
.mainDlgText{
  padding: 10px 12px;
  color: var(--text);
  white-space: pre-line;
}

.mainDlg select.feld{
  height: 22px;
  line-height: 22px;
  padding: 0 10px;
}

.mainDlg select.feld option{
  color: #000;               /* Optionen im Dropdown lesbar */
}


/* ---------- Dialog Header ---------- */
.mainDlgHeader{
  margin: -14px -16px 10px -16px;   /* überdeckt Dialog-Padding */
  padding: 12px 16px 10px 16px;
  background: linear-gradient(
    180deg,
    rgba(92,143,255,.35),
    rgba(92,143,255,.18)
  );
  border-bottom: 1px solid rgba(255,255,255,.12);
  border-radius: 12px 12px 0 0;
}

.mainDlgTitle{
  margin: 0;
  font-size: 1.1em;
  font-weight: 700;
  color: var(--text);
}



/* =========================================
   Select / Option – Dark Mode kompatibel
   ========================================= */

select option{
  background-color: var(--surface2);
  color: var(--text);
}

select:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(111,157,255,.15);
}

/* ---------- Log-Ausgabe ---------- */

.log-output{
  margin-top: 10px;
  padding: 12px;

  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;

  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;

  white-space: pre-wrap;
  overflow: auto;
  max-height: 520px;
}

.log-line-error{
  background: rgba(243,138,138,.25);
  padding: 2px 4px;
  border-radius: 4px;
}

.log-box{
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(0,0,0,.35);
  padding: 10px;
  max-height: 520px;
  overflow: auto;
}

.log-box pre{
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  color: var(--text);
}

.log-actions{
  margin-top: 12px;
}

.stars {
  color: #f7cf7a;
  font-size: 1.1em;
  letter-spacing: 1px;
}

.rezept-bemerkung {
  color: var(--muted);
  font-size: 0.9em;
}

.wlan-bar{
    --p: 0%;
    width: 80px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    position: relative;

    /* Der Verlauf läuft IMMER über 100% */
    background: linear-gradient(to right,
        #ff3b3b 0%,
        #ffd900 50%,
        #00ff66 100%
    );
}

/* Hier kommt der Trick: wir decken den Rest einfach ab */
.wlan-bar::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    left: var(--p);
    right: 0;

    background: #2b2b2b; /* dein "leer"-Hintergrund */
}

.wlan-text{
    font-size: 0.8em;
    color: #ccc;
    margin-left: 6px;
}

.temp-bar{
    --p: 0%;
    width: 80px;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    position: relative;

    /* Fester Verlauf über 100% */
    background: linear-gradient(
        to right,
        #0040ff 0%,      /* kalt */
        #00d4ff 25%,     /* kühl */
        #00ff99 50%,     /* angenehm */
        #ffcc00 75%,     /* warm */
        #ff3300 100%     /* heiß */
    );
}

.temp-bar::after{
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;

    left: var(--p);
    right: 0;

    background: #2b2b2b; /* leer */
}

.temp-text{
    font-size: 0.8em;
    color: #ccc;
    margin-left: 6px;
}

a.controller-link {
    color: #8fd3ff;
    text-decoration: none;
}

a.controller-link:hover {
    text-decoration: underline;
    color: #ffffff;
}


#diagrammDlg{
  border: none;
  padding: 0px;
  background: transparent;
}


#diagrammContent{
  padding: 0;
  margin: 0;
}

#diagrammContent img{
  display: block;
  width: auto;
  height: auto;

  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
}

/* Backdrop bleibt wie gehabt */
#diagrammDlg::backdrop{
  background: rgba(0,0,0,0.6);
}


/* ---------- Sunset-Ausgabe ---------- */


.sun-box{
  background-image: url("../symbole/sun_set.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;

  position: relative;
  overflow: hidden;

  color: #ffffff;
}

/* dunkle Leseschicht */
.sun-box::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
      180deg,
      rgba(0,0,0,.35),
      rgba(0,0,0,.55)
  );
}

/* Inhalt über Overlay */
.sun-box > *{
  position:relative;
  z-index:1;
}

.sun-row{
  display:flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.sun-label{
  font-weight: 500;
}

.sun-time,
.place-time{
  font-weight: 600;
}

/* ---------- Wertelisten-Ausgabe ---------- */

.werte-box{
  margin-top: 6px;
}

.werte-row{
  display:flex;
  justify-content: space-between;
  padding: 2px 0;
}

.werte-name{
  text-align:left;
}

.werte-value{
  text-align:right;
  font-weight:500;
}

.dlg-link{
  cursor:pointer;
  color: #e3ebff;
  text-decoration:none;
}

.dlg-link:hover{
  text-decoration:underline;
}

.cam-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.cam-img {
    max-height: 120px;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.cam-img-home {

    width: 100%;
    height: auto;
    cursor: pointer;
}

.img-dialog {
    border: none;
    padding: 0;
    background: rgba(0,0,0,0.9);
}

.img-dialog::backdrop {
    background: rgba(0,0,0,0.7);
}

#dialogImg {
    max-width: 95vw;
    max-height: 95vh;
    display: block;
    margin: auto;
}

.grundriss-wrapper {
  position: relative;
  display: inline-block;
  padding: 50px 50px 20px 50px;
}

.grundriss-wrapper img {
  display: block; 
  opacity: .40
}

.grundriss-wrapper .layover {
  position: absolute;
  font-size: 10px;
  text-align: center;
  padding: 2px 4px; 
}
.raum {
  font-size: 16px;
  font-weight: 600;
}
.raumwert {
font-size: 14px;
}

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    background-image: var(--welcome-bg);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 45vh;
}

.welcome-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25); /* dezentes Lesbarkeits-Overlay */
}

.welcome-overlay {
    position: relative;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 6px 25px rgba(0,0,0,0.6);
}

.welcome-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 3vw;
    font-weight: 300;
    margin-bottom: 1rem;
}

.welcome-names {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 5vw;
    font-weight: 600;
    margin-bottom: 2rem;
}

.welcome-footer {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 2.5vw;
    font-weight: 300;
}

.welcome-select{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

.welcome-select{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.welcome-select{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
}

.welcome-choice{
    display:flex;
    flex-direction:column;
    align-items:center;
    cursor:pointer;
}

.welcome-preview{
    width:160px;
}

.welcome-name{
    margin-top:6px;
    font-size:14px;
    opacity:.8;
}

.welcome-text-form{
    display:flex;
    flex-direction:column;
    gap:10px;
    max-width:400px;
}

.welcome-text-form label{
    display:flex;
    flex-direction:column;
}