/* ===== URLAUBSPLANER – UrlaubsWeg Design System ===== */

/* ---- Reset & Root ---- */
[hidden]{ display:none !important; }
:root{
  --bg:#0b0f1c;
  --surf:#121828;
  --card:#19202f;
  --card2:#1e2840;
  --border:#263448;
  --gold:#e8a020;
  --gold2:#c8841a;
  --blue:#4a9eff;
  --green:#22c97a;
  --red:#f05252;
  --orange:#fb923c;
  --purple:#a78bfa;
  --text:#dde4f0;
  --soft:#9ab0c8;
  --muted:#506070;
  --r:12px;
  --rs:8px;
}
*{ box-sizing:border-box; margin:0; padding:0; }
html, body{ width:100%; }
body{
  font-family:'DM Sans', sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
  line-height:1.6;
}
a{ color:inherit; text-decoration:none; }

/* ---- HEADER ---- */
.site-header{
  background:linear-gradient(180deg,#080c18,#0d1224);
  border-bottom:1px solid rgba(232,160,32,.25);
  padding:0 1.5rem;
  position:sticky;
  top:0;
  z-index:200;
  box-shadow:0 2px 40px rgba(0,0,0,.6);
}
.hdr{
  max-width:1500px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:60px;
  gap:1rem;
}
.logo{
  display:flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
  flex-shrink:0;
}
.logo-box{
  width:34px; height:34px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem;
}
.logo-txt{
  font-family:'Playfair Display',serif;
  font-size:1.3rem;
  font-weight:900;
  color:var(--text);
}
.logo-txt em{ color:var(--gold); font-style:normal; }
.hdr-nav{
  display:flex;
  gap:2px;
  background:rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:8px;
  padding:3px;
  flex-wrap:wrap;
}
.nt{
  padding:5px 13px;
  border:none;
  background:transparent;
  color:var(--muted);
  border-radius:6px;
  cursor:pointer;
  font-family:'DM Sans',sans-serif;
  font-size:.78rem;
  font-weight:600;
  transition:all .2s;
  white-space:nowrap;
}
.nt.on{ background:var(--gold); color:#000; }
.nt:hover:not(.on){ color:var(--text); background:rgba(255,255,255,.06); }
.hdr-r{ display:flex; gap:5px; }
.ibtn{
  width:32px; height:32px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--muted);
  border-radius:7px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:.9rem;
  transition:all .2s;
  font-family:'DM Sans',sans-serif;
}
.ibtn:hover{ border-color:var(--gold); color:var(--gold); }

/* ---- HERO BAND ---- */
.hero-band{
  background:linear-gradient(135deg,rgba(74,158,255,.07),rgba(34,201,122,.05),rgba(232,160,32,.06));
  border-bottom:1px solid var(--border);
  padding:2.5rem 1.5rem 2rem;
}
.hero-inner{
  max-width:860px;
  margin:0 auto;
  text-align:center;
}
.hero-eyebrow{
  font-size:.7rem;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.8rem;
}
.hero-inner h1{
  font-family:'Playfair Display',serif;
  font-size:clamp(1.8rem,4vw,2.8rem);
  font-weight:900;
  color:var(--text);
  letter-spacing:-.5px;
  line-height:1.1;
  margin-bottom:.8rem;
}
.hero-inner p{
  font-size:.95rem;
  color:var(--soft);
  line-height:1.65;
  max-width:600px;
  margin:0 auto 1.4rem;
}
.hero-tips{
  display:flex;
  gap:.5rem .9rem;
  justify-content:center;
  flex-wrap:wrap;
  margin:0 auto 1.2rem;
  max-width:680px;
}
.hero-tips span{
  font-size:.76rem;
  color:rgba(180,200,230,.7);
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:20px;
  padding:.28rem .75rem;
  white-space:nowrap;
}
.hero-legend{
  display:flex;
  gap:1.5rem;
  justify-content:center;
  flex-wrap:wrap;
}
.leg-item{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.8rem;
  color:var(--soft);
  font-weight:500;
}
.leg-dot{
  width:13px; height:13px;
  border-radius:4px;
  flex-shrink:0;
}
.leg-holiday{ background:rgba(240,82,82,.5); border:1px solid var(--red); }
.leg-school{ background:rgba(74,158,255,.45); border:1px solid var(--blue); }
.leg-vac{ background:rgba(34,201,122,.45); border:1px solid var(--green); }
.leg-weekend{ background:rgba(167,139,250,.3); border:1px solid var(--purple); }
.leg-overlap{ background:rgba(255,140,0,.4); border:1px solid rgba(220,100,0,.7); }

/* ---- LAYOUT ---- */
.wrap{
  max-width:1500px;
  margin:0 auto;
  padding:1.4rem;
  display:grid;
  grid-template-columns:310px 1fr;
  gap:1.4rem;
  align-items:start;
}
.sidebar{
  display:flex;
  flex-direction:column;
  gap:.85rem;
  position:sticky;
  top:72px;
  max-height:calc(100vh - 86px);
  overflow-y:auto;
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
}
.panel{ min-height:80vh; }

/* ---- CARD ---- */
.c{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:1.1rem;
}

/* Card title with gold bar */
.ct{
  font-size:.67rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
  margin-bottom:.85rem;
  display:flex;
  align-items:center;
  gap:6px;
}
.ct::before{
  content:'';
  width:3px; height:12px;
  background:var(--gold);
  border-radius:2px;
  display:block;
  flex-shrink:0;
}

/* ---- FORM ELEMENTS ---- */
.f{ margin-bottom:.7rem; }
.f:last-child{ margin-bottom:0; }
label{
  font-size:.68rem;
  font-weight:700;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.5px;
  display:block;
  margin-bottom:4px;
}
input[type=text],
input[type=number],
input[type=date],
select,
textarea{
  width:100%;
  background:var(--surf);
  border:1px solid var(--border);
  border-radius:var(--rs);
  color:var(--text);
  padding:8px 11px;
  font-family:'DM Sans',sans-serif;
  font-size:.84rem;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
  -webkit-appearance:none;
  appearance:none;
}
input:focus, select:focus, textarea:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(232,160,32,.1);
}
select{
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23506070' d='M5 7L0 2h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 9px center;
  padding-right:26px;
}
select option{ background:#1a2035; }
input[type=range]{
  padding:0; height:4px;
  background:var(--border);
  border:none;
  cursor:pointer;
  border-radius:2px;
  accent-color:var(--gold);
}
.sel{ /* alias */ }

/* ---- STATUS ---- */
.status-card{ border-color:rgba(74,158,255,.3); }
.status-text{ font-size:.8rem; color:var(--soft); line-height:1.5; }

/* ---- WEEK BOOSTER (sidebar) ---- */
.booster-sub{ font-size:.75rem; color:var(--muted); line-height:1.5; }
.week-summary-box{
  font-size:.7rem;
  color:var(--muted);
  margin-top:.5rem;
  padding:5px 8px;
  background:var(--surf);
  border-radius:var(--rs);
  border:1px solid var(--border);
}
.week-list{ display:flex; flex-direction:column; gap:6px; }
.week-item{
  background:var(--surf);
  border:1px solid var(--border);
  border-radius:var(--rs);
  padding:9px 10px;
  cursor:default;
  transition:border-color .2s, background .2s;
}
.week-item:hover{ border-color:var(--gold); background:rgba(232,160,32,.04); }
.week-kw{ font-family:'JetBrains Mono',monospace; font-size:.75rem; font-weight:600; color:var(--gold); margin-bottom:3px; }
.week-sentence{ font-size:.73rem; color:var(--soft); line-height:1.45; margin-bottom:5px; }
.week-row{ display:flex; align-items:center; justify-content:space-between; gap:6px; }
.week-dates{ font-family:'JetBrains Mono',monospace; font-size:.68rem; color:var(--muted); }

/* ---- SPONSOR BOX ---- */
.sponsor-box{ border-color:rgba(232,160,32,.25); background:linear-gradient(135deg,rgba(232,160,32,.04),var(--card)); }
.sponsor-inner{ display:flex; flex-direction:column; gap:.5rem; }
.sponsor-title{ font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; color:var(--text); }
.sponsor-loc{ font-size:.76rem; color:var(--muted); }
.sponsor-desc{ font-size:.78rem; color:var(--soft); line-height:1.5; }
.sponsor-btn{
  display:inline-block;
  margin-top:.3rem;
  padding:8px 14px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;
  border-radius:var(--rs);
  font-weight:700;
  font-size:.8rem;
  text-align:center;
  transition:all .2s;
  box-shadow:0 4px 14px rgba(232,160,32,.2);
}
.sponsor-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(232,160,32,.35); }

/* ---- PRINT BUTTON GROUP (in header) ---- */
/* ibtn used above */

/* ---- YEAR GRID ---- */
.year-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:1rem;
}
@media(max-width:1100px){ .year-grid{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:680px){ .year-grid{ grid-template-columns:1fr; } }

/* Month Card */
.month-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:1rem;
  cursor:pointer;
  transition:all .18s ease;
  position:relative;
  overflow:hidden;
}
.month-card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:var(--r);
  box-shadow:inset 0 0 0 1px rgba(232,160,32,0);
  transition:box-shadow .18s;
  pointer-events:none;
}
.month-card:hover{
  border-color:rgba(232,160,32,.5);
  transform:translateY(-2px);
  box-shadow:0 8px 28px rgba(0,0,0,.35);
}
.month-card:hover::before{ box-shadow:inset 0 0 0 1px rgba(232,160,32,.25); }
.mini-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:.65rem;
  padding-bottom:.5rem;
  border-bottom:1px solid rgba(38,52,72,.8);
}
.mini-title{
  font-family:'Playfair Display',serif;
  font-size:1rem;
  font-weight:700;
  color:var(--text);
}
.plan-badge{
  font-size:.6rem;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  padding:3px 8px;
  border-radius:20px;
  border:1px solid rgba(232,160,32,.3);
  color:var(--gold);
  background:rgba(232,160,32,.07);
  opacity:.7;
  transition:opacity .15s;
}
.month-card:hover .plan-badge{ opacity:1; }

/* ---- CALENDAR TABLE ---- */
table.cal{
  width:100%;
  border-collapse:separate;
  border-spacing:3px;
  table-layout:fixed;
}
table.cal th{
  font-size:.62rem;
  color:var(--muted);
  padding:2px 0 4px;
  font-weight:600;
  text-align:center;
  font-family:'DM Sans',sans-serif;
}
table.cal th.wk{ color:var(--muted); font-size:.58rem; }
table.cal td{
  height:48px;
  font-size:.7rem;
  padding:4px 5px;
  border-radius:7px;
  vertical-align:top;
  background:var(--surf);
  transition:background .12s;
  border:1px solid transparent;
}
table.cal td.out{
  background:transparent;
  border-color:transparent;
  color:var(--muted);
  opacity:.3;
  cursor:default;
}
table.cal td.weekend{
  background:rgba(167,139,250,.1);
  border-color:rgba(167,139,250,.15);
}
table.cal td.holiday{
  background:rgba(240,82,82,.18);
  border-color:rgba(240,82,82,.3);
}
table.cal td.school{
  background:rgba(74,158,255,.35);
  border-color:rgba(74,158,255,.6);
  box-shadow:inset 0 0 0 1px rgba(74,158,255,.35);
}
table.cal td.vac{
  background:rgba(34,201,122,.18);
  border-color:rgba(34,201,122,.3);
}
table.cal td.overlap{
  background:linear-gradient(135deg,rgba(255,80,0,.45),rgba(255,180,0,.35));
  border-color:rgba(255,100,0,.7);
  box-shadow:inset 0 0 0 1px rgba(255,120,0,.4);
}
table.cal td.overlap .daynum{ color:#ff5500; font-weight:800; }
table.cal td.selected{
  outline:2px solid var(--gold);
  outline-offset:-1px;
  background:rgba(232,160,32,.12);
}
table.cal td.preview{
  outline:2px dashed rgba(232,160,32,.5);
  outline-offset:-1px;
}
table.cal td.wk{
  background:rgba(38,52,72,.6);
  border-color:transparent;
  font-family:'JetBrains Mono',monospace;
  font-size:.55rem;
  color:var(--muted);
  text-align:center;
  vertical-align:middle;
}
.cell{ display:flex; flex-direction:column; height:100%; }
.daynum{
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  font-weight:600;
  color:var(--soft);
  line-height:1;
}
table.cal td.holiday .daynum{ color:rgba(240,82,82,.9); }
table.cal td.school .daynum{ color:rgba(40,130,255,1); font-weight:700; }
table.cal td.vac .daynum{ color:rgba(34,201,122,.9); }
table.cal td.weekend .daynum{ color:rgba(167,139,250,.8); }
.tag{
  font-size:.55rem;
  line-height:1.2;
  margin-top:3px;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  word-break:break-word;
  color:var(--muted);
}
.tag-holiday{ color:rgba(240,82,82,.85); }
.tag-vac{ color:rgba(34,201,122,.85); }

/* ---- OPTIMIZER ---- */
.optimizer-card{ }
.optimizer-head{ margin-bottom:1rem; }
.opt-title{
  font-family:'Playfair Display',serif;
  font-size:1.15rem;
  font-weight:700;
  color:var(--text);
  display:flex;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.opt-badge{
  font-size:.62rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.6px;
  padding:3px 9px;
  border-radius:20px;
  background:rgba(232,160,32,.1);
  border:1px solid rgba(232,160,32,.25);
  color:var(--gold);
}
.opt-sub{ font-size:.8rem; color:var(--muted); margin-top:.4rem; line-height:1.5; max-width:70ch; }
.opt-controls{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:.7rem;
  margin-bottom:.9rem;
  padding:.9rem;
  background:var(--surf);
  border-radius:var(--rs);
  border:1px solid var(--border);
}
.opt-chips{ display:flex; gap:.4rem; flex-wrap:wrap; margin-bottom:.8rem; }
.chip{
  border:1px solid var(--border);
  background:var(--surf);
  padding:5px 12px;
  border-radius:999px;
  font-weight:700;
  font-size:.73rem;
  cursor:pointer;
  color:var(--muted);
  transition:all .15s;
  font-family:'DM Sans',sans-serif;
}
.chip.active{ background:var(--gold); color:#000; border-color:var(--gold); }
.chip:hover:not(.active){ border-color:var(--soft); color:var(--text); }
.opt-seg-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:.9rem;
}
.seg{
  display:flex;
  border:1px solid var(--border);
  border-radius:var(--rs);
  overflow:hidden;
  background:var(--surf);
}
.seg-btn{
  border:0;
  background:transparent;
  padding:6px 14px;
  font-weight:700;
  font-size:.75rem;
  cursor:pointer;
  color:var(--muted);
  font-family:'DM Sans',sans-serif;
  transition:all .15s;
}
.seg-btn.active{ background:var(--gold); color:#000; }
.toggle-label{
  display:flex;
  align-items:center;
  gap:7px;
  font-size:.76rem;
  color:var(--soft);
  cursor:pointer;
  text-transform:none;
  letter-spacing:0;
  font-weight:500;
}
.toggle-label input[type=checkbox]{
  width:auto;
  accent-color:var(--gold);
  cursor:pointer;
}
.kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.8rem;
  margin-bottom:.4rem;
}
@media(max-width:600px){ .kpis{ grid-template-columns:1fr; } }
.kpi{
  background:var(--surf);
  border:1px solid var(--border);
  border-radius:var(--rs);
  padding:.9rem;
}
.kpi-label{ font-size:.65rem; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:.5px; }
.kpi-value{ font-size:1.1rem; font-weight:800; letter-spacing:-.2px; margin-top:.3rem; color:var(--gold); font-family:'Playfair Display',serif; }
.kpi-sub{ font-size:.74rem; color:var(--soft); margin-top:.2rem; }

/* Optimizer List */
.opt-list{ display:flex; flex-direction:column; gap:.7rem; }
.opt-month{
  border:1px solid var(--border);
  border-radius:var(--rs);
  overflow:hidden;
  background:var(--surf);
}
.opt-month-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.65rem .9rem;
  background:rgba(38,52,72,.5);
  border-bottom:1px solid var(--border);
}
.opt-month-title{ font-family:'Playfair Display',serif; font-size:.9rem; font-weight:700; }
.opt-items{ display:flex; flex-direction:column; }
.opt-item{
  display:flex;
  gap:.7rem;
  align-items:flex-start;
  justify-content:space-between;
  padding:.7rem .9rem;
  border-top:1px solid rgba(38,52,72,.5);
  transition:background .12s;
}
.opt-item:first-child{ border-top:0; }
.opt-item:hover{ background:rgba(232,160,32,.03); }
.opt-main{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.opt-range{ font-family:'JetBrains Mono',monospace; font-size:.8rem; font-weight:600; color:var(--text); }
.opt-badges{ display:flex; gap:5px; flex-wrap:wrap; margin-top:3px; }
.badge2{
  font-size:.68rem;
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  color:var(--muted);
  font-weight:700;
}
.badge2 strong{ color:var(--text); }
.opt-actions{ display:flex; gap:6px; align-items:center; flex-shrink:0; }
.opt-note{ font-size:.72rem; color:var(--muted); margin-top:.6rem; }

/* Rating badges */
.rate{ font-size:.68rem; padding:2px 8px; border-radius:999px; border:1px solid transparent; font-weight:700; }
.rate.a{ background:rgba(34,201,122,.12); color:var(--green); border-color:rgba(34,201,122,.25); }
.rate.b{ background:rgba(74,158,255,.1); color:var(--blue); border-color:rgba(74,158,255,.2); }
.rate.c{ background:rgba(251,146,60,.08); color:var(--orange); border-color:rgba(251,146,60,.18); }

/* ---- OVERVIEW GRID ---- */
.overview-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1rem;
}
@media(max-width:820px){ .overview-grid{ grid-template-columns:1fr; } }
.pane-scroll{ max-height:380px; overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--border) transparent; }

/* ---- DATA TABLE ---- */
.data-table{ width:100%; border-collapse:collapse; }
.data-table th, .data-table td{
  border-bottom:1px solid rgba(38,52,72,.6);
  padding:.6rem .5rem;
  text-align:left;
  vertical-align:top;
  font-size:.8rem;
}
.data-table th{ font-size:.65rem; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; font-weight:700; }
.data-table td:first-child{ white-space:nowrap; }
.pill{
  display:inline-block;
  padding:3px 9px;
  border-radius:999px;
  border:1px solid var(--border);
  font-size:.7rem;
  background:var(--surf);
  color:var(--soft);
  font-family:'JetBrains Mono',monospace;
}

/* ---- BUTTONS ---- */
.btn-plan{
  width:100%;
  padding:11px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  border:none;
  border-radius:var(--rs);
  color:#000;
  font-family:'Playfair Display',serif;
  font-size:.95rem;
  font-weight:700;
  cursor:pointer;
  transition:all .2s;
  box-shadow:0 4px 18px rgba(232,160,32,.22);
}
.btn-plan:hover:not(:disabled){ transform:translateY(-2px); box-shadow:0 8px 26px rgba(232,160,32,.38); }
.btn-plan:disabled{ opacity:.4; cursor:not-allowed; transform:none; }
.btn-ghost{
  background:transparent;
  border:1px solid var(--border);
  border-radius:var(--rs);
  color:var(--muted);
  padding:6px 12px;
  cursor:pointer;
  font-size:.76rem;
  font-weight:600;
  transition:all .15s;
  font-family:'DM Sans',sans-serif;
}
.btn-ghost:hover{ border-color:var(--soft); color:var(--text); }
.btn-sm{
  padding:5px 11px;
  border:1px solid var(--border);
  border-radius:var(--rs);
  background:var(--surf);
  color:var(--muted);
  cursor:pointer;
  font-size:.72rem;
  font-weight:700;
  transition:all .15s;
  font-family:'DM Sans',sans-serif;
}
.btn-sm:hover{ border-color:var(--gold); color:var(--gold); background:rgba(232,160,32,.05); }
.btn-del{
  padding:4px 9px;
  border:1px solid rgba(240,82,82,.3);
  border-radius:var(--rs);
  background:transparent;
  color:var(--red);
  cursor:pointer;
  font-size:.68rem;
  font-weight:700;
  transition:all .15s;
  font-family:'DM Sans',sans-serif;
}
.btn-del:hover{ background:rgba(240,82,82,.08); }

/* ---- FOOTER ---- */
.site-footer{
  margin-top:2rem;
  padding-top:1rem;
  border-top:1px solid var(--border);
}
.footer-row{
  display:flex;
  gap:1rem;
  align-items:flex-start;
  justify-content:space-between;
  flex-wrap:wrap;
  font-size:.76rem;
  color:var(--muted);
  line-height:1.6;
}
.footer-links{ display:flex; gap:.6rem; align-items:center; white-space:nowrap; }
.footer-links a{ text-decoration:underline; text-underline-offset:2px; }

/* ---- MODAL ---- */
.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(5,8,20,.7);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1rem;
  z-index:500;
}
.modal{
  width:min(980px,100%);
  max-height:92vh;
  overflow-y:auto;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:0 30px 80px rgba(0,0,0,.7);
  scrollbar-width:thin;
  scrollbar-color:var(--border) transparent;
}
.modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:.85rem 1.1rem;
  border-bottom:1px solid var(--border);
  position:sticky;
  top:0;
  background:var(--card);
  z-index:1;
}
.modal-nav{ display:flex; align-items:center; gap:.7rem; }
.modal-title{ font-family:'Playfair Display',serif; font-size:1.1rem; font-weight:700; }
.modal-sub{ font-size:.72rem; color:var(--muted); margin-top:2px; }
.modal-body{ padding:1.1rem; }
.modal-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media(max-width:720px){ .modal-grid{ grid-template-columns:1fr; } }
.sel-display{ font-size:.78rem; color:var(--soft); margin-top:.65rem; }
.sel-display strong{ color:var(--gold); font-family:'JetBrains Mono',monospace; }

textarea{
  resize:vertical;
  min-height:88px;
  line-height:1.5;
}

/* ---- PRINT ---- */
@media print{
  .no-print{ display:none !important; }
  body{ background:#fff; color:#000; font-size:9px; }
  .site-header{ display:none !important; }
  .hero-band{ display:none !important; }
  .sidebar{ display:none !important; }
  .wrap{ display:block; padding:0; }
  .panel{ padding:0; }
  .c{ background:#fff; border:1px solid #ccc; box-shadow:none; }
  .year-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:4px; }
  .month-card{ padding:6px; border:1px solid #ccc; break-inside:avoid; page-break-inside:avoid; }
  .mini-title{ font-size:9px; font-weight:900; }
  .plan-badge{ display:none; }
  table.cal{ border-spacing:1px; }
  table.cal th{ font-size:7px; padding:1px 0; color:#666; }
  table.cal td{ height:14px; font-size:6.5px; padding:1px 2px; border-radius:4px; background:#f5f5f5; border:1px solid transparent; }
  table.cal td.out{ background:transparent; }
  table.cal td.weekend{ background:#ede9fd; }
  table.cal td.holiday{ background:#fee2e2; border-color:#fca5a5; }
  table.cal td.school{ background:#bfdbfe; border-color:#3b82f6; }
  table.cal td.vac{ background:#d1fae5; border-color:#6ee7b7; }
  table.cal td.overlap{ background:#fed7aa; border-color:#f97316; box-shadow:inset 0 0 0 1px #f97316; }
  .daynum{ font-size:6px; color:#333; }
  .tag{ font-size:5px; }
  table.cal td.wk{ background:#f0f0f0; color:#888; font-size:5px; }

  .print-header{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    padding:.4rem 0 .5rem;
    border-bottom:2px solid #333;
    margin-bottom:.5rem;
  }
  .print-header .ph-left{ display:flex; align-items:center; gap:.4rem; }
  .print-header .ph-title{ font-weight:900; font-size:12px; }
  .print-header .ph-sub{ font-size:9px; color:#555; }
  .print-header .ph-year{ font-weight:900; font-size:13px; }

  .print-vac .pane-scroll{ max-height:none !important; overflow:visible !important; }
  body.print-calendar-only .print-vac{ display:none !important; }
  body.print-with-list .print-vac{ break-before:page; page-break-before:always; }
  body.print-poster .print-vac{ display:none !important; }

  body.print-calendar-only .year-grid,
  body.print-with-list .year-grid{ grid-template-columns:repeat(4,1fr) !important; }
  body.print-poster .year-grid{ grid-template-columns:repeat(4,1fr) !important; }

  .optimizer-card{ display:none !important; }
  .overview-grid{ display:none !important; }
  #overviewSection{ display:none !important; }
}

/* ---- RESPONSIVE ---- */
@media(max-width:900px){
  .wrap{ grid-template-columns:1fr; }
  .sidebar{ position:static; max-height:none; overflow:visible; }
}
@media(max-width:600px){
  .hdr-nav{ display:none; }
  .hero-inner h1{ font-size:1.6rem; }
}

/* ===== FERIENWOHNUNG AM SCHLOSS – Premium Sponsor Card ===== */
.sponsor-fewo{
  background:linear-gradient(135deg,rgba(232,160,32,.08),rgba(34,201,122,.05),var(--card));
  border:1px solid rgba(232,160,32,.35);
  border-radius:var(--r);
  overflow:hidden;
  position:relative;
}
.sponsor-fewo::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,var(--gold),var(--green),var(--gold2));
}
.fewo-badge{
  font-size:.62rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--gold);
  padding:.6rem 1rem .2rem;
  display:flex;
  align-items:center;
  gap:5px;
}
.fewo-image-area{
  background:linear-gradient(135deg,rgba(11,15,28,.8),rgba(25,32,47,.9));
  border-top:1px solid rgba(232,160,32,.15);
  border-bottom:1px solid rgba(232,160,32,.15);
  padding:1.2rem 1rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.4rem;
  margin:0 0 0 0;
}
.fewo-castle-icon{
  font-size:2.8rem;
  filter:drop-shadow(0 4px 12px rgba(232,160,32,.3));
}
.fewo-img-label{
  font-size:.65rem;
  color:var(--muted);
  font-weight:600;
  letter-spacing:.5px;
  text-transform:uppercase;
}
.fewo-body{ padding:.85rem 1rem 1rem; }
.fewo-title{
  font-family:'Playfair Display',serif;
  font-size:1.05rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:.25rem;
}
.fewo-stars{ font-size:.85rem; color:var(--gold); margin-bottom:.4rem; }
.fewo-star-muted{ color:var(--border); }
.fewo-loc{ font-size:.72rem; color:var(--muted); margin-bottom:.55rem; }
.fewo-tags{ display:flex; gap:.35rem; flex-wrap:wrap; margin-bottom:.65rem; }
.fewo-tag{
  font-size:.62rem;
  font-weight:700;
  padding:2px 8px;
  border-radius:999px;
  background:rgba(232,160,32,.08);
  border:1px solid rgba(232,160,32,.2);
  color:var(--gold);
}
.fewo-desc{ font-size:.76rem; color:var(--soft); line-height:1.55; margin-bottom:.8rem; }
.fewo-btn{
  display:block;
  width:100%;
  padding:9px 14px;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#000;
  border-radius:var(--rs);
  font-weight:700;
  font-size:.82rem;
  text-align:center;
  transition:all .2s;
  box-shadow:0 4px 16px rgba(232,160,32,.25);
}
.fewo-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 22px rgba(232,160,32,.4); }

/* ===== CROSS-PROMO: UrlaubsWeg (Sidebar) ===== */
.promo-card{
  border-radius:var(--r);
  padding:1rem;
  position:relative;
  overflow:hidden;
}
.promo-urlaubsweg{
  background:linear-gradient(135deg,rgba(74,158,255,.08),rgba(74,158,255,.03),var(--card));
  border:1px solid rgba(74,158,255,.3);
}
.promo-urlaubsweg::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,var(--blue),var(--purple));
}
.promo-eyebrow{ font-size:.62rem; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:.4rem; }
.promo-title{
  font-family:'Playfair Display',serif;
  font-size:1.05rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:.4rem;
}
.promo-title em{ color:var(--blue); font-style:normal; }
.promo-desc{ font-size:.76rem; color:var(--soft); line-height:1.5; margin-bottom:.75rem; }
.promo-btn{
  display:block;
  width:100%;
  padding:8px 14px;
  background:linear-gradient(135deg,var(--blue),#2a6fcc);
  color:#fff;
  border-radius:var(--rs);
  font-weight:700;
  font-size:.8rem;
  text-align:center;
  transition:all .2s;
  box-shadow:0 4px 14px rgba(74,158,255,.2);
}
.promo-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 20px rgba(74,158,255,.35); }

/* ===== CROSS-PROMO BANNER: UrlaubsWeg (Main Panel) ===== */
.banner-urlaubsweg{
  background:linear-gradient(135deg,rgba(74,158,255,.07),rgba(167,139,250,.05),rgba(34,201,122,.04));
  border:1px solid rgba(74,158,255,.28);
  border-radius:var(--r);
  padding:1.1rem 1.3rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1.2rem;
  position:relative;
  overflow:hidden;
}
.banner-urlaubsweg::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg,var(--blue),var(--purple),var(--green));
}
.buw-left{ display:flex; align-items:center; gap:.9rem; flex:1; min-width:0; }
.buw-logo{
  font-size:2rem;
  width:48px; height:48px;
  background:rgba(74,158,255,.1);
  border:1px solid rgba(74,158,255,.25);
  border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.buw-title{ font-family:'Playfair Display',serif; font-size:1rem; font-weight:700; color:var(--text); margin-bottom:.25rem; }
.buw-sub{ font-size:.75rem; color:var(--muted); line-height:1.45; }
.buw-btn{
  flex-shrink:0;
  padding:10px 18px;
  background:linear-gradient(135deg,var(--blue),#2a6fcc);
  color:#fff;
  border-radius:var(--rs);
  font-weight:700;
  font-size:.82rem;
  white-space:nowrap;
  transition:all .2s;
  box-shadow:0 4px 16px rgba(74,158,255,.22);
}
.buw-btn:hover{ transform:translateY(-1px); box-shadow:0 6px 22px rgba(74,158,255,.38); }
@media(max-width:680px){
  .banner-urlaubsweg{ flex-direction:column; align-items:flex-start; }
  .buw-btn{ width:100%; text-align:center; }
}

/* ===== SPONSOR BAR (zwei Zeilen) ===== */
.site-sponsor-bar{
  background:linear-gradient(90deg,#080c18 0%,#0d1628 50%,#080c18 100%);
  border-bottom:1px solid rgba(232,160,32,.2);
  display:flex;
  flex-direction:column;
  gap:0;
  position:sticky;
  top:60px; /* direkt unter Header */
  z-index:190;
}
.sbar-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:5px 1.5rem;
  flex-wrap:wrap;
  font-size:.72rem;
}
.sbar-row:first-child{ border-bottom:1px solid rgba(255,255,255,.05); }
.sbar-row-gold{ background:rgba(232,160,32,.03); }
.sbar-row-blue{ background:rgba(74,158,255,.03); }
.sbar-label{ color:var(--muted); letter-spacing:.2px; }
.sbar-link{
  display:flex; align-items:center; gap:5px;
  text-decoration:none; transition:opacity .2s;
}
.sbar-link:hover{ opacity:.8; }
.sbar-icon{ font-size:.95rem; }
.sbar-name{
  font-size:.8rem; font-weight:700;
  font-family:'Playfair Display',serif;
  letter-spacing:.2px;
}
.sbar-name-gold{ color:var(--gold); }
.sbar-name-blue{ color:#4a9eff; }
.sbar-loc{ color:var(--soft); }
.sbar-btn{
  display:inline-flex; align-items:center;
  padding:3px 11px;
  border-radius:20px;
  font-size:.72rem; font-weight:700;
  text-decoration:none; transition:all .2s;
  white-space:nowrap;
}
.sbar-btn-gold{
  background:rgba(232,160,32,.12);
  border:1px solid rgba(232,160,32,.3);
  color:var(--gold);
}
.sbar-btn-gold:hover{ background:rgba(232,160,32,.22); border-color:var(--gold); }
.sbar-btn-blue{
  background:rgba(74,158,255,.12);
  border:1px solid rgba(74,158,255,.3);
  color:#4a9eff;
}
.sbar-btn-blue:hover{ background:rgba(74,158,255,.22); border-color:#4a9eff; }
@media(max-width:680px){
  .sbar-row{ padding:5px 1rem; gap:6px; }
  .sbar-loc{ display:none; }
}
@media print{ .site-sponsor-bar{ display:none !important; } }
