/* =========================
   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;
  --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;
  /* Bild bewusst größer als der Bildschirm */
  background-image: url("wallpaper.jpg");
  background-repeat: no-repeat;
  background-position: center 100%;
  background-size: 150%;   /* 120–150% wirkt meist gut */
  z-index: -1;
  will-change: background-position;
}

@media (max-width: 640px) {
  .parallax-bg {
    background-image: url("wallpaper-mobile.jpg");
    background-size: 150%;
    background-position: center 50%;
  }
}

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;
}

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) ===== */

.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;
  flex: 0 0 auto;  
}

.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%;
  }

  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-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: 32px;
  width: auto;
  opacity: 0.8;
  border-radius: 4px;
}
