/* =========================
   Root & Base
========================= */

:root{
  /* Farben & Theme */
  --bg: #f6f8fb;
  --panel: rgba(255,255,255,.65);
  --panel-2: rgba(255,255,255,.52);
  --text: #0f172a;
  --muted:#4b5563;
  --primary:#1f2937;
  --primary-2:#111827;
  --accent:#374151;
  --error:#b91c1c;
  --ok:#166534;
  --button-green:#6E9148;
  --ring: 0 0 0 3px rgba(31,41,55,.25);
  color-scheme: light;

  /* Rhythmus & Layout */
  --gap-section: 16px;
  --gap-card: 18px;

  /* Seitenränder / Safe-Area */
  --edge-left: 10px;
  --edge-right: 10px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  letter-spacing:.2px;
}

.parallax-bg {
  position: fixed;
  inset: 0;
  background-color: #dce5d3;
  background-image: url("wallpaper_full.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  z-index: -1;
  will-change: background-position;
}

@media (max-width: 640px) {
  .parallax-bg {
    background-image: url("wallpaper_full.png");
    background-size: cover;
    background-position: center center;
  }
}

body{
  position: relative;
  padding-top: 32px;
  min-height: 100svh;
}

/* =========================
   Layout: Container & Grid
========================= */

.container{
  max-width:640px;
  margin:0 auto;
  padding:0 16px;
}

/* Fallback für Browser ohne env() / max() */
.container{
  margin-left: var(--edge-left);
  margin-right: var(--edge-right);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Bevorzugt: Safe-Area (Notch) berücksichtigen */
@supports (margin: max(0px)){
  .container{
    margin-left:  max(var(--edge-left),  env(safe-area-inset-left));
    margin-right: max(var(--edge-right), env(safe-area-inset-right));
  }
}

.grid{
  display:grid;
  gap: var(--gap-section);
}

.grid.cols-2{
  grid-template-columns: repeat(2, minmax(0,1fr));
}

.grid.cols-3{
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.card.grid{
  gap: var(--gap-card);
}

/* Dropdown darf nicht von Cards/Fieldsets überdeckt oder "geclippt" werden */
.card,
fieldset{
  overflow: visible;
}

/* Wenn Icon-Dropdown offen ist: extrem nach vorne holen */
.icon-select.open{
  z-index: 999999 !important;
}

.grid > *{
  justify-self: stretch;
  width: 100%;
}

.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content: center;
}

.row > *{
  flex:1 1 100%;
  min-width:0;
}

.container > section + .card{
  margin-top: var(--gap-section);
}

.container > .card + .card{
  margin-top: var(--gap-section);
}

/* =========================
   Header
========================= */

header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
  margin-bottom:20px;
}



.title{
  font-size: clamp(30px, 3vw, 30px);
  font-weight:800;
}

.subtitle{
  color:var(--muted);
  font-size:14px;
}

/* =========================
   Cards & Glassmorphism
========================= */

input[type="radio"]{
  transform: scale(2);  
  margin-right: 12px;
}

label{
  padding: 12px 8px;
  display: flex;
  align-items: center;
}

.checks .opt{
  display: grid;
  gap: 6px;
}

.explain{
  margin-left: 28px;      /* unter dem Label eingerückt */
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.95rem;
}

.card{
  position:relative;
  background:linear-gradient(180deg,var(--panel), var(--panel-2));
  border:1px solid rgba(0,0,0,.35);
  border-radius:18px;
  padding:22px;
  margin-bottom:20px;
  box-shadow: inset 0 3px 0 rgba(255,255,255,.10), 0 10px 26px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* ✅ FIX: nicht auf 0 festnageln -> macht Stacking/Übermalen kaputt */
  z-index: auto;
}

/* ✅ FIX: wenn Card hochgezogen wird, richtig hoch */
.card.card--raise{
  z-index: 999999 !important;
}
.card.grid.card--raise{
  z-index: 999999 !important;
}

/* ✅ FIX: Overlay darf Content nicht übermalen */
.card::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  padding:1px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.28) 60%, rgba(255,255,255,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;

  /* ✅ FIX: unter Content */
  z-index: 0;
}

/* ✅ FIX: Content über ::before */
.card > *{
  position: relative;
  z-index: 1;
}

/* =========================
   Fieldsets & Forms
========================= */

fieldset{
  position: relative;
  z-index: 0;

  border:1px solid rgba(0,0,0,.35);
  border-radius:16px;
  padding:16px;
  margin:0;
  background: rgba(255,255,255,.45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 6px 18px rgba(0,0,0,.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(4px);
}
fieldset.fs--raise{
  z-index: 999999 !important;
}
legend{
  padding:0 8px;
  color:var(--primary-2);
  font-weight:700;
  letter-spacing:.3px;
}

.grid.cols-3 > #strasse{
  grid-column: 1 / -1;
}

#strasse,
#hausnr,
#ort,
#plz{
  margin-top: 10px;
  margin-bottom: 10px;
}

/* Standortangaben kompakt und klar gruppieren */
.location-grid{
  gap:10px 12px;
}

.location-grid label{
  padding:4px 8px 2px;
}

.location-grid #strasse,
.location-grid #hausnr,
.location-grid #ort,
.location-grid #plz{
  margin-top:2px;
  margin-bottom:4px;
}

.location-address-street{
  gap:4px;
}

.location-address-stack{
  display:grid;
  gap:6px;
}

.location-address-stack #hausnr,
.location-address-stack #ort{
  margin:0;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="password"],
select{
  width:100%;
  background:#fff;
  color:#0f172a;
  border:1px solid #cfd4dc;
  border-radius:12px;
  padding:12px 12px;
  outline:none;
  transition:.2s border, .2s box-shadow;
  font-size:16px;
}

input:focus,
select:focus{
  border-color:#9aa4b2;
  box-shadow: var(--ring);
}

.cust-modal input[type="email"]{
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  box-sizing: border-box;
  display: block;

  /* anpassen falls deine Inputs anders sind */
  padding: 14px 14px;
  border-radius: 14px;

  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.75);

  font-size: 16px;
  line-height: 1.2;
  box-shadow: none;
}

.hint{
  font-size:12px;
  color:#6b7280;
}

/* Year-Input (nur Jahr) */
.year-input::-webkit-inner-spin-button,
.year-input::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

.year-input{
  -moz-appearance: textfield;
  appearance: textfield;
  touch-action: pan-x;
}

/* Year-Picker-Popup */
.yp-pop{
  position: fixed;
  z-index: 9999;
  min-width: 240px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,.25);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
  animation: ypIn .12s ease-out;
  touch-action: none;
}

.yp-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 10px;
  background:linear-gradient(180deg, rgba(243,244,246,.9), rgba(243,244,246,.7));
  border-bottom:1px solid #e5e7eb;
  font-weight:800;
  color:#111827;
}

.yp-navbtn{
  border:1px solid #d1d5db;
  background:#f3f4f6;
  color:#111827;
  border-radius:10px;
  padding:6px 10px;
  cursor:pointer;
  font-weight:700;
}

.yp-navbtn:hover{
  background:#e9ecef;
}

.yp-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:10px;
}

.yp-year{
  padding:10px 0;
  text-align:center;
  border-radius:10px;
  cursor:pointer;
  border:1px solid #d1d5db;
  background:#fff;
  color:#111827;
  font-weight:700;
}

.yp-year:hover{
  background:#f3f4f6;
}

.yp-year.is-out{
  opacity:.5;
  cursor:not-allowed;
}

.yp-year.is-current{
  outline:2px solid #9aa4b2;
}

@keyframes ypIn{
  from{ transform: translateY(-4px); opacity: .8; }
  to{   transform:none; opacity:1; }
}

/* ===== YEAR-ONLY Date-Felder (date-year) ===== */

.year-input{
  width:100%;
  background:#fff;
  color:#111827;
  border:1px solid #cfd4dc;
  border-radius:8px;
  padding:8px 10px;
  font-size:16px;
  font-variant-numeric:tabular-nums;
  text-align:center;
}

.date-year{
  width:100%;
  background:#fff;
  color:#111827;
  border:1px solid #cfd4dc;
  border-radius:8px;
  padding:8px 10px;
  font-size:16px;
  font-variant-numeric: tabular-nums;
  min-width:9ch;
  box-sizing:border-box;
  text-align:center;
}

.date-year::-webkit-datetime-edit{
  padding:0 6px;
}

.date-year::-webkit-datetime-edit-fields-wrapper{
  display:flex;
}

.date-year::-webkit-datetime-edit-month-field,
.date-year::-webkit-datetime-edit-day-field,
.date-year::-webkit-datetime-edit-text{
  display:none;
}

.date-year::-webkit-inner-spin-button,
.date-year::-webkit-clear-button{
  display:none;
}

/* Universelles Overlay: zeigt nur das Jahr (zentriert) */
.yo-wrap{
  position:relative;
}

.yo-wrap .yo-display{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  pointer-events:none;
  user-select:none;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:center;
  font-variant-numeric: tabular-nums;
}

.yo-active{
  color:transparent !important;
  caret-color:auto;
}

/* =========================
   Segmented Controls & Checks
========================= */

.segmented{
  display:inline-flex;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:4px;
  overflow:auto;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
  margin-inline:auto;
}

.segmented button{
  border:none;
  background:transparent;
  color:#6b7280;
  padding:10px 14px;
  border-radius:10px;
  cursor:pointer;
  font-weight:700;
}

.segmented button.active{
  background:linear-gradient(180deg,#eceff3,#e5e7eb);
  color:#111827;
  box-shadow: inset 0 0 0 1px #cfd4dc;
}

.checks{
  display:grid;
  gap:8px;
  grid-template-columns:1fr;
}

.checks label{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
}

.checks input{
  accent-color:#111827;
}

/* =========================
   Buttons & Inline Helpers
========================= */

.footer-actions{
  display:flex;
  justify-content:center;
  gap:var(--gap-section);
  flex-wrap:wrap;
}

.footer-actions .btn{
  width:100%;
  max-width:220px;
  min-height:48px;
  flex: 0 0 auto;  
  padding:12px 20px;
  line-height:1.2;
  font-size:15px;
  background:var(--button-green);
  color:#052e16;
  border-color:var(--button-green);
  font-weight:700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px rgba(21,128,61,.22);
}

.footer-actions a.btn{
  text-decoration:none;
}

.footer-actions .btn:hover{
  background:var(--button-green);
  color:#052e16;
}

.footer-actions .btn.primary{
  background:var(--button-green);
  color:#fff;
  border-color:var(--button-green);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 14px 28px rgba(21,128,61,.34);
}

.footer-actions .btn.primary:hover,
.footer-actions .btn.primary:active{
  background:var(--button-green);
}

#btnSave{
  width:min(100%,400px);
  max-width:400px;
  white-space:nowrap;
}

.btn{
  max-width:220px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 20px;
  line-height:1.2;
  border-radius: 12px;
  border:1px solid #d1d5db;
  background:#e5e7eb;
  color:#111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 10px 20px rgba(0,0,0,.18);
}

.btn:hover{
  background:#e4e6ea;
}

.btn:active{
  transform: translateY(1px);
}

.btn:focus{
  outline:none;
  box-shadow: var(--ring);
  border-color:#9aa4b2;
}

.btn:disabled{
  opacity:.6;
  cursor:not-allowed;
  transform:none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 10px rgba(0,0,0,.10);
}

.btn.primary{
  background:#111827;
  color:#fff;
  border-color:#111827;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 26px rgba(0,0,0,.25);
}

.btn.primary:hover{
  background:#0e1422;
}

.btn.primary:active{
  background:#0b101b;
}

.btn.ghost{
  background: linear-gradient(180deg,var(--panel), var(--panel-2));
  color: var(--text);
  border: 1px solid rgba(0,0,0,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 18px rgba(0,0,0,.18);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn.ghost:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,.58));
}

.inline{
  display:flex;
  align-items:center;
  gap:10px;
}

#customerModal .inline input[type="checkbox"]{
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.pill{
  padding:2px 8px;
  border-radius:999px;
  border:1px solid #d1d5db;
  color:#374151;
  font-size:11px;
  background:#f3f4f6;
}

/* =========================
   Tabelle
========================= */

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-height: 200px;
  background: rgba(255,255,255,.65);
  border:1px solid rgba(0,0,0,.35);
  border-radius:12px;
  overflow:hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.22);
  table-layout: fixed;
  display:table;
}

.table th,
.table td{
  padding:10px 12px;
  border-bottom:1px solid #eef0f3;
  text-align:left;
  font-size:15px;
  color:#111827;
  word-wrap:break-word;
}

.table thead th{
  background: rgba(243,244,246,.7);
  color:#111827;
  font-weight:700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tr:last-child td{
  border-bottom:none;
}

.table .muted{
  color:#6b7280;
  font-weight:600;
  font-size:12px;
}

.table input[type="date"],
.table input[type="number"]{
  width:100%;
  background:#fff;
  color:#111827;
  border:1px solid #cfd4dc;
  border-radius:8px;
  padding:8px 10px;
  font-size:16px;
}

/* Erste Spalte ausblenden */
.table thead th:first-child,
.table tbody td:first-child{
  display: none;
}

/* =========================
   Icon-Select
========================= */

.icon-select{
  position:relative;
  z-index:1;
}

.icon-select .visually-hidden-select{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}

.icon-select__btn{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  color:var(--text);
  border:1px solid #cfd4dc;
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  text-align:left;
  font-size:18px;
}

.icon-select__btn:focus{
  outline:none;
  box-shadow: var(--ring);
  border-color:#9aa4b2;
}

.icon-select__btn img{
  width:20px;
  height:20px;
  object-fit:contain;
  flex:0 0 20px;
}

.icon-select__btn .label{
  flex:1;
}

.icon-select__list{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  background: rgba(255,255,255,.95);
  border:1px solid rgba(0,0,0,.25);
  border-radius:12px;
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  padding:6px;

  /* ✅ FIX: hoch genug */
  z-index: 999999;

  display:none;
  max-height:260px;
  overflow:auto;
  backdrop-filter: blur(4px);
}

.icon-select__item{
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:10px;
  padding:8px 10px;
  cursor:pointer;
}

.icon-select__item:hover{
  background:#f3f4f6;
}

.icon-select__item img{
  width:40px;
  height:40px;
  object-fit:contain;
  flex:0 0 20px;
}

.icon-select.open .icon-select__list{
  display:block;
}

/* =========================
   Utilities
========================= */

.vh-center{
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 24px;
}

.centered{
  width: min(720px, 100%);
  margin-inline: auto;
}

.mx-auto{
  margin-inline: auto;
  display: block;
}

.ee-card .row{
  margin-top:20px;
  justify-content: center !important;
  flex-wrap: wrap;
  gap: 12px;
}

.ee-card .segmented{
  max-width: 100%;
  overflow-x: auto;
}

/* =========================
   Fallbacks & Motion
========================= */

@supports not ((backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px))){
  .card,
  fieldset,
  .table{
    background:#ffffff;
  }
}

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* =========================
   Responsive: Breakpoints
========================= */

/* <= 900px */
@media (max-width: 900px){
  .table th,
  .table td{
    padding:8px 10px;
    font-size:14px;
  }
}

/* <= 880px */
@media (max-width: 880px){
  .grid.cols-2,
  .grid.cols-3{
    grid-template-columns: 1fr;
  }
}

/* <= 700px */
@media (max-width: 700px){
  .table thead th:first-child,
  .table tbody td:first-child{
    width:48px;
  }

  .table thead th:nth-child(2),
  .table thead th:nth-child(3),
  .table tbody td:nth-child(2),
  .table tbody td:nth-child(3){
    min-width:120px;
  }

  .table thead th:nth-child(4),
  .table tbody td:nth-child(4){
    min-width:110px;
  }

  .table thead th:nth-child(5),
  .table tbody td:nth-child(5){
    min-width:110px;
  }
}

/* <= 640px: allgemeines Mobile-Layout */
@media (max-width: 640px){
  .container{
    padding: 0 12px;
  }

  header{
    padding: 0 8px;
  }

  .logo{
    width: 88px;
    height: 88px;
  }

  .title{
    font-size: clamp(28px, 5vw, 26px);
  }

  header,
  .row,
  .footer-actions{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
  }

  .title,
  legend,
  h1, h2, h3, h4{
    text-align:center;
    width:100%;
  }

  label,
  .hint{
    text-align:center;
    width:100%;
  }

  .location-grid{
    gap:8px;
  }

  .location-grid label{
    padding:2px 8px 0;
  }

  .location-address-stack{
    gap:6px;
  }

  input[type="text"],
  input[type="number"],
  input[type="date"],
  select{
    width:100%;
    text-align:center;
    text-align-last:center;
  }

  .segmented{
    justify-content:center;
  }

  .icon-select__btn{
    justify-content:center;
    text-align:center;
  }

  .icon-select__btn .label{
    flex:0 1 auto;
  }

  .btn{
    width:100%;
    max-width:320px;
    margin-left:auto;
    margin-right:auto;
  }

  .footer-actions{
    gap:12px;
    flex-direction:column;
    align-items:stretch;
  }

  .card{
    padding:18px;
  }

  fieldset{
    padding:12px;
    border-radius:14px;
  }

  .table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }

  .table th,
  .table td{
    white-space:nowrap;
    text-align:center;
  }

  .icon-select__list{
    position: fixed;
    left: 4vw;
    right: 4vw;
    bottom: 24px;
    top:auto;
    max-height: 50vh;
    padding: 8px;

    /* ✅ FIX: auch mobil sicher oben */
    z-index: 999999 !important;
  }

  /* ✅ FIX: auch mobil nicht niedriger setzen */
  .icon-select.open{
    z-index: 999999 !important;
  }

  .icon-select__item{
    padding:10px 12px;
  }

  .yp-pop{
    left: 4vw !important;
    right: 4vw !important;
    min-width: 0;
  }

  .yp-grid{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* <= 480px: kleines Mobile-Finetuning */
@media (max-width: 480px){
  .logo{
    width: 76px;
    height: 76px;
  }

  .segmented{
    padding:3px;
  }

  .segmented button{
    padding:8px 10px;
  }

  .card{
    padding:14px;
    border-radius:16px;
  }

  label{
    font-size:14px;
  }

  .hint{
    font-size:14px;
  }
}

/* >= 821px: Row-Items aufteilen */
@media (min-width: 821px){
  .row > *{
    flex:1;
  }
}

/* >= 1024px: großes Layout */
@media (min-width: 1024px){
  .container{
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* =========================
   FINAL SAFETY OVERRIDE (ganz unten)
   Damit garantiert nichts mehr drüber malt
========================= */
/* === Dropdown-FIX: Card mit offenem Menü nach vorne === */
.card{
  position: relative;     /* wichtig */
  z-index: 0;             /* Basis-Layer für alle Cards */
}

.card.card--raise{
  z-index: 999999 !important; /* offene Card ganz nach vorne */
}

/* Card-Overlay darf Content nicht übermalen */
.card::before{ z-index: 0; }
.card > *{ position: relative; z-index: 1; }

/* Dropdown selbst */
.icon-select{ position: relative; z-index: 1; }
.icon-select__list{ z-index: 999999 !important; }

/* =========================
   Cookie Hinweis
========================= */

.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  z-index: 12000;
}
.cookie-banner[aria-hidden="false"]{
  display:block;
}

.cookie-card{
  max-width: 920px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.74));
  border: 1px solid rgba(0,0,0,.22);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 18px 50px rgba(0,0,0,.26);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cookie-title{
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 6px;
}

.cookie-text{
  font-size: 14px;
  line-height: 1.45;
  color: #1f2937;
}

.cookie-text a{
  color: inherit;
  text-decoration: underline;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 12px;
}

.cookie-actions .btn{
  max-width: none;
}

.cookie-mini{
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-mini:focus-visible{
  outline: 3px solid rgba(31,41,55,.18);
  outline-offset: 4px;
  border-radius: 8px;
}

.maintenance-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999999;
}
.maintenance-overlay[aria-hidden="false"]{ display:flex; }
.maintenance-panel{
  background: rgba(255,255,255,.92);
  color:#111827;
  border-radius: 18px;
  border:1px solid rgba(0,0,0,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
  padding: 20px 22px;
  text-align: center;
  max-width: 520px;
}
.maintenance-logo{
  display: block;
  width: min(300px, 72vw);
  height: auto;
  margin: 0 auto 14px;
}
.maintenance-icon{
  font-size: 28px;
  font-weight: 900;
  width: 48px;
  height: 48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(17,24,39,.08);
  border: 1px solid rgba(17,24,39,.18);
  margin-bottom: 10px;
}
.maintenance-icon svg{
  width: 26px;
  height: 26px;
  fill: #111827;
}
.maintenance-title{
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 6px;
}
.maintenance-text{
  font-size: 14px;
  line-height: 1.35;
  opacity: .85;
}

/* =========================
   FIX: Logo mobil skalieren + sauber zentrieren
========================= */

.header-centered,
header{
  align-items: center;
}

.logo{
  display: flex;
  justify-content: center;
  align-items: center;

  /* wichtig: keine feste Box, sonst überläuft das große Logo */
  width: 100% !important;
  height: auto !important;
}

.logo img{
  display: block;
  margin: 0 auto;

  /* überschreibt die HTML-Attribute */
  width: 100%;
  max-width: 450px;  /* Desktop so wie vorher */
  height: auto;
}

/* Mobile: Logo deutlich kleiner */
@media (max-width: 640px){
  .logo img{
    max-width: 280px; /* anpassen nach Geschmack */
  }
}

@media (max-width: 480px){
  .logo img{
    max-width: 240px; /* noch kleiner für sehr kleine Geräte */
  }
}

.legal-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.legal-link-btn {
  display: inline-block;
  padding: 2px 0;
  border-bottom: 1px solid transparent;
  color: #243244;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .01em;
  opacity: .86;
  transition: color .15s ease, border-color .15s ease, opacity .15s ease;
}
.legal-link-btn:hover {
  color: #0f172a;
  border-color: currentColor;
  opacity: 1;
}
.legal-link-btn:focus-visible {
  outline: 3px solid rgba(31, 41, 55, .18);
  outline-offset: 4px;
  border-radius: 6px;
}
.legal-link-btn.primary {
  color: #0f172a;
  border-color: currentColor;
  opacity: 1;
}
.payment-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}
.payment-icons.payment-icons--compact{
  margin: 12px 0 0;
}
.payment-icons img {
  height: 40px;
  width: auto;
  opacity: 0.8;
  border-radius: 4px;
}
@media (max-width: 480px) {
  .payment-icons { gap: 10px; }
  .payment-icons img { height: 36px; }
}

.object-image-upload{display:grid;grid-template-columns:minmax(180px,240px) minmax(260px,auto);justify-content:center;gap:20px;align-items:center}
.object-image-preview{aspect-ratio:1;display:grid;place-items:center;overflow:hidden;border:2px dashed rgba(71,85,105,.35);border-radius:18px;background:rgba(248,250,252,.78);color:#64748b;text-align:center;padding:18px}
.object-image-preview[role="button"]{cursor:pointer;transition:border-color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease}
.object-image-preview[role="button"]:hover,.object-image-preview[role="button"]:focus-visible{outline:none;border-color:#2563eb;background:rgba(239,246,255,.92);box-shadow:0 0 0 4px rgba(37,99,235,.14)}
.object-image-preview.is-dragover{border-color:#16a34a;background:rgba(240,253,244,.95);box-shadow:0 0 0 5px rgba(22,163,74,.18);transform:scale(1.015)}
#nutzflaeche,#brennstoff,#einheit,#typ,#whg,#strasse,#plz,#hausnr,#ort,#bundesland_txt{text-align:center}
#brennstoff,#einheit,#typ{text-align-last:center}
#mainContainer fieldset > legend{margin-inline:auto;text-align:center}
#mainContainer fieldset label,
#mainContainer fieldset p,
#mainContainer fieldset small,
#mainContainer fieldset .hint,
#mainContainer fieldset .field-note{text-align:center}
#mainContainer fieldset > .row > div > label,
#mainContainer fieldset > .grid > div > label{display:block;width:100%}
#mainContainer .object-image-copy{text-align:center}
#mainContainer input:focus,
#mainContainer select:focus,
#mainContainer textarea:focus{font-weight:700}
.object-image-preview img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.object-image-copy{display:grid;justify-items:center;text-align:center;gap:10px}.object-image-copy p{margin:0;color:var(--muted);line-height:1.6}.object-image-actions{justify-content:center;flex-wrap:wrap}
.image-editor[hidden]{display:none}.image-editor{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.72);backdrop-filter:blur(5px)}
.image-editor__panel{width:min(620px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:22px;border-radius:20px;background:#f8fafc;box-shadow:0 28px 80px rgba(0,0,0,.38)}
.image-editor__panel h2{margin:0 0 8px}.image-editor__panel p{margin:0 0 16px;color:#475569;line-height:1.55}
.image-editor__stage{width:min(500px,100%);aspect-ratio:1;margin:0 auto 16px;overflow:hidden;border-radius:14px;background:#111827;box-shadow:0 0 0 3px #fff,0 0 0 5px #16a34a;touch-action:none;cursor:grab}
.image-editor__stage:active{cursor:grabbing}.image-editor__stage canvas{display:block;width:100%;height:100%}.image-editor__panel input[type="range"]{width:100%;margin:8px 0 18px}
.image-editor__actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:640px){.object-image-upload{grid-template-columns:1fr}.object-image-preview{width:min(240px,100%);margin:auto}}
.logo img,
.cust-modal__brand img,
.maintenance-logo{
  border-radius:14px;
}
.yes-no-choice{display:flex;width:max-content;max-width:100%;margin-left:auto;margin-right:auto;gap:5px;padding:4px;border:1px solid rgba(100,116,139,.22);border-radius:13px;background:rgba(226,232,240,.58)}
.yes-no-choice label{position:relative;display:flex;align-items:center;gap:7px;min-width:78px;justify-content:center;padding:8px 13px;border-radius:9px;cursor:pointer;transition:background .2s ease,color .2s ease,box-shadow .2s ease}
.yes-no-choice input{position:absolute;opacity:0;pointer-events:none}
.yes-no-choice label:has(input:checked){color:#fff;background:var(--button-green);box-shadow:0 6px 14px rgba(21,128,61,.23)}
.yes-no-choice label:has(input:focus-visible){outline:3px solid rgba(34,197,94,.25);outline-offset:2px}

#btnCopyToLocation{
  display:flex;
  width:min(100%, 560px);
  max-width:560px;
  min-height:60px;
  margin-top:20px;
  margin-left:auto;
  margin-right:auto;
  padding:16px 28px;
  border-radius:16px;
  font-size:18px;
  font-weight:800;
  text-align:center;
  box-shadow:0 14px 30px rgba(21,128,61,.32);
}

#cust_existing_account .btn{
  width:min(100%, 380px);
  max-width:380px;
  min-height:58px;
  padding:15px 28px;
  border-radius:16px;
  font-size:18px;
  font-weight:800;
}

.order-agb-modal[hidden]{
  display:none;
}

.order-agb-modal{
  position:fixed;
  inset:0;
  z-index:13000;
  display:grid;
  place-items:center;
  padding:18px;
}

.order-agb-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.64);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}

.order-agb-modal__panel{
  position:relative;
  width:min(560px,100%);
  padding:22px;
  border:1px solid rgba(15,23,42,.22);
  border-radius:20px;
  background:#f1f5f9;
  box-shadow:0 28px 80px rgba(0,0,0,.38);
}

.order-agb-modal__panel h2{
  margin:0 0 20px;
  font-size:20px;
}

.order-agb-modal__choice{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  margin:0 0 20px;
  padding:10px;
  font-size:17px;
  font-weight:700;
  cursor:pointer;
}

.order-agb-modal__choice input{
  width:24px;
  height:24px;
  flex:0 0 24px;
  accent-color:#1668c7;
}

.order-agb-modal__panel .btn.primary{
  width:min(100%,380px);
  max-width:none;
  min-height:56px;
  margin:0 auto;
  display:flex;
  border-color:var(--button-green);
  background:var(--button-green);
  color:#fff;
  font-size:18px;
  font-weight:800;
}

.order-agb-modal__panel .btn.primary:hover,
.order-agb-modal__panel .btn.primary:active{
  background:var(--button-green);
  border-color:var(--button-green);
}

@media(max-width:520px){
  .order-agb-modal__panel{padding:18px 14px}
  .order-agb-modal__choice{align-items:flex-start;font-size:15px}
}

/* =========================
   Landingpage / Selbstcheck
========================= */
.landing-page{
  padding:clamp(20px,4vw,48px) 16px 32px;
}
.landing-page.modal-open{overflow:hidden}
.landing-shell{
  width:min(760px,100%);
  margin:0 auto;
}
.landing-header{
  display:flex;
  align-items:center;
  margin:0 0 22px;
}
.landing-header img{
  display:block;
  width:min(100%,450px);
  height:auto;
  margin:0 auto;
  border-radius:14px;
}
.landing-kicker,
.landing-step-label{
  margin:0 0 6px;
  color:#527235;
  font-size:12px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.landing-check-card{
  padding:clamp(20px,4vw,34px);
  background:linear-gradient(180deg,rgba(255,255,255,.84),rgba(255,255,255,.68));
}
.landing-step-heading{
  position:relative;
  z-index:1;
  display:flex;
  align-items:flex-start;
  gap:14px;
}
.landing-step-number{
  display:grid;
  place-items:center;
  flex:0 0 38px;
  width:38px;
  height:38px;
  border-radius:12px;
  background:var(--button-green);
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(82,114,53,.25);
}
.landing-step-heading h2{
  margin:0;
  font-size:clamp(20px,3vw,27px);
  line-height:1.25;
}
.landing-date-row{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  margin-top:25px;
}
.landing-field{
  display:grid;
  gap:7px;
}
.landing-field label{
  display:block;
  padding:0;
  font-size:14px;
  font-weight:800;
}
.landing-field input{
  width:100%;
  height:52px;
  min-height:52px;
  border:1px solid rgba(15,23,42,.28);
  border-radius:13px;
  background:rgba(255,255,255,.9);
  color:var(--text);
  padding:11px 14px;
  font:inherit;
  font-size:17px;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.06);
}
.landing-field input:focus{
  outline:none;
  border-color:#527235;
  box-shadow:0 0 0 4px rgba(110,145,72,.2);
}
#buildingDate{
  text-align:center;
  font-weight:800;
}
#buildingDate::-webkit-datetime-edit,
#buildingDate::-webkit-date-and-time-value{
  width:100%;
  text-align:center;
  font-weight:800;
}
.landing-field small{
  color:#64748b;
  font-size:12px;
  line-height:1.45;
}
.landing-primary-action{
  justify-self:center;
  width:min(100%,400px);
  max-width:400px;
  min-height:56px;
  padding:14px 24px;
  white-space:nowrap;
  border-color:#111827;
  background:#111827;
  color:#fff;
  font-size:17px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 12px 26px rgba(15,23,42,.3);
  transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .2s ease,filter .2s ease;
}
.landing-primary-action[data-state="incomplete"]:hover{
  border-color:#111827;
  background:#1f2937;
  color:#fff;
  transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 17px 32px rgba(15,23,42,.34);
}
.landing-primary-action[data-state="ready"]{
  border-color:var(--button-green);
  background:var(--button-green);
  color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 14px 28px rgba(21,128,61,.38);
}
.landing-primary-action[data-state="ready"]:hover{
  border-color:var(--button-green);
  background:var(--button-green);
  color:#fff;
  transform:translateY(-2px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24),0 18px 34px rgba(21,128,61,.4);
  filter:brightness(1.04);
}
.landing-primary-action[data-state="incomplete"]:active{
  border-color:#111827;
  background:#111827;
  transform:translateY(1px) scale(.98);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 7px 16px rgba(15,23,42,.28);
}
.landing-primary-action[data-state="ready"]:active{
  border-color:var(--button-green);
  background:var(--button-green);
  transform:translateY(1px) scale(.98);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 18px rgba(21,128,61,.3);
}
.landing-primary-action:focus-visible{
  outline:3px solid rgba(34,197,94,.35);
  outline-offset:3px;
}
@keyframes landingCompletionButtonAttention{
  0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(34,197,94,0)}
  50%{transform:scale(1.045);box-shadow:0 0 0 9px rgba(34,197,94,.24),0 14px 30px rgba(21,128,61,.4)}
}
.landing-primary-action.completion-attention{
  animation:landingCompletionButtonAttention .7s ease-in-out 4;
}
.landing-status{
  position:relative;
  z-index:1;
  min-height:22px;
  margin-top:12px;
  color:#475569;
  font-size:14px;
  font-weight:700;
  line-height:1.45;
}
.landing-status:empty{min-height:0;margin-top:0}
.landing-status.is-error{color:#b91c1c}
.landing-status.is-success{color:#166534}
.landing-status.is-info{color:#365314}
.landing-modernization{
  position:relative;
  z-index:1;
}
.landing-modernization[hidden]{display:none}
.landing-divider{
  height:1px;
  margin:25px 0;
  background:linear-gradient(90deg,transparent,rgba(15,23,42,.25),transparent);
}
.landing-section-copy{
  margin:13px 0 17px 52px;
  color:#475569;
  line-height:1.55;
}
.modernization-options{
  display:grid;
  gap:11px;
}
.modernization-option{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  align-items:center;
  gap:13px;
  padding:15px;
  border:1px solid rgba(15,23,42,.2);
  border-radius:15px;
  background:rgba(255,255,255,.62);
  cursor:pointer;
  transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.modernization-option:hover{
  transform:translateY(-1px);
  border-color:rgba(82,114,53,.65);
}
.modernization-option:has(input:checked){
  border-color:#6e9148;
  background:rgba(240,253,244,.9);
  box-shadow:0 0 0 3px rgba(110,145,72,.16);
}
.modernization-option input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
}
.modernization-check{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  border:2px solid #94a3b8;
  border-radius:8px;
  color:transparent;
  font-weight:900;
  transition:all .16s ease;
}
.modernization-option:has(input:checked) .modernization-check{
  border-color:#6e9148;
  background:#6e9148;
  color:#fff;
}
.modernization-option:has(input:focus-visible){
  outline:3px solid rgba(110,145,72,.3);
  outline-offset:3px;
}
.modernization-option strong,
.modernization-option small{display:block}
.modernization-option strong{font-size:16px}
.modernization-option small{
  margin-top:3px;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
}
.landing-continue{
  display:flex;
  width:min(100%,420px);
  max-width:420px;
  min-height:56px;
  margin:22px auto 0;
  padding:14px 24px;
  font-size:17px;
  font-weight:900;
}
.landing-help{
  margin:11px auto 0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
  text-align:center;
}
.landing-account-card{
  display:flex;
  position:relative;
  z-index:1;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
}
.landing-account-card strong,
.landing-account-card span{display:block}
.landing-account-card span{
  margin-top:4px;
  color:#475569;
  font-size:13px;
  line-height:1.4;
}
.landing-account-card .btn{
  flex:0 0 auto;
  text-decoration:none;
}
.landing-footer{
  position:relative;
  z-index:1;
  margin-top:20px;
}
.landing-footer__copyright{
  margin-top:10px;
  text-align:center;
  font-size:13px;
  opacity:.75;
}
.bedarf-modal[hidden]{display:none}
.bedarf-modal{
  position:fixed;
  inset:0;
  z-index:15000;
  display:grid;
  place-items:center;
  padding:18px;
}
.bedarf-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.72);
  backdrop-filter:blur(7px);
  -webkit-backdrop-filter:blur(7px);
}
.bedarf-modal__panel{
  position:relative;
  width:min(650px,100%);
  max-height:calc(100svh - 36px);
  overflow:auto;
  padding:clamp(22px,4vw,34px);
  border:1px solid rgba(15,23,42,.22);
  border-radius:22px;
  background:#f8fafc;
  box-shadow:0 30px 90px rgba(0,0,0,.42);
}
.bedarf-modal__panel h2{
  margin:0 40px 10px 0;
  font-size:clamp(22px,4vw,30px);
  line-height:1.2;
}
.bedarf-modal__panel > div > p:not(.landing-kicker),
.bedarf-success > p:last-child{
  color:#475569;
  line-height:1.55;
}
.bedarf-modal__close{
  position:absolute;
  top:14px;
  right:14px;
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background:#fff;
  color:#334155;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}
.bedarf-modal__close[hidden]{
  display:none;
}
.bedarf-form-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:20px;
}
.bedarf-field-full{grid-column:1/-1}
.bedarf-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.bedarf-privacy{
  display:flex;
  align-items:flex-start;
  gap:11px;
  margin-top:18px;
  padding:13px;
  border-radius:13px;
  background:#eef2f7;
  font-size:13px;
  line-height:1.5;
  cursor:pointer;
}
.bedarf-privacy input{
  flex:0 0 21px;
  width:21px;
  height:21px;
  margin-top:1px;
  accent-color:#6e9148;
}
.bedarf-success{
  padding:18px 4px;
  text-align:center;
}
.bedarf-success[hidden]{display:none}
.bedarf-success__icon{
  display:grid;
  place-items:center;
  width:70px;
  height:70px;
  margin:0 auto 20px;
  border-radius:50%;
  background:#dcfce7;
  color:#166534;
  font-size:36px;
  font-weight:900;
  box-shadow:0 10px 26px rgba(22,101,52,.16);
}
.bedarf-success .landing-kicker{margin-bottom:8px}
.bedarf-success h2{margin-right:0}
@media(max-width:640px){
  .landing-page{padding:18px 10px 25px}
  .landing-header img{width:min(100%,300px)}
  .landing-date-row{grid-template-columns:1fr}
  .landing-primary-action{width:100%}
  .landing-section-copy{margin-left:0}
  .landing-account-card{align-items:stretch;flex-direction:column;text-align:center}
  .landing-account-card .btn{width:100%}
  .bedarf-form-grid{grid-template-columns:1fr}
  .bedarf-field-full{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){
  .modernization-option,
  .landing-primary-action{transition:none}
  .landing-primary-action.completion-attention{animation:none}
}
