/* HAEC Jugendlager – Stil angelehnt an den Flyer */
:root {
  --navy: #1a2332;
  --navy-2: #243047;
  --orange: #f5a524;
  --orange-d: #d98c0e;
  --grey: #eef0f3;
  --line: #d9dde4;
  --text: #1f2633;
  --muted: #6b7280;
  --ok: #1e8e5a;
  --err: #c0392b;
  --radius: 10px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #f6f7f9; line-height: 1.45; font-size: 15px; }
a { color: var(--navy); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; font-weight: 800; margin-top: 1.4em; }
h3 { font-size: 1.05rem; font-weight: 700; }
.kicker { color: var(--orange-d); font-weight: 800; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.hide-print {}

/* ------------------------------------------------ Kopf / Navigation (App) */
.topbar { background: var(--navy); color: #fff; border-bottom: 4px solid var(--orange); }
.topbar .inner { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { height: 40px; }
.brand b { display: block; font-size: 1rem; }
.brand span { display: block; font-size: .78rem; color: #aab3c2; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: #e6e9ef; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.nav a:hover, .nav a.active { background: var(--navy-2); color: var(--orange); }
.nav .who { color: #aab3c2; font-size: .8rem; padding: 0 6px; }
.nav-toggle { display: none; }

.page { max-width: 1240px; margin: 0 auto; padding: 22px 16px 60px; }
.page-head { display: flex; gap: 12px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.subnav a { padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 600; }
.subnav a.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ------------------------------------------------ Karten, Raster */
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; margin-bottom: 16px; }
.card.accent { border-top: 5px solid var(--orange); }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; border-left: 5px solid var(--orange); }
.stat .v { font-size: 1.6rem; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }

/* ------------------------------------------------ Tabellen */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--grey); vertical-align: middle; }
th { background: var(--navy); color: #fff; font-weight: 700; font-size: .8rem; white-space: nowrap; }
tbody tr:nth-child(even) { background: #fafbfc; }
tfoot td { font-weight: 800; border-top: 2px solid var(--orange); background: #fff; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap.compact th, .table-wrap.compact td { padding: 5px 7px; }

/* ------------------------------------------------ Formulare */
label { display: block; font-weight: 700; font-size: .85rem; margin: 0 0 4px; color: var(--navy); }
.field { margin-bottom: 12px; }
.help { font-size: .78rem; color: var(--muted); margin-top: 3px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid #c6ccd6; border-radius: 7px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
textarea { min-height: 90px; resize: vertical; }
input.mini { width: 80px; padding: 5px 7px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .9rem; margin: 0 14px 6px 0; cursor: pointer; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--orange); }
.daypick { display: flex; flex-wrap: wrap; gap: 8px; }
.daypick label { margin: 0; display: inline-flex; align-items: center; gap: 6px; background: var(--grey); padding: 8px 12px; border-radius: 8px; font-weight: 600; cursor: pointer; color: var(--text); }
.daypick input { accent-color: var(--orange); width: 17px; height: 17px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.row > .field { flex: 1 1 160px; }
.inline { display: inline; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; text-decoration: none; background: var(--orange); color: var(--navy); white-space: nowrap; }
.btn:hover { background: var(--orange-d); }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-2); }
.btn.ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.danger { background: #fff; color: var(--err); border: 1px solid #e5b4ae; }
.btn.sm { padding: 5px 10px; font-size: .8rem; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ------------------------------------------------ Hinweise / Badges */
.flash { padding: 11px 14px; border-radius: 8px; margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
.flash.ok { background: #e6f5ee; color: #155e3d; border-left: 4px solid var(--ok); }
.flash.err { background: #fbeaea; color: #8c2a20; border-left: 4px solid var(--err); }
.note { background: #fff7e8; border-left: 4px solid var(--orange); padding: 11px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .92rem; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--grey); color: var(--navy); white-space: nowrap; }
.badge.ok { background: #dff3e8; color: #155e3d; }
.badge.warn { background: #fff0d4; color: #8a5300; }
.badge.err { background: #fbe1df; color: #8c2a20; }
.badge.navy { background: var(--navy); color: #fff; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; background: var(--grey); padding: 2px 7px; border-radius: 5px; }

/* ------------------------------------------------ Öffentliche Startseite (Flyer) */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; padding-bottom: 90px; }
.hero::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: -1px; height: 120px; background: #fff;
  clip-path: polygon(0 75%, 100% 0, 100% 100%, 0 100%); }
.hero::before { content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 124px; background: var(--orange);
  clip-path: polygon(0 72%, 100% -3%, 100% 1%, 0 76%); z-index: 1; }
.hero .inner { max-width: 1100px; margin: 0 auto; padding: 6px 20px 0; position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.hero-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.hero-brand img { height: 74px; }
.hero-brand b { display: block; font-size: 1.05rem; }
.hero-brand span { color: #b5bdca; }
.hero-side { text-align: right; }
.hero-side .kick { color: var(--orange); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.hero-side .sup { font-size: .68rem; font-weight: 700; color: #b5bdca; letter-spacing: .06em; margin-top: 16px; }
.hero-side img { height: 64px; margin-top: 4px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 7.4vw, 5.2rem); font-weight: 900; line-height: 1.02; letter-spacing: -.015em; margin: 34px 0 18px; text-transform: uppercase; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .dates { color: var(--orange); font-weight: 800; font-size: clamp(1.3rem, 3vw, 2rem); }
.hero-nav { position: relative; z-index: 3; display: flex; gap: 8px; justify-content: flex-end; max-width: 1100px; margin: 0 auto; padding: 12px 20px 0; }
.hero-nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; padding: 6px 12px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; }
.hero-nav a:hover { border-color: var(--orange); color: var(--orange); }

.flyer { max-width: 1100px; margin: 0 auto; padding: 0 20px; position: relative; }
.price-badge { position: absolute; right: 30px; top: -150px; z-index: 5; width: 210px; height: 210px; border-radius: 50%;
  background: var(--orange); border: 6px solid #fff; box-shadow: 0 0 0 3px var(--orange), 0 10px 26px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-8deg); color: var(--navy); text-align: center; }
.price-badge .p { font-size: 3rem; font-weight: 900; line-height: 1; }
.price-badge .t { font-weight: 800; font-size: 1.15rem; margin-top: 6px; }
.price-badge .s { font-size: .8rem; }
.intro { padding: 26px 0 8px; font-size: 1.25rem; max-width: 640px; }
.intro b { display: block; }
.daycards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 26px 0; }
.daycard { background: var(--grey); border-radius: 10px; border-top: 8px solid var(--orange); padding: 16px 18px 20px; }
.daycard .top { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 800; }
.daycard .top span:first-child { color: var(--orange-d); }
.daycard .top span:last-child { color: var(--muted); }
.daycard h3 { font-size: 1.7rem; font-weight: 800; margin: 4px 0 8px; }
.daycard p { margin: 0; }
.infos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 10px 0 30px; }
.infos h4 { color: var(--orange-d); font-size: .82rem; letter-spacing: .05em; margin: 0 0 4px; }
.infos p { margin: 0; }
.cta { background: var(--navy); color: #fff; border-radius: 12px; padding: 22px 24px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 10px 0 30px; border-left: 8px solid var(--orange); }
.cta h3 { color: #fff; margin: 0 0 4px; font-size: 1.3rem; }
.cta p { margin: 0; color: #c5ccd8; }
.photo { position: relative; margin-top: 30px; }
.photo::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 90px; background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%); z-index: 1; }
.photo::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 94px; background: var(--orange);
  clip-path: polygon(0 96%, 100% 0, 100% 4%, 0 100%); z-index: 2; }
.photo img { display: block; width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; }
.program { margin: 10px 0 40px; }
.program .day { margin-bottom: 18px; }
.program .item { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--grey); }
.program .time { font-weight: 800; color: var(--orange-d); }
.site-foot { background: var(--navy); color: #fff; padding: 20px 0; }
.site-foot .inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.site-foot .k { color: var(--orange); font-weight: 800; font-size: .78rem; letter-spacing: .05em; }
.site-foot .c { font-weight: 700; }
.site-foot .c a { color: #fff; text-decoration: none; }
.site-foot .r { text-align: right; color: #b5bdca; font-size: .85rem; }
.site-foot .r a { color: #b5bdca; }
body.public { background: #fff; }

/* Auth-Seiten */
.auth-wrap { max-width: 460px; margin: 30px auto; }

/* ------------------------------------------------ Druck */
@media print {
  .topbar, .hide-print, .subnav, .btn, form.hide-print, .flash { display: none !important; }
  body { background: #fff; font-size: 11px; }
  .page { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
  th { background: #ddd !important; color: #000 !important; -webkit-print-color-adjust: exact; }
  .table-wrap { border: 0; overflow: visible; }
  .pagebreak { page-break-before: always; }
}

/* ------------------------------------------------ Mobil */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daycards, .infos { grid-template-columns: 1fr; }
  .price-badge { position: relative; top: auto; right: auto; margin: -60px auto 0; width: 170px; height: 170px; }
  .price-badge .p { font-size: 2.4rem; }
}
@media (max-width: 640px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; margin-left: auto; background: transparent; border: 1px solid #4a5568; color: #fff; border-radius: 6px; padding: 6px 10px; font: inherit; font-weight: 700; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .hero-brand img { height: 54px; }
  .hero { padding-bottom: 120px; }
  .hero-side { text-align: left; }
  .page { padding: 16px 16px 50px; }
  .card { padding: 14px; }
  .site-foot .r { text-align: left; }
}
