/* Sossenheim Termine – passend zum Startseiten-Entwurf. Farbe über --sot-accent (Einstellungen). */
.sot {
	--sot-accent: #012B56;
	--sot-ink: #0B2342;
	--sot-muted: #4A5561;
	--sot-line: #A9B3BD;
	--sot-soft: #EEF3F9;
	color: var(--sot-ink);
	box-sizing: border-box;
}
.sot *, .sot *::before, .sot *::after { box-sizing: inherit; }

/* ---------- Terminliste ---------- */
.sot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sot-list li { margin: 0; padding: 0; }
.sot-item {
	display: flex; gap: 20px; align-items: center;
	background: #fff; border-radius: 14px; padding: 16px 20px;
	color: var(--sot-ink); text-decoration: none;
	box-shadow: 0 0 0 1px rgba(21, 32, 43, .06);
	transition: box-shadow .15s ease, transform .15s ease;
}
.sot-item:hover, .sot-item:focus-visible { box-shadow: 0 0 0 2px var(--sot-accent); color: var(--sot-ink); text-decoration: none; }
.sot-item:focus-visible { outline: 2px solid var(--sot-accent); outline-offset: 2px; }
.sot-badge {
	flex: 0 0 68px; height: 72px; border-radius: 10px;
	background: var(--sot-ink); color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.sot-badge-day { font-weight: 900; font-size: 28px; }
.sot-badge-month { font-size: 12px; font-weight: 700; letter-spacing: .1em; margin-top: 4px; }
.sot-item-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.sot-item-title { font-weight: 800; font-size: 20px; line-height: 1.2; }
.sot-item-meta { font-size: 14px; color: var(--sot-muted); }
.sot-chevron { flex: 0 0 auto; color: var(--sot-muted); }
.sot-empty { color: var(--sot-muted); }

/* ---------- Formular ---------- */
.sot-form { display: flex; flex-direction: column; gap: 24px; max-width: 760px; }
.sot-form fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.sot-form legend { font-weight: 800; font-size: 20px; padding: 0; margin-bottom: 4px; }
.sot-muted { font-weight: 400; font-size: 15px; color: var(--sot-muted); }
.sot-row { display: flex; flex-wrap: wrap; gap: 16px; }
.sot-row > .sot-field { flex: 1 1 220px; min-width: 0; }
.sot-field { display: flex; flex-direction: column; gap: 6px; }
.sot-field label { font-size: 14px; font-weight: 700; }
.sot-form input[type="text"], .sot-form input[type="email"], .sot-form input[type="url"],
.sot-form input[type="date"], .sot-form input[type="time"], .sot-form select, .sot-form textarea {
	width: 100%; min-height: 48px; border: 1px solid var(--sot-line); border-radius: 10px;
	padding: 10px 14px; font: inherit; font-size: 16px; color: var(--sot-ink); background: #fff;
}
.sot-form textarea { min-height: 140px; resize: vertical; }
.sot-form input[type="file"] {
	width: 100%; min-height: 48px; border: 1px dashed var(--sot-line); border-radius: 10px;
	padding: 12px 14px; font: inherit; font-size: 15px; background: #F7F8F9;
}
.sot-form input:focus, .sot-form select:focus, .sot-form textarea:focus {
	outline: 2px solid var(--sot-accent); outline-offset: 1px; border-color: var(--sot-accent);
}
.sot-form [aria-invalid="true"] { border-color: #B4362B; }
.sot-error { color: #B4362B; font-size: 14px; font-weight: 600; }
.sot-check { display: flex; gap: 10px; align-items: flex-start; }
.sot-check input { width: 22px; height: 22px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--sot-accent); }
.sot-check label { font-size: 14px; font-weight: 400; }
.sot-check a, .sot-link { color: var(--sot-accent); text-decoration: underline; font-weight: 600; }
.sot-alert { background: #FBEDEB; border-radius: 12px; padding: 16px 20px; color: #7A2018; }
.sot-alert ul { margin: 8px 0 0; padding-left: 20px; }
.sot-note { margin: 0; font-size: 14px; color: var(--sot-muted); }
.sot-button {
	align-self: flex-start; display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; padding: 0 30px; border: 0; border-radius: 26px;
	background: var(--sot-accent); color: #fff; font: inherit; font-weight: 800; font-size: 16px;
	cursor: pointer; text-decoration: none;
}
.sot-button:hover, .sot-button:focus-visible { filter: brightness(1.1); color: #fff; text-decoration: none; }
.sot-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sot-success { background: var(--sot-soft); border-radius: 16px; padding: 28px; }
.sot-success h3 { margin-top: 0; }

/* ---------- Termindetails (Einzelseite) ---------- */
.sot-details { background: var(--sot-soft); border-radius: 16px; padding: 24px; margin: 0 0 28px; }
.sot-details dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 24px; }
.sot-details dt { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sot-accent); }
.sot-details dd { margin: 4px 0 0; font-weight: 600; }
.sot-details-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 20px 0 0; }

.sot .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

@media (max-width: 480px) {
	.sot-item { gap: 14px; padding: 14px; }
	.sot-badge { flex-basis: 56px; height: 62px; }
	.sot-badge-day { font-size: 24px; }
	.sot-item-title { font-size: 17px; }
}

/* ---------- Filter & Monate (Seite „Veranstaltungen“) ---------- */
.sot-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; scroll-margin-top: 120px; }
.sot-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 20px;
	border: 1px solid var(--sot-line); background: #fff; color: var(--sot-ink);
	font-size: 15px; font-weight: 700; text-decoration: none;
}
.sot-chip:hover, .sot-chip:focus-visible { border-color: var(--sot-accent); color: var(--sot-accent); text-decoration: none; }
.sot-chip.is-active { background: var(--sot-accent); border-color: var(--sot-accent); color: #fff; }
.sot-month {
	font-size: 22px; font-weight: 800; margin: 32px 0 12px; padding-bottom: 8px;
	border-bottom: 2px solid #559414; color: var(--sot-ink);
}
.sot-chips + .sot-month, .sot-month:first-child { margin-top: 0; }
.sot-item-cat { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #4A8212; }

/* ---------- Bild zum Termin ---------- */
.sot-image { margin: 28px 0 0; }
.sot-image a { display: block; border-radius: 16px; overflow: hidden; }
.sot-image img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; background: #F4F6F8; }
.sot-image a:focus-visible { outline: 3px solid var(--sot-accent); outline-offset: 3px; }
.sot-image figcaption { margin-top: 8px; font-size: 14px; color: var(--sot-muted); }

/* Knöpfe in der Detailbox: einheitlich in der Akzentfarbe, auch gegen Theme-Linkfarben */
.sot-details-links a.sot-button,
.sot-details-links a.sot-button:visited {
	background: var(--sot-accent) !important; color: #fff !important; text-decoration: none !important;
	min-height: 48px; padding: 0 24px; border-radius: 24px; font-size: 15px;
}
.sot-details-links a.sot-button:hover,
.sot-details-links a.sot-button:focus-visible { background: #4A8212 !important; color: #fff !important; filter: none; }

/* Abstand zwischen Termin-Inhalt und Footer */

body.single-so_termin .site-main,
body.single-so_termin main#content { padding-bottom: 64px; }
