/*
Theme Name: SPD Morbach
Description: Eigenes Theme für den SPD-Ortsverein Morbach, nachgebaut nach dem Layout der früheren soz.is-Seite.
Version: 1.0
Author: guenni.net
Text Domain: spd-morbach
*/

@font-face { font-family: "Open Sans"; src: url(fonts/OpenSans-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(fonts/OpenSans-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(fonts/OpenSans-Semibold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url(fonts/OpenSans-Bold.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
	--rot: #e30613;
	--rot-dunkel: #b8050f;
	--text: #222;
	--grau: #666;
	--linie: #e3e3e3;
	--hell: #f5f5f5;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--rot); }
a:hover, a:focus { color: var(--rot-dunkel); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; margin: 1.2em 0 .5em; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 1000; background: #fff; color: var(--rot); padding: 10px 16px; font-weight: 700; }

/* ---------- Kopf ---------- */
.site-header { background: var(--rot); color: #fff; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.25); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover, .brand:focus { color: #fff; }
.brand img { width: 90px; height: 90px; border: 1px solid #fff; display: block; }
.brand-claim { font-size: 20px; font-weight: 700; line-height: 1.1; }
.header-tools { display: flex; align-items: center; gap: 18px; }
.header-tools a, .header-tools button { color: #fff; background: none; border: 0; font: 700 13px/1 "Open Sans", sans-serif; text-transform: uppercase; text-decoration: none; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.header-tools svg { width: 16px; height: 16px; fill: currentColor; }
.menu-toggle { display: none !important; }
.header-search { display: none; padding: 12px 18px; background: var(--rot-dunkel); }
.header-search.is-open { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0 10px; display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 14px 13px; color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.main-nav a:hover, .main-nav a:focus { background: rgba(255,255,255,.15); color: #fff; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-page-ancestor > a, .main-nav .current_page_parent > a { background: #fff; color: var(--rot); }

.search-form { display: flex; max-width: 520px; }
.search-form input[type=search] { flex: 1; min-width: 0; padding: 10px 12px; border: 0; font: inherit; font-size: 16px; }
.search-form button { border: 0; background: #222; color: #fff; padding: 10px 16px; font: 700 13px "Open Sans", sans-serif; text-transform: uppercase; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--rot); color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; padding: 12px 20px; border-radius: 24px; border: 0; cursor: pointer; }
.btn:hover, .btn:focus { background: var(--rot-dunkel); color: #fff; }

/* ---------- Startseite ---------- */
.stage { position: relative; padding: 50px 16px 70px; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: -10%; right: -10%; top: 46px; bottom: 0; background: var(--rot); border-radius: 50% 50% 0 0 / 70px 70px 0 0; clip-path: polygon(0 0, 100% 0, 100% 62%, 22% 100%, 0 100%); }
.stage > * { position: relative; }
.intro { max-width: 1010px; margin: 66px auto 0; display: grid; grid-template-columns: 35% 65%; background: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.15); }
.intro-text { padding: 20px 14px 24px; }
.intro-kicker { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
.intro-title { color: var(--rot); font-size: 28px; margin: 0 0 12px; }
.intro-body p { margin: 0 0 14px; }
.intro-img { min-height: 320px; background-size: cover; background-position: center; }
.tiles { max-width: 1040px; margin: 70px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.tile { background: #fff; display: flex; flex-direction: column; min-height: 450px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.tile-img { display: block; aspect-ratio: 3 / 2; background-size: cover; background-position: center; }
.tile-body { padding: 14px 14px 30px; display: flex; flex-direction: column; flex: 1; }
.tile h2 { color: var(--rot); font-size: 24px; margin: 0 0 6px; text-transform: none; }
.tile h2 a { color: inherit; text-decoration: none; }
.tile-excerpt { flex: 1; }
.tile .btn { align-self: flex-start; margin-top: 18px; }

.news { max-width: 760px; margin: 50px auto 70px; padding: 0 16px; }
.section-title { font-size: 30px; font-weight: 700; text-transform: uppercase; border-left: 4px solid var(--rot); padding: 4px 0 4px 20px; margin: 0 0 30px; }
.news-item { border: 1px solid var(--linie); margin-bottom: 30px; background: #fff; }
.news-item-img img { display: block; width: 100%; }
.news-item-body { padding: 18px 22px 24px; }
.news-item h3 { font-size: 24px; margin: 0 0 4px; }
.news-item h3 a { color: var(--text); text-decoration: none; }
.news-item h3 a:hover { color: var(--rot); }
.meta { color: var(--grau); font-size: 14px; margin: 0 0 10px; }
.news-more { text-align: center; }

/* ---------- Inhaltsseiten ---------- */
.content { max-width: 900px; margin: 0 auto; padding: 40px 16px 60px; }
.page-title { color: var(--rot); font-size: 30px; margin: 10px 0 20px; }
.entry h1 { color: var(--rot); font-size: 30px; }
.entry h2 { font-size: 24px; }
.entry hr { border: 0; border-top: 2px solid var(--linie); margin: 26px 0; clear: both; }
.entry table { border-collapse: collapse; width: 100% !important; height: auto !important; }
.entry td { vertical-align: top; padding: 8px 10px 8px 0; }
.entry .alignleft { float: left; margin: 0 20px 12px 0; }
.entry .alignright { float: right; margin: 0 0 12px 20px; }
.entry .aligncenter { display: block; margin: 0 auto; }
.entry::after { content: ""; display: table; clear: both; }
.entry video { max-width: 100%; height: auto; }
.post-thumb { margin-bottom: 20px; }
.subpages { margin-top: 40px; padding: 16px 20px; background: var(--hell); }
.subpages h2 { font-size: 16px; text-transform: uppercase; margin: 0 0 8px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--linie); text-decoration: none; }
.pagination .current { background: var(--rot); color: #fff; border-color: var(--rot); }

/* ---------- Kontaktformular ---------- */
.spd-form p { margin: 0 0 16px; }
.spd-form label { display: block; font-weight: 700; margin-bottom: 4px; }
.spd-form input[type=text], .spd-form input[type=email], .spd-form textarea { width: 100%; padding: 10px 12px; border: 1px solid #bbb; font: inherit; font-size: 16px; }
.spd-form input:focus, .spd-form textarea:focus { outline: 2px solid var(--rot); outline-offset: 1px; }
.spd-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.spd-form .hp { position: absolute; left: -9999px; }
.spd-form .hinweis { font-size: 14px; color: var(--grau); }
.spd-notice { padding: 14px 18px; margin-bottom: 20px; border-left: 4px solid var(--rot); background: var(--hell); }
.spd-notice.ok { border-color: #2e7d32; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--rot); color: #fff; padding: 40px 18px 30px; text-align: center; margin-top: 0; }
.site-footer .brand { justify-content: center; margin-bottom: 18px; }
.site-footer .brand img { width: 60px; height: 60px; }
.footer-nav ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; }
.footer-nav a, .to-top { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 13px; font-weight: 700; }
.footer-nav a:hover, .to-top:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
	.tiles { grid-template-columns: 1fr; max-width: 520px; gap: 26px; }
	.tile { min-height: 0; }
	.intro { grid-template-columns: 1fr; }
	.intro-img { min-height: 240px; order: -1; }
	.stage::before { clip-path: polygon(0 0, 100% 0, 100% 80%, 22% 100%, 0 100%); }
}
@media (max-width: 760px) {
	.brand img { width: 64px; height: 64px; }
	.brand-claim { font-size: 17px; }
	.menu-toggle { display: inline-flex !important; }
	.header-tools .kontakt-link { display: none; }
	.main-nav { display: none; }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 0; }
	.main-nav a { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.2); font-size: 14px; }
	.entry .alignleft, .entry .alignright { float: none; display: block; margin: 0 0 12px; }
	.entry table, .entry tbody, .entry tr, .entry td { display: block; width: 100% !important; }
	.spd-form .row { grid-template-columns: 1fr; gap: 0; }
	.section-title, .page-title, .entry h1 { font-size: 24px; }
}
