/* ===================================================================
   Julia Frisch · Call-Kalender — Styles
   Markentreu zu juliafrisch.com: weiss-dominant, Navy + Marken-Pink,
   Outfit + Instrument Sans + Inter. (Werte aus perfect-match-workshop)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Instrument+Sans:wght@400;500;600;700&family=Inter:wght@500;600;700;800&display=swap');

:root {
  --jf-bg: #FFFFFF;
  --jf-tint: #F4F5F8;
  --jf-pink-wash: #FCEFF4;
  --jf-navy: #06214D;
  --jf-indigo: #22244B;
  --jf-card: #FFFFFF;

  --jf-pink: #EF6391;
  --jf-pink-deep: #D94E7C;
  --jf-pink-soft: #FCEBF1;

  --jf-text: #06214D;
  --jf-text-body: #3A414B;
  --jf-text-muted: #6B7280;
  --jf-line: #E7E9F0;

  --jf-shadow-sm: 0 6px 22px rgba(6,33,77,.07);
  --jf-shadow-md: 0 18px 46px rgba(6,33,77,.12);
  --jf-shadow-lg: 0 30px 70px rgba(6,33,77,.16);
  --jf-shadow-pink: 0 14px 34px rgba(239,99,145,.34);

  --jf-radius: 18px;
  --jf-radius-lg: 28px;
  --jf-btn-radius: 40px;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-button: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--jf-bg);
  color: var(--jf-text-body);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--jf-text); line-height: 1.16; font-weight: 700; letter-spacing: -.015em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--jf-pink-deep); text-decoration: none; transition: color .2s ease; }
strong { font-weight: 600; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ===================== BÄNDER ===================== */
.band { padding: clamp(48px, 7vw, 92px) 0; position: relative; }
.band-tight { padding: clamp(34px, 5vw, 60px) 0; }
.band-light { background: var(--jf-bg); }
.band-tint  { background: var(--jf-tint); }
.band-navy  {
  background:
    radial-gradient(ellipse 75% 55% at 75% 0%, rgba(239,99,145,.16), transparent 62%),
    linear-gradient(180deg, #0A2A5E 0%, var(--jf-navy) 100%);
  color: #fff;
}
.band-navy h1, .band-navy h2, .band-navy h3, .band-navy p { color: #fff; }
.band-pinkwash { background: linear-gradient(180deg, var(--jf-pink-wash) 0%, var(--jf-bg) 100%); }

/* ===================== EYEBROW / HERO ===================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-button); font-weight: 700; font-size: 12.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--jf-pink-deep);
  background: var(--jf-pink-soft); padding: 7px 15px; border-radius: 40px; margin-bottom: 18px;
}
.band-navy .eyebrow { color: #fff; background: rgba(255,255,255,.14); }

.hero { text-align: center; }
.hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; margin-bottom: 16px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.86); }
.band-light .hero p.lead { color: var(--jf-text-body); }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-button); font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: var(--jf-btn-radius); border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--jf-pink); color: #fff; box-shadow: var(--jf-shadow-pink); }
.btn-primary:hover { transform: translateY(-2px); background: var(--jf-pink-deep); }
.btn-ghost { background: #fff; color: var(--jf-navy); border: 1.5px solid var(--jf-line); box-shadow: var(--jf-shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--jf-pink); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; gap: 7px; }
.btn-lg { padding: 17px 38px; font-size: 17px; }

/* ===================== ZWEI WEGE (Vergleich) ===================== */
.ways { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: stretch; max-width: 940px; margin: 0 auto; }
.way-card { display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius-lg); padding: 26px 24px 26px; box-shadow: var(--jf-shadow-sm); }
.way-top { margin-bottom: 16px; }
.way-label { display: inline-block; font-family: var(--font-button); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #fff; background: var(--jf-pink); padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.way-label.alt { background: var(--jf-navy); }
.way-top h3 { font-size: 21px; margin-bottom: 6px; }
.way-lead { font-size: 14.5px; color: var(--jf-text-body); }
.pros, .cons { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pros { margin-top: 4px; }
.cons { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--jf-line); }
.pros li, .cons li { position: relative; padding-left: 28px; font-size: 14px; line-height: 1.5; color: var(--jf-text-body); }
.pros li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: #e7f6ee; color: #1f9d57; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cons li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--jf-pink-soft); color: var(--jf-pink-deep); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.way-action { margin-top: auto; padding-top: 20px; }
.way-or { display: flex; align-items: center; justify-content: center; }
.way-or span { font-family: var(--font-button); font-weight: 800; font-size: 12px; letter-spacing: .08em; color: var(--jf-text-muted); background: var(--jf-tint); border: 1.5px solid var(--jf-line); border-radius: 50%; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; }
.sub-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 12px; }
.sub-btn { width: 100%; justify-content: flex-start; font-size: 14.5px; padding: 12px 16px; }
.sub-btn img { width: 22px; height: 22px; }
.way-action .copyfield { width: 100%; justify-content: space-between; }
.way-action .copyfield code { flex: 1 1 auto; min-width: 0; max-width: none; }
.way-action .copyfield .btn { flex: 0 0 auto; }
.way-action .btn-lg { width: 100%; }
.ways-foot { text-align: center; max-width: 620px; margin: 22px auto 0; font-size: 13.5px; color: var(--jf-text-muted); }

.howto { margin-top: 16px; border-top: 1px dashed var(--jf-line); padding-top: 14px; }
.howto summary { cursor: pointer; font-family: var(--font-button); font-weight: 700; font-size: 14px; color: var(--jf-navy); }
.howto summary:hover { color: var(--jf-pink-deep); }
.howto-body { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.howto-body p { font-size: 14px; color: var(--jf-text-body); }
.howto-body strong { color: var(--jf-navy); }

/* ===================== ABO-KARTEN (Plattform) ===================== */
.subscribe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 760px; margin: 28px auto 0;
}
.sub-card {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius);
  padding: 26px 18px; text-align: center; box-shadow: var(--jf-shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sub-card:hover { transform: translateY(-3px); box-shadow: var(--jf-shadow-md); border-color: var(--jf-pink); }
.sub-card img { width: 46px; height: 46px; }
.sub-card .sub-name { font-family: var(--font-display); font-weight: 700; color: var(--jf-navy); font-size: 16px; }
.sub-card .sub-hint { font-size: 12.5px; color: var(--jf-text-muted); }

.subscribe-fallback {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center;
  margin-top: 22px;
}
.copyfield {
  display: inline-flex; align-items: center; gap: 8px; background: var(--jf-tint);
  border: 1px solid var(--jf-line); border-radius: 40px; padding: 7px 8px 7px 16px;
  font-family: var(--font-button); font-size: 13px; color: var(--jf-text-muted); max-width: 100%;
}
.copyfield code { font-family: var(--font-button); color: var(--jf-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }

/* ===================== WOCHENRASTER ===================== */
.week-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.day-card {
  background: #fff; border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius);
  padding: 18px 16px; box-shadow: var(--jf-shadow-sm);
}
.day-card .day-name { font-family: var(--font-button); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--jf-pink-deep); margin-bottom: 12px; }
.slot { padding: 9px 0; border-top: 1px dashed var(--jf-line); }
.slot:first-of-type { border-top: none; }
.slot .slot-time { font-family: var(--font-button); font-weight: 700; color: var(--jf-navy); font-size: 15px; }
.slot .slot-title { font-size: 13.5px; color: var(--jf-text-body); }
.day-card.empty { background: var(--jf-tint); border-style: dashed; }
.day-card.empty .day-name { color: var(--jf-text-muted); }
.day-card.empty .muted { font-size: 13px; color: var(--jf-text-muted); }

/* ===================== NÄCHSTE TERMINE ===================== */
.events-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.event-row {
  display: flex; align-items: center; gap: 18px; background: #fff;
  border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius); padding: 16px 20px;
  box-shadow: var(--jf-shadow-sm); flex-wrap: wrap;
}
.event-date {
  flex: 0 0 auto; text-align: center; min-width: 62px;
  background: var(--jf-pink-soft); border-radius: 14px; padding: 8px 10px;
}
.event-date .d { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--jf-pink-deep); line-height: 1; }
.event-date .m { font-family: var(--font-button); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--jf-pink-deep); }
.event-main { flex: 1 1 200px; }
.event-main .et { font-family: var(--font-display); font-weight: 700; color: var(--jf-navy); font-size: 17px; }
.event-main .ew { font-size: 13.5px; color: var(--jf-text-muted); }
.event-actions { flex: 0 0 auto; display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.event-row.is-cancelled { opacity: .72; background: var(--jf-pink-soft); border-color: var(--jf-pink); }
.event-row.is-cancelled .et { text-decoration: line-through; }
.badge-off {
  display: inline-block; font-family: var(--font-button); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--jf-pink-deep);
  padding: 3px 9px; border-radius: 30px; margin-left: 8px;
}
.note-line { font-size: 13px; color: var(--jf-pink-deep); margin-top: 3px; }

/* Mini-Dropdown fuer Einzel-"In Kalender" */
.addmenu { position: relative; display: inline-block; }
.addmenu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: none;
  background: #fff; border: 1px solid var(--jf-line); border-radius: 14px; box-shadow: var(--jf-shadow-md);
  padding: 6px; min-width: 170px;
}
.addmenu.open .addmenu-pop { display: block; }
.addmenu-pop a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; color: var(--jf-navy); font-size: 14px; font-family: var(--font-button); font-weight: 600; }
.addmenu-pop a:hover { background: var(--jf-tint); }
.addmenu-pop img { width: 18px; height: 18px; }

/* ===================== INFO / NOTIZ ===================== */
.info-note {
  display: flex; gap: 12px; align-items: flex-start; background: var(--jf-tint);
  border: 1px solid var(--jf-line); border-radius: var(--jf-radius); padding: 16px 18px;
  font-size: 14.5px; color: var(--jf-text-body); margin-top: 22px;
}
.info-note .ico { font-size: 20px; line-height: 1.3; }

.center { text-align: center; }
.section-title { text-align: center; margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--jf-text-muted); max-width: 620px; margin: 0 auto 30px; }
.band-navy .section-sub { color: rgba(255,255,255,.8); }

/* ===================== FOOTER ===================== */
.footer { padding: 40px 0; text-align: center; color: var(--jf-text-muted); font-size: 13.5px; }
.footer a { color: var(--jf-pink-deep); }

/* ===================== TOAST ===================== */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--jf-navy); color: #fff; padding: 12px 22px; border-radius: 40px;
  font-family: var(--font-button); font-weight: 600; font-size: 14px; box-shadow: var(--jf-shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ===================== MONATSKALENDER ===================== */
.cal-wrap { max-width: 880px; margin: 0 auto; }
.cal-head { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.cal-head .cal-title { font-family: var(--font-display); font-weight: 800; color: var(--jf-navy); font-size: clamp(19px, 2.6vw, 24px); min-width: 220px; text-align: center; }
.cal-nav {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--jf-line); background: #fff;
  color: var(--jf-navy); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.cal-nav:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--jf-pink); }
.cal-nav:disabled { opacity: .35; cursor: not-allowed; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-family: var(--font-button); font-weight: 800; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--jf-text-muted); padding-bottom: 6px; }
.cal-cell {
  min-height: 96px; background: #fff; border: 1.5px solid var(--jf-line); border-radius: 12px;
  padding: 7px 7px 6px; display: flex; flex-direction: column; gap: 4px;
}
.cal-cell.blank { background: transparent; border-color: transparent; box-shadow: none; }
.cal-cell.today { border-color: var(--jf-pink); box-shadow: 0 0 0 2px var(--jf-pink-soft) inset; }
.cal-daynum { font-family: var(--font-button); font-weight: 700; font-size: 12.5px; color: var(--jf-text-muted); }
.cal-cell.today .cal-daynum { color: var(--jf-pink-deep); }
.cal-ev {
  display: block; width: 100%; text-align: left; cursor: pointer; border: none;
  background: var(--jf-pink-soft); color: var(--jf-navy); border-radius: 7px; padding: 4px 6px;
  font-family: var(--font-button); font-weight: 600; font-size: 11px; line-height: 1.25;
  transition: transform .12s ease, background .12s ease;
}
.cal-ev:hover { transform: translateY(-1px); background: #f8d6e2; }
.cal-ev .cet { font-weight: 800; color: var(--jf-pink-deep); }
.cal-ev.off { background: #fdeaea; border: 1.5px solid #e4572e; color: #b42318; }
.cal-ev.off:hover { background: #fbdede; transform: none; }
.cal-ev .coff { display: inline-block; font-weight: 800; color: #fff; background: #e4572e; border-radius: 5px; padding: 0 5px; margin-right: 3px; font-size: 9.5px; letter-spacing: .02em; }
.cal-ev .cstrike { text-decoration: line-through; }
.cal-ev.special { background: #e9eaff; }
.cal-ev.special .cet { color: var(--jf-indigo); }
.cal-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: var(--jf-text-muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; }
.cal-dot { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.cal-dot.reg { background: var(--jf-pink-soft); border: 1px solid var(--jf-pink); }
.cal-dot.spec { background: #e9eaff; border: 1px solid var(--jf-indigo); }
.cal-dot.off { background: #fdeaea; border: 1.5px solid #e4572e; }

@media (max-width: 640px) {
  .cal-grid { gap: 3px; }
  .cal-cell { min-height: 74px; padding: 4px 4px 5px; border-radius: 9px; }
  .cal-ev { font-size: 9.5px; padding: 3px 4px; }
  .cal-dow { font-size: 10px; }
}

/* ===================== EINTRAG-MODAL ===================== */
.modal-back { position: fixed; inset: 0; background: rgba(6,33,77,.42); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal-card { position: relative; background: #fff; border-radius: var(--jf-radius-lg); padding: 30px 28px 26px; max-width: 420px; width: 100%; box-shadow: var(--jf-shadow-lg); text-align: center; }
.modal-x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--jf-text-muted); cursor: pointer; }
.modal-x:hover { color: var(--jf-pink-deep); }
.modal-when { font-family: var(--font-button); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--jf-pink-deep); }
.modal-title { font-size: 22px; margin: 6px 0 4px; }
.modal-time { color: var(--jf-text-body); font-family: var(--font-button); font-weight: 600; margin-bottom: 18px; }
.modal-add-label { font-size: 13.5px; color: var(--jf-text-muted); margin-bottom: 12px; }
.modal-adds { display: flex; flex-direction: column; gap: 10px; }
.modal-adds .btn { width: 100%; }
.modal-adds .btn img { width: 18px; height: 18px; }

/* ===================== COCKPIT (admin) ===================== */
.admin-shell { max-width: 920px; margin: 0 auto; padding: 28px 22px 80px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-head h1 { font-size: clamp(24px, 3.5vw, 34px); }
.gate { max-width: 420px; margin: 12vh auto; text-align: center; }
.gate .card { background: #fff; border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius-lg); padding: 34px 28px; box-shadow: var(--jf-shadow-md); }
.field { text-align: left; margin: 14px 0; }
.field label { display: block; font-family: var(--font-button); font-weight: 700; font-size: 13px; color: var(--jf-navy); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--jf-line); border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; color: var(--jf-text); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--jf-pink); }

.admin-card { background: #fff; border: 1.5px solid var(--jf-line); border-radius: var(--jf-radius); padding: 20px 22px; box-shadow: var(--jf-shadow-sm); margin-bottom: 18px; }
.admin-card h3 { font-size: 18px; margin-bottom: 4px; }
.admin-card .hint { color: var(--jf-text-muted); font-size: 13.5px; margin-bottom: 14px; }
.row-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1.4fr auto; gap: 10px; align-items: end; }
.row-grid.flex-grid { grid-template-columns: 1.4fr 1fr .8fr .8fr auto; }
.row-grid.exc-grid { grid-template-columns: 1fr 1.4fr auto; }
.list-row { display: grid; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px dashed var(--jf-line); }
.list-row.series { grid-template-columns: 1.2fr .8fr .8fr 1.4fr; }
.list-row.flex { grid-template-columns: 1.3fr 1fr .8fr 1fr auto; }
.list-row.exc { grid-template-columns: 1fr 1.6fr auto; }
.list-row strong { color: var(--jf-navy); }
.tag { display: inline-block; font-family: var(--font-button); font-weight: 700; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--jf-pink-soft); color: var(--jf-pink-deep); }
.del-btn { background: none; border: 1px solid var(--jf-line); color: var(--jf-pink-deep); border-radius: 10px; padding: 7px 12px; cursor: pointer; font-family: var(--font-button); font-weight: 700; font-size: 13px; }
.del-btn:hover { background: var(--jf-pink-soft); border-color: var(--jf-pink); }
.save-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--jf-line); padding: 14px 0; margin-top: 24px; display: flex; gap: 12px; align-items: center; justify-content: flex-end; }
.save-status { margin-right: auto; font-size: 13.5px; color: var(--jf-text-muted); }

@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; gap: 10px; max-width: 520px; }
  .way-or { padding: 4px 0; }
  .way-or span { width: 42px; height: 42px; }
}
@media (max-width: 720px) {
  .subscribe-grid { grid-template-columns: 1fr; max-width: 360px; }
  .row-grid, .row-grid.flex-grid, .row-grid.exc-grid,
  .list-row.series, .list-row.flex, .list-row.exc { grid-template-columns: 1fr 1fr; }
  .event-row { gap: 12px; }
}
