/*
Theme Name: Inselinfo
Theme URI: https://inselinfo.de
Description: Astra-Child-Theme für inselinfo.de. Design „Nordseelicht“ (Claude Design, 12.10.2026): Seeblau, Sand, warmer Akzent; Newsreader / Instrument Sans / IBM Plex Mono, lokal eingebunden. Projektwerte in theme-config.php.
Author: Andreas Rothermund
Template: astra
Version: 1.3.0
Text Domain: infoportal
*/

/* =========================================================================
   TOKENS — Defaults „Nordseelicht“; theme-config.php setzt sie zusätzlich inline
   Radius 8 (Buttons, Felder) / 12 (Kacheln, Boxen) / 14 (Rahmenflächen) · 4er-Raster
   Fokus überall: 3 px accent-600, 2 px Abstand
   ========================================================================= */
:root {
  --p-primary: #165B87; --p-primary-d: #0E3D5E; --p-primary-50: #EEF4F8; --p-primary-100: #D5E5EF;
  --p-accent: #E8862A; --p-accent-400: #F2A65A; --p-accent-600: #C2651A; --p-accent-700: #9A4B10;
  --p-coal-900: #0F1E29; --p-coal-800: #172B39;
  --p-ink: #0F2433; --p-ink-2: #0F2433; --p-text: #2B3A45; --p-muted: #56656F;
  --p-line: #E4DED2; --p-line-2: #CBC2B1; --p-bg-soft: #F7F3EB; --p-bg: #FFFFFF;
  --p-success: #2B7A4B; --p-warn-50: #FCF0E5; --p-success-50: #EAF2ED; --p-success-200: #B9D7C4;

  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans:  "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:  "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --r-sm: 8px; --r-md: 12px; --r-lg: 14px; --r-pill: 999px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --focus: 3px solid var(--p-accent-600);
}

/* =========================================================================
   GRUNDLAGEN
   ========================================================================= */
body, .ast-container, button, input, select, textarea { font-family: var(--font-sans); color: var(--p-text); }
body { background: var(--p-bg); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

h1, h2, h3, h4, h5, h6, .entry-title, .ast-archive-title, .site-title {
  font-family: var(--font-serif); color: var(--p-ink); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance;
}
h1, .entry-title { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.06; }
h2 { font-size: clamp(27px, 2.6vw, 34px); }
h3 { font-size: clamp(21px, 1.8vw, 24px); }
h4 { font-size: 19px; font-family: var(--font-sans); }
h1 em, h2 em, .entry-title em { font-style: italic; font-weight: 500; color: var(--p-primary); }
p { text-wrap: pretty; }

.mono, .has-mono, code, kbd { font-family: var(--font-mono); }
.ip-eyebrow {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--p-muted);
}

/* Links: unterstrichen im Text, Hover dunkler + Linie 2 px */
a { color: var(--p-primary); }
a:hover { color: var(--p-primary-d); }
.entry-content a:not(.ip-btn):not(.ip-tile):not(.ip-isle):not(.wp-block-button__link) {
  color: var(--p-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.entry-content a:not(.ip-btn):not(.ip-tile):not(.ip-isle):not(.wp-block-button__link):hover { color: var(--p-primary-d); text-decoration-thickness: 2px; }

/* Fokus sichtbar für Tastatur */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: var(--focus); outline-offset: 2px; border-radius: 4px;
}

.ip-wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.ip-section { padding: clamp(40px, 5vw, 72px) 0; }
.ip-sand { background: var(--p-bg-soft); border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
.ip-ic { width: 24px; height: 24px; flex: none; }

/* =========================================================================
   BUTTONS — Mindesthöhe 44 px; primär = eine Hauptaktion je Abschnitt
   ========================================================================= */
.ip-btn, .wp-block-button__link, .ast-button, .button, input[type="submit"], .wp-block-search__button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; box-sizing: border-box; padding: 10px 16px;
  border-radius: var(--r-sm); border: 1.5px solid var(--p-primary);
  font: 600 15px/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  background: var(--p-primary); color: #fff;
}
.ip-btn:hover, .wp-block-button__link:hover, .ast-button:hover, .button:hover, input[type="submit"]:hover, .wp-block-search__button:hover {
  background: var(--p-primary-d); border-color: var(--p-primary-d); color: #fff;
}
.ip-btn-ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--p-primary); }
.ip-btn-ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--p-primary-50); border-color: var(--p-primary-d); color: var(--p-primary-d); }
.ip-btn-lg { min-height: 48px; padding: 12px 22px; font-size: 16px; }
.ip-btn[disabled], .ip-btn.is-disabled { background: var(--p-line); border-color: var(--p-line); color: var(--p-muted); cursor: default; }
.ip-btn-ghost[disabled] { background: transparent; border-color: var(--p-line-2); }
.ip-btn .ip-ic, .ip-btn svg { width: 20px; height: 20px; }

/* Text-Button mit Pfeil (in Kacheln und Listen) */
.ip-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--p-primary); font-weight: 600; font-size: 15px; text-decoration: none; }
.ip-textlink:hover { color: var(--p-primary-d); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.ip-textlink svg { width: 18px; height: 18px; }

/* =========================================================================
   KOPFBEREICH
   ========================================================================= */
.ip-bar-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.ip-utility { background: var(--p-primary-d); color: #fff; font-size: 13.5px; }
.ip-utility .ip-bar-wrap { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap; min-height: 36px; padding-top: 6px; padding-bottom: 6px; }
.ip-utility .util-left { display: flex; align-items: center; gap: 8px; }
.ip-utility .util-ic { width: 16px; height: 16px; color: var(--p-accent-400); stroke-width: 2; }
.ip-utility .util-right { display: flex; gap: 20px; }
.ip-utility a { color: #fff; text-decoration: none; }
.ip-utility a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.ip-header { background: #fff; border-bottom: 1px solid var(--p-line); }
.ip-header > .ip-bar-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 72px; padding-top: 14px; padding-bottom: 14px; }
.ip-brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.ip-brand img { height: 40px; width: auto; display: block; }
.ip-nav-wrap { flex: 1 1 auto; display: flex; justify-content: center; }
.ip-nav { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.ip-nav li { list-style: none; margin: 0; }
.ip-nav a { display: flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 10px 12px; border-radius: var(--r-sm); color: var(--p-ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.ip-nav a:hover { background: var(--p-primary-50); color: var(--p-primary-d); }
.ip-nav .current-menu-item > a, .ip-nav .current-page-ancestor > a { color: var(--p-primary); box-shadow: inset 0 -2px 0 var(--p-accent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.ip-head-actions { display: flex; align-items: center; gap: 10px; }
.ip-icon-btn { width: 44px; height: 44px; border: 0; background: transparent; color: var(--p-ink); border-radius: var(--r-sm); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ip-icon-btn:hover { background: var(--p-primary-50); color: var(--p-primary-d); }
.ip-icon-btn svg { width: 22px; height: 22px; }
.ip-burger { display: none; }

.ip-search { border-top: 1px solid var(--p-line); background: var(--p-bg-soft); }
.ip-search[hidden] { display: none; }
.ip-search form { display: flex; gap: 10px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.ip-search input[type="search"] { flex: 1 1 auto; }

/* Handy-Schublade */
.ip-drawer { position: fixed; inset: 0; z-index: 99999; background: rgba(15, 30, 41, .45); }
.ip-drawer[hidden] { display: none; }
.ip-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 86%; max-width: 340px; box-sizing: border-box; background: #fff; padding: 64px 24px 28px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ip-drawer-close { position: absolute; top: 10px; right: 12px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--p-ink); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ip-nav-mobile { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--p-line); }
.ip-nav-mobile li { list-style: none; margin: 0; }
.ip-nav-mobile a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; color: var(--p-ink); font-weight: 500; font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--p-line); }
.ip-nav-mobile .current-menu-item > a { color: var(--p-primary); box-shadow: inset 3px 0 0 var(--p-accent); padding-left: 12px; }
.ip-drawer-service { display: flex; gap: 20px; font-size: 15px; }
.ip-drawer-service a { color: var(--p-primary); }

@media (max-width: 1080px) {
  .ip-nav-wrap, .ip-hide-mobile { display: none; }
  .ip-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .ip-header > .ip-bar-wrap { min-height: 60px; padding: 10px 8px 10px 16px; }
  .ip-brand img { height: 32px; }
  .ip-btn-sm-mobile { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .ip-head-actions { gap: 2px; }
  .ip-utility { font-size: 13px; }
  .ip-utility .util-right { display: none; }
}

/* =========================================================================
   FUSSBEREICH
   ========================================================================= */
.ip-footer { background: var(--p-coal-900); color: var(--p-primary-100); font-size: 15px; }
.ip-footer > .ip-bar-wrap { padding-top: clamp(40px, 5vw, 64px); padding-bottom: 40px; }
.ip-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--p-coal-800); margin-bottom: 36px; }
.ip-footer-top .ip-brand img { height: 36px; }
.ip-footer .footer-blurb { margin: 0; max-width: 36em; line-height: 1.6; }
.ip-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 36px 32px; }
.ip-footer .footer-col h3 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: #fff; margin: 0 0 10px; letter-spacing: 0; }
.ip-footer .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ip-footer .footer-col li { margin: 0; }
.ip-footer a { color: var(--p-primary-100); text-decoration: none; }
.ip-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ip-footer-bottom { background: var(--p-coal-800); font-size: 13.5px; }
.ip-footer-bottom .ip-bar-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 16px; }
@media (max-width: 560px) { .ip-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; } }

/* =========================================================================
   KOMPONENTEN (Komponentenblatt D)
   ========================================================================= */

/* 02 · Brotkrumen */
.ip-breadcrumbs { font-size: 14px; color: var(--p-muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ip-breadcrumbs a { color: var(--p-primary); }
.ip-breadcrumbs [aria-current="page"] { color: var(--p-text); }

/* 02 · Stand-Badge und Status-Badges */
.ip-stand { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; background: var(--p-primary-50); border-radius: 6px; font: 500 13px/1.4 var(--font-mono); color: var(--p-primary-d); }
.ip-stand::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--p-success); flex: none; }
.ip-stand.is-pruefung { background: var(--p-warn-50); color: var(--p-accent-700); }
.ip-stand.is-pruefung::before { background: var(--p-accent-600); }
.ip-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.ip-badge svg { width: 14px; height: 14px; stroke-width: 2.25; }
.ip-badge.is-alarm { background: var(--p-accent-700); color: #fff; }
.ip-badge.is-warn { background: var(--p-warn-50); color: var(--p-accent-700); border: 1px solid var(--p-accent-400); }
.ip-badge.is-ok { background: var(--p-success-50); color: var(--p-success); }
.ip-badge.is-folgt { background: #fff; color: var(--p-muted); border: 1px dashed var(--p-line-2); }

/* 03 · Kachel — ganze Kachel ist ein Link; Hover ohne Bewegung */
.ip-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; }
.ip-tile { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--p-line); border-radius: var(--r-md); background: #fff; color: var(--p-text); text-decoration: none; }
.ip-tile-ic { width: 48px; height: 48px; border-radius: 10px; background: var(--p-primary-50); color: var(--p-primary); display: flex; align-items: center; justify-content: center; }
.ip-tile-ic svg { width: 26px; height: 26px; }
.ip-tile-title { font-weight: 600; font-size: 19px; line-height: 1.3; color: var(--p-ink); display: block; }
.ip-tile-sub { font-size: 15px; line-height: 1.5; color: var(--p-muted); display: block; margin-top: 4px; }
.ip-tile-go { margin-top: auto; color: var(--p-primary); display: flex; }
.ip-tile-go svg { width: 22px; height: 22px; }
.ip-tile:hover { border-color: var(--p-primary); box-shadow: 0 6px 20px rgba(14, 61, 94, .10); color: var(--p-text); }
.ip-tile:hover .ip-tile-ic { background: var(--p-primary); color: #fff; }
.ip-tile:hover .ip-tile-title { color: var(--p-primary-d); text-decoration: underline; text-underline-offset: 4px; }
.ip-tile:hover .ip-tile-go { color: var(--p-primary-d); }
.ip-tile.is-soon { border-style: dashed; border-color: var(--p-line-2); }
.ip-tile.is-soon .ip-tile-ic { background: var(--p-bg-soft); color: var(--p-muted); }
.ip-tile.is-soon .ip-badge { align-self: flex-start; margin-top: auto; }
.ip-tiles.is-compact { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; }
.ip-tiles.is-compact .ip-tile { padding: 14px; gap: 10px; min-height: 108px; }
.ip-tiles.is-compact .ip-tile-ic { width: 40px; height: 40px; }
.ip-tiles.is-compact .ip-tile-ic svg { width: 22px; height: 22px; }
.ip-tiles.is-compact .ip-tile-title { font-size: 16px; }

/* 04 · Faktenleiste (<dl>) — Werte mono, „ja“ in success, „nein“ neutral */
.ip-facts { border: 1px solid var(--p-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.ip-facts dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 50%), 1fr)); }
.ip-facts dl > div { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); margin: 0 -1px -1px 0; }
.ip-facts dt { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--p-muted); }
.ip-facts dt svg { width: 16px; height: 16px; color: var(--p-primary); }
.ip-facts dd { margin: 0; font: 500 17px/1.35 var(--font-mono); color: var(--p-ink); }
.ip-facts dd.is-ja { color: var(--p-success); }
/* kurzer Wert in mono, Erläuterung klein darunter (Sichtprüfung 12.10.: lange mono-Werte brachen dreizeilig) */
.ip-facts dd small { display: block; margin-top: 2px; font: 400 13px/1.4 var(--font-sans); color: var(--p-muted); }
.ip-facts .ip-facts-stand { background: var(--p-primary-50); }
.ip-facts .ip-facts-stand dd { color: var(--p-primary-d); }
.ip-facts-quelle { background: var(--p-primary-50); padding: 10px 18px; font-size: 13px; color: var(--p-text); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* 05 · Hinweisboxen — Ton über Fläche, Rahmen, Icon und Wort */
.ip-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 20px; border-radius: var(--r-md); margin: 28px 0; background: var(--p-primary-50); border: 1px solid var(--p-primary-100); }
.ip-note-ic { color: var(--p-primary); display: flex; padding-top: 2px; }
.ip-note-ic svg { width: 24px; height: 24px; }
.ip-note-title { font-weight: 600; color: var(--p-primary); margin: 0 0 4px; }
.ip-note-body { color: var(--p-ink); font-size: 16px; }
.ip-note-body p { margin: 0 0 .5em; }
.ip-note-body > :last-child { margin-bottom: 0; }
.ip-note.is-warn { background: var(--p-warn-50); border-color: var(--p-accent-400); }
.ip-note.is-warn .ip-note-ic { color: var(--p-accent-600); }
.ip-note.is-warn .ip-note-title { color: var(--p-accent-700); }
.ip-note.is-tip { background: var(--p-success-50); border-color: var(--p-success-200); }
.ip-note.is-tip .ip-note-ic, .ip-note.is-tip .ip-note-title { color: var(--p-success); }

/* 06 · Tabelle — scrollt im eigenen Rahmen; Beträge mono rechtsbündig */
.ip-table, .entry-content .wp-block-table { margin: 28px 0; }
.ip-table-scroll, .entry-content .wp-block-table { overflow-x: auto; border: 1px solid var(--p-line-2); border-radius: var(--r-md); }
.ip-table table, .entry-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; border: 0; margin: 0; }
.ip-table thead tr, .entry-content table thead tr { background: var(--p-primary-100); color: var(--p-primary-d); text-align: left; }
.ip-table th, .ip-table td, .entry-content table th, .entry-content table td { padding: 14px 16px; border: 0; text-align: left; vertical-align: top; }
.ip-table thead th, .entry-content table thead th { padding: 12px 16px; font-weight: 600; background: transparent; color: var(--p-primary-d); }
.ip-table thead th.num, .entry-content table thead th.num { font-family: var(--font-sans); }
.ip-table tbody tr, .entry-content table tbody tr { border-top: 1px solid var(--p-line-2); }
.ip-table tbody tr:nth-child(even), .entry-content table tbody tr:nth-child(even) { background: var(--p-bg-soft); }
.ip-table tbody th[scope="row"], .entry-content table tbody th { font-weight: 600; color: var(--p-ink); }
.ip-table .num, .entry-content table .num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.ip-table .mono { font-family: var(--font-mono); }
.ip-table figcaption, .entry-content .wp-block-table figcaption { font-size: 14px; color: var(--p-muted); margin-top: 8px; }
/* Handy: vier Spalten (Klima) passen in 358 px — engere Zellen, Zahlen-Spaltenköpfe dürfen umbrechen (Sichtprüfung 12.10.) */
@media (max-width: 560px) {
  .ip-table table, .entry-content table { font-size: 13.5px; }
  .ip-table th, .ip-table td, .ip-table thead th { padding: 10px 6px; }
  .ip-table th:first-child, .ip-table td:first-child { padding-left: 10px; }
  .ip-table thead th.num { white-space: normal; }
}

/* 07 · Partnerlink-Box — „Anzeige“ oben links, Button primary-d */
.ip-partner { border: 1px solid var(--p-line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--p-bg-soft); margin: 28px 0; }
.ip-partner-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--p-line); background: #fff; }
.ip-partner-label { font: 500 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink); border: 1px solid var(--p-ink); border-radius: 4px; padding: 1px 6px; }
.ip-partner-von { font-size: 13px; color: var(--p-muted); }
.ip-partner-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ip-partner-title { font: 600 23px/1.2 var(--font-serif); color: var(--p-ink); margin: 0; }
.ip-partner .ip-btn { align-self: flex-start; margin-top: 4px; background: var(--p-primary-d); border-color: var(--p-primary-d); }
.ip-partner .ip-btn:hover { background: var(--p-coal-800); border-color: var(--p-coal-800); }
.ip-partner-hinweis { padding: 0 18px 14px; font-size: 13px; color: var(--p-muted); }

/* 08 · Werbeplatz — feste Höhe reservieren, Label außerhalb */
.ip-ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 32px auto; }
.ip-ad-label { font: 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--p-muted); }
.ip-ad-slot { width: 100%; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.ip-ad.is-rect .ip-ad-slot { width: 300px; min-height: 250px; }
.ip-ad.is-leader .ip-ad-slot { max-width: 728px; min-height: 90px; }
@media (max-width: 760px) { .ip-ad.is-leader .ip-ad-slot { max-width: 320px; min-height: 100px; } }

/* 09 · Häufige Fragen — natives <details> */
.ip-faq { border-top: 1px solid var(--p-line-2); margin: 28px 0; }
.ip-faq details { border-bottom: 1px solid var(--p-line-2); }
.ip-faq summary { list-style: none; min-height: 56px; padding: 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 18px; color: var(--p-ink); cursor: pointer; }
.ip-faq summary::-webkit-details-marker { display: none; }
.ip-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--p-primary-50); color: var(--p-primary); display: flex; align-items: center; justify-content: center; font: 600 20px/1 var(--font-sans); }
.ip-faq details[open] summary::after { content: "–"; background: var(--p-primary); color: #fff; }
.ip-faq details > :not(summary) { margin: 0 0 18px; }

/* 10 · Quellenliste */
.ip-sources { padding: 22px 24px; background: var(--p-bg-soft); border-radius: var(--r-lg); margin: 36px 0 0; }
.ip-sources h2, .ip-sources-title { font: 600 24px/1.2 var(--font-serif); color: var(--p-ink); margin: 0 0 12px; }
.ip-sources ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; counter-reset: q; }
.ip-sources li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; counter-increment: q; }
.ip-sources li::before { content: "[" counter(q) "]"; font-family: var(--font-mono); color: var(--p-muted); }
.ip-sources .abgerufen { display: block; font: 13px var(--font-mono); color: var(--p-muted); }

/* 11 · Formularfelder — Rahmen muted (≥ 3 : 1), Fehler mit Text */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  min-height: 46px; box-sizing: border-box; padding: 10px 12px; border: 1.5px solid var(--p-muted); border-radius: var(--r-sm);
  font: 400 16px var(--font-sans); color: var(--p-ink); background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--p-primary); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border: 2px solid var(--p-accent-700); }
.ip-field-error { font-size: 13px; color: var(--p-accent-700); font-weight: 600; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--p-primary); width: 20px; height: 20px; }

/* =========================================================================
   SEITEN (Pflichtseiten, Hub, Artikel) — Grundlayout
   ========================================================================= */
.page .entry-content, .single .entry-content { font-size: 17px; line-height: 1.65; color: var(--p-text); }
/* Textspalte 760 px, Titel in derselben Spalte (Sichtprüfung 12.10.: Titel stand links außerhalb) */
.page:not(.home) .entry-header, .single .entry-header { max-width: 760px; margin-left: auto; margin-right: auto; }
.page:not(.home) .entry-content > *, .single .entry-content > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.page .entry-content > .alignwide, .page .entry-content > .alignfull, .page .entry-content > .ip-full { max-width: none; }
/* Astra setzt header.entry-header .entry-title auf 32 px (0,2,1) — hier (0,3,1) */
.page header.entry-header .entry-title, .single header.entry-header .entry-title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; font-weight: 600; }
.entry-content h2 { margin: 1.6em 0 .5em; }
.entry-content h3 { margin: 1.4em 0 .4em; }
.entry-content ul, .entry-content ol { padding-left: 1.2em; }
.entry-content li { margin-bottom: .35em; }
.ast-single-post .entry-title, .page .entry-title { margin-bottom: 16px; }

/* =========================================================================
   STARTSEITE (front-page.php)
   ========================================================================= */
.ip-hero { background: var(--p-bg-soft); border-bottom: 1px solid var(--p-line); }
.ip-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 40px 56px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 80px); }
.ip-hero-text { display: flex; flex-direction: column; gap: 22px; }
.ip-hero h1 { margin: 0; }
.ip-hero-lead { margin: 0; font-size: 19px; line-height: 1.6; max-width: 34em; }
.ip-hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ip-hero-note { font: 13px var(--font-mono); color: var(--p-muted); }
.ip-hero-art { border-radius: 16px; overflow: hidden; background: var(--p-primary-50); aspect-ratio: 4 / 3; border: 1px solid var(--p-line); }
.ip-hero-art svg { width: 100%; height: 100%; display: block; }

.ip-home h2 { margin: 0; }
/* zwei weiße Abschnitte hintereinander: nur ein Abstand (Sichtprüfung 12.10.) */
.ip-home .ip-section:not(.ip-sand) + .ip-section:not(.ip-sand) { padding-top: 8px; }
.ip-sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 24px; }
.ip-sec-head p { margin: 0; font-size: 15px; color: var(--p-muted); }

.ip-regions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); gap: 24px; align-items: start; }
.ip-region { border: 1px solid var(--p-line); border-radius: var(--r-lg); overflow: hidden; }
.ip-region-head { background: var(--p-primary-d); color: #fff; padding: 16px 22px; display: flex; justify-content: space-between; align-items: baseline; }
.ip-region.is-ostsee .ip-region-head { background: var(--p-primary); }
.ip-region-head h3 { margin: 0; color: #fff; font-size: 26px; }
.ip-region-head span { font: 13px var(--font-mono); color: var(--p-primary-100); }
.ip-region-body { padding: 6px 22px 22px; display: flex; flex-direction: column; gap: 18px; }
.ip-group { display: flex; flex-direction: column; gap: 8px; }
.ip-group .ip-eyebrow { font-size: 12px; padding-top: 14px; }
.ip-isles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ip-isles li { margin: 0; }
.ip-isle { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 10px; background: var(--p-primary-50); text-decoration: none; min-height: 44px; box-sizing: border-box; height: 100%; }
.ip-isle-name { font-weight: 600; font-size: 17px; color: var(--p-primary-d); }
.ip-isle-hint { font: 12.5px/1.4 var(--font-mono); color: var(--p-muted); }
a.ip-isle:hover { background: var(--p-primary-100); }
a.ip-isle:hover .ip-isle-name { text-decoration: underline; text-underline-offset: 3px; }
.ip-isle.is-soon { background: transparent; border: 1px dashed var(--p-line-2); }
.ip-isle.is-soon .ip-isle-name { color: var(--p-ink); }
.ip-region-note { display: flex; gap: 12px; align-items: flex-start; background: var(--p-bg-soft); border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.5; }
.ip-region-note svg { width: 20px; height: 20px; color: var(--p-primary); flex: none; }

/* Handy wie Entwurf A mobil: Themen und Inseln zweispaltig */
@media (max-width: 560px) {
  .ip-home .ip-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ip-home .ip-tile { padding: 14px; gap: 10px; }
  .ip-home .ip-tile-ic { width: 40px; height: 40px; }
  .ip-home .ip-tile-ic svg { width: 22px; height: 22px; }
  .ip-home .ip-tile-title { font-size: 16px; }
  .ip-home .ip-tile-sub { font-size: 13.5px; }
  .ip-isles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ip-region-body { padding: 4px 14px 16px; }
  .ip-isle { padding: 9px 11px; }
  .ip-isle-name { font-size: 16px; }
  .ip-isle-hint { font-size: 11.5px; }
  .ip-region-head { padding: 14px 16px; }
  .ip-region-head h3 { font-size: 23px; }
}
.ip-toplist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); column-gap: 48px; }
.ip-toplist li { border-top: 1px solid var(--p-line-2); margin: 0; }
.ip-toplist a { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 16px 0; text-decoration: none; }
.ip-toplist .nr { font: 15px var(--font-mono); color: var(--p-muted); }
.ip-toplist .t { display: block; font-weight: 600; font-size: 18px; line-height: 1.35; color: var(--p-ink); }
.ip-toplist .m { display: block; font-size: 14px; color: var(--p-muted); }
.ip-toplist .go { color: var(--p-primary); display: flex; }
.ip-toplist a:hover .t { color: var(--p-primary-d); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================================
   INSELSEITEN (page-insel.php) — Hub = Entwurf B, Unterseite = Entwurf C
   ========================================================================= */
.ast-container:has(.ip-insel), .ast-container:has(.ip-artikel-grid) { display: block; max-width: none; padding: 0; }

/* Hub: Sandband mit Brotkrumen, H1, Einleitung, Faktenleiste */
.ip-insel-hero { background: var(--p-bg-soft); border-bottom: 1px solid var(--p-line); }
.ip-insel-hero > .ip-wrap { padding-top: 20px; padding-bottom: clamp(36px, 4vw, 56px); display: flex; flex-direction: column; gap: 22px; }
.ip-insel-kopf { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.ip-insel-kopf h1 { margin: 0; font-size: clamp(40px, 5vw, 64px); line-height: 1.02; }
.ip-insel-kopf p { margin: 0; font-size: 19px; line-height: 1.6; }
.ip-insel-hero .ip-facts dd { font-size: 18px; }
.ip-insel-hero .ip-facts dl > div { padding: 18px 20px; gap: 6px; }
.ip-insel-hero .ip-facts dt svg { width: 18px; height: 18px; }
.ip-facts-quelle { justify-content: space-between; }
.ip-facts-quelle .ip-stand { background: transparent; padding: 0; }

/* Kacheln im Zeilenformat („Norderney planen“) */
.ip-plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.ip-tile.ip-tile-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px; }
.ip-tile-row .ip-tile-title { font-size: 18px; }
.ip-tile-row .ip-tile-sub { margin-top: 0; }
.ip-tile-row .ip-tile-go { margin-top: 0; }
.ip-tile-row.is-soon .ip-badge { margin-top: 0; align-self: center; }

/* Hub: Abschnitte unter dem Sandband */
.ip-hub-sec { padding-top: clamp(40px, 5vw, 64px); }
.ip-hub-sec > .ip-wrap > h2 { margin: 0 0 22px; }
.ip-hub-info > .ip-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; align-items: start; }
.ip-wissen { background: var(--p-primary-50); border-radius: var(--r-lg); padding: 26px 28px; display: flex; flex-direction: column; gap: 14px; }
.ip-wissen-kopf { display: flex; align-items: center; gap: 10px; color: var(--p-primary); }
.ip-wissen-kopf svg { width: 24px; height: 24px; }
.ip-wissen h2 { margin: 0; font-size: 26px; }
.ip-wissen ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16.5px; color: var(--p-ink); }
.ip-highlights h2 { margin: 0 0 14px; font-size: 26px; }
.ip-highlights ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--p-line); counter-reset: hl; }
.ip-highlights li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--p-line); counter-increment: hl; margin: 0; }
.ip-highlights li::before { content: counter(hl, decimal-leading-zero); font: 14px var(--font-mono); color: var(--p-muted); padding-top: 3px; }
.ip-highlights strong { color: var(--p-ink); font-weight: 600; }
.ip-highlights .m { color: var(--p-muted); }
.ip-hub-text > .ip-wrap > * { max-width: 760px; }
.ip-hub-text { padding-bottom: clamp(48px, 5vw, 72px); }
.ip-hub-text h2 { margin: 1.6em 0 .5em; }
.ip-hub-text h2:first-child { margin-top: 0; }
.ip-hub-text p, .ip-hub-text ul { margin: 0 0 1em; }
.ip-hub-text a:not(.ip-btn) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ip-hub-text a:not(.ip-btn):hover { color: var(--p-primary-d); text-decoration-thickness: 2px; }

/* Webcam-Karten: nur Link nach außen, keine Einbettung (Rechte beim Betreiber) */
.ip-cams { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; margin: 24px 0 32px; }
.ip-cam { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--p-line); border-radius: var(--r-md); background: #fff; }
.ip-cam-kopf { display: flex; align-items: center; gap: 12px; }
.ip-cam-kopf .ip-tile-ic { width: 44px; height: 44px; flex: none; }
.ip-cam-titel { font-weight: 600; font-size: 18px; color: var(--p-ink); margin: 0; line-height: 1.3; }
.ip-cam-blick { margin: 0; font-size: 15.5px; }
.ip-cam-betreiber { margin: 0; font: 13px/1.4 var(--font-mono); color: var(--p-muted); }
.ip-cam .ip-btn { align-self: flex-start; margin-top: auto; }
.ip-artikel .ip-cam .ip-btn { text-decoration: none; }

/* Erleben (1.3.0): Faktenkasten je Ziel (vorlage.ziel_karten) und Sprungliste (vorlage.sprungliste) */
.ip-ziele { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 20px 0 32px; }
.ip-ziel { padding: 20px; border: 1px solid var(--p-line); border-radius: var(--r-md); background: #fff; scroll-margin-top: 24px; }
.ip-artikel .ip-ziel h3 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.ip-ziel > p { margin: 0 0 12px; }
.ip-ziel-fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 8px 20px; margin: 0;
  padding-top: 12px; border-top: 1px solid var(--p-line); }
.ip-ziel-fakten div { display: flex; flex-direction: column; gap: 2px; }
.ip-ziel-fakten dt { font: 600 12px/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: .04em; color: var(--p-muted); }
.ip-ziel-fakten dd { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--p-ink); }
.ip-ziel-mehr { margin: 12px 0 0; font-size: 15px; }
.ip-sprung { margin: 20px 0 28px; padding: 16px 20px; border-radius: var(--r-md); background: var(--p-bg-soft); border: 1px solid var(--p-line); }
.ip-sprung-titel { margin: 0 0 8px; font: 600 13px/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: .05em; color: var(--p-muted); }
.ip-sprung ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ip-sprung li { margin: 0; }
.ip-sprung a { font-weight: 500; }
.ip-mehr h2 + ul + h2, .ip-mehr ul + h2 { margin-top: 20px; }

/* Unterseite: Artikel + Seitenleiste */
.ip-artikel-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 300px); justify-content: space-between; gap: 48px; padding-top: 24px; padding-bottom: clamp(48px, 5vw, 72px); }
.ip-artikel { min-width: 0; font-size: 17px; line-height: 1.65; }
.ip-artikel .ip-breadcrumbs { margin-bottom: 18px; }
.ip-artikel h1 { margin: 0 0 14px; font-size: clamp(36px, 4.4vw, 54px); }
.ip-artikel-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.ip-artikel .ip-lead { font-size: 19px; line-height: 1.6; margin: 0 0 8px; }
.ip-artikel h2 { margin: 1.7em 0 .5em; }
.ip-artikel h3 { margin: 1.4em 0 .4em; }
.ip-artikel p, .ip-artikel ul, .ip-artikel ol { margin: 0 0 1em; }
.ip-artikel a:not(.ip-btn):not(.ip-tile) { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ip-artikel a:not(.ip-btn):not(.ip-tile):hover { color: var(--p-primary-d); text-decoration-thickness: 2px; }
.ip-artikel-aside { position: relative; }
.ip-mehr { position: sticky; top: 24px; border: 1px solid var(--p-line); border-radius: var(--r-lg); padding: 20px; }
.ip-mehr h2 { font-size: 22px; margin: 0 0 10px; }
.ip-mehr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ip-mehr li { margin: 0; border-top: 1px solid var(--p-line); }
.ip-mehr a { display: flex; align-items: center; gap: 10px; min-height: 48px; color: var(--p-ink); text-decoration: none; font-weight: 500; }
.ip-mehr a svg { width: 20px; height: 20px; color: var(--p-primary); }
.ip-mehr a:hover { color: var(--p-primary-d); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
  .ip-artikel-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ip-mehr { position: static; }
}

/* =========================================================================
   ASTRA-RESTE AUSBLENDEN (eigener Kopf- und Fußbereich)
   ========================================================================= */
.site-primary-header-wrap, .ast-above-header-wrap, .ast-below-header-wrap, .ast-mobile-header-wrap { display: none !important; }
.site-footer .ast-footer-copyright, .site-footer .ast-builder-grid-row-container, .site-footer .ast-builder-grid-row-footer-wrap { display: none !important; }
.ast-header-without-markup { display: none !important; }
.home.page .entry-header, .page-template-default.home .entry-header { display: none; }
/* Astra: .ast-container ist flex column-reverse und hebelt margin:auto aus (Skill wordpress, Astra 2/2 f) */
.ast-container:has(.ip-home) { display: block; max-width: none; padding: 0; }
.home .site-content > .ast-container { max-width: none; padding-left: 0; padding-right: 0; }

/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
