/*
Theme Name: Lukas Honemann
Theme URI: https://lukas-honemann.de
Author: Für Lukas Honemann erstellt
Description: Persönliche Website von Lukas Honemann, Bürgermeister von Wesertal. Mit Blog, Instagram-Bereich und Kontakt. Beim Aktivieren werden Startseite, Über mich, Aktuelles, Impressum, Datenschutz und das Menü automatisch angelegt.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: honemann
*/

/* ---------- Schrift (lokal, ohne Google-Server) ---------- */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/inter-latin-wght-italic.woff2") format("woff2");
}

/* ---------- Farben & Maße ---------- */
:root {
	--blau: #0769b2;
	--blau-tief: #053c66;
	--blau-nacht: #032a48;
	--gruen: #a6bb44;
	--gruen-hell: #c4d47a;
	--nebel: #eef3f7;
	--text: #142230;
	--text-leise: #4a5a69;
	--linie: #d6e0e8;
	--weiss: #ffffff;

	--schrift: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--breite: 1200px;
	--lesebreite: 680px;
	--rand: clamp(1.25rem, 4vw, 2.5rem);
	--abstand: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: var(--schrift);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--text);
	background: var(--weiss);
	font-feature-settings: "cv11", "ss01";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	border-top: 6px solid var(--gruen);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blau-tief); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin: 0 0 0.6em; color: var(--blau-tief); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0 0 1.1em; }

/* Der grüne Schlusspunkt – Markenzeichen aus dem Wahlkampf */
.punkt { color: var(--gruen); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 1rem; left: 1rem;
	background: var(--weiss); color: var(--blau-tief); padding: 0.75rem 1rem; font-weight: 700;
}

.wrap { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 0.5rem;
	padding: 0.85rem 1.4rem; font-weight: 700; font-size: 1rem; line-height: 1.2;
	text-decoration: none; border-radius: 4px; border: 2px solid transparent;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--gruen { background: var(--gruen); color: var(--blau-nacht); }
.btn--gruen:hover { background: var(--gruen-hell); color: var(--blau-nacht); }
.btn--rand { border-color: rgba(255,255,255,0.7); color: var(--weiss); }
.btn--rand:hover { background: var(--weiss); color: var(--blau-tief); border-color: var(--weiss); }
.btn--blau { background: var(--blau); color: var(--weiss); }
.btn--blau:hover { background: var(--blau-tief); color: var(--weiss); }

.textlink { font-weight: 700; color: var(--blau); text-decoration: none; border-bottom: 2px solid var(--gruen); padding-bottom: 2px; }
.textlink:hover { color: var(--blau-tief); border-color: var(--blau-tief); }

/* ---------- Kopfbereich ---------- */
.kopf {
	position: sticky; top: 0; z-index: 50;
	background: rgba(255,255,255,0.96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--linie);
}
.admin-bar .kopf { top: 32px; }
@media (max-width: 782px) { .admin-bar .kopf { top: 0; position: relative; } }

.kopf__innen { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; }

.marke { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--blau-tief); }
.marke:hover { color: var(--blau-tief); }
.marke svg { flex: none; width: 2.4rem; height: 2.4rem; }
.marke__name { display: block; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; }
.marke__amt { display: block; font-size: 0.85rem; color: var(--text-leise); font-weight: 500; line-height: 1.3; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.nav a {
	display: block; padding: 0.6rem 0.9rem; font-weight: 600; font-size: 0.98rem;
	color: var(--blau-tief); text-decoration: none; border-radius: 4px;
}
.nav a:hover { background: var(--nebel); }
.nav .current-menu-item > a, .nav .current_page_parent > a { box-shadow: inset 0 -3px 0 var(--gruen); border-radius: 0; }

.nav-toggle {
	display: none; background: none; border: 2px solid var(--blau-tief); color: var(--blau-tief);
	font: inherit; font-weight: 700; font-size: 0.95rem; padding: 0.5rem 0.9rem; border-radius: 4px; cursor: pointer;
}

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--weiss); border-bottom: 1px solid var(--linie); }
	.nav.ist-offen { display: block; }
	.nav ul { flex-direction: column; padding: 0.5rem var(--rand) 1.25rem; }
	.nav a { padding: 0.9rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--nebel); border-radius: 0; }
	.nav .current-menu-item > a { box-shadow: inset 4px 0 0 var(--gruen); padding-left: 1rem; }
}

/* ---------- Startseite: Hero ---------- */
.hero { background: var(--blau); color: var(--weiss); overflow: hidden; position: relative; }
.hero__raster { display: grid; grid-template-columns: 1.15fr 1fr; min-height: min(78vh, 720px); }
.hero__text {
	align-self: center;
	padding: var(--abstand) clamp(1.5rem, 5vw, 4rem) var(--abstand) max(var(--rand), calc((100vw - var(--breite)) / 2 + var(--rand)));
	position: relative; z-index: 2;
}
.hero__amt { font-size: 1.05rem; font-weight: 600; color: var(--gruen-hell); margin-bottom: 1.5rem; }
.hero h1 {
	color: var(--weiss); font-size: clamp(3.2rem, 8.5vw, 7.25rem);
	line-height: 0.92; letter-spacing: -0.045em; margin-bottom: 0.45em;
}
.hero h1 > span { display: block; }
.hero__claim { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 500; max-width: 34ch; color: rgba(255,255,255,0.92); margin-bottom: 2.25rem; }
.hero__aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero__bild { position: relative; }
.hero__bild img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%;
	clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
/* grüne Kante entlang der Diagonale */
.hero__bild::before {
	content: ""; position: absolute; inset: 0; z-index: 1; background: var(--gruen);
	clip-path: polygon(18% 0, calc(18% + 10px) 0, 10px 100%, 0 100%);
}

@media (max-width: 860px) {
	.hero__raster { grid-template-columns: 1fr; min-height: 0; }
	.hero__bild { order: -1; height: 62vw; max-height: 460px; }
	.hero__bild img { clip-path: polygon(0 0, 100% 0, 100% 84%, 0 100%); object-position: 50% 30%; }
	.hero__bild::before { display: none; }
	.hero__text { padding: 2rem var(--rand) 3.5rem; }
}

/* ---------- Sektionen ---------- */
.sektion { padding: var(--abstand) 0; }
.sektion--nebel { background: var(--nebel); }
.sektion--gruen { background: var(--gruen); color: var(--blau-nacht); }
.sektion--gruen h2, .sektion--gruen h3 { color: var(--blau-nacht); }
.sektion--blau { background: var(--blau); color: var(--weiss); }
.sektion--blau h2, .sektion--blau h3 { color: var(--weiss); }
.sektion--blau a:not(.btn) { color: var(--weiss); }

.sektion__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.75rem; }
.sektion__kopf h2 { margin: 0; }
.vorspann { font-size: 1.2rem; color: var(--text-leise); max-width: 46ch; margin: 0; }

/* Drei Eigenschaften */
.werte { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.wert { border-top: 4px solid var(--blau); padding-top: 1.5rem; }
.wert h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; margin-bottom: 0.5em; }
.wert p { color: var(--text-leise); margin: 0; }
@media (max-width: 760px) { .werte { grid-template-columns: 1fr; } }

/* Anspruch */
.anspruch { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.anspruch h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); position: sticky; top: 7rem; }
.anspruch__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem; }
.anspruch__liste li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1.1rem; }
.anspruch__liste svg { width: 2.5rem; height: 2.5rem; color: var(--gruen); margin-top: 0.1rem; }
.anspruch__liste h3 { margin-bottom: 0.3em; }
.anspruch__liste p { margin: 0; color: rgba(255,255,255,0.88); }
@media (max-width: 860px) { .anspruch { grid-template-columns: 1fr; } .anspruch h2 { position: static; } }

/* Beitragskarten */
.karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
.karten--liste { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.karte { display: flex; flex-direction: column; background: var(--weiss); position: relative; }
.sektion--nebel .karte { box-shadow: 0 1px 0 var(--linie); }
.karte__bild { aspect-ratio: 3 / 2; overflow: hidden; background: var(--blau-tief); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.karte:hover .karte__bild img { transform: scale(1.03); }
.karte__bild--leer { display: grid; place-items: center; background: var(--blau); }
.karte__bild--leer svg { width: 3.5rem; height: 3.5rem; opacity: 0.9; }
.karte__text { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.karte time { font-size: 0.9rem; font-weight: 600; color: var(--blau); margin-bottom: 0.5rem; }
.karte h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }
.karte h3 a { color: var(--blau-tief); text-decoration: none; }
.karte h3 a::after { content: ""; position: absolute; inset: 0; }
.karte:hover h3 a { color: var(--blau); }
.karte p { color: var(--text-leise); font-size: 0.98rem; margin: 0; }
@media (prefers-reduced-motion: reduce) { .karte__bild img { transition: none; } .karte:hover .karte__bild img { transform: none; } }
@media (max-width: 900px) { .karten:not(.karten--liste) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .karten:not(.karten--liste) { grid-template-columns: 1fr; } }

.leer-hinweis { background: var(--weiss); border-left: 4px solid var(--gruen); padding: 1.5rem 1.75rem; max-width: 46rem; }

/* Mein Weg */
.weg { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.weg__bild img { width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.weg p { font-size: 1.1rem; }
.weg .zitat {
	margin: 2.25rem 0 2rem; padding: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800;
	line-height: 1.15; letter-spacing: -0.025em; color: var(--blau-tief);
	border-left: 6px solid var(--weiss); padding-left: 1.25rem;
}
.sektion--gruen .textlink { color: var(--blau-nacht); border-color: var(--blau-nacht); }
@media (max-width: 860px) { .weg { grid-template-columns: 1fr; } }

/* Instagram */
.insta-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.insta-fallback p { margin: 0; max-width: 42ch; color: var(--text-leise); font-size: 1.1rem; }
.insta-handle { display: inline-flex; align-items: center; gap: 0.6rem; }
.insta-handle svg { width: 1.3rem; height: 1.3rem; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.kontakt h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.kontakt__text p { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 44ch; }
.kontakt__wege { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.kontakt__wege a { display: inline-flex; align-items: center; gap: 0.75rem; font-weight: 600; font-size: 1.05rem; text-decoration: none; word-break: break-word; }
.kontakt__wege a:hover { text-decoration: underline; }
.kontakt__wege svg { flex: none; width: 1.4rem; height: 1.4rem; color: var(--gruen); }
.kontakt__bild img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-bottom: 6px solid var(--gruen); }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } .kontakt__bild { max-width: 360px; } }

/* ---------- Seitenkopf (Unterseiten, Blog) ---------- */
.seitenkopf { background: var(--blau); color: var(--weiss); padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.seitenkopf h1 { color: var(--weiss); margin: 0; max-width: 20ch; }
.seitenkopf__meta { font-weight: 600; color: var(--gruen-hell); margin-bottom: 1rem; font-size: 1rem; }
.seitenkopf__meta a { color: inherit; }
.seitenkopf--beitrag h1 { max-width: 24ch; font-size: clamp(2.1rem, 4.6vw, 3.4rem); }

/* ---------- Beitrag / Seite ---------- */
.beitrag-bild { max-width: calc(var(--lesebreite) + 280px); margin: 0 auto; padding: 0 var(--rand); position: relative; }
.beitrag-bild img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.inhalt { max-width: calc(var(--lesebreite) + 2 * var(--rand)); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--rand) var(--abstand); }
.inhalt > * { margin-top: 0; }
.inhalt p, .inhalt li { font-size: 1.125rem; line-height: 1.7; }
.inhalt h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 2.2em 0 0.6em; }
.inhalt h3 { margin: 1.8em 0 0.5em; }
.inhalt ul, .inhalt ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.inhalt li { margin-bottom: 0.4em; }
.inhalt li::marker { color: var(--blau); }
.inhalt blockquote, .inhalt .wp-block-quote {
	margin: 2em 0; padding: 0.2em 0 0.2em 1.5rem; border-left: 5px solid var(--gruen);
	font-size: 1.35rem; font-weight: 700; line-height: 1.35; color: var(--blau-tief); letter-spacing: -0.01em;
}
.inhalt blockquote p { font-size: inherit; line-height: inherit; }
.inhalt blockquote cite { display: block; font-size: 1rem; font-weight: 500; font-style: normal; color: var(--text-leise); margin-top: 0.5rem; }
.inhalt figure { margin: 2.25em 0; }
.inhalt .alignwide { margin-left: calc(-1 * min(140px, 8vw)); margin-right: calc(-1 * min(140px, 8vw)); max-width: none; }
.inhalt .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.inhalt figcaption, .inhalt .wp-element-caption { font-size: 0.92rem; color: var(--text-leise); margin-top: 0.6rem; text-align: left; }
.inhalt .wp-block-image img { width: 100%; }
.inhalt .wp-block-gallery { gap: 0.75rem; }
.inhalt hr { border: 0; height: 4px; width: 4rem; background: var(--gruen); margin: 3em 0; }
.inhalt a { font-weight: 600; }
.inhalt .wp-block-button__link { background: var(--blau); color: var(--weiss); border-radius: 4px; font-weight: 700; text-decoration: none; }
.inhalt table { width: 100%; border-collapse: collapse; margin: 2em 0; display: block; overflow-x: auto; }
.inhalt th, .inhalt td { border-bottom: 1px solid var(--linie); padding: 0.7rem 0.6rem; text-align: left; }

.beitrag-fuss { border-top: 1px solid var(--linie); margin-top: 3.5rem; padding-top: 2rem; }
.beitrag-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.beitrag-nav a { display: block; text-decoration: none; font-weight: 700; color: var(--blau-tief); line-height: 1.3; }
.beitrag-nav small { display: block; font-weight: 600; color: var(--blau); font-size: 0.85rem; margin-bottom: 0.3rem; }
.beitrag-nav .weiter { text-align: right; }

/* Über mich */
.ueber { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 5vw, 4.5rem); max-width: var(--breite); margin: 0 auto; padding: clamp(2.5rem, 5vw, 4rem) var(--rand) var(--abstand); align-items: start; }
.ueber .inhalt { padding: 0; margin: 0; max-width: var(--lesebreite); }
.ueber__bild { position: sticky; top: 7rem; }
.ueber__bild img { width: 100%; border-bottom: 6px solid var(--gruen); }
.ueber__bild p { font-size: 0.95rem; color: var(--text-leise); margin-top: 1rem; }
@media (max-width: 860px) { .ueber { grid-template-columns: 1fr; } .ueber__bild { position: static; order: -1; max-width: 300px; } }

/* Seitennavigation Blog */
.seiten-nav { margin-top: 3.5rem; }
.seiten-nav .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seiten-nav .page-numbers { display: inline-block; min-width: 2.75rem; padding: 0.6rem 0.9rem; text-align: center; font-weight: 700; text-decoration: none; background: var(--weiss); color: var(--blau-tief); border-radius: 4px; }
.seiten-nav .current { background: var(--blau); color: var(--weiss); }

/* Kommentare */
.kommentare { margin-top: 3.5rem; }
.kommentare ol { list-style: none; padding: 0; }
.kommentare .comment-body { border-bottom: 1px solid var(--linie); padding: 1.25rem 0; }
.kommentare textarea, .kommentare input[type="text"], .kommentare input[type="email"] { width: 100%; font: inherit; padding: 0.7rem; border: 2px solid var(--linie); border-radius: 4px; }
.kommentare input[type="submit"] { font: inherit; font-weight: 700; background: var(--blau); color: var(--weiss); border: 0; padding: 0.8rem 1.4rem; border-radius: 4px; cursor: pointer; }

/* ---------- Fuß ---------- */
.fuss { background: var(--blau-nacht); color: rgba(255,255,255,0.8); padding: 3.5rem 0 2.5rem; font-size: 0.98rem; }
.fuss__innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; align-items: flex-end; }
.fuss__name { color: var(--weiss); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 0.3rem; }
.fuss__claim { margin: 0; color: var(--gruen-hell); font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.fuss a { color: var(--weiss); text-decoration: none; font-weight: 600; }
.fuss a:hover { text-decoration: underline; color: var(--weiss); }
.fuss__klein { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.88rem; color: rgba(255,255,255,0.6); }

/* 404 */
.nicht-gefunden { padding: var(--abstand) 0; }
.nicht-gefunden p { font-size: 1.2rem; max-width: 40ch; }

/* WordPress-Standardklassen */
.alignleft { float: left; margin: 0.4em 1.5em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.sticky, .bypostauthor, .gallery-caption { }
.wp-caption-text { font-size: 0.92rem; color: var(--text-leise); }
