/* ITN Marina Kunden-App 3.0 – Inhalte der neuen Seiten.
   Kopfleiste, Navigation, Menü und Fußzeile stehen in assets/css/shell.css (gilt für die ganze App).

   Gestaltung wie in der bisherigen Kunden-App (frontend-kundenAPP): tiefes Marineblau,
   Wellenblau als Akzent, Sandton für ruhige Abschnitte, weiche Schatten in Blau statt Grau.
   Jene App wird nur gelesen – geändert wird hier. */

:root {
  /* Maritime Farben (identisch mit frontend-kundenAPP/assets/css/frontend.css) */
  --ocean: #002b5c; --ocean-mid: #004080; --ocean-light: #0066cc;
  --wave: #00a8e8; --wave-light: #e0f7ff;
  --sky: #e8f4fd; --sky-mid: #cce4f7;
  --sand: #d9c7a1; --sand-light: #f5f0e8; --sand-dark: #b8a07a;

  --primary: var(--ocean); --primary-dark: var(--ocean-mid); --accent: var(--wave); --accent-dark: #0090ca;
  --bg: #f7f9fc; --card: #ffffff; --line: #e2e8f0; --line-light: #f0f4f8;
  --ink: #2d3748; --ink-dark: #1a2332; --muted: #718096;
  --good: #1a7a44; --good-bg: #eafaf1; --good-line: #2ecc71;
  --warn: #9a6006; --warn-bg: #fef9ec; --warn-line: #f39c12;
  --bad: #922b21; --bad-bg: #fdecea; --bad-line: #e74c3c;
  --info: #3498db; --info-bg: #eaf4fd;
  --r: 16px; --r-sm: 10px; --r-xl: 24px;
  --shadow-xs: 0 1px 3px rgba(0,43,92,.08);
  --shadow: 0 2px 8px rgba(0,43,92,.10);
  --shadow-md: 0 4px 16px rgba(0,43,92,.12);
  --shadow-lg: 0 8px 32px rgba(0,43,92,.18);
  --bn-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px); --tap: 44px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-size: 1rem; line-height: 1.5; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; border-radius: 4px; }
h1 { font-size: clamp(1.5rem, 5vw, 2rem); line-height: 1.2; margin: .6rem 0 .4rem; letter-spacing: -.02em; }
h2 { font-size: 1.2rem; margin: 0 0 .6rem; color: var(--ocean); letter-spacing: -.2px; }
h3, .h-small { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--muted); font-weight: 600; text-transform: none; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 12px 16px 32px; }
main:focus { outline: none; }

/* Hinweise, Banner */
.banner { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-weight: 600; font-size: .9rem; text-align: center; flex-wrap: wrap; }
.banner[hidden] { display: none; }
.banner-warn { background: var(--warn-bg); color: var(--warn); }
.banner-info { background: var(--info-bg); color: var(--primary-dark); }
.alert { border-radius: var(--r-sm); padding: 13px 16px; margin: 0 0 14px; border: 1px solid transparent; border-left: 4px solid; line-height: 1.5; }
.alert ul { margin: 0; padding-left: 18px; }
.alert-ok { background: var(--good-bg); color: var(--good); border-left-color: var(--good-line); }
.alert-error { background: var(--bad-bg); color: var(--bad); border-left-color: var(--bad-line); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-left-color: var(--warn-line); }
.info-box { display: flex; gap: 10px; align-items: flex-start; background: var(--sky); color: var(--ocean); border-radius: var(--r-sm); padding: 12px 14px; margin: 12px 0; border-left: 4px solid var(--wave); }
.info-box p { margin: 0; }

/* Karten, Kacheln */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow-xs); border: 1px solid var(--line); padding: 16px; margin: 0 0 16px; }
/* Farbige Oberkante wie in der bisherigen App */
.card-wave { border-top: 4px solid var(--wave); }
.card-ocean { border-top: 4px solid var(--ocean); }
.card-sand { border-top: 4px solid var(--sand); }
.card.empty { text-align: center; padding: 32px 16px; }
.empty-ic { display: inline-flex; width: 64px; height: 64px; border-radius: var(--r); background: linear-gradient(135deg, var(--sky), var(--wave-light)); color: var(--ocean); align-items: center; justify-content: center; margin-bottom: 8px; }
.empty-ic .ic { width: 32px; height: 32px; }
.empty-line { color: var(--muted); margin: 8px 0; }
.searchbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px 14px; margin-bottom: 16px; box-shadow: var(--shadow-xs); color: var(--muted); }
.searchbar input { border: 0; flex: 1; min-width: 0; font: inherit; min-height: var(--tap); background: transparent; }
.searchbar input:focus { outline: none; }
.searchbar:focus-within { border-color: var(--wave); box-shadow: 0 0 0 3px rgba(0,168,232,.16); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 16px; min-height: 132px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.tile-ic { display: inline-flex; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--sky), var(--wave-light)); color: var(--ocean); align-items: center; justify-content: center; }
.tile-ic .ic { width: 28px; height: 28px; }
.tile-title { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tile-sub { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.tile-boat { grid-column: span 2; background: linear-gradient(135deg, #fff, var(--sky)); }
.tile-warn .tile-ic { background: var(--warn-bg); color: var(--warn); }
.tile-sm { min-height: 0; }
.install-hint { text-align: center; margin-top: 20px; }

/* Buttons, Formulare */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 10px 20px; border-radius: var(--r-sm);
  border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.3;
  transition: background .2s cubic-bezier(.4,0,.2,1), box-shadow .2s, transform .2s, border-color .2s; }
.btn[hidden] { display: none; }   /* sonst hebt display:inline-flex das hidden-Attribut auf (25.09.2026) */
.btn:hover { background: var(--bg); color: var(--ink); border-color: var(--ocean-light); }
.btn-primary { background: var(--ocean); border-color: var(--ocean); color: #fff; }
.btn-primary:hover { background: var(--ocean-mid); border-color: var(--ocean-mid); color: #fff; box-shadow: 0 4px 12px rgba(0,43,92,.3); transform: translateY(-1px); }
.btn-accent { background: var(--wave); border-color: var(--wave); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 4px 12px rgba(0,168,232,.35); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--ocean); }
.btn-danger { background: var(--bad-line); border-color: var(--bad-line); color: #fff; }
.btn-danger:hover { background: #c0392b; border-color: #c0392b; color: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.form .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
label { font-weight: 600; font-size: .92rem; }
/* Feldbeschriftungen in Marineblau wie in der bisherigen App – Ankreuzfelder bleiben im Fliesstext */
.field > label, .form-label { color: var(--ocean); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 11px 14px; min-height: var(--tap); width: 100%;
  transition: border-color .2s, box-shadow .2s; }
input:hover:not(:focus), select:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--ocean-light); }
textarea { resize: vertical; }
input[readonly] { background: var(--bg); color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--wave); outline: none; box-shadow: 0 0 0 3px rgba(0,168,232,.16); }
.hint { color: var(--muted); font-weight: 400; font-size: .82rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; min-height: var(--tap); padding: 8px 0; cursor: pointer; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; flex: none; accent-color: var(--primary); }
.check-row { border-bottom: 1px solid var(--line); }
.check-row.critical span:first-of-type { font-weight: 600; }
.check small.hint { display: block; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.grid2, .grid4 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.subform { background: #f7f9fc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 8px 0 16px; }
.inline { display: inline-flex; gap: 6px; align-items: center; }
.form-inline { margin-top: 10px; }
.danger-zone { border-color: #f4c3be; }
.hp-field { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.auth { max-width: 520px; margin: 8px auto; }
.links { margin-top: 14px; text-align: center; }
.logout-form { margin: 8px 0 24px; }

/* Seitenköpfe, Tabs, Listen */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head h1 { margin-bottom: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -2px 8px; scrollbar-width: thin; }
.tabs a { flex: none; padding: 10px 14px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: .9rem; transition: background .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ocean-light); background: var(--sky); color: var(--ocean); }
.chip.active { background: var(--ocean); color: #fff; border-color: var(--ocean); }
.chip.active:hover { background: var(--ocean-mid); color: #fff; border-color: var(--ocean-mid); }
.chip-check { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0 6px 6px 0; min-height: 40px; font-weight: 500; cursor: pointer; background: #fff; }
.chip-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--primary); }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item.unread { background: var(--sky); border-radius: var(--r-sm); padding-left: 8px; padding-right: 8px; }
.li-ic { color: var(--primary); display: inline-flex; padding-top: 2px; }
.li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.li-actions { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.li-actions form { margin: 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: 4px 0; }
.pill { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-top: 2px; }
.pill-good { background: var(--good-bg); color: var(--good); }
.pill-warn { background: var(--warn-bg); color: var(--warn); }
.pill-bad { background: var(--bad-bg); color: var(--bad); }
.pill-muted { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
/* Profil: Kundenkonto im geöffneten Hafen (29.09.2026) */
.kundenkonto { display: flex; gap: 16px; align-items: center; margin: 4px 0 12px; }
.kundenkonto .kv { flex: 1; }
.kundenkonto-bild { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sky); color: var(--ocean); border: 2px solid var(--line); }
.kundenkonto-bild svg { width: 34px; height: 34px; }
.kundenkonto-aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.kundenkonto-aktionen form { margin: 0; }
.kundenkonto-upload label { cursor: pointer; }
.kv { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--muted); font-size: .9rem; }
.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .cards { grid-template-columns: 1fr 1fr; } }
.boat-card, .channel-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); margin: 0; }
.boat-card:hover, .channel-card:hover { color: var(--ink); border-color: var(--primary); }
.boat-card-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.boat-thumb, .harbor-thumb { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.boat-thumb.ph, .harbor-thumb.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--info-bg); color: var(--primary); }
/* Aushang: Anhänge eines Eintrags (Bilder als Vorschau, PDFs als Knopf) */
.notice-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.notice-img img { display: block; width: 120px; height: 84px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.chev { color: var(--muted); }
.grid-overview { display: grid; gap: 0 16px; }
@media (min-width: 900px) { .grid-overview { grid-template-columns: 1fr 1fr; align-items: start; } }
.cover { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
/* Bootspass: Bereich „Beim Hafen“ (30.09.2026) */
.bh-card { margin-bottom: 16px; }
.bh-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.bh-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--line, #dfe6ee); border-radius: 10px; }
.bh-list li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.bh-list form { margin: 0; }
.notes { background: #f7f9fc; border-radius: 10px; padding: 10px; margin-top: 12px; }
.stats-line { font-weight: 600; }
.gallery { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; display: block; }
.gallery-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 6px; }
.gallery-strip { grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); grid-template-columns: none; overflow-x: auto; margin-bottom: 16px; }

/* Status / Ready-Score */
.status { font-weight: 700; }
.status-ready { color: var(--good); } .status-attention { color: var(--warn); } .status-not_ready { color: var(--bad); } .status-no_data { color: var(--muted); }
.ready-head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.ring { position: relative; width: 92px; height: 92px; flex: none; }
.ring svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #e6edf4; stroke-width: 3.6; }
.ring-fg { fill: none; stroke: var(--good); stroke-width: 3.6; stroke-linecap: round; }
.ready-attention .ring-fg { stroke: #d99a00; } .ready-not_ready .ring-fg { stroke: var(--bad); }
.ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; }
.findings { list-style: none; padding: 0; margin: 0 0 10px; }
.findings li { padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; background: #f7f9fc; }
.findings .sev { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; margin-right: 4px; }
.sev-critical { background: var(--bad-bg) !important; } .sev-critical .sev { color: var(--bad); }
.sev-major { background: #fdeee0 !important; } .sev-major .sev { color: #a4480c; }
.sev-warning { background: var(--warn-bg) !important; } .sev-warning .sev { color: var(--warn); }
.ok-line { color: var(--good); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.sections summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; color: var(--primary); font-weight: 600; }

/* QR */
.qr-card { text-align: center; }
.qr-box { display: inline-block; background: #fff; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.qr-box svg { width: min(280px, 72vw); height: auto; display: block; }
.qr-name { font-size: 1.1rem; margin-top: 10px; }

/* Hafenführer */
.filters details summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--primary); }
.searchrow { display: flex; gap: 8px; }
.searchrow input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .searchrow .btn span { display: none; } .hide-sm { display: none; } }
.feat-filter { margin: 4px 0 8px; }
/* Hafenführer-Liste gegliedert Land → Region (30.09.2026) */
.area-list h2, .area-sub { font-size: 1.1rem; margin: 18px 0 10px; }
.area-grid { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }   /* Handy: 2 Spalten */
.area-item { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; line-height: 1.25; margin: 0; text-decoration: none; color: inherit; height: 100%; }
.area-item:hover, .area-item:focus-visible { border-color: var(--primary); }
.area-item strong { color: var(--primary-dark); }
.crumbs { margin: 6px 0 4px; font-size: .95rem; }
.guide-bestand { margin: 2px 0 0; }
/* Routenplanung für Gäste: Vorstellung mit Anmelden/Registrieren (30.09.2026) */
.route-gast { max-width: 640px; }
.route-gast-ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--primary); color: #fff; }
.route-gast-ic .ic { width: 24px; height: 24px; }
.route-gast h2 { margin: 10px 0 4px; font-size: 1.2rem; }
.route-gast-liste { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 6px; }
.route-gast-liste li { display: flex; gap: 8px; align-items: flex-start; }
.route-gast-liste .ic { flex: 0 0 18px; width: 18px; height: 18px; color: var(--good); margin-top: 2px; }
.guide-bestand a { color: inherit; text-decoration: none; }
.guide-bestand a:hover strong, .guide-bestand a:focus-visible strong { text-decoration: underline; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0; }
.harbor-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 800px) { .harbor-list { grid-template-columns: 1fr 1fr; } }
.harbor-item { display: flex; align-items: center; gap: 8px; padding: 10px; margin: 0; }
.harbor-link { display: flex; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); align-items: center; }
.harbor-link:hover { color: var(--ink); }
.harbor-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.harbor-body .pill { margin-right: 4px; }
.fav { color: #9aa7b4; }
.fav.on { color: #d99a00; }
.fav.on .ic { fill: #f2b705; }
.feat-list { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.feat-list li { display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.feat-list .ic { color: var(--good); width: 18px; height: 18px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.eyebrow { color: var(--muted); font-weight: 600; font-size: .85rem; display: flex; align-items: center; gap: 6px; margin: 0; }

/* Stegfunk */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msgs { list-style: none; margin: 0; padding: 4px; display: flex; flex-direction: column; gap: 8px; min-height: 240px; max-height: 60vh; overflow-y: auto; background: #f7f9fc; border-radius: 12px; }
.msg { max-width: 86%; align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; }
.msg.own { align-self: flex-end; background: #e3f0fb; border-color: #c4dcf1; border-radius: 14px 14px 4px 14px; }
.msg-head { display: flex; gap: 8px; align-items: baseline; font-size: .8rem; color: var(--muted); }
.msg-head strong { color: var(--ink); font-size: .85rem; }
.msg-body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0 0; }
.msg.deleted .msg-body { font-style: italic; color: var(--muted); }
.msg-actions { display: flex; gap: 2px; justify-content: flex-end; }
.msg-actions button { min-height: 36px; min-width: 36px; font-size: .78rem; padding: 0 8px; border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.msg-actions button:hover { background: #eef2f6; color: var(--ink); }
.send { display: flex; gap: 8px; align-items: flex-end; }
.send textarea { flex: 1; min-height: 52px; }
.dlg { border: 0; border-radius: 16px; padding: 16px; max-width: 420px; width: calc(100% - 32px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.dlg::backdrop { background: rgba(15,34,51,.45); }

/* Druck-/Passansicht öffentlich */
.pass { max-width: 640px; margin: 0 auto; }
.prose p { white-space: normal; }

/* App-Inhalte (Rechtstexte, 14.10.2026): Zwischenüberschriften und Aufzählungen */
.prose h2 { font-size: 1.05rem; margin: 1.4em 0 .4em; }
.prose ul { margin: .3em 0 .9em; padding-left: 1.3em; }
.prose li { margin: .2em 0; }

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

/* Barrierearmut (Prüfung 22.09.2026): Kontrast Zähler ≥ 4,5:1, alle Touch-Ziele ≥ 44 px */
.btn-sm, .chip, .chip-check { min-height: 44px; }
.li-body > a { min-height: 44px; display: inline-flex; align-items: center; }

/* Aktions-Kacheln („Was möchten Sie tun?“) – Start und Mein Hafen */
.sec-title { margin: 20px 0 10px; font-size: 1.05rem; }
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
@media (min-width: 700px) { .acts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 104px; padding: 10px 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; text-align: center;
  font-weight: 600; font-size: .8rem; line-height: 1.2; box-shadow: var(--shadow); }
.act:hover { color: var(--ink); border-color: var(--primary); }
.act-ic { display: inline-flex; width: 38px; height: 38px; border-radius: 11px; background: var(--info-bg); color: var(--primary); align-items: center; justify-content: center; }
.act-ic .ic { width: 22px; height: 22px; }
.act-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.act-on:hover { color: #fff; }
.act-on .act-ic { background: rgba(255,255,255,.18); color: #fff; }

/* Übersichtskarten der Startseite */
.hello { margin: 10px 0 12px; }
.panel { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-xs); transition: box-shadow .2s, border-color .2s; }
.panel:hover { color: var(--ink); border-color: var(--ocean-light); box-shadow: var(--shadow-md); }
.panel-head { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; }
.panel-ic { display: inline-flex; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--sky), var(--wave-light)); color: var(--ocean); align-items: center; justify-content: center; }
.panel-title { flex: 1; min-width: 0; }
.panel .chev { color: var(--muted); display: inline-flex; }
.panel-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-top: 12px; }
.fact { display: flex; flex-direction: column; gap: 2px; background: var(--sky); border-radius: 12px; padding: 8px 10px; }
.fact small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.fact strong { font-size: .98rem; line-height: 1.25; overflow-wrap: anywhere; }
.fact.is-warn { background: var(--warn-bg); }
.fact.is-warn strong { color: var(--warn); }
.center { text-align: center; }
.poi-thumb { width: 80px; height: 60px; border-radius: 10px; object-fit: cover; flex: none; }

/* Kategorie-Kopf (Mein Hafen, Stegfunk, Bootspass, Häfen) */
.cat-head { margin: 10px 0 14px; }
.cat-head h1 { margin: 2px 0 4px; }
.cat-head .eyebrow { color: var(--wave); font-weight: 700; letter-spacing: .6px; text-transform: uppercase; font-size: .78rem; }
.cat-head .eyebrow .ic { width: 18px; height: 18px; }
.sec-h { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.sec-h .ic { width: 20px; height: 20px; color: var(--wave); }
.mt8 { margin-top: 8px; }

/* ── Startseite im Stil der bisherigen Kunden-App ───────────────────────── */
/* Willkommensbereich als blaue Karte – Maße aus frontend-kundenAPP/assets/css/app-neu.css (.hero im Design „Neu“) */
.hero { background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 50%, #004a8f 100%); color: #fff; text-align: center;
  padding: 48px 20px 40px; margin: 6px 0 24px; position: relative; overflow: hidden; border-radius: 24px;
  box-shadow: 0 10px 30px rgba(7, 58, 102, .18); }
.hero::before { content: ""; position: absolute; inset: 0; background-size: 60px 60px;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q15 10 30 30 Q45 50 60 30' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='2'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; max-width: 780px; margin: 0 auto; }
.hero-title { font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -1.2px; line-height: 1.12; margin: 0 0 16px; color: #fff; }
.hero-title span { color: var(--wave); }
.hero-sub { font-size: 1.05rem; opacity: .85; max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; }
.hero-stat-item { text-align: center; min-width: 90px; }
.hero-stat-num { font-size: 1.7rem; font-weight: 800; color: var(--wave); letter-spacing: -.5px; }
.hero-stat-label { font-size: .72rem; opacity: .7; text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }
@media (max-width: 767px) {
  .hero { margin: 2px -4px 20px; border-radius: 20px; padding: 32px 16px 28px; }
  .hero-title { font-size: 1.9rem; letter-spacing: -.8px; }
  .hero-sub { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { margin-bottom: 28px; }
  .hero-actions .btn { width: 100%; }
}
.btn-wave { background: #00a3d9; border-color: #00a3d9; color: #fff; }
.btn-wave:hover { background: #0090ca; border-color: #0090ca; color: #fff; }
.btn-outline-light { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }

.section { padding: 26px 0 8px; }
/* Sandstreifen über die volle Breite ohne 50vw – 50vw zählt unter Windows die Bildlaufleiste mit
   und schob die Seite 8 px seitlich. Schatten + clip-path erzeugen keinen Überlauf. */
.section-alt { background: var(--sand-light); margin: 24px 0 0; padding: 30px 0 24px;
  box-shadow: 0 0 0 100vmax var(--sand-light); clip-path: inset(0 -100vmax); }
.sec-intro { text-align: center; max-width: 620px; margin: 0 auto 22px; }
.section-eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--wave); margin: 0 0 6px; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--ocean); letter-spacing: -.5px; margin: 0 0 8px; }
.section-sub { color: var(--muted); line-height: 1.7; margin: 0; }
.service-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px 24px; text-align: center;
  position: relative; overflow: hidden; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.service-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #00a3d9, #0a6fb0); }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(15,34,51,.12); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--primary); margin: 0 0 8px; text-transform: none; }
.service-card p { font-size: .9rem; color: var(--muted); line-height: 1.65; margin: 0 0 18px; }
.service-icon { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #e8f3fb, #cfe8f7); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.service-icon .ic { width: 30px; height: 30px; }
.contact-cards { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.contact-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 20px 24px; min-width: 200px; text-align: center; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.contact-card strong { color: var(--primary); overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); font-size: .78rem; }
.contact-ic { display: inline-flex; width: 44px; height: 44px; border-radius: 14px; background: var(--info-bg); color: var(--primary);
  align-items: center; justify-content: center; margin-bottom: 4px; }

/* Übersicht „Meine Häfen“ (Multi-Hafen) */
.harbor-cards { display: grid; gap: 12px; margin-bottom: 8px; }
@media (min-width: 700px) { .harbor-cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
.harbor-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.harbor-card:hover { color: var(--ink); border-color: var(--primary); }
.harbor-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(11,79,138,.12), var(--shadow); }
.hc-head { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; flex-wrap: wrap; }
.hc-head .ic { color: var(--primary); }
.hc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 10px 0 8px; }
.hc-go { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); font-weight: 600; font-size: .9rem; min-height: 32px; }

/* Kontaktkarten: Symbol links, Angabe rechts – ruhiger als eine Liste */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; justify-content: stretch; }
.contact-card { flex-direction: row; align-items: center; gap: 12px; text-align: left; min-width: 0; padding: 14px 16px; }
.contact-card .contact-ic { margin-bottom: 0; flex: none; }
.contact-card strong { display: block; font-size: .98rem; line-height: 1.3; }
.contact-card small { display: block; }
.cc-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cc-text strong { overflow-wrap: anywhere; }

/* Hafenführer: Kennzeichen, Preis und Passung in den Trefferzeilen */
.harbor-tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 0; }
.price-tag { font-weight: 700; color: var(--primary-dark); font-size: .88rem; }
.harbor-match { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; margin-left: auto; padding-left: 8px; }
.harbor-match .match-bar { width: 72px; }
.harbor-actions { margin-top: 4px; }
@media (max-width: 520px) { .harbor-match { display: none; } .harbor-body .match-badge { display: inline-flex; } }

/* Hafen vorschlagen: „Weitere Angaben (falls bekannt)“ aufklappbar, Hinweis für Betreiber */
.sug-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: var(--tap); }
.sug-more > summary::-webkit-details-marker { display: none; }
.sug-more > summary h2 { margin: 0; }
.sug-more > summary::after { content: "▾"; color: var(--ocean); font-size: 1.1rem; transition: transform .15s; }
.sug-more[open] > summary::after { transform: rotate(180deg); }
.sug-more[open] > summary { margin-bottom: 10px; }
.sug-cat { margin: 10px 0 4px; font-size: .8rem; }
.sug-operator { margin-top: 18px; }

/* Liegeplätze anfragen aus dem Törn (27.09.2026) */
.br-night legend { float: left; width: 100%; margin-bottom: 2px; }
.br-night legend + * { clear: both; }
.br-opts { list-style: none; margin: 6px 0 0; padding: 0; }
.br-opt { border-top: 1px solid var(--line); }
.br-opt:first-child { border-top: 0; }
.br-other { padding: 10px 0 10px 32px; }
.br-other .btn { margin-top: 6px; }
.br-stay { max-width: 220px; margin-top: 8px; }
/* Törn-Karte: „Liegeplätze anfragen“ als eigene Zeile unter dem Törn (sonst wird die schmale Karte zu eng) */
.harbor-item:has(.trip-req) { flex-wrap: wrap; }
.harbor-item .trip-req { order: 3; width: 100%; justify-content: center; }
/* Stegfunk moderieren (27.09.2026): Sperren aufklappbar unter der Nachricht, Hausregeln im Kanal */
.mod-msgs .li-body > span:last-of-type { overflow-wrap: anywhere; }
.mod-ban { margin-top: 6px; }
.mod-ban summary { cursor: pointer; color: var(--danger, #b3261e); }
.mod-ban .form { margin-top: 6px; }
.house-rules { margin: 10px 0; }
details.house-rules summary { cursor: pointer; font-weight: 600; }

/* Quellen & Lizenzen (16.10.2026, pages/_quellen.php) */
.src-list { display: grid; gap: 10px; margin: .4em 0 1.2em; }
.src-item { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 10px 14px; }
.src-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.src-lic { font-size: .82rem; font-weight: 600; color: var(--muted, #5b6b7c); white-space: nowrap; }
.src-item p { margin: .25em 0 0; }
.src-attr { font-style: italic; }
.src-aerial { columns: 2 320px; column-gap: 28px; }
.src-aerial li { break-inside: avoid; margin-bottom: 4px; }
.src-text { margin-top: 6px; }
.src-text summary { cursor: pointer; color: var(--primary, #0b4f8a); }
.src-text pre { white-space: pre-wrap; font-size: 11.5px; line-height: 1.45; max-height: 320px; overflow: auto; background: rgba(127,127,127,.08);
  border-radius: 8px; padding: 10px 12px; margin: 6px 0 0; }
