/* SC Zwiesel – Sparte Ski. Ein Stylesheet für die ganze Seite. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --green: #1d4337;
  --green-2: #2f6150;
  --green-soft: #e5efeb;
  --red: #d90f1e;
  --red-dark: #b00c18;
  --ink: #12261f;
  --text: #33463f;
  --muted: #5f7069;
  --bg: #f4f7f6;
  --card: #ffffff;
  --line: #dde6e2;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(18, 38, 31, .08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.kicker { color: var(--red); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; margin: 0 0 .3em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; color: var(--green); }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.3;
}
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(217, 15, 30, .35); }
.btn-red:hover { background: var(--red-dark); }
.btn-green { background: var(--green); color: #fff !important; }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-white { background: #fff; color: var(--green); }
.btn-line { border-color: var(--line); color: var(--green); background: #fff; }
.btn-small { padding: 6px 14px; font-size: .9rem; }

/* Kopfzeile */
.topbar { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand img { display: block; height: 50px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 6px; }
.mainnav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 16px; border-radius: 999px; }
.mainnav a:hover { background: var(--green-soft); }
.mainnav a.active { background: var(--green-soft); color: var(--green); font-weight: 600; }
.mainnav .btn { margin-left: 12px; padding: 10px 26px; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; cursor: pointer; padding: 10px; }
.menu-button span { display: block; width: 26px; height: 3px; background: var(--green); margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .menu-button { display: block; }
  .mainnav {
    display: none; position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column;
    align-items: stretch; padding: 12px 24px 20px; box-shadow: 0 12px 20px rgba(0, 0, 0, .08);
  }
  .menu-toggle:checked ~ .mainnav { display: flex; }
  .mainnav .btn { margin: 8px 0 0; text-align: center; }
}

.flash { margin: 16px 0 0; padding: 12px 18px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 600; }
.flash-error { background: #fde8ea; color: var(--red-dark); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: var(--green) url("../img/hero.svg") right bottom / cover no-repeat;
  padding: 140px 0 170px;
}
.hero .kicker { color: #fff; opacity: .92; }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.4rem, 6vw, 4.6rem); line-height: 1.05; margin-bottom: .4em; }
.hero p { max-width: 46ch; font-size: 1.2rem; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Kennzahlen-Leiste */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); margin-top: -60px; position: relative; overflow: hidden;
}
.stat { padding: 26px 18px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; color: var(--red); font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.stat span { color: var(--muted); }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Karten */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }

.date-card { display: flex; gap: 18px; padding: 20px; text-decoration: none; color: inherit; align-items: center; }
.date-card:hover { border-color: var(--green-2); }
.date-badge {
  flex: 0 0 80px; height: 92px; border-radius: 14px; background: var(--green); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.date-badge b { font-size: 2rem; font-weight: 800; }
.date-badge small { font-weight: 700; margin-top: 6px; letter-spacing: .05em; }
.date-badge.past { background: #8aa39a; }
.date-card h3 { margin: 6px 0 4px; font-size: 1.15rem; }
.date-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.tag { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: .8rem; padding: 3px 12px; border-radius: 999px; }
.tag-red { background: #fde8ea; color: var(--red-dark); }

.tile { position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; color: #fff; display: flex; align-items: flex-end; box-shadow: var(--shadow); background-size: cover; background-position: center; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 35, 28, .85) 10%, rgba(15, 35, 28, .1) 65%); }
.tile-body { position: relative; z-index: 1; padding: 28px; }
.tile h3 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.tile p { margin: 0; }
.bg-1 { background-image: url("../img/card-green.svg"); }
.bg-2 { background-image: url("../img/card-red.svg"); }
.bg-3 { background-image: url("../img/card-dark.svg"); }

.news-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.news-card .thumb { aspect-ratio: 16 / 10; background-size: cover; background-position: center; display: block; width: 100%; object-fit: cover; }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card time { color: var(--muted); font-size: .9rem; font-weight: 500; }
.news-card h3 { margin: 6px 0 10px; }
.news-card p { margin: 0 0 16px; color: var(--muted); }
.news-card .more { margin-top: auto; }
.news-card:hover h3 { color: var(--green-2); }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; align-items: center; }
.partner { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 18px; display: flex; align-items: center; justify-content: center; height: 130px; text-decoration: none; color: var(--ink); font-weight: 600; text-align: center; }
.partner img { max-height: 92px; width: auto; object-fit: contain; }
a.partner:hover { border-color: var(--green-2); }

/* Seitenkopf für Unterseiten */
.page-head { background: var(--green) url("../img/hero.svg") center 75% / cover no-repeat; color: #fff; padding: 72px 0 64px; }
.page-head h1 { color: #fff; margin: 0; }
.page-head p { margin: 8px 0 0; max-width: 60ch; opacity: .95; }
.page-head .kicker { color: #fff; opacity: .9; }

/* Fließtext aus Editor / Word */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; color: var(--green); }
.prose h3 { margin-top: 1.3em; }
.prose img { border-radius: 12px; margin: 8px 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose th { background: var(--green-soft); }
.prose blockquote { margin: 1em 0; padding: 4px 20px; border-left: 4px solid var(--red); background: #fff; }
.article-hero { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } }
.side-box { padding: 24px; }
.side-box h3 { margin-bottom: 12px; }
.meta-list { list-style: none; margin: 0; padding: 0; }
.meta-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.meta-list li:last-child { border: 0; }
.meta-list b { display: block; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }

/* Downloads */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.download { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--bg); text-decoration: none; color: var(--ink); border: 1px solid var(--line); }
.download:hover { border-color: var(--green-2); background: #fff; }
.download .ext { flex: 0 0 46px; height: 46px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; text-transform: uppercase; }
.download.ergebnis .ext { background: var(--green); }
.download small { display: block; color: var(--muted); }

/* Zeitstrahl */
.timeline { position: relative; margin: 0; padding: 0 0 0 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 39px; top: 0; bottom: 0; width: 4px; background: var(--line); border-radius: 2px; }
.tl-item { position: relative; display: grid; grid-template-columns: 82px 1fr; gap: 24px; margin-bottom: 22px; }
.tl-item .date-badge { position: relative; z-index: 1; }
.tl-card { padding: 20px 24px; text-decoration: none; color: inherit; display: block; }
.tl-card:hover { border-color: var(--green-2); }
.tl-card h3 { margin: 8px 0 4px; }
.tl-card p { margin: 0; color: var(--muted); }
.tl-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tl-past .tl-card { opacity: .92; }
.tl-year { position: relative; z-index: 1; display: inline-block; margin: 10px 0 18px; background: var(--bg); padding: 4px 0; font-weight: 800; color: var(--green); font-size: 1.3rem; }
.tl-today { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin: 10px 0 30px; }
.tl-today span { background: var(--red); color: #fff; font-weight: 800; padding: 8px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(217, 15, 30, .3); }
.tl-today::after { content: ""; flex: 1; height: 3px; background: var(--red); opacity: .35; border-radius: 2px; }
.tl-empty { margin-left: 106px; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 29px; }
  .tl-item { grid-template-columns: 62px 1fr; gap: 14px; }
  .tl-item .date-badge { flex-basis: 62px; height: 74px; }
  .tl-item .date-badge b { font-size: 1.5rem; }
  .tl-empty { margin-left: 76px; }
}

/* Vorstand */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
.person { text-align: center; padding: 26px 20px; }
.person img, .person .avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; display: block; }
.person .avatar { background: var(--green-soft); color: var(--green); font-size: 2.4rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.person h3 { margin: 0 0 2px; font-size: 1.1rem; }
.person p { margin: 0; color: var(--muted); }

/* Trainingstabelle */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--green); color: #fff; font-weight: 600; }
.table tr:last-child td { border-bottom: 0; }

/* Aufruf + Fuß */
.cta { background: var(--red); color: #fff; padding: 56px 0; margin-top: 40px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 6px; }
.cta p { margin: 0; max-width: 56ch; font-size: 1.1rem; }
.footer { background: var(--green); color: #dbe6e1; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer h3 { color: #fff; font-size: 1rem; }
.footer a { display: block; color: #dbe6e1; text-decoration: none; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 8px; }
.footer-logo img { display: block; height: 46px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding: 20px 24px; font-size: .9rem; }

.pager { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }

/* Formulare */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: .95rem; }
.form .hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type=text], input[type=email], input[type=url], input[type=password], input[type=date], input[type=number], select, textarea {
  font: inherit; font-weight: 400; padding: 11px 14px; border: 1px solid #c8d5cf; border-radius: 10px; background: #fff; width: 100%; color: var(--ink);
}
input:focus, select:focus, textarea:focus, .editor:focus { outline: 3px solid rgba(47, 97, 80, .25); border-color: var(--green-2); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.login-box { max-width: 440px; margin: 56px auto; padding: 36px; }
.error-box { background: #fde8ea; color: var(--red-dark); padding: 12px 16px; border-radius: 10px; font-weight: 600; }

/* Mitglieder- und Verwaltungsbereich */
.intern { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 900px) { .intern { grid-template-columns: 1fr; } }
.sidenav { padding: 18px; position: sticky; top: 100px; }
@media (max-width: 900px) { .sidenav { position: static; } }
.sidenav h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 14px 10px 6px; }
.sidenav h4:first-child { margin-top: 0; }
.sidenav a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sidenav a:hover, .sidenav a.active { background: var(--green-soft); color: var(--green); }
.sidenav form { margin: 10px 0 0; }
.sidenav button { width: 100%; }
.panel { padding: 28px; margin-bottom: 24px; }
.panel h2 { font-size: 1.5rem; color: var(--green); }
.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar-row h1 { margin: 0; font-size: 2rem; color: var(--green); }
.list { width: 100%; border-collapse: collapse; }
.list th, .list td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.list th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.list td.actions { text-align: right; white-space: nowrap; }
.list td.actions form { display: inline; }
.inline-form { display: inline; }
.link-btn { background: none; border: 0; color: var(--red); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); margin: 2px 2px 2px 0; }
.badge-off { background: #eee; color: #777; }
.badge-red { background: #fde8ea; color: var(--red-dark); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo-grid figure { margin: 0; position: relative; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.photo-grid form { position: absolute; top: 6px; right: 6px; }
.photo-grid button { background: rgba(255, 255, 255, .9); border: 0; border-radius: 8px; padding: 4px 8px; cursor: pointer; color: var(--red-dark); font-weight: 700; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.album { text-decoration: none; color: var(--ink); overflow: hidden; }
.album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.album div { padding: 12px 14px; font-weight: 600; }
.album small { display: block; color: var(--muted); font-weight: 400; }
.thumb-preview { max-width: 220px; max-height: 120px; border-radius: 10px; border: 1px solid var(--line); display: block; margin-bottom: 6px; }

/* Editor */
.editor-wrap { border: 1px solid #c8d5cf; border-radius: 12px; background: #fff; overflow: hidden; }
.editor-tools { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.editor-tools button, .editor-tools label { font: inherit; font-size: .9rem; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; }
.editor-tools button:hover, .editor-tools label:hover { border-color: var(--green-2); }
.editor-tools .word { background: var(--green); color: #fff; border-color: var(--green); }
.editor-tools input[type=file] { display: none; }
.editor { min-height: 360px; padding: 18px 20px; outline: none; max-width: none; }
.editor:empty::before { content: attr(data-placeholder); color: var(--muted); }
.editor-status { font-size: .85rem; color: var(--muted); padding: 6px 12px; border-top: 1px solid var(--line); min-height: 32px; }
.hidden { display: none !important; }

/* Kontaktformular und Nachrichten */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact .check { align-items: flex-start; }
.contact .check input { flex: 0 0 auto; margin-top: 3px; }
.contact .follow { margin-top: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-error { color: var(--red-dark); font-weight: 600; font-size: .88rem; }
.success { border-top: 6px solid var(--green); }
.message-body { background: var(--bg); border-radius: 12px; padding: 18px 20px; margin-top: 16px; overflow-wrap: anywhere; }
/* Auf dem Handy nur Eingang, Absender und Löschen, der Rest steht in der Einzelansicht */
@media (max-width: 640px) {
  .message-list th:nth-child(3), .message-list td:nth-child(3), .message-list th:nth-child(4), .message-list td:nth-child(4) { display: none; }
}

.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mw-760 { max-width: 760px; }
.h-small { font-size: 2rem; }
.section-title { color: var(--green); margin-bottom: 24px; }
.news-card .more, .date-card .more { color: var(--red); }

/* Social-Media-Links (nur Links, nichts wird von Meta geladen) */
.social { display: flex; gap: 10px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; text-decoration: none; transition: background .15s; }
.footer .footer-social { margin-top: 14px; }
.footer .footer-social a { background: rgba(255, 255, 255, .1); color: #fff; padding: 0; }
.footer .footer-social a:hover { background: rgba(255, 255, 255, .22); }
.follow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.social-green a { background: var(--green); color: #fff; }
.social-green a:hover { background: var(--green-2); }

/* Eigene Bilder für Banner und Kacheln (aus der Verwaltung) */
.hero, .page-head { position: relative; overflow: hidden; isolation: isolate; }
.stats { z-index: 3; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 35, 28, .85) 0%, rgba(15, 35, 28, .55) 55%, rgba(15, 35, 28, .2) 100%); z-index: 1; }
.hero > .wrap, .page-head > .wrap { position: relative; z-index: 2; }
.tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Monats-Trainingsplan (Kalender, Export) */
.mt-16 { margin-top: 16px; }
.mp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.mp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mp-cal { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; background: #fff; font-size: .85rem; line-height: 1.35; }
.mp-cal th { background: var(--green); color: #fff; padding: 8px 4px; font-size: 1rem; border: 1px solid var(--green); }
.mp-cal td { border: 1px solid #cfd8d4; text-align: center; vertical-align: top; padding: 6px 4px; }
.mp-days td { background: #ececec; font-weight: 700; padding: 3px; color: var(--ink); }
.mp-days td.out { color: #8a958f; }
.mp-cells td { height: 96px; }
.mp-cells td.sel { background: #fff7e0; }
.mp-item { display: block; padding: 4px 2px; border-radius: 6px; color: var(--text); text-decoration: none; }
.mp-item + .mp-item { margin-top: 6px; border-top: 1px dotted #cfd8d4; }
a.mp-item:hover, a.mp-item.sel { background: var(--green-soft); }
.mp-item span, .mp-agenda-item span { display: block; }
.mp-b { font-weight: 700; color: var(--ink); }
.mp-red { font-weight: 700; color: var(--red); }
.mp-orange { font-weight: 600; color: #e8772e; }
.mp-small { font-style: italic; color: var(--muted); font-size: .8rem; }
.mp-gap { height: 6px; }
.mp-add { display: block; margin-top: 4px; color: var(--green-2); text-decoration: none; font-weight: 700; border: 1px dashed #c8d5cf; border-radius: 6px; opacity: .45; }
.mp-cells td:hover .mp-add, .mp-add:focus { opacity: 1; background: var(--green-soft); }
.mp-editor { padding: 16px; }
#eintrag { scroll-margin-top: 104px; }
.mp-note { font-weight: 600; color: var(--ink); margin-top: 16px; }
.mp-note-input { min-height: 60px; }
.mp-agenda { display: none; }
.mp-agenda-item { display: flex; gap: 16px; padding: 14px 16px; margin-bottom: 10px; align-items: center; }
.mp-agenda-item.sonder { border-left: 4px solid var(--red); }
.mp-text textarea { min-height: 220px; font-size: .9rem; }
.mp-link { display: flex; gap: 10px; }
.mp-link input { flex: 1; }
.print-only { display: none; }
@media (max-width: 700px) {
  .mp-desktop { display: none; }
  .mp-agenda { display: block; }
  .mp-link { flex-direction: column; }
}
/* Umschalter Kalender / Liste */
.mp-switch { display: inline-flex; border: 1px solid #c8d5cf; border-radius: 999px; padding: 3px; background: #fff; margin: 0 0 16px; }
.mp-switch.hidden { display: none; }
.mp-switch button { font: inherit; font-weight: 600; font-size: .9rem; border: 0; background: none; color: var(--green); padding: 6px 18px; border-radius: 999px; cursor: pointer; }
.mp-switch button[aria-pressed="true"] { background: var(--green); color: #fff; }
.mp-views.view-list .mp-desktop { display: none; }
.mp-views.view-list .mp-agenda { display: block; max-width: 760px; }
.mp-day { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.mp-agenda-item.past { opacity: .55; }
@media (max-width: 700px) {
  .mp-switch { display: none !important; }
  .mp-views .mp-desktop { display: none; }
  .mp-views .mp-agenda { display: block; }
}

@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff; font-size: 11pt; }
  .topbar, .footer, .cta, .page-head, .no-print, .flash, .mp-agenda { display: none !important; }
  .print-only { display: block; }
  .mp-print-title { color: var(--green); margin: 0 0 8px; font-size: 18pt; }
  .section, .section-tight { padding: 0; }
  .mp-desktop { display: block !important; }
  .mp-scroll { overflow: visible; }
  .mp-cal { min-width: 0; font-size: 8.5pt; line-height: 1.25; }
  .mp-cal th, .mp-days td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mp-cells td { height: 48px; padding: 3px 2px; }
  .mp-days td { padding: 1px; }
  .mp-cal th { padding: 4px; }
  .mp-gap { height: 3px; }
  .mp-item + .mp-item { margin-top: 2px; }
  .mp-note { margin-top: 8px; }
  .wrap > .muted.small { margin: 4px 0 0; }
  .mp-cal tr { break-inside: avoid; }
}
/* Kalender bearbeiten: Papierkorb und Drag & Drop */
.mp-entry { position: relative; cursor: grab; }
.mp-entry + .mp-entry { margin-top: 6px; border-top: 1px dotted #cfd8d4; }
.mp-entry.dragging { opacity: .4; }
.mp-tools { position: absolute; top: 2px; right: 0; display: flex; gap: 3px; }
.mp-tools form { margin: 0; }
.mp-tools button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: #fff; color: var(--red); cursor: pointer; opacity: 0; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mp-copy button { color: var(--green-2); }
.mp-entry:hover .mp-tools button, .mp-tools button:focus { opacity: 1; }
.mp-del button:hover { background: #fde8ea; }
.mp-copy button:hover { background: var(--green-soft); }
@media (hover: none) { .mp-tools button { opacity: .85; } }
.mp-cells td.drop { background: var(--green-soft); outline: 2px dashed var(--green-2); outline-offset: -3px; }
