/* Tagesstrukturen Böztal – Stylesheet (Nachbau des bisherigen Designs, Astroid-Template "tp_schule") */
:root {
    --violett: #673ab7;
    --violett-dunkel: #522e92;
    --violett-btn: #7747b7;
    --lavendel: rgba(221, 221, 253, .3);
    --lavendel-hell: rgba(221, 221, 253, .2);
    --text: #555;
    --text-hell: #666;
    --linie: #e5e5f0;
    --schatten: 0 5px 15px rgba(0, 0, 0, .08);
    --radius: 4px;
    --font: Verdana, Geneva, sans-serif;
    --font-menu: "PT Sans", Arial, Helvetica, sans-serif;
    --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violett); text-decoration: none; transition: color .2s; }
a:hover { color: var(--violett-dunkel); }
h1, h2, h3, h4, h5 { font-weight: 300; color: var(--text); line-height: 1.6; }
p { margin: 0 0 16px; }

.container { width: 100%; max-width: 1176px; margin: 0 auto; padding: 0 12px; }
.container-narrow { max-width: 900px; }

/* ---------- Logo ---------- */
.site-logo { text-align: center; padding: 25px 16px; background: #fff; }
.site-logo img { margin: 0 auto; width: 700px; max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
.navbar { background: var(--lavendel); padding: 10px 0; position: relative; z-index: 50; }
.navbar .container { display: flex; justify-content: center; align-items: center; min-height: 49px; }
.nav-main { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav-main > li { position: relative; }
.nav-main > li > a, .nav-main > li > button {
    display: flex; align-items: center; gap: 6px; padding: 8px 16px;
    font-family: var(--font-menu); font-size: 18px; font-weight: 300; line-height: 1.6;
    text-transform: uppercase; color: var(--text);
    background: none; border: 0; cursor: pointer; text-decoration: none;
}
.nav-main > li > a:hover, .nav-main > li > button:hover,
.nav-main > li.active > a, .nav-main > li.active > button,
.nav-main > li.open > button { color: var(--violett-btn); }
.nav-main .caret { width: 12px; height: 12px; margin-left: 6px; }
.nav-main .caret-r { width: 8px; height: 14px; }
.nav-sub {
    list-style: none; margin: 0; padding: 10px 0;
    position: absolute; left: 0; top: calc(100% + 10px);
    min-width: 240px; background: #fff;
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: all .18s ease;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-main > li:hover .nav-sub,
.nav-main > li:focus-within .nav-sub,
.nav-main > li.open .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 5px 15px; color: #777; font-family: var(--font-menu); font-size: 15px; }
.nav-sub a:hover, .nav-sub li.active a { color: var(--violett-btn); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 38px; height: 2px; background: var(--violett); margin: 7px 0; }
.nav-toggle span:nth-child(2) { width: 28px; margin-left: 10px; }

/* Mobile Off-Canvas */
.offcanvas {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: #fff; z-index: 200; padding: 70px 24px 24px;
    transform: translateX(100%); transition: transform .3s ease;
    overflow-y: auto; box-shadow: -4px 0 20px rgba(0,0,0,.15);
    font-family: var(--font-menu);
}
.offcanvas.open { transform: none; }
.offcanvas-close { position: absolute; top: 14px; right: 16px; font-size: 32px; line-height: 1; background: none; border: 0; color: var(--violett); cursor: pointer; }
.offcanvas ul { list-style: none; margin: 0; padding: 0; }
.offcanvas > ul > li { border-bottom: 1px solid var(--linie); }
.offcanvas > ul > li > a, .offcanvas > ul > li > span { display: block; padding: 12px 0; font-size: 18px; text-transform: uppercase; color: var(--text); }
.offcanvas ul ul { padding: 0 0 10px 16px; }
.offcanvas ul ul a { display: block; padding: 5px 0; font-size: 16px; color: #777; }
.offcanvas-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 150; opacity: 0; visibility: hidden; transition: .3s; }
.offcanvas-backdrop.open { opacity: 1; visibility: visible; }

@media (max-width: 991px) {
    .nav-main { display: none; }
    .nav-toggle { display: block; }
    .navbar .container { justify-content: flex-end; }
}

/* ---------- Sektionen ---------- */
.section { padding: 38px 0; }
.section-alt { background: var(--lavendel-hell); }
.section-title, h5.section-title {
    text-align: center; font-size: 35px; font-weight: 300; line-height: 1.6;
    margin: 0 0 30px; color: var(--text);
}
.page-title { text-align: center; font-size: 35px; font-weight: 300; margin: 0 0 30px; }
.text-center { text-align: center; }
.sec-intro { padding: 38px 30px; }
.lead { text-align: center; margin: 0; }
.content-text { max-width: 900px; margin: 0 auto 28px; }

@media (max-width: 767px) {
    .section-title, h5.section-title, .page-title { font-size: 26px; }
}

/* ---------- Tarif-Tabelle (im Stil der bisherigen Grafik) ---------- */
.tarif-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tarif-table {
    width: 100%; max-width: 1000px; margin: 0 auto;
    border-collapse: collapse; background: #fff;
    font-family: var(--font-hand); font-size: 19px; line-height: 1.4; color: #111;
}
.tarif-table td { border: 2px solid #111; padding: 22px 26px; vertical-align: middle; text-align: left; }
.tarif-table .t-angebot { width: 21%; }
.tarif-table .t-zusatz { display: block; font-size: 15px; color: #777; }
.tarif-table .t-zeit { width: 22%; text-align: center; white-space: nowrap; }
.tarif-table .t-tarif { width: 12%; text-align: center; white-space: nowrap; }
.tarif-table .orte { display: grid; grid-template-columns: auto 1fr; gap: 2px 36px; }
.tarif-table .orte b { font-weight: 700; }
.tarif-note { font-size: 13px; color: #888; margin: 12px auto 0; text-align: center; max-width: 1000px; }
.tarif-after { text-align: center; margin-top: 26px; line-height: 2.8; }

@media (max-width: 680px) {
    .tarif-table, .tarif-table tbody, .tarif-table tr, .tarif-table td { display: block; width: 100% !important; }
    .tarif-table tr { border: 2px solid #111; margin-bottom: 12px; }
    .tarif-table td { border: 0; border-bottom: 1px solid #ddd; padding: 10px 14px; text-align: left !important; }
    .tarif-table td:last-child { border-bottom: 0; }
    .tarif-table .t-angebot { font-size: 21px; }
}

/* ---------- Karten ---------- */
.card { background: #fff; box-shadow: var(--schatten); overflow: hidden; color: var(--text-hell); }
.card-body { padding: 16px; text-align: center; }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.team-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.team-card .card-body { padding: 40px 23px 30px; }
.team-title { display: block; font-size: 18.67px; color: var(--text-hell); margin-bottom: 28px; }
.team-text { font-size: 18.67px; line-height: 1.45; color: var(--text-hell); }
@media (max-width: 767px) {
    .team-grid { grid-template-columns: 1fr; gap: 24px; }
    .team-title, .team-text { font-size: 16px; }
}

/* Betreuer*innen: Fotos im Originalformat, 4 Spalten */
.team-photos { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 40px; align-items: start; }
.team-photos a { display: block; }
.team-photos img { width: 100%; height: auto; }
@media (max-width: 991px) { .team-photos { grid-template-columns: repeat(3, 1fr); column-gap: 20px; } }
@media (max-width: 560px) { .team-photos { grid-template-columns: repeat(2, 1fr); column-gap: 10px; } }

.grid { display: grid; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.standort-card img { width: 100%; aspect-ratio: 1214 / 660; object-fit: cover; }
.standort-card h4 { font-size: 20px; font-weight: 300; color: #333; line-height: 1.2; margin: 0 0 8px; }
.standort-card p { margin: 0 0 10px; }

.sec-aktuelles .container { max-width: 1176px; }
.akt-card img { width: 100%; aspect-ratio: 1 / 2; object-fit: cover; }
.akt-card .card-body { padding: 16px; }

.btn {
    display: inline-block; background: var(--violett); color: #fff !important;
    border: 1px solid var(--violett); border-radius: 4px;
    padding: 8px 22px; font: inherit; font-size: 15px; font-weight: 300; line-height: 1.5;
    cursor: pointer; text-decoration: none !important; transition: background .2s;
}
.btn:hover { background: var(--violett-dunkel); border-color: var(--violett-dunkel); }
.btn-sm { padding: 4px 16px; font-size: 14px; }
.btn-outline { background: transparent; color: var(--violett) !important; }
.btn-outline:hover { background: var(--violett); color: #fff !important; }

/* ---------- Galerie (Standorte) ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery a { display: block; overflow: hidden; background: #eee; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 300; display: none; align-items: center; justify-content: center; padding: 50px 60px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 85vh; max-width: 100%; width: auto; }
.lightbox .lb-cap { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #eee; font-size: 14px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; padding: 10px; line-height: 1; }
.lightbox .lb-close { top: 8px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Inhaltsseiten ---------- */
.flyer-list { display: grid; gap: 30px; justify-items: center; }
.flyer-list img { max-width: 100%; width: auto; }
.flyer-list a { display: block; }

.pdf-list { list-style: none; padding: 0; margin: 0 auto; max-width: 900px; }
.pdf-list li { border-bottom: 1px solid var(--linie); }
.pdf-list a { display: flex; align-items: center; gap: 14px; padding: 12px 6px; color: var(--text); }
.pdf-list a:hover { background: var(--lavendel-hell); color: var(--violett-dunkel); }
.pdf-icon {
    flex: 0 0 auto; width: 34px; height: 42px; border-radius: 3px;
    background: #e53935; color: #fff; font-size: 10px; font-weight: 700;
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 5px; position: relative;
}
.pdf-icon::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 9px 9px 0; border-color: transparent #fff transparent transparent; }
.pdf-list .pdf-dl { margin-left: auto; color: var(--violett); font-size: 13px; white-space: nowrap; }

.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; align-items: center; }
.sponsor { display: flex; align-items: center; justify-content: center; padding: 10px; aspect-ratio: 3 / 2; transition: transform .2s; }
.sponsor:hover { transform: scale(1.04); }
.sponsor img { max-height: 100%; max-width: 100%; object-fit: contain; }
.sponsor span { font-size: 16px; color: var(--violett); text-align: center; }

.kontakt-box { background: var(--lavendel); padding: 30px; max-width: 564px; margin: 0 auto; }
.kontakt-box h3 { margin-top: 0; }
.kontakt-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; margin: 0; }
.kontakt-box dd { margin: 0; }

/* Modultitel mit violettem Balken (wie "Adresse" im Original) */
.module-title {
    font-size: 28px; font-weight: 300; line-height: 1.6; color: var(--text);
    padding: 6px 0; margin: 0 0 32px; border-bottom: 1px solid var(--violett);
}
.module-title::before {
    content: ""; display: inline-block; width: 0; height: 23px; border-left: 7px solid var(--violett);
    margin-right: 14px; position: relative; top: 2px;
}

/* ---------- Footer ---------- */
.footer-main { padding: 38px 0; }
.footer-main .container { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.f-logo { display: flex; justify-content: center; padding-top: 30px; }
.f-logo img { width: 504px; max-width: 100%; }
.f-adr { background: var(--lavendel); padding: 30px; }
.f-adr p { margin: 0 0 16px; }
.f-kontakt { display: grid; grid-template-columns: 110px 1fr; }
.site-footer { background: var(--lavendel-hell); padding: 10px; text-align: center; color: #777; }
.site-footer p { margin: 10px 0; }
.site-footer a { color: #777; }
.site-footer a:hover { color: var(--violett); }
@media (max-width: 767px) {
    .footer-main .container { grid-template-columns: 1fr; }
    .f-logo { padding-top: 0; }
    .f-logo img { width: 320px; }
}

.to-top {
    position: fixed; right: 20px; bottom: 20px; width: 42px; height: 42px; border: 0; border-radius: 0;
    background: var(--violett-btn); color: #fff; cursor: pointer; z-index: 40; padding: 12px;
    opacity: 0; visibility: hidden; transition: .25s;
}
.to-top svg { width: 100%; height: 100%; display: block; }
.to-top.show { opacity: 1; visibility: visible; }

/* ---------- Anmeldeformular ---------- */
.form-intro { max-width: 820px; margin: 0 auto 30px; text-align: center; }
.form { max-width: 920px; margin: 0 auto; }
.form-section {
    background: #fff; border-radius: 8px; box-shadow: var(--schatten);
    padding: 26px 30px 30px; margin-bottom: 26px;
}
.form-section > h2 {
    font-size: 19px; font-weight: 600; margin: 0 0 6px; color: var(--violett);
    display: flex; align-items: center; gap: 12px;
}
.form-section > h2 .num {
    display: inline-flex; width: 30px; height: 30px; border-radius: 50%;
    background: var(--violett); color: #fff; font-size: 15px; align-items: center; justify-content: center;
}
.form-section > .hint { margin: 0 0 18px; font-size: 14px; color: #888; }
.form-section h3 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; color: #444; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 20px; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .fgrid, .fgrid-3 { grid-template-columns: 1fr; } }
.field label { display: block; font-size: 13px; color: #666; margin-bottom: 4px; }
.field label .req { color: #c0392b; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field select, .field textarea {
    width: 100%; font: inherit; font-size: 15px; padding: 10px 12px;
    border: 1px solid #cfcfe0; border-radius: 6px; background: #fcfcff; color: #333;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: var(--violett); box-shadow: 0 0 0 3px rgba(103,58,183,.15); background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; padding-top: 4px; }
.radio-row label { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; color: #444; cursor: pointer; margin: 0; }
.radio-row input { accent-color: var(--violett); width: 17px; height: 17px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #444; cursor: pointer; margin: 8px 0; }
.check input { accent-color: var(--violett); width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.cond { display: none; margin-top: 8px; }
.cond.show { display: block; }

.yn-table { width: 100%; border-collapse: collapse; }
.yn-table td { padding: 10px 6px; border-bottom: 1px solid #eee; vertical-align: top; }
.yn-table td:first-child { color: #444; }
.yn-table td.yn { white-space: nowrap; text-align: right; width: 150px; }
.yn-table label { margin-left: 14px; cursor: pointer; }
.yn-table input { accent-color: var(--violett); }

.child-block { border: 1.5px dashed #cfc5ea; border-radius: 8px; padding: 18px 20px 22px; margin-bottom: 18px; position: relative; background: #fdfcff; }
.child-block .child-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.child-block .child-head h3 { margin: 0; color: var(--violett); }
.child-remove { background: none; border: 1px solid #e0b4b4; color: #c0392b; border-radius: 20px; padding: 4px 14px; cursor: pointer; font: inherit; font-size: 13px; }
.child-remove:hover { background: #fdf0f0; }

.modul-wrap { overflow-x: auto; }
.modul-table { width: 100%; border-collapse: collapse; min-width: 520px; margin-top: 6px; }
.modul-table th, .modul-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: center; }
.modul-table th { font-size: 13px; color: #888; font-weight: 400; }
.modul-table td:first-child, .modul-table th:first-child { text-align: left; }
.modul-table td small { display: block; color: #999; font-size: 12px; }
.modul-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--violett); cursor: pointer; }
.modul-table .tarif { color: var(--violett); white-space: nowrap; font-size: 14px; }

.form-actions { text-align: center; margin: 10px 0 40px; }
.form-actions .btn { font-size: 17px; padding: 14px 40px; }
.alert { padding: 16px 20px; border-radius: 6px; margin: 0 auto 24px; max-width: 920px; }
.alert-ok { background: #e9f7ef; border: 1px solid #a9dfbf; color: #1e7b45; }
.alert-err { background: #fdecea; border: 1px solid #f5b7b1; color: #a93226; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.success-box { text-align: center; max-width: 640px; margin: 0 auto; background: #fff; padding: 40px 30px; border-radius: 8px; box-shadow: var(--schatten); }
.success-box .big { font-size: 54px; line-height: 1; color: var(--violett); }
.success-box h2 { font-size: 24px; }

@media print {
    .topbar, .navbar, .site-footer, .to-top, .offcanvas, .form-actions { display: none !important; }
}
@media (max-width: 560px) { .akt-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .akt-card .btn-sm { font-size: 12px; padding: 4px 8px; } }
