/*
Theme Name: Blueline Modern
Theme URI: http://w3blog.dk/download-wordpress-themes/blueline
Description: Child theme of Blueline with a cleaner, more professional look and modern typography (Inter). Parent theme remains unchanged.
Author: Jimmy Sigenstroem / Blueline Modern
Template: blueline
Version: 1.0.0
License: GNU General Public License v2.0
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blueline-modern
*/

:root {
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--text: #1c1f26;
	--muted: #5c6370;
	--accent: #3d4f7a;
	--accent-hover: #2c3a5c;
	--border: #e6e8ee;
	--surface: #f6f7fa;
	--radius: 10px;
}

html {
	font-size: 16px;
}

body,
input,
textarea,
select,
button,
.content,
.headertitle h1,
.headertitle h2 {
	font-family: var(--font);
	color: var(--text);
}

body {
	font-size: 1rem;
	line-height: 1.65;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--accent-hover);
}

p {
	font-size: 1rem;
	line-height: 1.7;
	padding-bottom: 1.1em;
}

h1, h2, h3, h4, h5, h6,
.content h1, .content h2, .content h3,
.content h4, .content h5, .content h6 {
	font-family: var(--font);
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
	border-bottom: none;
	margin-bottom: 0.4em;
	clear: both;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4, h5, h6 { font-size: 1.05rem; }

.content h1,
.content h2 {
	font-size: 1.65rem;
	padding-top: 0.4rem;
}

.content h3 {
	font-size: 1.25rem;
}

.content .title {
	display: inline-block;
	max-width: 100%;
	position: relative;
	margin: 0 0 2rem;
	padding: 0 0 0.85rem;
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	color: var(--text);
}

.content .title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 0.25rem;
	background: var(--accent);
	border-radius: 999px;
}

.sfd-bulletin-entry,
.sfd-topic-card {
	margin: 0 0 1.75rem;
	padding: 1.4rem 1.5rem 1.25rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	/* Offset towards bottom right only; the negative spread keeps top and left clean. */
	box-shadow:
		2px 2px 0 -1px rgba(44, 58, 92, 0.06),
		5px 6px 14px -6px rgba(44, 58, 92, 0.28);
}

.content .sfd-bulletin-date {
	margin: 0 0 1.1rem;
	padding: 0 0 0.7rem;
	border-bottom: 1px solid var(--border);
	color: var(--accent);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

/* The archive carries hard-coded blue inline styles from the old editor. */
.sfd-bulletin-entry p,
.sfd-bulletin-entry li,
.sfd-bulletin-entry span,
.sfd-bulletin-entry strong,
.sfd-bulletin-entry b,
.sfd-bulletin-entry div {
	color: var(--text) !important;
}

.sfd-bulletin-entry a,
.sfd-bulletin-entry a span {
	color: var(--accent) !important;
}

.sfd-bulletin-entry p {
	text-align: left !important;
}

.sfd-bulletin-entry > *:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
}

.sfd-topic-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 0.85rem 1rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.sfd-topic-nav a {
	padding: 0.35rem 0.75rem;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 999px;
	color: var(--accent);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
}

.sfd-topic-nav a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.sfd-topic-card {
	padding: 1.5rem 1.6rem 1.35rem;
	scroll-margin-top: 1.5rem;
}

.content .sfd-topic-card > h2 {
	margin: 0 0 1.1rem;
	padding: 0 0 0.7rem;
	border-bottom: 1px solid var(--border);
	font-size: 1.25rem;
	color: var(--text);
}

.content .sfd-topic-subheading {
	margin: 1.6rem 0 0.6rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent);
}

.content .sfd-topic-card > h3:first-of-type {
	margin-top: 0.4rem;
}

.sfd-topic-card ul {
	margin: 0.4rem 0 1rem;
	padding-left: 1.25rem;
	list-style: disc;
}

.sfd-topic-card li {
	margin-bottom: 0.45rem;
	font-size: 0.95rem;
	line-height: 1.65;
	padding-bottom: 0;
}

.sfd-topic-card table {
	width: auto;
	min-width: min(100%, 22rem);
	border-collapse: collapse;
	margin: 0.5rem 0 0.75rem;
}

.sfd-topic-card figure {
	margin: 0;
}

.sfd-topic-card > *:last-child {
	margin-bottom: 0;
}

/* Long external URLs must not blow up the column, whether linked or plain text. */
.content {
	overflow-wrap: break-word;
}

.content a {
	overflow-wrap: anywhere;
}

.sfd-table-scroll {
	max-width: 100%;
	margin: 0 0 1.25rem;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.sfd-table-scroll > table {
	margin-bottom: 0;
}

.sfd-results-page .sfd-table-scroll {
	container-type: inline-size;
}

.sfd-results-page .content table {
	width: auto;
	margin: 0;
	border-collapse: collapse;
	font-size: clamp(0.68rem, 1.45cqi, 0.78rem);
	font-variant-numeric: tabular-nums;
}

.sfd-results-page .content table tr > th,
.sfd-results-page .content table tr > td {
	padding: 0.3rem 0.25rem;
	line-height: 1.35;
	white-space: nowrap;
	text-align: center;
	vertical-align: middle;
	border: 1px solid var(--border);
}

.sfd-results-page .content table tbody > tr:nth-child(odd) > th,
.sfd-results-page .content table tbody > tr:nth-child(odd) > td {
	background-color: #fff;
}

.sfd-results-page .content table tbody > tr:nth-child(even) > th,
.sfd-results-page .content table tbody > tr:nth-child(even) > td {
	background-color: #f9f9f9;
}

.sfd-results-page .content table tbody > tr:hover > th,
.sfd-results-page .content table tbody > tr:hover > td {
	background-color: #f3f3f3;
}

.sfd-results-page .content table tr > :nth-child(2),
.sfd-results-page .content table tr > :nth-child(3) {
	text-align: left;
}

.sfd-results-page .content table tr > :first-child {
	padding-left: 0.5rem;
}

.sfd-results-page .content table tr > :last-child {
	padding-right: 0.5rem;
}

.sfd-results-page .content table thead th,
.sfd-results-page .content table tr:first-child > th {
	font-size: 0.92em;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.sfd-results-page .content table p {
	padding: 0;
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}

/* Chronik Vereinsmeister: readable name matrix, not dense turnier grid. */
.sfd-chronik-page .sfd-table-scroll {
	container-type: inline-size;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 1px 3px rgba(28, 31, 38, 0.06);
}

.sfd-chronik-page .content .sfd-chronik-table {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: clamp(0.5625rem, 1.08cqi, 0.6875rem);
	line-height: 1.25;
}

.sfd-chronik-page .content .sfd-chronik-table col.sfd-chronik-col-year {
	width: 2.35rem;
}

.sfd-chronik-page .content .sfd-chronik-table col.sfd-chronik-col-name {
	width: auto;
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:first-child > * {
	position: sticky;
	top: 0;
	z-index: 2;
	padding: 0.35rem 0.18rem;
	font-size: clamp(0.52rem, 1.02cqi, 0.625rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	color: var(--accent);
	text-align: left;
	vertical-align: bottom;
	white-space: nowrap;
	background: var(--surface);
	border-bottom: 2px solid var(--border);
	box-shadow: 0 1px 0 var(--border);
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:first-child > :first-child {
	width: 2.35rem;
	max-width: 2.35rem;
	padding-left: 0.2rem;
	padding-right: 0.2rem;
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child) > * {
	padding: 0.32rem 0.18rem;
	text-align: left;
	vertical-align: middle;
	border: 0;
	border-bottom: 1px solid var(--border);
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child) > :first-child {
	width: 2.35rem;
	max-width: 2.35rem;
	padding-left: 0.2rem;
	padding-right: 0.2rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--muted);
	text-align: right;
	white-space: nowrap;
}

@media (min-width: 801px) {
	.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child) > :not(:first-child) {
		white-space: nowrap;
	}
}

@media (max-width: 800px) {
	.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child) > :not(:first-child) {
		white-space: normal;
		overflow-wrap: anywhere;
		hyphens: auto;
	}
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child):nth-child(even) > * {
	background-color: rgba(246, 247, 250, 0.65);
}

.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child):hover > * {
	background-color: #f3f4f8;
}

@media (min-width: 801px) {
	.sfd-chronik-page .sfd-table-scroll {
		overflow-x: visible;
	}
}

.content img,
.content iframe,
.content embed,
.content video {
	max-width: 100%;
	height: auto;
}

/* The old Home content contains a manually formatted "Neuigkeiten" label. */
body.home .entry > .flex-container > .flex-item > p:first-child {
	display: none;
}

.sfd-daily-puzzle {
	display: block;
	width: min(100%, 21.45rem);
	color: var(--muted);
	font-size: 0.75rem;
	line-height: 1.45;
	text-align: center;
}

.sfd-daily-puzzle #puzzleLink {
	display: block;
	position: static;
	width: 100%;
	margin: 0.65rem 0;
}

.sfd-daily-puzzle #puzzleImage {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(28, 31, 38, 0.1);
}

.sfd-daily-puzzle #puzzlePlayers,
.sfd-daily-puzzle #puzzleSite,
.sfd-daily-puzzle #puzzleText {
	display: block;
}

.sfd-daily-puzzle #puzzlePlayers {
	font-weight: 600;
	color: var(--text);
}

.sfd-daily-puzzle #puzzleText {
	margin-top: 0.65rem;
	font-weight: 600;
	color: var(--accent);
}

.sfd-puzzle-missing {
	color: var(--muted);
}

.content .title a {
	color: var(--text);
	text-decoration: none;
}

.content .title a:hover {
	color: var(--accent);
}

.headertitle h1 {
	font-size: 1.75rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	padding-top: 28px;
}

.headertitle h2 {
	font-size: 0.95rem;
	font-weight: 400;
	opacity: 0.85;
	padding-left: 5px;
	padding-top: 0.25rem;
}

/* The responsive header image already contains the site's wordmark. */
.headertitle h1,
.headertitle h2 {
	visibility: hidden;
}

#wrapper-top-navigation a,
#wrapper-top-navigation :visited {
	font-weight: 500;
	font-size: 0.9rem;
	letter-spacing: 0.01em;
	padding: 12px 14px;
	border-radius: 6px;
	color: #eee;
}

#wrapper-top-navigation a:hover {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

#wrapper-top-navigation {
	position: absolute;
	left: 250px;
	top: 100%;
	right: auto;
	float: none;
	width: calc(100% - 250px);
	padding: 0.3rem 0.75rem;
	box-sizing: border-box;
	background: rgba(91, 111, 153, 0.96);
	border-radius: 0 0 8px 8px;
	box-shadow: 0 5px 14px rgba(28, 31, 38, 0.12);
	z-index: 2;
}

#wrapper-top-navigation:not(:has(ul)) {
	display: none;
}

#wrapper-top-navigation ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
}

#wrapper-top-navigation a,
#wrapper-top-navigation :visited {
	font-size: 0.8rem;
	font-weight: 500;
	padding: 0.55rem 0.7rem;
	color: #fff;
}

#wrapper-top-navigation .current-menu-item > a,
#wrapper-top-navigation .current_page_item > a {
	background: rgba(255, 255, 255, 0.18);
}

#wrapper-top-navigation ul li:hover > ul {
	background: var(--accent);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 8px 24px rgba(28, 31, 38, 0.16);
}

.content {
	font: normal 1rem/1.7 var(--font);
	width: auto;
	max-width: none;
	padding: 3rem 1.5rem 2rem 0.75rem;
}

.content .postheader,
.content .description {
	color: var(--muted);
}

.meta {
	border-bottom: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.875rem;
	padding-bottom: 0.6em;
	margin-bottom: 1.1em;
}

.hentry {
	margin-bottom: 2.5rem;
}

.postfooter {
	margin-top: 2rem;
	margin-bottom: 2rem;
	padding: 1rem 1.1rem;
	border: 1px solid var(--border);
	background-color: var(--surface);
	border-radius: var(--radius);
	font-size: 0.875rem;
	color: var(--muted);
}

.sidenav {
	grid-column: 1;
	grid-row: 1;
	box-sizing: border-box;
	width: auto;
	margin-top: -130px;
	padding: 250px 1.25rem 1.25rem;
	background-image: url("assets/sfd-logo.svg?v=2");
	background-repeat: no-repeat;
	background-position: center 1rem;
	background-size: 205px auto;
	background-color: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	position: relative;
	z-index: 2;
}

.sidenav #widgetzone,
.sidenav div.widget {
	width: 100%;
}

.sidenav li a {
	font-family: var(--font);
	font-size: 0.95rem;
	padding: 0.35rem 0;
	display: block;
}

.sidenav li a:hover {
	color: var(--accent-hover);
}

div.widget h3,
.widgettitle,
.sidenav h1,
.sidenav li h3 {
	font-family: var(--font);
	border-bottom: 1px solid var(--border);
	color: var(--text);
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.75rem;
	font-weight: 600;
	padding-top: 1rem;
}

#navigation a,
#navigation :visited {
	font-weight: 500;
	border-radius: 6px;
	padding: 0.5rem 0.65rem;
}

#navigation a:hover {
	background: var(--accent);
	color: #fff;
}

#navigation ul li:hover > ul {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: 0 8px 24px rgba(28, 31, 38, 0.1);
}

#respond input,
#respond textarea,
#respond #author,
#respond #email,
#respond #url,
input[type="text"],
input[type="search"],
input[type="email"],
textarea {
	font-family: var(--font);
	font-size: 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: #fff none;
	padding: 0.6rem 0.75rem;
	height: auto;
	color: var(--text);
}

#respond #author,
#respond #email,
#respond #url {
	width: 100%;
	max-width: 28rem;
	padding-left: 0.75rem;
}

#respond .form-submit input,
#submit,
input[type="submit"] {
	background: var(--accent);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 0.7rem 1.2rem;
	font-weight: 600;
	font-family: var(--font);
	cursor: pointer;
	width: auto;
}

#respond .form-submit input:hover,
#submit:hover,
input[type="submit"]:hover {
	background: var(--accent-hover);
	color: #fff;
}

.sticky,
.main .wp-caption,
pre,
.page-link a:link,
.page-link a:visited {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
}

.sticky {
	margin: 1rem 0 2rem;
	padding: 1.1rem 1.25rem;
}

blockquote {
	font-style: normal;
	border-left: 3px solid var(--accent);
	padding: 0.2em 0 0.2em 1.2em;
	color: var(--muted);
}

.content tr th,
.content thead th {
	color: var(--accent);
	font-size: 0.8rem;
	background: var(--surface);
	padding: 0.6rem 0.5rem;
}

.content tr td {
	border-color: var(--border);
	padding: 0.65rem 0.5rem;
}

.content tr.odd td,
.alternate {
	background: var(--surface);
}

#wp-calendar {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

#wp-calendar caption {
	background: var(--surface);
	font-weight: 600;
}

#today {
	background: var(--surface);
	border: 1px solid var(--border);
}

.gallery-caption,
.main .wp-caption p.wp-caption-text {
	color: var(--muted);
	font-size: 0.8rem;
}

.main .gallery img {
	border: 1px solid var(--border);
	border-radius: 6px;
}

#commentheader,
#commentmain,
#commentfooter,
.children #commentheader,
.children #commentmain,
.children #commentfooter {
	background-image: none;
	margin: 0;
	padding: 0;
	height: auto;
}

#container-comment,
.children #container-comment {
	width: auto;
	margin: 0;
}

.commentlist li.comment,
.longmeta li.comment {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1rem 1.1rem;
	background: #fff;
	line-height: 1.6;
}

.bypostauthor {
	background-color: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
}

.url,
.fn {
	color: var(--accent);
	font-style: normal;
}

#copy,
.footertitle h2,
#footer a {
	font-family: var(--font);
}

#copy {
	font-size: 0.8rem;
}

.footertitle h2 {
	font-weight: 600;
	letter-spacing: -0.02em;
}

#postnavigation {
	height: auto;
	color: var(--muted);
	font-size: 0.9rem;
}

.navigation {
	overflow: hidden;
	margin: 1.5rem 0 2rem;
	font-size: 0.95rem;
}

/* Modern layout: replace the fixed image-based canvas with fluid surfaces. */
#header {
	background: linear-gradient(135deg, #2c3a5c 0%, #3d4f7a 100%);
	margin-bottom: 48px;
	/* Clip decoration horizontally so it never creates a page-wide scrollbar,
	   while the top menu may still hang below. */
	overflow-x: clip;
	overflow-y: visible;
}

.banner {
	width: 100%;
	max-width: 1450px;
	height: auto;
	min-height: 180px;
	background-image: none !important;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	margin: 0 auto;
	background-color: transparent;
	position: relative;
}

/*
 * Row of pieces centred over the content column: the grid places that column
 * 15px left of the page centre (250px + gap left, 280px + gap right).
 */
.banner::after {
	content: "";
	position: absolute;
	bottom: 8px;
	left: calc(50% - 15px);
	/* 594px = both side columns plus gaps, so the row never slides under them. */
	width: min(720px, calc(100% - 594px));
	aspect-ratio: 1008 / 192;
	transform: translateX(-50%);
	pointer-events: none;
	background: url("assets/header-pieces.svg?v=3") center bottom / contain no-repeat;
}

#logo {
	width: auto !important;
	height: auto !important;
	min-height: 180px;
	margin: 0 !important;
	padding: 0 !important;
	background-image: none !important;
	position: relative;
	z-index: 1;
}

.center_wrapper,
.header,
#layout_body,
.main,
#container-footer {
	width: min(100% - 2rem, 1450px);
	max-width: 1450px;
	box-sizing: border-box;
}

#layout_body {
	background-image: none;
	background-color: #fff;
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr) 280px;
	column-gap: 2rem;
	align-items: start;
	position: relative;
}

.main {
	display: contents;
	overflow: visible;
}

.content {
	box-sizing: border-box;
	grid-column: 2;
	grid-row: 1;
	float: none;
}

.sfd-events-panel {
	grid-column: 3;
	grid-row: 1;
	margin-top: -130px;
	padding: 1.25rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--text);
	position: relative;
	box-sizing: border-box;
	z-index: 2;
}

.sfd-events-panel h2 {
	margin: 0 0 1rem;
	padding: 0 0 0.65rem;
	border-bottom: 1px solid var(--border);
	font-size: 0.8rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text);
}

.sfd-event {
	display: grid;
	grid-template-columns: 3.1rem minmax(0, 1fr) 1.72rem;
	column-gap: 0.45rem;
	row-gap: 0.15rem;
	align-items: stretch;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--border);
}

.sfd-event:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.sfd-event time {
	display: flex;
	flex-direction: column;
	color: var(--accent);
	line-height: 1.2;
}

.sfd-event time strong {
	font-size: 1rem;
	white-space: nowrap;
}

.sfd-event time span {
	margin-top: 0.2rem;
	font-size: 0.7rem;
	color: var(--muted);
}

.sfd-event-details {
	grid-column: 2;
	min-width: 0;
}

.sfd-event-info {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	align-self: stretch;
}

.sfd-event-time,
.sfd-event-title {
	display: block;
}

.sfd-event-time {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--muted);
}

.sfd-event-title {
	display: block;
	margin-top: 0.15rem;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--text);
	text-decoration: none;
}

.sfd-event-link {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.72rem;
	height: 1.72rem;
	border: 1px solid var(--accent);
	border-radius: 50%;
	color: var(--accent);
	font-family: var(--font);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.sfd-event-link:hover,
.sfd-event-link:focus-visible {
	background: var(--accent);
	color: #fff;
	text-decoration: none;
}

a.sfd-event-title:hover {
	color: var(--accent);
}

#footer {
	width: 100%;
	height: auto;
	min-height: 120px;
	float: none;
	box-sizing: border-box;
	background: linear-gradient(135deg, #2c3a5c 0%, #3d4f7a 100%);
	border-radius: 0;
}

#container-footer {
	display: none;
}

.footertitle {
	display: none;
}

.footertitle h2 {
	padding-top: 2.5rem;
	padding-left: 2rem;
}

#copy {
	padding-top: 2.75rem;
	padding-right: 2rem;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid rgba(61, 79, 122, 0.35);
	outline-offset: 2px;
}

@media (max-width: 800px) {
	.center_wrapper,
	.header,
	#layout_body,
	.main,
	#container-footer {
		width: 100%;
	}

	.main {
		display: block;
	}

	#layout_body {
		display: block;
	}

	.sfd-events-panel {
		grid-column: auto;
		grid-row: auto;
		position: static;
		width: auto;
		margin: 0 1.25rem 2rem;
	}

	.headertitle {
		width: 100%;
		height: auto;
		padding: 1.5rem 1.25rem 1rem;
		box-sizing: border-box;
	}

	.headertitle h1 {
		padding-top: 0;
		padding-left: 0;
	}

	.headertitle h2 {
		padding-left: 0;
	}

	.banner::after {
		left: 50%;
		width: min(360px, 88%);
	}

	#wrapper-top-navigation {
		float: none;
		left: 0;
		width: 100%;
		padding: 0.5rem 1.25rem;
		box-sizing: border-box;
	}

	#wrapper-top-navigation li {
		float: none;
		display: inline-block;
	}

	.content {
		float: none;
		width: 100%;
		max-width: none;
		padding: 2.25rem 1.25rem 2rem;
	}

	body.home .content {
		padding-right: 1.25rem;
	}

	.sidenav {
		float: none;
		width: auto;
		grid-column: auto;
		grid-row: auto;
		position: static;
		margin: 0 1.25rem 2rem;
		padding: 1.25rem;
	}

	.sfd-daily-puzzle {
		width: min(100%, 21.45rem);
	}

	div#widgetzone,
	div.widget {
		width: 100%;
	}

	#navigation ul ul,
	#navigation ul ul ul {
		position: static;
		width: 100%;
	}

	#navigation ul ul li,
	#navigation ul li {
		width: auto;
	}

	#container-comment,
	.children #container-comment {
		width: 100%;
	}
}

/* Mobile navigation (markup and script in functions.php). */
.sfd-mobile-bar,
.sfd-drawer,
.sfd-drawer-backdrop,
.sfd-events-more {
	display: none;
}

@media (max-width: 800px) {
	/* Only swap navigation once the script has moved the bar into place. */
	.sfd-js .sidenav,
	.sfd-js #wrapper-top-navigation {
		display: none;
	}

	.sfd-js .sfd-mobile-bar {
		display: flex;
		position: sticky;
		top: 0;
		z-index: 50;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.5rem 1rem;
		background: #fff;
		border-bottom: 1px solid var(--border);
		box-shadow: 0 4px 14px -8px rgba(44, 58, 92, 0.35);
	}

	.sfd-mobile-brand {
		display: flex;
		align-items: center;
		gap: 0.65rem;
		color: var(--text);
		font-size: 0.9rem;
		font-weight: 700;
		line-height: 1.15;
		letter-spacing: -0.01em;
		text-decoration: none;
	}

	.sfd-mobile-brand img {
		display: block;
		width: 46px;
		height: 46px;
	}

	.sfd-menu-toggle {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		min-height: 44px;
		padding: 0 0.85rem;
		background: var(--surface);
		border: 1px solid var(--border);
		border-radius: 10px;
		color: var(--accent);
		font: 600 0.85rem var(--font);
		cursor: pointer;
	}

	.sfd-menu-icon,
	.sfd-menu-icon::before,
	.sfd-menu-icon::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
		border-radius: 2px;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.sfd-menu-icon {
		position: relative;
	}

	.sfd-menu-icon::before,
	.sfd-menu-icon::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.sfd-menu-icon::before {
		top: -6px;
	}

	.sfd-menu-icon::after {
		top: 6px;
	}

	.sfd-drawer-open .sfd-menu-icon {
		background: transparent;
	}

	.sfd-drawer-open .sfd-menu-icon::before {
		transform: translateY(6px) rotate(45deg);
	}

	.sfd-drawer-open .sfd-menu-icon::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.sfd-js .sfd-drawer {
		display: block;
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 70;
		width: min(86vw, 340px);
		overflow-y: auto;
		overscroll-behavior: contain;
		background: #fff;
		box-shadow: -12px 0 32px -12px rgba(20, 28, 50, 0.4);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.sfd-drawer-open .sfd-drawer {
		transform: none;
		visibility: visible;
		transition: transform 0.25s ease;
	}

	.sfd-js .sfd-drawer-backdrop:not([hidden]) {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 60;
		background: rgba(20, 28, 50, 0.45);
	}

	.sfd-drawer-open {
		overflow: hidden;
	}

	.sfd-drawer-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0.75rem 0.75rem 0.75rem 1.25rem;
		border-bottom: 1px solid var(--border);
		color: var(--muted);
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.sfd-drawer-close {
		width: 44px;
		height: 44px;
		background: none;
		border: 0;
		border-radius: 10px;
		color: var(--text);
		font-size: 1.75rem;
		line-height: 1;
		cursor: pointer;
	}

	.sfd-drawer-menu,
	.sfd-drawer-menu ul {
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.sfd-drawer-menu li {
		position: relative;
		margin: 0;
		padding: 0;
		float: none;
		width: auto;
		border-bottom: 1px solid var(--border);
	}

	.sfd-drawer-menu a {
		display: block;
		padding: 0.8rem 3.5rem 0.8rem 1.25rem;
		color: var(--text);
		font-size: 1rem;
		font-weight: 500;
		text-decoration: none;
	}

	.sfd-drawer-menu .current-menu-item > a,
	.sfd-drawer-menu .current_page_item > a {
		color: var(--accent);
		font-weight: 700;
		background: var(--surface);
		box-shadow: inset 3px 0 0 var(--accent);
	}

	.sfd-drawer-menu .sub-menu {
		display: none;
		background: var(--surface);
	}

	.sfd-drawer-menu .sfd-sub-open > .sub-menu {
		display: block;
	}

	.sfd-drawer-menu .sub-menu li {
		border-bottom: 0;
		border-top: 1px solid var(--border);
	}

	.sfd-drawer-menu .sub-menu a {
		padding: 0.6rem 1.25rem 0.6rem 2.25rem;
		font-size: 0.92rem;
	}

	.sfd-sub-toggle {
		position: absolute;
		top: 0.3rem;
		right: 0.5rem;
		width: 40px;
		height: 40px;
		background: none;
		border: 0;
		border-radius: 8px;
		color: var(--accent);
		cursor: pointer;
	}

	.sfd-sub-toggle::before {
		content: "";
		display: block;
		width: 8px;
		height: 8px;
		margin: 0 auto;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: translateY(-2px) rotate(45deg);
		transition: transform 0.2s ease;
	}

	.sfd-sub-open > .sfd-sub-toggle::before {
		transform: translateY(2px) rotate(-135deg);
	}

	.sfd-drawer-secondary {
		margin-top: 1.25rem;
		border-top: 1px solid var(--border);
	}

	.sfd-drawer-secondary a {
		padding-top: 0.6rem;
		padding-bottom: 0.6rem;
		color: var(--muted);
		font-size: 0.9rem;
	}

	/* The bar carries the logo now; the header shrinks to a decorative band. */
	#header {
		margin-bottom: 0;
	}

	.banner,
	#logo {
		min-height: 84px;
	}

	.headertitle {
		display: none;
	}

	.banner::after {
		bottom: 6px;
	}

	.sfd-js .content {
		padding-top: 1.75rem;
	}

	/* Only the next few events; the full list lives on the Termine page. */
	.sfd-events-panel .sfd-events-list > :nth-child(n + 5) {
		display: none;
	}

	.sfd-events-more {
		display: block;
		margin-top: 0.9rem;
		padding: 0.65rem;
		background: #fff;
		border: 1px solid var(--border);
		border-radius: 8px;
		color: var(--accent);
		font-size: 0.9rem;
		font-weight: 600;
		text-align: center;
		text-decoration: none;
	}

	/* Wide result tables scroll sideways; the name stays visible. */
	.sfd-results-page .content table tbody > tr > :nth-child(2) {
		position: sticky;
		left: 0;
		z-index: 1;
		box-shadow: 1px 0 0 var(--border), 6px 0 8px -6px rgba(28, 31, 38, 0.25);
	}

	.sfd-results-page .content table tbody > tr:nth-child(odd) > :nth-child(2) {
		background-color: #fff;
	}

	.sfd-results-page .content table tbody > tr:nth-child(even) > :nth-child(2) {
		background-color: #f9f9f9;
	}

	.sfd-results-page .content table tbody > tr:hover > :nth-child(2) {
		background-color: #f3f3f3;
	}

	.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child) > :first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		background-color: #fff;
		box-shadow: 1px 0 0 var(--border), 6px 0 8px -6px rgba(28, 31, 38, 0.2);
	}

	.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child):nth-child(even) > :first-child {
		background-color: rgb(251, 251, 252);
	}

	.sfd-chronik-page .content .sfd-chronik-table tbody tr:not(:first-child):hover > :first-child {
		background-color: #f3f4f8;
	}
}

@media (max-width: 480px) {
	#wrapper-top-navigation li {
		display: block;
	}

	#wrapper-top-navigation a {
		padding: 0.65rem 0.75rem;
	}

	.main .alignleft,
	.main .alignright,
	.main img.alignleft,
	.main img.alignright {
		float: none;
		display: block;
		margin: 1rem auto;
	}

	.main .wp-caption {
		max-width: 100%;
		box-sizing: border-box;
	}

	.footertitle h2,
	#copy {
		float: none;
		padding: 1.5rem 1.25rem 0;
		text-align: center;
	}

	#copy {
		padding-top: 0.5rem;
		padding-bottom: 1.5rem;
	}
}
