/*
Theme Name: DG1KWA Funk
Theme URI: https://www.qrz.com/db/DG1KWA
Author: Andreas Wißkirchen, DG1KWA / HS0ZNJ
Description: Amateurfunk-Theme für die private Homepage von DG1KWA (Monheim am Rhein, JO31kc) und HS0ZNJ (Udon Thani, OK17jj). Startseite mit beiden Rufzeichen, Standortkarten mit Fotos, Weltzeituhren (UTC + Ortszeit), Locator, Logbuch-Beiträgen sowie automatisch erzeugtem Impressum und Datenschutzerklärung. Alles über den Customizer anpassbar.
Version: 1.3.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dg1kwa-funk
Tags: blog, one-column, custom-menu, custom-logo, featured-images, theme-options, dark
*/

:root {
	--bg: #0b1320;
	--bg-2: #111c2e;
	--panel: #15233a;
	--line: #24375a;
	--text: #e6ecf5;
	--muted: #9aabc6;
	--accent: #ffb238;      /* Bernstein – wie eine alte Skalenbeleuchtung */
	--accent-2: #4fd1c5;    /* Türkis – S-Meter / Wasserfall */
	--radius: 14px;
	--mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 1000; clip: auto; width: auto; height: auto;
	background: var(--accent); color: #000; padding: 8px 14px; border-radius: 6px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(11, 19, 32, .88);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .custom-logo { max-height: 42px; width: auto; }
.brand-calls { font-family: var(--mono); font-weight: 700; letter-spacing: .06em; font-size: 1.05rem; }
.brand-calls .sep { color: var(--accent); margin: 0 .35em; }
.brand-tag { display: block; font-family: var(--sans); font-weight: 400; font-size: .75rem; color: var(--muted); letter-spacing: .02em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a {
	display: block; padding: 8px 12px; border-radius: 8px; color: var(--muted);
	font-size: .92rem; font-weight: 500;
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); background: var(--panel); text-decoration: none; }
.main-nav ul ul { display: none; }

.nav-toggle {
	display: none; background: none; border: 1px solid var(--line); color: var(--text);
	border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
}

@media (max-width: 820px) {
	.nav-toggle { display: block; }
	.main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
	.main-nav.is-open { display: block; }
	.main-nav ul { flex-direction: column; padding: 12px 24px 18px; }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: 96px 0 72px;
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(79, 209, 197, .14), transparent 60%),
		radial-gradient(900px 500px at 100% 0%, rgba(255, 178, 56, .12), transparent 60%),
		var(--bg);
	border-bottom: 1px solid var(--line);
}
.hero::after { /* Wasserfall-/Spektrum-Andeutung */
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
	background: repeating-linear-gradient(90deg, rgba(79,209,197,.0) 0 6px, rgba(79,209,197,.18) 6px 7px);
	mask-image: linear-gradient(to top, #000, transparent);
	-webkit-mask-image: linear-gradient(to top, #000, transparent);
	opacity: .6;
}
.hero-kicker {
	font-family: var(--mono); color: var(--accent-2); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; margin: 0 0 18px;
}
.hero-calls {
	margin: 0; font-family: var(--mono); font-weight: 800; line-height: 1.02;
	font-size: clamp(2.8rem, 9vw, 6.2rem); letter-spacing: .02em;
}
.hero-calls span { display: inline-block; }
.hero-calls .slash { color: var(--accent); padding: 0 .12em; font-weight: 400; }
.hero-lead { max-width: 680px; color: var(--muted); font-size: 1.15rem; margin: 22px 0 32px; }

.clocks { display: flex; flex-wrap: wrap; gap: 12px; }
.clock {
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
	padding: 12px 18px; min-width: 170px;
}
.clock-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.clock-time { font-family: var(--mono); font-size: 1.6rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.clock.utc .clock-time { color: var(--accent); }

/* ---------- Abschnitte ---------- */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; }
.section-sub { margin: 6px 0 0; color: var(--muted); }

/* ---------- Standortkarten ---------- */
.stations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .stations { grid-template-columns: 1fr; } }

.station {
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; display: flex; flex-direction: column;
}
.station-photo {
	position: relative; aspect-ratio: 16 / 10; overflow: hidden;
	/* Ersatzhintergrund, falls das Foto nicht geladen werden kann */
	background:
		repeating-linear-gradient(90deg, rgba(79,209,197,.0) 0 10px, rgba(79,209,197,.10) 10px 11px),
		linear-gradient(160deg, #1d3354, #0b1320 70%);
}
.station-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.station:hover .station-photo img { transform: scale(1.03); }
.station-photo .flag {
	position: absolute; top: 14px; left: 14px; background: rgba(11,19,32,.8); border: 1px solid var(--line);
	border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 600;
}
.station-call {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 14px;
	background: linear-gradient(to top, rgba(11,19,32,.92), transparent);
	font-family: var(--mono); font-weight: 800; font-size: 2rem; letter-spacing: .04em;
}
.station-body { padding: 22px 22px 18px; flex: 1; }
.station-place { margin: 0 0 6px; font-size: 1.25rem; }
.station-text { color: var(--muted); margin: 0 0 18px; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--mono); font-weight: 600; }

.station-foot { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 22px 22px; }
.photo-credit { padding: 10px 22px 16px; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line); }
.photo-credit a { color: var(--muted); text-decoration: underline; }

.btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
	border: 1px solid var(--line); color: var(--text); font-size: .9rem; font-weight: 600; background: var(--bg-2);
}
.btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); color: #111; border-color: var(--accent); }
.btn-primary:hover { background: #ffc566; color: #111; }

/* Mitgliedschaften */
.clubs { margin-top: 18px; }
.clubs-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 8px; }
.clubs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.clubs li a, .clubs li > span, .clubs li > img { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.clubs li.has-logo a, .clubs li.has-logo > img {
	background: #fff; border-radius: 10px; padding: 8px 12px; height: 64px; min-width: 64px;
	border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.clubs li.has-logo img { max-height: 48px; width: auto; max-width: 140px; object-fit: contain; }
.clubs li.has-logo a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.clubs .club-text {
	font-family: var(--mono); font-weight: 700; font-size: .85rem; letter-spacing: .04em;
	padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: rgba(255,178,56,.06);
}
.clubs a:hover .club-text { background: var(--accent); color: #111; }

/* ---------- Ausrüstung / Info ---------- */
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.info-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--accent); font-family: var(--mono); letter-spacing: .04em; }
.info-card p, .info-card ul { margin: 0; color: var(--muted); }
.info-card ul { padding-left: 18px; }

/* ---------- Beiträge ---------- */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/9; background: var(--bg-2); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .inner { padding: 18px 20px 20px; }
.post-card h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.35; }
.post-card h3 a { color: var(--text); }
.meta { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .04em; }
.post-card p { color: var(--muted); margin: 8px 0 0; font-size: .95rem; }

/* ---------- Inhalt (Seiten/Beiträge) ---------- */
.content-area { padding: 56px 0 80px; }
.entry { max-width: 780px; margin: 0 auto; }
.entry-header { margin-bottom: 28px; }
.entry-title { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.15; margin: 8px 0 0; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content blockquote { border-left: 3px solid var(--accent); margin: 1.5em 0; padding: .2em 0 .2em 1.2em; color: var(--muted); }
.entry-content code, .entry-content pre { font-family: var(--mono); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.entry-content code { padding: .1em .35em; font-size: .9em; }
.entry-content pre { padding: 16px; overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--panel); }
.entry-content img { border-radius: 10px; }
.entry-content .alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.entry-content .alignfull { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); max-width: none; }
.featured { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }

.archive-list .post-card { margin-bottom: 0; }
.pagination { margin-top: 40px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pagination .current { background: var(--accent); color: #111; border-color: var(--accent); }

/* Kommentare */
.comments-area { max-width: 780px; margin: 56px auto 0; border-top: 1px solid var(--line); padding-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit;
}
input[type="submit"], button[type="submit"] {
	background: var(--accent); color: #111; border: 0; border-radius: 8px; padding: 10px 18px; font: inherit; font-weight: 700; cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 40px 0 28px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-calls { font-family: var(--mono); color: var(--text); font-weight: 700; letter-spacing: .05em; }
.footer-73 { color: var(--accent); font-family: var(--mono); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-credits { margin-top: 22px; font-size: .74rem; line-height: 1.5; }
.footer-credits a { color: var(--muted); text-decoration: underline; }

/* WordPress-Standardklassen */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 6px; }
.sticky .post-card { border-color: var(--accent); }
.bypostauthor > .comment-body { border-color: var(--accent-2); }
