:root{
  --bg:#f5f7ff;
  --text:#0f172a;
  --muted:#667085;

  --navy:#142a57;
  --btn:#1e3a8a;
  --btn-dark:#15306f;

  --line: rgba(15,23,42,.10);
  --shadow: 0 25px 70px rgba(15, 23, 42, .10);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, .08);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 650px at 18% 75%, rgba(122, 162, 255, .15), rgba(245,247,255,0) 55%),
    radial-gradient(900px 520px at 80% 72%, rgba(97, 208, 192, .16), rgba(245,247,255,0) 55%),
    radial-gradient(900px 520px at 78% 22%, rgba(173, 214, 255, .22), rgba(245,247,255,0) 55%),
    linear-gradient(#fbfcff, var(--bg));
}
body:before{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  background: radial-gradient(circle at 1px 1px, rgba(15,23,42,.03) 1px, rgba(255,255,255,0) 1px);
  background-size: 18px 18px;
  opacity:.22;
  mix-blend-mode:multiply;
}

.wrap{
  min-height: 100dvh;
  padding: 18px 18px 26px;
  display:flex;
  justify-content:center;
  align-items:stretch;
}
@media (max-width: 520px){
  .wrap{ padding: 14px 12px 20px; }
}

.card{
  width: min(1320px, 100%);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 15px;
  box-shadow: var(--shadow);
  overflow:hidden;
  min-height: calc(100dvh - 44px);
  display:flex;
  flex-direction: column;
}

.inner{
  flex: 1 1 auto;
  min-height: 0;
  display:flex;
  flex-direction:column;
  padding: 10px 6px 8px;
}
@media (max-width: 980px){
  .inner{ padding: 10px 6px 8px; }
}
@media (max-height: 820px){
  .inner{ padding: 10px 6px 8px; }
}

.shell{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.topbar{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width: 220px;
  text-decoration:none;
  color: inherit;
}
.brand-name{
  font-weight:800;
  letter-spacing:-.3px;
  font-size: 24px;
  color:#0b1b3b;
  display:flex;
  align-items:baseline;
}
.brand-name span:last-child{ color:#3aa65b; font-weight:800; }

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

.chip-btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(15,23,42,.12);
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
  color:#1f2a44;
  font-weight:800;
  text-decoration:none;
  user-select:none;
  white-space:nowrap;
}
.chip-btn svg{ opacity:.75; }
.chip-btn.is-active{
  border-color: rgba(30,58,138,.22);
  background: rgba(30,58,138,.06);
}

/* Mobile menu */
.menu-btn{ display:none; }
@media (max-width: 620px){
  .top-actions{ display:none; }
  .menu-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(15,23,42,.12);
    background: rgba(255,255,255,.70);
    box-shadow: 0 12px 34px rgba(18,31,68,.10);
    cursor:pointer;
  }
}
.menu-icon{
  width:18px;height:2px;background:rgba(15,23,42,.75);
  display:block;position:relative;border-radius:2px;
}
.menu-icon::before,.menu-icon::after{
  content:"";position:absolute;left:0;width:18px;height:2px;
  background:rgba(15,23,42,.75);border-radius:2px;
}
.menu-icon::before{ top:-6px; }
.menu-icon::after{ top: 6px; }

/* Overlay / Drawer */
.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.42);
  backdrop-filter: blur(2px);
  z-index: 1000;
}
.drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(320px, 86vw);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(15,23,42,.10);
  box-shadow: -18px 0 60px rgba(18,31,68,.18);
  z-index: 1001;
  transform: translateX(105%);
  transition: transform .22s ease;
  padding: 14px;
}
.drawer.is-open{ transform: translateX(0); }

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 6px 4px 12px;
}
.drawer-title{
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
}
.drawer-close{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.70);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.drawer-links a{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  text-decoration:none;
  color:#0f172a;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.70);
  box-shadow: 0 10px 22px rgba(18,31,68,.08);
  margin-bottom: 10px;
}

/* Footer */
.footer{
  flex: 0 0 auto;
  width: 100%;
  text-align: center;
}
.footer a{
  color: inherit;
  text-decoration:none;
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 10px;
}
.footer a:hover{ background: rgba(15,23,42,.04); }
.small {font-size:10px;}
/* Page layout */
.page{ width: 100%; margin-top: 14px; }
.page h1{
  margin: 10px 0 0;
  font-size: clamp(28px, 2.8vw, 42px);
  color: var(--navy);
  letter-spacing:-1px;
}
.page p.lead{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.5;
  max-width: 740px;
}
.section{
  margin-top: 16px;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  padding: 14px;
}
@media (max-width:520px){
  .section{ padding: 10px; }
}

.page-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.page-head-actions{ display:flex; gap:10px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border-radius: 11px;
  text-decoration:none;
  color:#1f2a44;
height: 40px;
padding: 0 8px;
font-weight: 500;
border: 1px solid rgb(136, 154, 198);
background: rgb(242, 248, 255);
}
.btn.primary{
  color:#fff;
  background: linear-gradient(180deg, var(--btn), var(--btn-dark));
  border: 1px solid rgba(15,23,42,.15);
  box-shadow: 0 16px 30px rgba(30, 58, 138, .22), inset 0 1px 0 rgba(255,255,255,.22);
}

/* Inputs */
input, select{
  background-color: aliceblue;
}

/* Favorites controls */
.fav-controls{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.fav-controls-left{ min-width: 0; flex: 1 1 auto; }
.fav-controls-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.ctl-label{
  font-weight: 800;
  color:#1f2a44;
}
.ctl-select{
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.72);
  padding: 0 10px;
  font-weight: 700;
  color:#1f2a44;
}
.geo-hint{
  color: var(--muted);
  font-weight: 700;
}
.fav-subtitle{
  margin-top: 10px;
  font-size: 15px;
  color:#1f2a44;
}

/* Switch (bereinigt / weniger wuchtig) */
.switch{
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
  color:#1f2a44;
}
.switch-label{
  font-weight: 700;
  color:#1f2a44;
}
.switch input{
  position:absolute;
  opacity:0;
  width:1px;height:1px;
}
.switch-ui{
  width: 50px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15,23,42,.16);
  border: 1px solid rgba(15,23,42,.14);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35);
  transition: background .18s ease, border-color .18s ease;
  flex: 0 0 auto;
}
.switch-ui::after{
  content:"";
  position:absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15,23,42,.16);
  transition: transform .18s ease;
}
.switch input:checked + .switch-ui{
  background: #41c26a;
  border-color: rgba(0,0,0,.10);
}
.switch input:checked + .switch-ui::after{
  transform: translateX(22px);
}

/* Favorites list */
.fav-list{ display:grid; gap: 10px; }

.fav-card-row{
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
  padding: 12px;
  position: relative;
  min-width: 0;
}

.fav-main{ min-width: 0; width: 100%; }

.fav-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.fav-name{
  margin:0;
  font-weight: 900;
  color:#1f2a44;
  letter-spacing:-.2px;
  font-size: 15.5px;
  line-height: 1.2;
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fav-status{
  margin-top: 8px;
  display:flex;
  align-items:flex-start;
  gap: 10px;
}

.fav-status-text{
  color:#667085;
  font-weight: 650;
  font-size: 13.5px;
  line-height: 1.25;
  white-space: normal;
  word-break: break-word;
}

.fav-city{
  margin-top: 8px;
  color:#7b8597;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.15;
}

.dot{
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 3px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
.dot.green{ background:#28c76f; }
.dot.orange{ background:#f6b73c; }
.dot.red{ background:#ef4444; }

/* Remove X */
.remove-x{
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.80);
  box-shadow: 0 10px 22px rgba(18,31,68,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: #1f2a44;
}

/* Accordion behavior */
.fav-card-row.js-fav-row{ cursor: pointer; }
.fav-card-row.js-fav-row:hover{ filter: brightness(0.99); }
.fav-card-row.js-fav-row:focus{ outline: 2px solid rgba(30,58,138,.25); outline-offset: 2px; }

.fav-card-row.js-fav-row{
  display:flex;
  flex-direction: column;
  align-items: stretch;
}

.fav-card-row.js-fav-row.is-open{
  outline: 2px solid rgba(0,0,0,0.05);
}

.fav-details{
  width: 100%;
  margin-top: 12px;
}

.fav-details-inner{
  width: 100%;
  max-width: none;
  display: grid;
  gap: 12px;
}

.fav-detail-row{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  align-items:start;
}

.fav-detail-label{
  font-weight: 800;
  color:#1f2a44;
}

.fav-detail-value{
  color:#1f2a44;
  font-weight: 550;
  line-height: 1.45;
}

/* ï¿½ffnungszeiten: volle Breite, weniger fett, nicht "getrennt" */
.opening-hours{
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  overflow: hidden;
}

.oh-row{
  width: 100%;
  display:flex;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.oh-row:last-child{ border-bottom: none; }

.oh-day{
  flex: 0 0 140px;
  font-weight: 750;
  color:#1f2a44;
}

.oh-time{
  flex: 1 1 auto;
  font-weight: 550;
  color:#1f2a44;
}

/* weekday_text Ausgabe */
.opening-hours--weekday .oh-line{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  font-weight: 550;
}
.opening-hours--weekday .oh-line:last-child{ border-bottom: none; }

.oh-empty{
  color: var(--muted);
  font-weight: 600;
  padding: 8px 0;
}

@media (max-width: 640px){
  .fav-detail-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .oh-day{ flex-basis: 120px; }
}

@media (max-width:520px){
  .wrap{ padding: 12px 10px 16px; }
  .card{ border-radius: 22px; }
  .fav-card-row{ padding: 10px; }
  .remove-x{ width: 34px; height: 34px; border-radius: 12px; }
}
/* Header: Titel + Button in einer Zeile */
.page-head { margin-top: 6px; }
.page-title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
}
.page-title-row h1{ margin: 10px 0 0; }

/* Kompakter Button neben H1 */
.btn-compact{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 800;
}

/* Controls: alles nebeneinander */
.fav-controls{ margin-top: 3px; }
.fav-controls-row{
  display:flex;
  align-items:flex-end;
  gap: 14px;
  flex-wrap:wrap;
}

/* "Sortieren" als kleine Caption ï¿½ber Dropdown */
.ctl-block{ display:flex; flex-direction:column; gap:6px; }
.ctl-caption{
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
  line-height: 1;
  padding-left: 2px;
}

/* Dropdown optisch etwas kompakter */
.ctl-select{
  height: 40px;
  min-width: 180px;
}

/* Switch neben Dropdown kompakter und auf Baseline ausrichten */
.switch-compact{
  gap: 10px;
  padding-bottom: 2px; /* optisch auf Dropdown-Baseline */
}
.switch-compact .switch-label{
  font-weight: 750;
}
.switch-compact .switch-ui{
  width: 46px;
  height: 26px;
}
.switch-compact .switch-ui::after{
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
}
.switch-compact input:checked + .switch-ui::after{
  transform: translateX(20px);
}

/* Favoriten (x) rechts, aber darf umbrechen */
.fav-subtitle{
  margin-top: 0;
  margin-left: auto;
  font-size: 14px;
  color:#1f2a44;
  white-space: nowrap;
}

/* Mobile: Favoriten (x) darf nach unten */
@media (max-width: 520px){
  .fav-subtitle{
    margin-left: 0;
    width: 100%;
    white-space: normal;
  }
  .ctl-select{ min-width: 160px; }
}
/* ï¿½ffnungszeiten: weniger fett, volle Breite, klarer */
.opening-hours{
  width: 100%;
  margin-top: 4px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.90);
  overflow: hidden;
}

.oh-row{
  width: 100%;
  display:flex;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.oh-row:last-child{ border-bottom: none; }

.oh-day{
  flex: 0 0 140px;
  font-weight: 700;          /* vorher zu dick */
  color:#1f2a44;
}

.oh-time{
  flex: 1 1 auto;
  font-weight: 500;          /* deutlich leichter */
  color:#1f2a44;
}

/* Heute markieren */
.oh-row.is-today,
.oh-line.is-today{
  background: rgba(65, 194, 106, .10);
}

.oh-row.is-today .oh-day,
.oh-row.is-today .oh-time{
  color: #0f172a;
}

/* weekday_text Ausgabe */
.opening-hours--weekday .oh-line{
  padding: 4px 6px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  font-weight: 400;
  font-size: 13px;

}
.opening-hours--weekday .oh-line:last-child{ border-bottom: none; }


@media (max-width: 640px){
  .oh-day{ flex-basis: 120px; }
}
/* Mobile-friendly Sortbar */
.sortbar{
  display:flex;
  gap: 10px;
  align-items:center;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 8px;
}

.sort-btn{
  appearance: none;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  color:#1f2a44;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
}

.sort-btn .sort-txt{ font-size: 13px; letter-spacing: -.2px; }
.sort-btn .sort-ic{ display:inline-flex; }

.sort-btn.is-active{
  background: rgba(30,58,138,.10);
  border-color: rgba(30,58,138,.20);
}

.sort-btn:focus{
  outline: 2px solid rgba(30,58,138,.25);
  outline-offset: 2px;
}

/* Wenn wenig Platz: Text kï¿½rzer/ausblenden, Icons bleiben tappbar */
@media (max-width: 420px){
  .sort-btn{ padding: 0 10px; }
  .sort-btn .sort-txt{ display:none; }
}
/* Pillbar: Icons + Mini-Label darunter */
.pillbar{
  display:flex;
  gap: 10px;
  align-items:center;
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 14px;
  padding: 8px;
}

/* Pill Button */
.pill{
  appearance: none;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.82);
  color:#1f2a44;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 6px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
  padding: 6px 6px 7px;
}

.pill-ic{ display:inline-flex; }
.pill-txt{
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.2px;
  color: rgba(31,42,68,.85);
  line-height: 1;
}

/* Active state */
.pill.is-active{
  background: rgba(30,58,138,.10);
  border-color: rgba(30,58,138,.22);
}

/* "Offen" Pill active: grï¿½nlicher Hint */
.pill-open.is-active{
  background: rgba(65,194,106,.14);
  border-color: rgba(65,194,106,.30);
}

/* Fokus */
.pill:focus{
  outline: 2px solid rgba(30,58,138,.25);
  outline-offset: 2px;
}

/* Versteckter Toggle in Offen-Pill */
.pill-hidden-toggle{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  pointer-events:none;
}

/* Mobile: noch kompakter */
@media (max-width: 420px){
  .pill{ width: 52px; height: 52px; }
}
.sort {
  margin-top: 0px;
  margin-bottom: 0px;
  color: #7b8597;
  font-weight: 500;
  font-size: 12px;
  line-height: 0.8;
}
/* Alerts */
.alert{
  padding:14px 16px;
  border-radius:12px;
  font-size:14px;
  line-height:1.45;
  margin: 10px 0 16px;
}

/* Info */
.alert-info{
  background:#eff6ff;
  border:1px solid #bfdbfe;
  color:#1e3a8a;
}
.alert-info a{ color:#1e40af; font-weight:800; text-decoration:underline; }

/* Warning (falls du warning nutzen willst) */
.alert-warning{
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
}
.alert-warning a{ color:#c2410c; font-weight:800; text-decoration:underline; }

/* Disabled Buttons/Links */
.btn.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
  filter: grayscale(20%);
}

/* Controls layout */
.fav-controls-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.sort-label{
  font-weight:900;
  color: var(--muted);
  margin: 0 0 2px 0;
  display:none; /* default: mobile aus */
}

/* Favoritenanzahl unter Buttons */
.fav-subtitle{
  font-weight:900;
  color: var(--muted);
  margin-top: 4px;
}

/* Desktop: Sortierung-Label anzeigen */
@media (min-width: 900px){
  .sort-label{ display:block; }
}

/* Disabled pills */
.pill.is-disabled{
  opacity:.45;
  cursor:not-allowed;
  pointer-events:none;
}
.aff-box{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgb(236, 249, 240);
}

.aff-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.aff-badge{
  border:1px solid rgba(15,23,42,.12);
  border-radius:999px;
color: rgb(255, 255, 255);
font-size: 10px;
font-weight: 400;
padding: 1px 3px;
background: rgb(64, 111, 51);
}

.aff-items{
  display:grid;
  gap:10px;
}

.aff-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgb(242, 242, 242);
  text-decoration:none;
}

.aff-item-name{
  font-weight:950;
  color:#1f2a44;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.aff-cta{
  flex:0 0 auto;
  font-weight:900;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
background: #22488a;
color: #fff;
}
/* Inline badge in collapsed card */
.fav-top-left{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.aff-badge-inline{
  display:inline-flex;
  align-items:center;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  color: rgba(15,23,42,.75);
  font-weight:900;
  font-size:12px;
  white-space:nowrap;
}

/* Make sure title doesn't overflow on mobile */
.fav-name{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

/* Affiliate box base (already have, but keep) */
.aff-box{
  margin-top:14px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.72);
}

/* Compact variant for mobile */
@media (max-width: 640px){
  .aff-box--compact{
    padding:10px;
    border-radius:12px;
  }

  .aff-head{
    margin-bottom:8px;
  }

  .aff-items{
    gap:8px;
  }

  .aff-item{
    padding:10px;
    border-radius:12px;
background: rgb(242, 242, 242);
  }

  .aff-item-name{
    font-size:13px;
  }

  .aff-cta{
    padding:6px 8px;
    border-radius:10px;
    font-size:13px;
background: #22488a;
color: #fff;
  }
}


/* --- Admin UI polish (affiliate rules) --- */
.admin-wrap { max-width: 1100px; margin: 0 auto; }

.admin-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 18px;
  color: #0f172a;
}

.admin-card {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 18px;
  background: rgba(255,255,255,.85);
  box-shadow: 0 14px 30px rgba(15,23,42,.06);
  overflow: hidden;
}

.admin-card-hd {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-card-hd h2,
.admin-card-hd h3 {
  margin: 0;
  font-weight: 900;
  font-size: 16px;
  color: #0f172a;
}

.admin-card-bd { padding: 16px 18px; }

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .6fr;
  gap: 12px;
}
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.admin-field label {
  display: block;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.admin-field .help {
  margin-top: 6px;
  font-size: 12.5px;
  color: rgba(15, 23, 42, .65);
  line-height: 1.35;
}

.admin-input,
.admin-select,
.admin-number {
  width: 100%;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  padding: 0 12px;
  font-weight: 700;
  color: #0f172a;
  outline: none;
}

.admin-input:focus,
.admin-select:focus,
.admin-number:focus {
  border-color: rgba(30, 58, 138, .35);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .10);
}

.admin-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: rgba(15,23,42,.85);
}
.admin-check input { transform: translateY(1px); }

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.admin-table th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(15,23,42,.55);
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
}
.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(15,23,42,.02); }

.badge-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  color: #0f172a;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 12.5px;
  color: rgba(15,23,42,.8);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.status-dot.on { background: #22c55e; }
.status-dot.off { background: #ef4444; }

.btn-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.9);
  color: #0f172a;
  font-weight: 900;
  text-decoration: none;
}
.btn-admin.primary {
  background: #1e3a8a;
  border-color: rgba(30,58,138,.35);
  color: #fff;
}
.btn-admin.danger {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  color: #b91c1c;
}
.btn-admin:hover { filter: brightness(.98); }

.admin-note {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  color: rgba(15,23,42,.78);
  font-weight: 650;
  line-height: 1.4;
}
.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 18px;
}
.admin-tabs a {
  text-decoration: none;
  font-weight: 900;
  color: rgba(15,23,42,.75);
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.75);
  padding: 8px 12px;
  border-radius: 999px;
}
.admin-tabs a:hover { background: rgba(255,255,255,.92); }
.admin-tabs a.is-active {
  background: #1e3a8a;
  color: #fff;
  border-color: rgba(30,58,138,.35);
}
.admin-tabs a.is-disabled { opacity: .5; pointer-events: none; }
/* So funktioniert's: Text + Mockup nebeneinander */
.how{
  display:flex;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap; /* wichtig: auf kleineren Screens umbrechen */
}

.how__text{
  flex:1 1 340px;
  min-width:260px;
}

.how__media{
  flex:0 1 420px; /* Bildspalte */
  min-width:260px;
  width:100%;
}

.how__img{
  display:block;
  width:100%;
  height:auto;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 14px 40px rgba(18,31,68,.12);
  background:#fff;
}

/* Optional: auf groï¿½en Screens etwas mehr Platz fï¿½rs Bild */
@media (min-width: 980px){
  .how{ gap:22px; }
  .how__media{ flex-basis:460px; }
}
.sharebar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

.sharebtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.10);
  background:#fff;
  color:var(--text);
  font-weight:700;
  text-decoration:none;
  cursor:pointer;
  transition:transform .08s ease, box-shadow .12s ease, border-color .12s ease;
}

.sharebtn:hover{
  transform:translateY(-1px);
  border-color: rgba(15,23,42,.18);
  box-shadow: 0 10px 26px rgba(18,31,68,.10);
}

.sharebtn--ghost{
  background:transparent;
}
/* Wichtig: Card muss Positioning-Context sein */
.fav-card-row { position: relative; }

/* Tap hint Grundzustand: unsichtbar */
.tap-hint{
  position:absolute;
  right: 7px;
  bottom: 7px;

  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,.75);
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);

  opacity: 0;
  transform: translateY(6px) scale(.96);
  pointer-events: none; /* darf nie Klicks blockieren */
  z-index: 3;
}

/* sichtbarer Zustand */
.tap-hint.is-on{
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .25s ease, transform .25s ease;
}

/* SVG Look (ruhig, modern) */
.tap-hint__svg{
  width: 20px;
  height: 20px;
  stroke: rgba(15,23,42,.65);
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Sanfte â€žTapâ€œ-Animation: minimaler Pulse */
.tap-hint.is-on .tap-hint__svg{
  animation: tapPulse 1.35s ease-in-out infinite;
}
@keyframes tapPulse{
  0%, 100% { transform: scale(1); opacity: .92; }
  50%      { transform: scale(1.06); opacity: 1; }
}

/* Kleiner Ring pulsiert separat -> Tap-GefÃ¼hl ohne Comic-Strahlen */
.tap-hint__ring{
  stroke: rgba(15,23,42,.55);
  opacity: .45;
  transform-origin: 8.6px 6.2px;
  animation: tapRing 1.35s ease-in-out infinite;
}
@keyframes tapRing{
  0%   { transform: scale(.8); opacity: .10; }
  55%  { transform: scale(1.6); opacity: .35; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Optional: wenn Card offen ist -> Hint ausblenden */
.js-fav-row.is-open .tap-hint{ opacity: 0 !important; transform: translateY(6px) scale(.96) !important; }
.text-small {
  font-weight: 600;
  font-size: 12px;
}

/* =========================
   Favorites – Search Results Fix
   (nur Suchliste, kein Einfluss auf Shared/List-Layout)
   ========================= */

.fav-add-panel { width: 100%; }

.fav-results{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;

  max-height: 320px;
  overflow: auto;

  padding-right: 6px; /* Scrollbar Abstand */
}

/* Jeder Treffer: volle Breite, sauber lesbar */
.fav-result{
  width: 100%;
  display: block;
  text-align: left;

  padding: 10px 12px;
  border-radius: 12px;

  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.90);

  cursor: pointer;
}

/* Name/Adresse dürfen umbrechen (nicht quetschen) */
.fav-result-name{
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  white-space: normal;
}

.fav-result-addr{
  margin-top: 3px;
  font-size: 13px;
  color: rgba(15,23,42,.70);
  line-height: 1.25;
  white-space: normal;
}

/* Hover/Focus */
.fav-result:hover{
  filter: brightness(0.99);
  box-shadow: 0 10px 18px rgba(15,23,42,.06);
}
.fav-result:focus{
  outline: 2px solid rgba(30,58,138,.25);
  outline-offset: 2px;
}
/* ==========================================
   Favorites – Search Input + Results Polish
   (nur Add-Panel / Suche)
   ========================================== */

/* Suchfeld: wie UI-Chips/Buttons */
#favSearch,
.fav-add-box .input,
.fav-add-box input[type="search"]{
  width: 100%;
  height: 44px;
  border-radius: 14px;
  padding: 0 12px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(255,255,255,.92);
  color: #0f172a;
  font-weight: 700;
  outline: none;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

#favSearch::placeholder{
  color: rgba(15,23,42,.45);
  font-weight: 650;
}

#favSearch:focus{
  border-color: rgba(30,58,138,.35);
  box-shadow: 0 0 0 4px rgba(30,58,138,.10), 0 14px 30px rgba(15,23,42,.08);
}

/* Ergebnisliste: sauber, klar abgesetzt */
.fav-results{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;

  max-height: 320px;
  overflow: auto;

  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.65);
}

/* Treffer: als „auswählbare Karten“ */
.fav-result{
  width: 100%;
  display: block;
  text-align: left;

  padding: 10px 12px;
  border-radius: 14px;

  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.92);
  cursor: pointer;

  transition: transform .08s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.fav-result-name{
  font-weight: 950;
  color: #0f172a;
  line-height: 1.2;
}

.fav-result-addr{
  margin-top: 3px;
  font-size: 13px;
  color: rgba(15,23,42,.70);
  line-height: 1.25;
}

/* Hover: stärkerer Kontrast (damit „Auswahl“ auffällt) */
.fav-result:hover{
  transform: translateY(-1px);
  border-color: rgba(30,58,138,.28);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
  background: rgba(242,248,255,.98);
}

/* Focus/Keyboard: deutlich sichtbar */
.fav-result:focus,
.fav-result:focus-visible{
  outline: 2px solid rgba(30,58,138,.35);
  outline-offset: 2px;
  border-color: rgba(30,58,138,.35);
}

/* Optional: „active“ beim Klicken */
.fav-result:active{
  transform: translateY(0);
  background: rgba(30,58,138,.08);
  border-color: rgba(30,58,138,.30);
}
/* =========================
   Favorites – Header Buttons gleiche Höhe
   ========================= */

.page-title-row{
  align-items: flex-start; /* Text darf darunter */
}

/* Linke und rechte Spalte jeweils als Block */
.fav-head-left,
.fav-head-right{
  display:flex;
  flex-direction: column;
}

/* Buttons sollen in beiden Spalten auf derselben Linie starten */
.fav-head-left .btn-compact,
.fav-head-right .btn-compact{
  margin-top: 10px;          /* gleiche Startlinie wie H1-Margin */
  height: 40px;              /* identisch */
  display: inline-flex;
  align-items: center;
}

/* Der Hinweistext rechts kommt darunter */
.fav-head-right .muted-mini{
  margin-top: 6px;
  line-height: 1.25;
}

/* Optional: auf sehr schmalen Screens alles schön umbrechen */
@media (max-width: 520px){
  .fav-head-right .btn-compact{ margin-top: 6px; }
}
/* ==========================================
   Favorites – Header: Buttons exakt auf einer Höhe
   ========================================== */

/* 2 Spalten: links (Titel+Add), rechts (Login+Hint) */
.page-title-row{
  display: grid !important;
  grid-template-columns: 1fr auto;
  column-gap: 18px;
  align-items: start;
}

/* Links: Titel + Button untereinander */
.fav-head-left{
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 10px;
}

/* Rechts: Button oben, Text darunter */
.fav-head-right{
  display: grid;
  grid-template-rows: auto auto;
  row-gap: 8px;
  justify-items: end;       /* rechts bündig */
}

/* Buttons: gleiche Höhe, gleiche „Baseline“, KEINE Vollbreite */
.fav-head-left .btn-compact,
.fav-head-right .btn-compact{
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  width: auto !important;   /* verhindert breite/100% Buttons */
  max-width: none !important;
}

/* Hint-Text rechts sauber unter dem Button */
.fav-head-right .muted-mini{
  text-align: right;
  margin: 0;
}

/* Mobile: untereinander */
@media (max-width: 520px){
  .page-title-row{
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .fav-head-right{
    justify-items: start;
  }
  .fav-head-right .muted-mini{
    text-align: left;
  }
}
