/*
Theme Name: Tauchclub Atlantis
Description: A custom block theme scaffolded by Studio Code.
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 0.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tc-atlantis
Tags: full-site-editing, block-patterns, block-styles, wide-blocks, accessibility-ready, style-variations
*/

/* Self-hosted display font (Anton) for the header site title — local copy,
   no request to Google Fonts. */
@font-face {
	font-family: "Anton";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("./assets/fonts/anton/Anton-Regular.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* WordPress inserts a margin-block-start equal to the block gap (24px unless
   theme.json sets styles.spacing.blockGap) between the template's top-level
   sections (header part, main, footer part) — a gap that exists even when no
   markup asks for it. Zero it so sections butt edge-to-edge and own their
   vertical rhythm via padding; this does not affect block gaps inside nested
   layouts. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* With that gap gone, main carries its own vertical padding so templates this
   theme does not author (WooCommerce shop, product, cart…) still clear the
   header and footer. A descendant selector, not a child one: WooCommerce wraps
   the single-product main in an extra group. Templates built from full-bleed
   sections opt out with is-flush and let the sections own the rhythm. */
.wp-site-blocks main {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}
.wp-site-blocks main.is-flush {
	padding-block: 0;
}

/* === root === */
:root {
	--hairline: rgb(58 79 120 / 0.4);
	--panel-solid: #172743;
}

/* Panel card treatment (registered block style) */
.is-style-card {
	background: var(--wp--preset--color--panel);
	border: 1px solid var(--hairline);
	border-radius: var(--wp--custom--rounded--card, 4px);
	padding: clamp(1.25rem, 3vw, 2.5rem);
}
.is-style-card .wp-block-heading {
	margin-top: 0;
}

/* Responsive grid for card column collections (e.g. the member-area quick links):
   4-across on wide, 2x2 on medium, stacked on narrow. */
.wp-block-columns:has(> .wp-block-column.is-style-card) {
	flex-wrap: wrap;
}
.wp-block-columns:has(> .wp-block-column.is-style-card) > .wp-block-column.is-style-card {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 100%;
}
@media (min-width: 600px) {
	.wp-block-columns:has(> .wp-block-column.is-style-card) > .wp-block-column.is-style-card {
		flex-basis: calc(50% - 0.75rem);
	}
}
@media (min-width: 900px) {
	.wp-block-columns:has(> .wp-block-column.is-style-card) > .wp-block-column.is-style-card {
		flex-basis: calc(25% - 1.125rem);
	}
}

/* === header === */
/* Das Sticky liegt auf dem vollen Header-Wrapper (direktes Kind des
   Seiten-Containers), damit es beim Scrollen über die gesamte Seite hält. */
header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 999;
}
.site-header {
	background: rgb(12 22 44 / 0.78);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--hairline);
}
.site-header .wp-block-site-title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.7rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--wp--preset--color--text);
	margin: 0;
}
.site-header .wp-block-site-title a {
	color: inherit;
	text-decoration: none;
}
.main-nav {
	flex: 0 1 auto;
}
.main-nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
	opacity: 0.88;
	font-size: 0.95rem;
	font-weight: 500;
}
.main-nav .wp-block-navigation-item__content:hover,
.main-nav .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}
.main-nav .wp-block-navigation__submenu-container {
	background: var(--panel-solid);
	border: 1px solid var(--hairline);
	border-radius: 4px;
	padding: 0.5rem;
}
.header-btn .wp-element-button {
	background: var(--wp--preset--color--primary);
	color: #0f1b33;
	font-weight: 600;
	padding: 0.4em 1em;
	font-size: 0.82rem;
}
.header-btn .wp-element-button:hover {
	background: #e0bd6d;
	color: #0f1b33;
}
.header-btn .wp-block-button {
	flex-shrink: 0;
}
.header-btn .wp-element-button {
	white-space: nowrap;
}
.main-nav {
	flex-wrap: nowrap;
	justify-content: flex-end;
}
/* Main header order: brand left, nav & login/logout on the right with a small gap. */
.site-header .brand {
	order: 1;
}
.site-header .main-nav {
	order: 2;
	margin-left: auto;
}
.site-header .wp-block-buttons {
	order: 3;
	margin-left: 0;
}
.main-nav .wp-block-navigation-item__content {
	white-space: nowrap;
}

/* Site logo next to the title */
.header-logo {
	margin: 0;
	line-height: 0;
}
.header-logo img {
	height: 34px;
	width: auto;
	display: block;
}

/* Brand cluster: logo + site title hugged together. */
.brand {
	gap: 12px;
}

/* Slim the sticky header while scrolled (logo hidden, less padding). */
.site-header {
	padding-block: 0.85rem 0.55rem;
	transition: padding-block 0.3s ease;
}
.site-header.is-scrolled {
	padding-block: 0.15rem 0.12rem;
}
.site-header.is-scrolled .brand .header-logo {
	display: none;
}
.site-header.is-scrolled .main-nav .wp-block-navigation-item__content {
	font-size: 0.85rem;
}
.site-header.is-scrolled .wp-block-site-title {
	font-size: 0.92rem;
}
.site-header.is-scrolled .header-btn .wp-element-button,
.site-header.is-scrolled .member-logout .wp-element-button {
	font-size: 0.66rem;
	padding: 0.22em 0.6em;
}
.site-header.is-scrolled .wp-block-group.member-bar {
	padding-block: 0.2rem 0.12rem;
}
.site-header.is-scrolled .member-nav {
	font-size: 0.74rem;
}
@media (prefers-reduced-motion: reduce) {
	.site-header {
		transition: none;
	}
}

/* Pull the site title close to the logo and set a simpler font. */
.site-header .wp-block-site-title {
	margin-left: 0;
	font-family: "Anton", sans-serif;
	font-size: clamp(0.9rem, 1vw, 1.05rem);
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1;
	white-space: nowrap;
}

/* Member-only second header bar: hidden unless logged in as a member. */
.wp-block-group.member-bar {
	display: none;
	margin-block-start: 0;
}
.is-member .wp-block-group.member-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	justify-content: flex-end;
	align-items: center;
	width: 100%;
	margin-block-start: 0;
	padding-block: 0.12rem 0.2rem;
	border-top: 1px solid rgba(58, 79, 120, 0.4);
}
.member-nav .wp-block-navigation__container {
	margin-left: 0;
}
.is-member .header-btn {
	display: none;
}
.site-header .member-logout {
	display: none;
}
.is-member .site-header .member-logout {
	display: inline-flex;
}
.member-nav {
	gap: 1.5rem;
	flex-wrap: wrap;
	font-size: 0.95rem;
	letter-spacing: 0.06em;
	font-weight: 600;
}
.member-nav a {
	color: var(--wp--preset--color--cream);
}
.member-nav a:hover {
	color: var(--wp--preset--color--primary);
}
.member-logout .wp-element-button {
	background: rgba(58, 79, 120, 0.25);
	color: var(--wp--preset--color--cream);
	border: 1px solid rgba(212, 168, 83, 0.5);
	border-radius: 4px;
	padding: 0.4em 0.9em;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.member-logout .wp-element-button:hover {
	background: var(--wp--preset--color--primary);
	color: #0f1b33;
}

/* Small WordPress logo at the end of the member header: toggles the admin
   bar on/off for admins (body.tc-adminbar-off hides it). */
.tc-adminbar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 24px;
	height: 24px;
	border: 1px solid rgba(212, 168, 83, 0.45);
	border-radius: 5px;
	background: rgba(58, 79, 120, 0.25);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}
.tc-adminbar-toggle:hover {
	background: rgba(212, 168, 83, 0.18);
	border-color: rgba(212, 168, 83, 0.85);
}
.tc-adminbar-toggle__logo {
	width: 14px;
	height: 14px;
	display: block;
}
/* Hide the WP-logo toggle on the slimmed, scrolled header. */
.site-header.is-scrolled .tc-adminbar-toggle {
	display: none;
}
.tc-adminbar-toggle[aria-expanded="true"] {
	border-color: rgba(212, 168, 83, 0.85);
	box-shadow: inset 0 0 0 1px rgba(212, 168, 83, 0.5);
}

/* Hide the WordPress admin bar unless an admin toggles it on. */
body.tc-adminbar-off #wpadminbar {
	display: none;
}

/* Mobile Navigation overlay: lock body scroll and give it a solid background
   so links stay readable when opened via the fallback handler. */
body.tc-mnav-open {
	overflow: hidden;
}
/* The header's backdrop-filter makes it a containing block for position:fixed
   descendants (the mobile navigation overlay), so the overlay collapses into
   the header instead of the viewport. Disable it while the menu is open. */
body.tc-mnav-open .site-header {
	position: relative;
	z-index: 100001;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	top: var(--tc-header-h, 72px);
	left: 0;
	right: 0;
	bottom: auto;
	height: auto;
	width: 100%;
	max-height: calc(100dvh - var(--tc-header-h, 72px));
	overflow-y: auto;
	z-index: 100000;
	background: rgba(15, 27, 51, 0.78) !important;
	-webkit-backdrop-filter: blur(14px) saturate(1.1);
	backdrop-filter: blur(14px) saturate(1.1);
	color: var(--wp--preset--color--cream);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
	border-top: 1px solid rgba(58, 79, 120, 0.4);
	padding-top: 0.15rem;
}
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0.1rem;
	padding: 1rem 1.4rem 1.4rem;
}
/* Force readable (light) link + close-button colors in the open overlay,
   overriding any darker link color set by the theme header. */
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open,
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-link,
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: var(--wp--preset--color--cream) !important;
}
body.tc-mnav-open .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--primary) !important;
}
body.tc-mnav-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--cream) !important;
	background: transparent;
}
body.tc-mnav-open .wp-block-navigation .wp-block-navigation-item {
	color: var(--wp--preset--color--cream) !important;
}

/* Admin-only „Neuer Beitrag“ link in the member nav */
.member-nav .wp-block-shortcode {
	display: inline;
}
.member-nav .tc-admin-new {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border-bottom: 1px dashed rgba(212, 168, 83, 0.5);
	padding-bottom: 2px;
}
.member-nav .tc-admin-new:hover {
	color: #e0bd6d;
	text-decoration: underline;
}

/* Admin-only third header bar: slim clean row tucked under the member bar. */
.site-header .wp-block-group.admin-bar {
	display: none;
	gap: 0.2rem 0.5rem;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	width: 100%;
	margin-top: 0;
	margin-bottom: 0;
	padding-block: 0.12rem 0.22rem;
	border-top: 1px solid rgba(212, 168, 83, 0.2);
	background: rgba(9, 16, 32, 0.45);
}
.is-admin .site-header .wp-block-group.admin-bar {
	display: flex;
}
.admin-bar .tc-admin-new {
	color: var(--wp--preset--color--primary);
	font-size: 0.6rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-decoration: none;
	text-transform: uppercase;
	padding: 0.12em 0.6em;
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 999px;
	background: rgba(212, 168, 83, 0.08);
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.admin-bar .tc-admin-new:hover {
	color: #0f1b33;
	background: var(--wp--preset--color--primary);
	border-color: var(--wp--preset--color--primary);
}
.admin-bar .tc-adminbar-toggle {
	width: 19px;
	height: 19px;
	margin-left: 0.1rem;
}

/* Login gate shown in place of member-only page content. */
.member-gate {
	max-width: 500px;
	margin: 0 auto;
	padding: clamp(2.5rem, 8vw, 5rem) 1.5rem;
	text-align: center;
}
.member-gate .wp-block-buttons {
	justify-content: center;
	margin-top: 1.5rem;
}
.member-gate .wp-element-button {
	background: var(--wp--preset--color--primary);
	color: #0f1b33;
}
.member-gate .wp-element-button:hover {
	background: #e0bd6d;
}
.member-gate-note {
	margin-top: 1.5rem;
	font-size: 0.95rem;
	color: rgba(243, 237, 224, 0.85);
}
.member-gate-note a {
	color: var(--wp--preset--color--primary);
}

/* === buttons & labels === */
.eyebrow {
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
body a {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* === footer === */
.site-footer {
	background: linear-gradient(180deg, #101c38, #0a1124);
	border-top: 1px solid var(--hairline);
}
.footer-cols {
	gap: 2.5rem;
}
.footer-title {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 1rem;
}
.footer-note {
	color: var(--wp--preset--color--text);
	opacity: 0.82;
	font-size: 0.95rem;
}
.footer-link {
	margin: 0.4rem 0;
}
.footer-link a {
	color: var(--wp--preset--color--text);
	opacity: 0.82;
	text-decoration: none;
}
.footer-link a:hover {
	color: var(--wp--preset--color--primary);
	opacity: 1;
}
.footer-bottom {
	border-top: 1px solid var(--hairline);
	margin-top: 3rem;
	padding-top: 1.5rem;
	font-size: 0.9rem;
}
.footer-bottom p {
	color: var(--wp--preset--color--muted);
}
.footer-bottom a {
	color: var(--wp--preset--color--muted);
}
.footer-bottom a:hover {
	color: var(--wp--preset--color--primary);
}

/* === poster pages === */
.poster {
	min-height: 100dvh;
}
.poster.wp-block-cover {
	align-items: flex-end;
}
.poster > .wp-block-cover__inner-container {
	width: 100%;
	position: relative;
	z-index: 2;
}
.poster::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		to top,
		rgb(9 16 33 / 0.92) 0%,
		rgb(9 16 33 / 0.5) 45%,
		rgb(9 16 33 / 0.12) 68%,
	transparent 100%
	);
	pointer-events: none;
}
.poster-title {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	letter-spacing: -0.01em;
}
.poster-lede {
	color: var(--wp--preset--color--text);
	opacity: 0.88;
	max-width: 36rem;
}
.poster-scroll {
	color: var(--wp--preset--color--muted);
	font-size: 0.78rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}
.poster-inner {
	max-width: 50rem;
	align-self: flex-start;
	padding: clamp(1.5rem, 5vw, 4rem);
	width: 100%;
}
.poster-inner > * {
	align-self: stretch;
}
.poster-inner .wp-block-heading {
	margin: 1.1rem 0 0;
}
/* Full-bleed sections butt edge to edge (poster pages): no seam between them */
.wp-block-post-content.is-layout-constrained > .alignfull {
	margin-block-start: 0;
}

/* === standard page content === */
.page-intro {
	padding-block: clamp(4rem, 10vw, 7rem) 1rem;
}
.section-title-kicker {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
}
.section-head h2,
.section-head h3 {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	line-height: 1.08;
}
.stat-value {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	font-size: clamp(2.5rem, 5vw, 3.6rem);
	color: var(--wp--preset--color--primary);
	line-height: 1;
}
.stat-label {
	color: var(--wp--preset--color--muted);
	font-size: 0.9rem;
}
.stat-band,
.join-band {
	padding-block: clamp(3rem, 8vw, 5.5rem);
}
.rounded-img img,
.rounded-img figure {
	border-radius: 4px;
}
.rounded-img {
	margin: 0;
}

/* === forms (contact + member login/registration) === */
.wp-block-jetpack-contact-form label,
.swpm-login-form .swpm-form-row label,
.swpm-registration-form .swpm-form-row label,
.swpm-login-form,
.swpm-registration-form {
	color: var(--wp--preset--color--text);
}
.wp-block-jetpack-contact-form input[type="text"],
.wp-block-jetpack-contact-form input[type="email"],
.wp-block-jetpack-contact-form input[type="tel"],
.wp-block-jetpack-contact-form input[type="url"],
.wp-block-jetpack-contact-form textarea,
.wp-block-jetpack-contact-form select,
.swpm-login-form input[type="text"],
.swpm-login-form input[type="email"],
.swpm-login-form input[type="password"],
.swpm-registration-form input[type="text"],
.swpm-registration-form input[type="email"],
.swpm-registration-form input[type="password"],
.swpm-registration-form input[type="tel"] {
	width: 100%;
	background: #0d1730;
	border: 1px solid rgb(58 79 120 / 0.6);
	color: var(--wp--preset--color--text);
	padding: 0.85rem 1rem;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}
.wp-block-jetpack-contact-form input:focus,
.wp-block-jetpack-contact-form textarea:focus,
.wp-block-jetpack-contact-form select:focus,
.swpm-login-form input:focus,
.swpm-registration-form input:focus {
	border-color: var(--wp--preset--color--primary);
	outline: none;
}
.swpm-login-form .swpm-form-row,
.swpm-registration-form .swpm-form-row {
	margin-bottom: 1.1rem;
}
.wp-block-jetpack-contact-form .jetpack-field {
	margin-bottom: 1.1rem;
}
.swpm-login-link-registration,
.swpm-registration-message {
	color: var(--wp--preset--color--muted);
}
.swpm-login-link-registration a,
.swpm-registration-message a {
	color: var(--wp--preset--color--primary);
}

/* === responsive === */
@media (max-width: 600px) {
	.poster {
		min-height: 92vh;
	}
}
@media (max-height: 640px) {
	.poster {
		min-height: 70vh;
	}
}
@media (prefers-reduced-motion: reduce) {
	.site-header,
	.poster {
		transition: none;
		animation: none;
	}
}

/* Simple Membership login & registration forms */
.swpm-login-widget-form .swpm-login-form-inner,
.swpm-registration-form {
	max-width: 420px;
}
.swpm-login-widget-form .swpm-label,
.swpm-registration-form label {
	color: var(--wp--preset--color--cream);
	font-weight: 600;
}
.swpm-login-widget-form input[type="text"],
.swpm-login-widget-form input[type="password"],
.swpm-login-widget-form input[type="email"],
.swpm-registration-form input[type="text"],
.swpm-registration-form input[type="password"],
.swpm-registration-form input[type="email"],
.swpm-registration-form select,
.swpm-registration-form textarea {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 0.8em 1em;
	margin: 0.3em 0 1em;
	background: #0d172f;
	border: 1px solid rgba(58, 79, 120, 0.6);
	border-radius: 4px;
	color: var(--wp--preset--color--cream);
	font-size: 1rem;
	font-family: inherit;
}
.swpm-login-widget-form input:focus,
.swpm-registration-form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.swpm-login-form-submit.swpm-submit-btn-default-style,
.swpm-registration-widget-form button[type="submit"],
.swpm-registration-widget-form input[type="submit"],
.swpm-registration-form input[type="submit"],
.swpm-proceed-reg-btn,
.swpm-buy-button {
	background: #d4a853;
	color: #0f1b33;
	border: none;
	border-radius: 4px;
	padding: 0.85em 1.8em;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}
.swpm-login-form-submit.swpm-submit-btn-default-style:hover,
.swpm-registration-widget-form button[type="submit"]:hover,
.swpm-registration-widget-form input[type="submit"]:hover {
	background: #e0bd6d;
}

/* Native WordPress login form (board-created accounts) */
#loginform {
	max-width: 420px;
}
#loginform label {
	color: var(--wp--preset--color--cream);
	font-weight: 600;
}
#loginform input[type="text"],
#loginform input[type="password"] {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 0.8em 1em;
	margin: 0.3em 0 1em;
	background: #0d172f;
	border: 1px solid rgba(58, 79, 120, 0.6);
	border-radius: 4px;
	color: var(--wp--preset--color--cream);
	font-size: 1rem;
	font-family: inherit;
}
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
#loginform .login-remember {
	color: var(--wp--preset--color--muted);
	margin-bottom: 1rem;
}
#loginform .login-submit #wp-submit {
	background: #d4a853 !important;
	color: #0f1b33 !important;
	border: none !important;
	border-radius: 4px;
	width: 100%;
	padding: 1rem 1.8em;
	font-family: inherit;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	opacity: 1 !important;
	transition: background-color 0.2s ease, color 0.2s ease;
}
#loginform .login-submit #wp-submit:hover,
#loginform .login-submit #wp-submit:focus {
	background: #e0bd6d;
	color: #0f1b33;
}

/* Centered, narrow auth column on the Login / auth pages */
.auth-wrap {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}
.auth-wrap .auth-note {
	color: var(--wp--preset--color--muted);
}
.auth-wrap .auth-note a {
	color: var(--wp--preset--color--primary);
}

/* Latest posts (member feeds) */
.wp-block-latest-posts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.wp-block-latest-posts__post-title {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--headline);
	font-size: 1.35rem;
	line-height: 1.25;
}
.wp-block-latest-posts__post-title a {
	color: var(--wp--preset--color--primary);
	text-decoration: none;
}
.wp-block-latest-posts__post-title a:hover {
	color: #e0bd6d;
}
.wp-block-latest-posts__post-date {
	display: block;
	margin: 0 0 0.5rem;
	color: var(--wp--preset--color--muted);
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.8rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.wp-block-latest-posts__post-excerpt {
	margin: 0;
	color: inherit;
}
.wp-block-latest-posts__post-excerpt a {
	color: var(--wp--preset--color--primary);
}

/* Download modal */
.dl-open,
.dl-direct {
	display: inline-block;
	margin: 0.45rem 0 0;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--wp--preset--color--primary);
	font-family: inherit;
	font-size: inherit;
	text-align: left;
	text-decoration: underline;
	text-decoration-color: rgba(212, 168, 83, 0.45);
	text-underline-offset: 3px;
}
.dl-open:hover,
.dl-direct:hover {
	color: #e0bd6d;
}
.dl-direct,
.dl-open {
	text-decoration: none;
	border-bottom: 1px dashed rgba(212, 168, 83, 0.5);
	padding-bottom: 2px;
}
.dl-direct:hover,
.dl-open:hover {
	text-decoration: underline;
}
.dl-none {
	display: block;
	margin: 0.45rem 0 0;
	color: var(--wp--preset--color--muted);
}
.dl-none:hover {
	color: var(--wp--preset--color--muted);
}
.dl-more {
	margin: 0.8rem 0 0;
}
.dl-more a {
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	border-bottom: 1px dashed rgba(212, 168, 83, 0.5);
	padding-bottom: 2px;
}
.dl-more a:hover {
	color: var(--wp--preset--color--primary);
}
.dl-modal {
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 12px;
	padding: 0;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--panel);
	width: min(560px, calc(100vw - 2rem));
	max-width: none;
}
.dl-modal:open {
	display: flex;
	flex-direction: column;
	max-height: min(85vh, 900px);
	overflow: hidden;
}
body.is-dialog-open {
	overflow: hidden;
}
.dl-modal::backdrop {
	background: rgba(10, 16, 32, 0.72);
}
.dl-title {
	flex: none;
	padding: 1.75rem 3rem 0 1.75rem;
	font-family: var(--wp--preset--font-family--headline);
	font-size: 1.6rem;
	background: var(--wp--preset--color--panel);
}
.dl-hint {
	flex: none;
	padding: 0.4rem 1.75rem 0.85rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
	background: var(--wp--preset--color--panel);
	border-bottom: 1px solid rgba(212, 168, 83, 0.18);
}
.dl-close {
	position: absolute;
	top: 1rem;
	right: 1.1rem;
	background: none;
	border: 0;
	color: var(--wp--preset--color--primary);
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
}
.dl-close:hover {
	color: #e0bd6d;
}
.dl-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin: 0;
	padding: 1.5rem 1.75rem 1.75rem;
}
.dl-list a {
	display: block;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(212, 168, 83, 0.12);
}
.dl-list a::before {
	content: '↓ ';
	color: rgba(212, 168, 83, 0.6);
}
.dl-list a:hover {
	text-decoration: underline;
	color: #e0bd6d;
}
.dl-badge {
	display: inline-block;
	margin-right: 0.6rem;
	padding: 0.26em 0.65em;
	border: 1px solid;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.58rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.1;
	vertical-align: middle;
}
.dl-badge.is-zeitung {
	color: #e0bd6d;
	border-color: rgba(212, 168, 83, 0.55);
	background: rgba(212, 168, 83, 0.12);
}
.dl-badge.is-fernsehen {
	color: #9fd4bc;
	border-color: rgba(120, 200, 160, 0.5);
	background: rgba(120, 200, 160, 0.12);
}
.dl-badge.is-radio {
	color: #a9c4e8;
	border-color: rgba(130, 170, 215, 0.5);
	background: rgba(130, 170, 215, 0.12);
}
.dl-badge:not([class*=' is-']) {
	color: var(--wp--preset--color--muted);
	border-color: rgba(243, 237, 224, 0.25);
	background: transparent;
}
.tc-dl-msg {
	color: var(--wp--preset--color--text);
}
.tc-dl-modalbody {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-height: 0;
	overflow-y: auto;
	padding: 1.5rem 1.75rem 1.75rem;
}
.tc-dl-fld {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted);
}
.tc-dl-fld select,
.tc-dl-fld input[type="file"] {
	font: inherit;
	color: var(--wp--preset--color--text);
	background: rgba(10, 16, 32, 0.6);
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 8px;
	padding: 0.55rem 0.7rem;
}
.tc-dl-submit {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-weight: 600;
	align-self: flex-start;
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--background);
	border: 0;
	border-radius: 999px;
	padding: 0.62rem 1.6rem;
	cursor: pointer;
}
.tc-dl-submit:hover {
	background: #e0bd6d;
}

/* News-Übersicht: Großes erstes + Grid */
.tc-news {
	margin: 2.5rem auto 0;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}
.tc-empty {
	margin: 2rem 0 0;
	color: rgb(243 237 224 / 0.7);
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-size: 1.25rem;
	font-style: italic;
}
.tc-news-featured {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	border: 1px solid rgb(58 79 120 / 0.4);
	border-radius: 4px;
	overflow: hidden;
	background: var(--wp--preset--color--panel);
}
.tc-news-fimg {
	display: block;
}
.tc-news-fimg img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tc-news-fbody {
	padding: 2.2rem 2.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.6rem;
}
.tc-news-date {
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.tc-news-ftitle {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	line-height: 1.1;
	font-size: clamp(1.7rem, 3.2vw, 2.4rem);
	margin: 0;
}
.tc-news-ftitle a,
.tc-news-ctitle a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.tc-news-ftitle a:hover,
.tc-news-ctitle a:hover {
	color: var(--wp--preset--color--primary);
}
.tc-news-fexcerpt {
	margin: 0;
	color: rgb(243 237 224 / 0.85);
}
.tc-news-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
}
.tc-news-card {
	border: 1px solid rgb(58 79 120 / 0.4);
	border-radius: 4px;
	overflow: hidden;
	background: var(--wp--preset--color--panel);
	display: flex;
	flex-direction: column;
}
.tc-news-cimg {
	display: block;
}
.tc-news-cimg img {
	display: block;
	width: 100%;
	height: 200px;
	object-fit: cover;
}
/* Vereinslogo als Platzhalter: zentriert, nicht verzerrt */
.tc-news-featured a.is-logo,
.tc-news-card a.is-logo {
	display: grid;
	place-items: center;
	background: var(--wp--preset--color--panel);
}
.tc-news-card a.is-logo {
	height: 200px;
}
.tc-news-card a.is-logo img {
	object-fit: contain;
	height: auto;
	max-width: 62%;
	max-height: 140px;
}
.tc-news-featured a.is-logo img {
	object-fit: contain;
	height: auto;
	width: auto;
	max-width: 68%;
	max-height: 60%;
}
.tc-news-cbody {
	padding: 1.4rem 1.5rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}
.tc-news-ctitle {
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	line-height: 1.15;
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	margin: 0;
}
.tc-news-cexcerpt {
	margin: 0;
	color: rgb(243 237 224 / 0.8);
	font-size: 0.95rem;
}
@media (max-width: 720px) {
	.tc-news-featured {
		grid-template-columns: 1fr;
	}
	.tc-news-fimg img {
		height: 240px;
	}
	.tc-news-fbody {
		padding: 1.6rem 1.5rem;
	}
}
@media (prefers-reduced-motion: reduce) {
	.tc-news-more {
		transition: none;
	}
}

/* Mitgliederbereich „Neuigkeiten“: letzte Beiträge, je 2 Zeilen + Weiterlesen */
.tc-news-mini {
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}
.tc-news-mini-item {
	border-bottom: 1px solid rgb(58 79 120 / 0.4);
	padding-bottom: 1.1rem;
}
.tc-news-mini-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.tc-news-mini-date {
	display: block;
	font-family: var(--wp--preset--font-family--albert-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.35rem;
}
.tc-news-badge {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.22em 0.7em;
	border: 1px solid rgba(212, 168, 83, 0.6);
	border-radius: 999px;
	background: rgba(212, 168, 83, 0.12);
	color: var(--wp--preset--color--primary);
	font-size: 0.6rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	vertical-align: middle;
	line-height: 1.1;
}
.tc-news-mini-title {
	margin: 0 0 0.35rem;
	font-family: var(--wp--preset--font-family--cormorant-garamond);
	font-weight: 500;
	line-height: 1.2;
	font-size: 1.3rem;
}
.tc-news-mini-title a {
	color: var(--wp--preset--color--text);
	text-decoration: none;
}
.tc-news-mini-title a:hover {
	color: var(--wp--preset--color--primary);
}
.tc-news-mini-text {
	margin: 0 0 0.5rem;
	color: rgb(243 237 224 / 0.85);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.tc-news-mini-more {
	display: inline-block;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	border-bottom: 1px solid rgba(212, 168, 83, 0.5);
	padding-bottom: 2px;
}
.tc-news-mini-more:hover {
	color: #e0bd6d;
}

/* ---------- Vereinskalender ---------- */
.tc-btn {
	display: inline-block;
	padding: 0.55rem 1.15rem;
	border-radius: 5px;
	background: var(--wp--preset--color--primary);
	color: #0f1b33 !important;
	text-decoration: none;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	border: 1px solid transparent;
}
.tc-btn:hover {
	background: #e0bd6d;
}
.tc-btn-ghost {
	background: transparent;
	color: var(--wp--preset--color--cream) !important;
	border-color: rgba(212, 168, 83, 0.5);
}
.tc-btn-ghost:hover {
	background: rgba(212, 168, 83, 0.12);
}
.tc-btn-del {
	background: transparent;
	color: #e08b6d !important;
	border-color: rgba(224, 139, 109, 0.5);
	margin-left: 0.4rem;
}
.tc-btn-del:hover {
	background: rgba(224, 139, 109, 0.12);
}

.tc-cal {
	background: #13213c;
	border: 1px solid rgba(58, 79, 120, 0.5);
	border-radius: 12px;
	padding: 0.25rem 1rem 1.25rem;
}
.tc-cal h3,
.tc-cal h4 {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--cream);
	margin: 1.1rem 0 0.6rem;
}
.tc-cal h3 {
	font-size: 1.7rem;
}
.tc-cal h4 {
	font-size: 1.15rem;
	color: var(--wp--preset--color--primary);
	border-bottom: 1px solid rgba(212, 168, 83, 0.3);
	padding-bottom: 0.35rem;
}

.tc-cal-subscribe {
	background: #0f1b33;
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-top: 0.6rem;
}
.tc-cal-subscribe h3 {
	margin-top: 0;
}
.tc-cal-icsurl {
	background: #0a1426;
	border: 1px dashed rgba(212, 168, 83, 0.45);
	border-radius: 6px;
	padding: 0.55rem 0.7rem;
	font-size: 0.85rem;
	overflow-wrap: anywhere;
}
.tc-cal-howto {
	font-size: 0.85rem;
	opacity: 0.85;
	line-height: 1.6;
}

/* Dezentes Abo-Aufruf + Popup-Dialog */
.tc-cal-sub-link {
	display: inline-flex;
	align-items: center;
	color: var(--wp--preset--color--primary);
	text-decoration: underline dotted;
	text-underline-offset: 3px;
	font-size: 0.85rem;
	margin-left: 0.5rem;
	white-space: nowrap;
}
.tc-cal-sub-link:hover {
	color: #e0bd6d;
}
.tc-cal-dlg {
	padding: 1.2rem 1.4rem;
}
.tc-cal-dlg h3,
.tc-cal-dlg h4 {
	font-family: var(--wp--preset--font-family--display);
	color: var(--wp--preset--color--cream);
}
.tc-cal-dlg h3 {
	font-size: 1.4rem;
	margin: 0 0 0.5rem;
	padding-right: 1.5rem;
}
.tc-cal-dlg h4 {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--primary);
	margin: 1rem 0 0.4rem;
}
.tc-cal-dlg p {
	margin: 0.4rem 0;
	line-height: 1.5;
}
.tc-cal-acts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0.8rem 0;
}
.tc-cal-acts .tc-btn {
	display: inline-flex;
	align-items: center;
}
.tc-cal-dlg-close {
	position: absolute;
	top: 0.65rem;
	right: 0.7rem;
	cursor: pointer;
	width: 1.8rem;
	height: 1.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(212, 168, 83, 0.5);
	border-radius: 5px;
	color: var(--wp--preset--color--cream);
	font-size: 1rem;
	background: transparent;
}
.tc-cal-dlg-close:hover {
	border-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--primary);
}

.tc-cal-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 0.3rem 0 0.8rem;
	flex-wrap: wrap;
}
.tc-cal-nav strong {
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.2rem;
}

.tc-cal-grid {
	width: 100%;
	border-collapse: collapse;
	background: #0f1b33;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid rgba(58, 79, 120, 0.5);
}
.tc-cal-grid th {
	padding: 0.5rem 0;
	font-family: var(--wp--preset--font-family--body);
	font-weight: 600;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--wp--preset--color--primary);
	border-bottom: 1px solid rgba(58, 79, 120, 0.5);
}
.tc-cal-cell {
	position: relative;
	text-align: center;
	vertical-align: middle;
	width: 14.28%;
	height: 54px;
	border: 1px solid rgba(58, 79, 120, 0.35);
	color: var(--wp--preset--color--cream);
}
.tc-cal-cell.is-empty {
	border-color: transparent;
}
.tc-cal-cell.is-today .tc-cal-day-num {
	background: var(--wp--preset--color--primary);
	color: #0f1b33;
}
.tc-cal-day-num {
	display: inline-block;
	width: 26px;
	height: 26px;
	line-height: 26px;
	border-radius: 50%;
	font-size: 0.9rem;
}
.tc-cal-cell.has-events {
	background: var(--wp--preset--color--primary);
}
.tc-cal-cell.has-events .tc-cal-day-num {
	color: #0f1b33;
	font-weight: 700;
}
.tc-cal-cell.is-today.has-events .tc-cal-day-num {
	background: #0f1b33;
	color: #eac98f;
}
.tc-cal-dot {
	display: none;
}
.tc-cal-cell.has-events:hover {
	background: #e0bd6d;
}

.tc-cal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tc-cal-item {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(58, 79, 120, 0.35);
}
.tc-cal-item:last-child {
	border-bottom: 0;
}
.tc-cal-item-date {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--primary);
	margin-bottom: 0.15rem;
}
.tc-cal-item-title {
	display: block;
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.1rem;
}
.tc-cal-item-loc {
	display: inline-block;
	font-size: 0.85rem;
	color: #b7c3da;
	margin-top: 0.45rem;
}

/* Nächste Termine (Karte für Mitglieder-Seiten) */
.tc-next {
	background: #0f1b33;
	border: 1px solid rgba(212, 168, 83, 0.35);
	border-radius: 12px;
	padding: clamp(1rem, 2.5vw, 1.4rem);
}
.tc-next-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 1px solid rgba(212, 168, 83, 0.3);
	margin-bottom: 0.6rem;
	padding-bottom: 0.4rem;
}
.tc-next-title {
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.4rem;
	color: var(--wp--preset--color--cream);
	margin: 0;
}
.tc-next-more {
	font-size: 0.85rem;
	color: var(--wp--preset--color--primary);
	white-space: nowrap;
}
.tc-next-more:hover {
	color: #e0bd6d;
}
.tc-cal-none {
	color: #b7c3da;
}
.tc-cal-msg {
	background: #0a1426;
	border-left: 3px solid var(--wp--preset--color--primary);
	padding: 0.5rem 0.7rem;
	border-radius: 4px;
}

.tc-cal-form {
	background: #0f1b33;
	border: 1px solid rgba(58, 79, 120, 0.5);
	border-radius: 8px;
	padding: 0.8rem 0.9rem;
	margin: 0.6rem 0;
}
.tc-cal-fields {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem 1rem;
}
.tc-cal-form label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.8rem;
	color: #b7c3da;
}
.tc-cal-form input[type="text"],
.tc-cal-form input[type="datetime-local"] {
	padding: 0.5rem 0.6rem;
	border-radius: 5px;
	border: 1px solid rgba(58, 79, 120, 0.6);
	background: #13213c;
	color: var(--wp--preset--color--cream);
}
.tc-cal-form input:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
}
.tc-cal-allday {
	flex-direction: row !important;
	align-items: center;
	align-self: center;
}
.tc-cal-allday input {
	accent-color: var(--wp--preset--color--primary);
}
.tc-cal-edit .tc-cal-fields {
	border-top: 1px dashed rgba(58, 79, 120, 0.5);
	padding-top: 0.6rem;
	margin-top: 0.6rem;
}

/* Aufgeräumte Admin-Verwaltung: kompakte Zeilen + Aufklappen zum Bearbeiten */
.tc-cal-admin-list {
	display: grid;
	gap: 0.4rem;
}
.tc-cal-admin-row {
	background: #0f1b33;
	border: 1px solid rgba(58, 79, 120, 0.5);
	border-radius: 8px;
	overflow: hidden;
}
.tc-cal-admin-row summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 1rem;
	padding: 0.62rem 0.9rem;
}
.tc-cal-admin-row summary::-webkit-details-marker {
	display: none;
}
.tc-cal-admin-row summary::marker {
	content: "";
}
.tc-cal-admin-row summary .tc-cal-adate {
	color: var(--wp--preset--color--primary);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}
.tc-cal-admin-row summary .tc-cal-atitle {
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--display);
	font-size: 1rem;
}
.tc-cal-admin-row summary .tc-cal-aloc {
	color: #b7c3da;
	font-size: 0.82rem;
}
.tc-cal-admin-row summary::after {
	content: "✎ Bearbeiten";
	margin-left: auto;
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--body);
}
.tc-cal-admin-row[open] summary::after {
	content: "Schließen ▴";
}
.tc-cal-admin-row > .tc-cal-admin-body {
	border-top: 1px solid rgba(58, 79, 120, 0.5);
	padding: 0.2rem 0.9rem 0.8rem;
}
.tc-cal-admin-body .tc-cal-edit .tc-cal-fields {
	border: 0;
	padding-top: 0.6rem;
	margin-top: 0;
}
.tc-cal-admin-body .tc-cal-del {
	display: inline-block;
	margin-top: 0.4rem;
}
.tc-cal-full {
	flex: 1 1 100%;
}
.tc-cal-past {
	margin-top: 1rem;
	padding-bottom: 0.2rem;
}
.tc-cal-past > summary {
	cursor: pointer;
	font-weight: 600;
	color: #b7c3da;
	font-size: 0.9rem;
	padding: 0.4rem 0;
	border-top: 1px solid rgba(58, 79, 120, 0.4);
	margin-top: 0.6rem;
	list-style: none;
}
.tc-cal-past > summary::-webkit-details-marker {
	display: none;
}
.tc-cal-past > summary::marker {
	content: "";
}
.tc-cal-past > summary::after {
	content: " ▸";
	color: var(--wp--preset--color--primary);
}
.tc-cal-past[open] > summary::after {
	content: " ▾";
}

/* CalDAV-Anleitung (nur Admin) */
.tc-cal-caldav {
	margin-top: 1rem;
}
.tc-cal-caldav > summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	font-size: 0.9rem;
	padding: 0.5rem 0;
	border-top: 1px solid rgba(58, 79, 120, 0.4);
	margin-top: 0.6rem;
	list-style: none;
}
.tc-cal-caldav > summary::-webkit-details-marker {
	display: none;
}
.tc-cal-caldav > summary::marker {
	content: "";
}
.tc-cal-caldav > summary::after {
	content: " ▸";
	color: var(--wp--preset--color--primary);
}
.tc-cal-caldav[open] > summary::after {
	content: " ▾";
}
.tc-cal-caldav-body {
	border: 1px solid rgba(212, 168, 83, 0.4);
	border-radius: 8px;
	background: #0f1b33;
	padding: 1rem 1.1rem;
	margin: 0.4rem 0;
}
.tc-cal-caldav-body code {
	color: var(--wp--preset--color--primary);
	word-break: break-all;
}
.tc-cal-caldav-body ol {
	margin: 0.4rem 0;
	padding-left: 1.3rem;
	line-height: 1.7;
}
.tc-cal-del {
	display: inline;
	margin: 0;
}
.tc-cal-del .tc-btn-del {
	margin-left: 0;
}

@media (max-width: 600px) {
	.tc-cal {
		padding: 0.25rem 0.6rem 1rem;
	}
	.tc-cal-cell {
		height: 44px;
	}
}
/* ---------- Wiederholungen ---------- */
.tc-rr {
	width: 100%;
	margin: 0.8rem 0 0.4rem;
	padding: 0.7rem 0.8rem 0.5rem;
	border: 1px solid rgba(212, 168, 83, 0.45);
	border-radius: 8px;
	background: rgba(212, 168, 83, 0.06);
}
.tc-rr-head {
	margin: 0 0 0.5rem;
	color: #0f1b33;
}
.tc-cal-fields .tc-rr {
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}
.tc-rr .tc-rr-freq,
.tc-rr > span,
.tc-rr .tc-rr-until label,
.tc-rr .tc-rr-wk2,
.tc-rr .tc-rr-nth {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-right: 0.9rem;
	margin-bottom: 0.4rem;
}
.tc-rr select,
.tc-rr input[type="date"],
.tc-rr input[type="number"] {
	padding: 0.3rem 0.4rem;
	border: 1px solid #c9bfa8;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}
.tc-rr select { max-width: 100%; }
.tc-rr-wk,
.tc-rr-mm,
.tc-rr-until {
	display: none;
}
.tc-rr-nth { display: inline-flex; }
.tc-rr-hint {
	width: 100%;
	margin: 0.2rem 0 0;
	color: #6b6352;
	font-size: 0.82rem;
}
.tc-cal-item-recur {
	display: block;
	color: #8a6d33;
	font-size: 0.8rem;
	font-style: normal;
	margin-top: 0.15rem;
}
.tc-cal-arecur {
	display: inline-block;
	margin-left: 0.5rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: rgba(212, 168, 83, 0.2);
	color: #6b5417;
	font-size: 0.8rem;
}

/* ---------- Einzel-Vorkommen (Ausnahmen) ---------- */
.tc-cal-exc {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px dashed #c9bfa8;
}
.tc-cal-exc h4 {
	margin: 0.4rem 0 0.4rem;
	font-size: 0.95rem;
}
.tc-cal-exc-hint {
	margin: 0 0 0.5rem;
	font-size: 0.82rem;
	color: #6b6352;
}
.tc-cal-exc-list {
	list-style: none;
	margin: 0 0 0.5rem;
	padding: 0;
}
.tc-cal-exc-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.35rem 0;
	border-bottom: 1px solid #eee7d8;
}
.tc-cal-exc-row:last-child {
	border-bottom: 0;
}
.tc-cal-exc-date {
	flex: 1 1 200px;
	font-size: 0.9rem;
}
.tc-cal-exc-done .tc-cal-exc-date {
	color: #6b6352;
}
.tc-cal-x {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}
.tc-cal-x input[type="datetime-local"],
.tc-cal-x input[type="text"] {
	padding: 0.28rem 0.4rem;
	border: 1px solid #c9bfa8;
	border-radius: 6px;
	background: #fff;
	font: inherit;
	font-size: 0.85rem;
}
.tc-btn-sm {
	padding: 0.28rem 0.6rem;
	font-size: 0.82rem;
}
.tc-btn-ghost {
	background: transparent;
	border: 1px solid #c9bfa8;
	color: #6b6352;
}
.tc-cal-item.is-moved .tc-cal-item-title {
	font-style: italic;
}
.tc-cal-movedfrom {
	color: #a17a1f;
	font-size: 0.8rem;
}

.tc-rr .tc-rr-until-in {
	width: 9.5em;
	text-align: center;
	padding: 0.3rem 0.4rem;
	border: 1px solid #c9bfa8;
	border-radius: 6px;
	background: #fff;
	font: inherit;
}

.tc-cal-nav-right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
}
.tc-cal-nav-right .tc-cal-caldav {
	margin-top: 0;
	max-width: 360px;
	width: 100%;
}
.tc-cal-nav-right .tc-cal-caldav > summary {
	border-top: 0;
	margin-top: 0;
	padding: 0.15rem 0;
	font-size: 0.82rem;
	text-align: right;
}
