/*
Theme Name: Schiffsradar
Theme URI: https://fehmarn.blog/
Author: Fehmarn Blog
Description: Ruhiges maritimes Blog-Theme mit eingebauter, werbefreier Live-Schiffskarte (AIS) rund um Fehmarn: Schiffe in Echtzeit, Wind, Messwerte, Verkehrsdichte und Statistik. Seiten-Template „Schiffsradar (Vollbild)“, Einstellungen unter Einstellungen > Schiffsradar.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schiffsradar
Tags: blog, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --ink: #14232e;
  --muted: #5d6b76;
  --line: #e3ddd0;
  --navy: #0f2c3f;
  --navy-ink: #eaf2f7;
  --accent: #d9482b;
  --accent-ink: #ffffff;
  --link: #0b5c8e;
  --radius: 14px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1720; --surface: #13222d; --ink: #e8eef3; --muted: #98a8b4; --line: #223645;
    --navy: #08141c; --navy-ink: #e8eef3; --link: #6cb8ec; --accent: #ef6a4d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 8px; top: 8px; z-index: 100000; background: var(--surface); padding: 10px 14px; border-radius: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap.narrow { width: min(740px, 100% - 40px); }

/* Kopf */
.site-header { background: var(--navy); color: var(--navy-ink); border-bottom: 4px solid var(--accent); position: relative; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.site-title { font: 700 1.5rem/1.1 var(--serif); letter-spacing: .01em; color: var(--navy-ink); text-decoration: none; }
.site-title .anchor { color: var(--accent); margin-right: .1em; }
.site-desc { margin: 4px 0 0; font-size: .85rem; color: color-mix(in srgb, var(--navy-ink) 70%, transparent); }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--navy-ink); text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a { border-bottom-color: var(--accent); }
.site-nav .sub-menu { display: none; }
.radar-pill { background: var(--accent); color: var(--accent-ink) !important; padding: 8px 16px !important; border-radius: 99px; border-bottom: 0 !important; font-weight: 600; white-space: nowrap; }
.radar-pill span { font-size: .7em; vertical-align: .12em; animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .radar-pill span { animation: none; } }
.nav-toggle { display: none; background: none; border: 1px solid color-mix(in srgb, var(--navy-ink) 35%, transparent); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: var(--navy-ink); margin: auto; position: relative; content: ""; }
.nav-toggle .bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle .bars::after { position: absolute; top: 6px; left: 0; }
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 10px; padding-bottom: 8px; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .radar-pill { text-align: center; }
}

/* Inhalt */
.site-main { padding: 40px 0 64px; min-height: 60vh; }
.page-head { margin: 0 0 28px; }
.page-head h1, .entry-head h1 { font: 700 clamp(1.9rem, 4vw, 2.8rem)/1.15 var(--serif); margin: 0 0 8px; letter-spacing: -.01em; }
.lead { color: var(--muted); font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .06em; }
.meta a { color: inherit; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(10, 30, 45, .12); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transition: none; transform: none; } }
.card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 18px 20px 22px; }
.card-title { font: 700 1.3rem/1.25 var(--serif); margin: 0 0 8px; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--link); }
.excerpt p { margin: 0; color: var(--muted); font-size: .97rem; }
.empty { color: var(--muted); }

.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); color: var(--ink); }
.page-numbers.current { background: var(--navy); color: var(--navy-ink); border-color: var(--navy); }

/* Beitrag */
.entry-head { margin-bottom: 22px; }
.hero { margin: 0 0 28px; }
.hero img { width: 100%; border-radius: var(--radius); display: block; }
.entry-content { font-size: 1.08rem; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2, .entry-content h3 { font-family: var(--serif); line-height: 1.25; margin-top: 1.8em; }
.entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-family: var(--serif); font-style: italic; color: var(--muted); }
.entry-content pre, .entry-content code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: .9em; }
.entry-content code { padding: 1px 5px; }
.entry-content pre { padding: 14px; overflow: auto; }
.entry-content pre code { border: 0; padding: 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }
.alignwide { width: min(1000px, 100vw - 40px); margin-inline: calc(50% - min(500px, 50vw - 20px)); max-width: none; }
.wp-caption, .wp-block-image figcaption, figcaption { color: var(--muted); font-size: .88rem; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sticky .card-title::before { content: "★ "; color: var(--accent); }
.bypostauthor { }
.tags { margin-top: 28px; color: var(--muted); font-size: .9rem; }
.tags a { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; background: var(--surface); }
.post-navigation { margin: 44px 0 0; border-top: 1px solid var(--line); padding-top: 22px; }
.post-navigation .nav-links { justify-content: space-between; flex-wrap: nowrap; }
.post-navigation a { text-decoration: none; font-family: var(--serif); }

/* Kommentare */
.comments { margin-top: 52px; border-top: 1px solid var(--line); padding-top: 28px; }
.comments h2, .comment-reply-title { font-family: var(--serif); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata { font-size: .8rem; color: var(--muted); }
.comment-metadata a { color: inherit; }
.comment-form label { display: block; font-size: .9rem; margin-bottom: 4px; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink);
}
button, input[type="submit"], .button { font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 20px; border-radius: 99px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, input[type="submit"]:hover, .button:hover { filter: brightness(1.08); }
.search-form { display: flex; gap: 10px; max-width: 520px; }
.search-form label { flex: 1; }
.search-form .search-submit { flex: none; }

/* Fuss */
.site-footer { background: var(--navy); color: var(--navy-ink); padding: 28px 0 34px; font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; }
.footer-inner p { margin: 0; }
.footer-inner ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-inner a { color: var(--navy-ink); }
.credits { flex-basis: 100%; font-size: .8rem; color: color-mix(in srgb, var(--navy-ink) 60%, transparent); }
