/* Mein Tag für Schondorf – Stylesheet
   Farben aus dem Logo: Wappenrot, Gold, Weiß. Keine externen Schriften (Datenschutz). */
:root {
  --red: #c8102e;
  --red-dark: #a00d24;
  --red-soft: #fbe9ec;
  --gold: #d9a406;
  --gold-soft: #fbf3d9;
  --ink: #221c1a;
  --ink-2: #5b524e;
  --line: #e7dfd6;
  --bg: #fbf8f3;
  --card: #ffffff;
  --green: #2e7d4f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34, 28, 26, .06), 0 6px 20px rgba(34, 28, 26, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.page { padding-top: 48px; padding-bottom: 72px; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.nowrap { white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header::after { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--red) 0 70%, var(--gold) 70%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.2rem; }
.brand strong { color: var(--red); }
.brand img { width: 52px; height: 52px; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a:hover { background: var(--red-soft); color: var(--red-dark); }
.site-nav a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .brand span { font-size: 1.05rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  padding: 11px 20px; border-radius: 10px; border: 2px solid transparent; transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 2px 0 var(--red-dark); }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-red:active { transform: translateY(1px); box-shadow: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #246640; color: #fff; }
.btn-danger { background: #fff; color: #9b1c1c; border-color: #f0c9c9; }
.btn-danger:hover { background: #9b1c1c; color: #fff; }
.btn-small { padding: 7px 12px; font-size: .9rem; border-radius: 8px; }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-xl {
  flex-direction: column; align-items: flex-start; text-align: left; gap: 4px;
  padding: 22px 28px; border-radius: var(--radius); min-width: 280px;
  box-shadow: 0 4px 0 var(--red-dark), 0 10px 24px rgba(200, 16, 46, .25);
}
.btn-xl:hover { transform: translateY(-2px); }
.btn-xl .btn-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; }
.btn-xl .btn-sub { font-weight: 400; font-size: .92rem; opacity: .9; }
.btn-xl::after { content: "→"; position: absolute; }
.btn-xl { position: relative; padding-right: 60px; }
.btn-xl::after { right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% 0%, var(--gold-soft), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 64px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero-logo img { width: 100%; max-width: 420px; display: block; margin: 0 auto; filter: drop-shadow(0 12px 30px rgba(120, 20, 20, .18)); }
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 220px; }
  .btn-xl { width: 100%; min-width: 0; }
}

/* ---------- Steps / Goal ---------- */
.section-title { margin-bottom: 1em; }
.steps { padding-top: 64px; padding-bottom: 48px; }
.step-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-list li { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.step-list p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .step-list { grid-template-columns: 1fr; } }

.goal { background: var(--red); color: #fff; margin: 32px 0; }
.goal-inner { display: flex; align-items: center; gap: 40px; padding-top: 40px; padding-bottom: 40px; }
.goal-num { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; white-space: nowrap; }
.goal-num span { display: block; font-size: 4.5rem; line-height: 1; color: #ffd75e; }
.goal p { margin: 0; font-size: 1.15rem; max-width: 640px; }
@media (max-width: 700px) { .goal-inner { flex-direction: column; align-items: flex-start; gap: 16px; } }

.upcoming { padding-top: 32px; padding-bottom: 72px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.link-arrow { font-weight: 600; text-decoration: none; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.project-card { display: flex; gap: 18px; padding: 24px; }
.date-badge { flex: none; width: 64px; height: 70px; border-radius: 10px; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.date-badge .d { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; }
.date-badge .m { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.card-body .org { font-size: .85rem; color: var(--ink-2); margin: 0 0 4px; font-weight: 600; }
.card-body h3 { margin-bottom: 8px; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--red); }
.meta { list-style: none; padding: 0; margin: 0 0 12px; font-size: .92rem; color: var(--ink-2); }
.meta li { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.meta .ico { margin-top: 3px; color: var(--red); }
.excerpt { color: var(--ink-2); font-size: .95rem; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: 8px; }
@media (max-width: 420px) { .project-card { flex-direction: column; } .date-badge { flex-direction: row; gap: 8px; width: auto; height: auto; padding: 8px 14px; align-self: flex-start; } .date-badge .m { margin: 0; } }

.spots { margin: 4px 0 12px; }
.spots-bar { height: 8px; background: #f1ebe4; border-radius: 99px; overflow: hidden; }
.spots-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); border-radius: 99px; }
.spots p { margin: 6px 0 0; font-size: .9rem; color: var(--ink-2); }

.tag { display: inline-block; padding: 4px 10px; border-radius: 99px; background: #eee8e1; color: var(--ink-2); font-size: .82rem; font-weight: 600; }
.tag-full { background: var(--gold-soft); color: #7a5b00; }
.tag-past { background: #eee8e1; display: block; border-radius: 10px; padding: 12px; }
.tag-ok { background: #e3f3e9; color: var(--green); }

.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--ink-2); }
.empty p:last-child { margin: 0; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.cta-box { margin-top: 48px; padding: 32px; background: var(--red-soft); border-radius: var(--radius); text-align: center; }
.cta-box h2 { margin-top: 0; }
.cta-box .hero-actions { justify-content: center; margin-top: 12px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0 40px; }
.contact-card { padding: 24px; }
.contact-card h2 { font-size: 1.25rem; margin-top: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Project page ---------- */
.back { margin-bottom: 20px; }
.back a { text-decoration: none; font-weight: 600; }
.project-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.project-side { position: sticky; top: 100px; }
.side-card { padding: 24px; }
.facts { list-style: none; margin: 0 0 16px; padding: 0; }
.facts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts .ico { color: var(--red); width: 22px; height: 22px; margin-top: 2px; }
.share { margin-top: 20px; }
.share p { font-weight: 600; margin-bottom: 8px; font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .project-layout { grid-template-columns: 1fr; gap: 24px; } .project-side { position: static; order: -1; } }

/* ---------- Forms ---------- */
.form-card { padding: 32px; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 18px; }
.field-narrow { max-width: 220px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type=text], input:not([type]), input[type=email], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=password], input[type=search], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  padding: 11px 14px; border: 1.5px solid #d8cfc5; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .15); }
[aria-invalid="true"] { border-color: #c0392b; background: #fff7f7; }
.field-error { color: #b42318; font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.form-error { color: #b42318; font-weight: 600; background: #fff1f1; padding: 10px 14px; border-radius: 10px; }
.hint { font-size: .9rem; color: var(--ink-2); background: var(--gold-soft); padding: 10px 14px; border-radius: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .93rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--red); }
.check.small { font-size: .88rem; align-items: center; margin: 0; }
.form-actions { margin-top: 24px; }

/* ---------- Flash ---------- */
.flashes { padding-top: 20px; }
.flash { padding: 14px 18px; border-radius: 10px; margin-bottom: 12px; font-weight: 500; }
.flash-success { background: #e3f3e9; color: #1d5c39; }
.flash-error { background: #fdecec; color: #8f1d1d; }
.flash-warn { background: var(--gold-soft); color: #6b4f00; }

.success-panel { text-align: center; padding: 40px 0; }
.success-panel .hero-actions { justify-content: center; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 16px; }

/* ---------- Dialog ---------- */
.dialog { border: 0; border-radius: 18px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.dialog::backdrop { background: rgba(34, 20, 18, .55); backdrop-filter: blur(2px); }
.dialog form, .dialog-success { padding: 32px; position: relative; }
.dialog h2 { padding-right: 32px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3eee8; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink); }
.dialog-close:hover { background: var(--red-soft); color: var(--red); }
.dialog-success { text-align: center; }
.dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

/* ---------- Footer ---------- */
.site-footer { background: #2b2220; color: #e9e1da; padding: 40px 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 32px; align-items: start; }
.footer-inner > div:first-child { display: flex; gap: 16px; align-items: center; }
.footer-inner p { margin: 0; font-size: .95rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #fff; }
.site-footer a.muted { color: #b5aaa3; font-size: .88rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Admin ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; }
.admin-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 24px 0; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-2); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--red); border-color: var(--red); }
.count { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 99px; background: #eee8e1; color: var(--ink-2); font-size: .8rem; text-align: center; font-family: var(--sans); }
.count-hot { background: var(--red); color: #fff; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fcfaf7; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td a { text-decoration: none; }
.is-cancelled, .is-past { opacity: .6; }
.search { display: flex; gap: 8px; margin-bottom: 16px; max-width: 480px; }
.status { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; margin-bottom: 8px; }
.status-pending { background: var(--gold-soft); color: #7a5b00; }
.status-approved { background: #e3f3e9; color: var(--green); }
.status-rejected, .status-archived { background: #eee8e1; color: var(--ink-2); }
.admin-project-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.admin-project-head h2 { margin-bottom: 4px; }
.admin-actions { padding: 20px 24px; margin: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.inline-form { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.action-row { display: flex; gap: 8px; flex-wrap: wrap; }
.action-row form { margin: 0; }
.public-link { margin: 0; font-size: .92rem; word-break: break-all; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.admin-edit { padding: 24px; }
.admin-edit legend { font-size: 1.05rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.booking-list { list-style: none; margin: 0; padding: 0; }
.booking-list li { background: #fff; border-radius: 12px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; }
.booking-list .msg { background: #faf6f1; border-radius: 8px; padding: 8px 10px; margin: 8px 0 4px; font-size: .92rem; }
.booking-list p.small { margin: 4px 0 0; }
.booking-actions { display: flex; flex-direction: column; gap: 6px; }
.booking-actions form { margin: 0; }
.login-wrap { padding: 64px 20px 96px; display: grid; place-items: center; }
.login-card { padding: 36px; width: min(420px, 100%); text-align: center; }
.login-card .field { text-align: left; }
.login-card img { display: block; margin: 0 auto 12px; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } .booking-list li { flex-direction: column; } .booking-actions { flex-direction: row; } }

/* Startseite: beide roten Buttons gleich breit nebeneinander */
.hero .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero .btn-xl { min-width: 0; padding: 20px 52px 20px 22px; }
.hero .btn-xl .btn-title { font-size: 1.3rem; }
.hero .btn-xl::after { right: 18px; }
@media (max-width: 560px) { .hero .hero-actions { grid-template-columns: 1fr; } }
.card-actions .btn { padding: 8px 14px; font-size: .92rem; }
