/*
 * 6Flaschen WeinApp
 * Datei: /assets/sylt-dark.css
 * Version: 8.1.16
 * Stand: 2026-08-05 Europe/Berlin
 *
 * Globaler Footer und optionaler „Sylt Dark Mode“.
 * Die bestehende /assets/style.css bleibt die Light-Mode-Basis.
 */

/* -------------------------------------------------------
   Footer – Light und Dark
------------------------------------------------------- */
.app-footer {
  width: 100%;
  margin-top: 34px;
  padding: 20px 0 calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line, rgba(49, 69, 85, 0.14));
  color: var(--muted, #7e8790);
  font-size: 12px;
  line-height: 1.4;
}

.app-footer-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.app-footer-version {
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.theme-toggle {
  appearance: none;
  min-height: 38px;
  padding: 6px 8px 6px 11px;
  border: 1px solid var(--line, rgba(49, 69, 85, 0.14));
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.66);
  color: var(--slate, #314555);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  border-color: rgba(184, 154, 103, 0.48);
  background: rgba(255, 252, 247, 0.92);
}

.theme-toggle:active {
  transform: translateY(1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(184, 154, 103, 0.28);
  outline-offset: 2px;
}

.theme-toggle-icon {
  width: 15px;
  text-align: center;
  color: var(--gold, #b89a67);
  font-size: 14px;
  line-height: 1;
}

.theme-toggle-track {
  width: 29px;
  height: 17px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(49, 69, 85, 0.16);
  display: inline-flex;
  align-items: center;
  transition: background-color 180ms ease;
}

.theme-toggle-track > span {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 1px 4px rgba(36, 49, 59, 0.22);
  transform: translateX(0);
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track {
  background: #708e8b;
}

.theme-toggle[aria-pressed="true"] .theme-toggle-track > span {
  transform: translateX(12px);
}

.wine-recommendation-budget-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted, #7e8790);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 260px;
}

/* -------------------------------------------------------
   Sylt Dark – Variablen
------------------------------------------------------- */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10181c;
  --bg-soft: #151f24;
  --card: rgba(28, 39, 44, 0.94);
  --card-solid: #1c272c;
  --text: #f1eee7;
  --muted: #b9b6ae;
  --line: rgba(224, 215, 198, 0.13);
  --sand: #d3c4aa;
  --stone: #a9977d;
  --gold: #c4a36a;
  --slate: #d7ddd9;
  --slate-soft: #91a4a5;
  --danger: #df8d82;
  --success: #8fb39a;
  --warning: #d5b36f;
  --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.24);
  background: #10181c;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.edit-modern {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 12% -5%, rgba(112, 142, 139, 0.17), transparent 32%),
    radial-gradient(circle at 92% 12%, rgba(196, 163, 106, 0.10), transparent 28%),
    linear-gradient(150deg, #10181c 0%, #121c21 48%, #182329 100%) !important;
  background-attachment: fixed !important;
}

html[data-theme="dark"] ::selection {
  color: #11181c;
  background: #d0b37e;
}

/* Flächen, Karten und Layout */
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .message-box,
html[data-theme="dark"] .archive-card,
html[data-theme="dark"] .detail-section,
html[data-theme="dark"] .wine-recommendation-panel,
html[data-theme="dark"] .wine-recommendation-card,
html[data-theme="dark"] .wine-recommendation-group,
html[data-theme="dark"] .wine-recommendation-source,
html[data-theme="dark"] .wine-recommendation-search-bar-shell,
html[data-theme="dark"] .wine-recommendation-result,
html[data-theme="dark"] .wine-recommendation-summary,
html[data-theme="dark"] .wine-recommendation-progress,
html[data-theme="dark"] .ai-analysis-status,
html[data-theme="dark"] body.edit-modern fieldset,
html[data-theme="dark"] body.edit-modern details,
html[data-theme="dark"] body.edit-modern .section,
html[data-theme="dark"] body.edit-modern .card,
html[data-theme="dark"] body.edit-modern .box,
html[data-theme="dark"] body.edit-modern .form-section,
html[data-theme="dark"] body.edit-modern .panel {
  color: var(--text) !important;
  background: linear-gradient(155deg, rgba(31, 43, 48, 0.97), rgba(24, 34, 39, 0.96)) !important;
  border-color: rgba(224, 215, 198, 0.10) !important;
  box-shadow: var(--shadow-card) !important;
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .page-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(112, 142, 139, 0.22), transparent 35%),
    radial-gradient(circle at 16% 4%, rgba(196, 163, 106, 0.12), transparent 28%),
    linear-gradient(145deg, #1c282d, #131d22) !important;
  border: 1px solid rgba(224, 215, 198, 0.09);
  box-shadow: var(--shadow-soft) !important;
}

html[data-theme="dark"] .brand-mark {
  background: rgba(29, 41, 46, 0.90);
  border-color: rgba(196, 163, 106, 0.42);
}

html[data-theme="dark"] .brand-glass,
html[data-theme="dark"] .brand-glass::after {
  border-color: #d7ddd9;
  background-color: #d7ddd9;
}

html[data-theme="dark"] .brand-glass {
  background-color: transparent;
}

/* Typografie */
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .card-title,
html[data-theme="dark"] .archive-title,
html[data-theme="dark"] .detail-value,
html[data-theme="dark"] .message-title,
html[data-theme="dark"] .wine-recommendation-title,
html[data-theme="dark"] .wine-recommendation-product-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong {
  color: var(--text) !important;
}

html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] .card-text,
html[data-theme="dark"] .archive-meta,
html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .message-text,
html[data-theme="dark"] .wine-recommendation-note,
html[data-theme="dark"] .wine-recommendation-meta,
html[data-theme="dark"] .wine-recommendation-copy,
html[data-theme="dark"] .wine-recommendation-budget-hint,
html[data-theme="dark"] small {
  color: var(--muted) !important;
}

html[data-theme="dark"] a {
  color: inherit;
}

/* Formulare: helle Eingabeflaechen im Dark Mode. Button-, Auswahl- und
   Schaltertypen werden bewusst nicht in diese Regel einbezogen. */
html[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] body.edit-modern input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.edit-modern select,
html[data-theme="dark"] body.edit-modern textarea {
  color: #24313b !important;
  -webkit-text-fill-color: #24313b !important;
  background: #fffdf8 !important;
  border-color: rgba(196, 163, 106, 0.48) !important;
  box-shadow: inset 0 1px 2px rgba(36, 49, 59, 0.05), 0 1px 0 rgba(255,255,255,0.55) !important;
  color-scheme: light;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #7e8790 !important;
  -webkit-text-fill-color: #7e8790 !important;
  opacity: 1;
}

html[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] body.edit-modern input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):focus,
html[data-theme="dark"] body.edit-modern select:focus,
html[data-theme="dark"] body.edit-modern textarea:focus {
  outline-color: rgba(196, 163, 106, 0.32) !important;
  border-color: rgba(196, 163, 106, 0.68) !important;
}

html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus {
  -webkit-text-fill-color: #24313b;
  -webkit-box-shadow: 0 0 0 1000px #fffdf8 inset !important;
  caret-color: #24313b;
}

html[data-theme="dark"] option {
  color: #24313b;
  background: #fffdf8;
}

html[data-theme="dark"] .field label,
html[data-theme="dark"] .form-section summary,
html[data-theme="dark"] body.edit-modern label,
html[data-theme="dark"] body.edit-modern legend {
  color: #d8d8d1 !important;
}

html[data-theme="dark"] .upload-card {
  background: rgba(12, 20, 24, 0.46) !important;
  border-color: rgba(196, 163, 106, 0.24) !important;
}

html[data-theme="dark"] input[type="file"],
html[data-theme="dark"] body.edit-modern input[type="file"] {
  color: #24313b !important;
  -webkit-text-fill-color: #24313b !important;
  background: #fffdf8 !important;
  border-color: rgba(196, 163, 106, 0.48) !important;
  color-scheme: light;
}

/* Buttons und Chips */
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .filter-chip.active,
html[data-theme="dark"] .wine-recommendation-search {
  color: #10181c !important;
  background: linear-gradient(135deg, #d0b37e, #b99458) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .wine-recommendation-search:hover {
  background: linear-gradient(135deg, #dbc28f, #c3a065) !important;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .filter-chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .theme-toggle {
  color: var(--text) !important;
  background: rgba(31, 44, 49, 0.90) !important;
  border-color: rgba(224, 215, 198, 0.13) !important;
}

html[data-theme="dark"] .btn-danger {
  color: #efaaa1 !important;
  background: rgba(138, 61, 54, 0.18) !important;
  border-color: rgba(223, 141, 130, 0.28) !important;
}

html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(41, 56, 61, 0.98) !important;
  border-color: rgba(196, 163, 106, 0.48) !important;
}

html[data-theme="dark"] .theme-toggle-track {
  background: rgba(224, 215, 198, 0.16);
}

html[data-theme="dark"] .theme-toggle-track > span {
  background: #f1eee7;
}

/* Navigation, Tabellen und Archiv */
html[data-theme="dark"] .sticky-actions {
  background: rgba(15, 23, 27, 0.91) !important;
  border-color: rgba(224, 215, 198, 0.10) !important;
}

html[data-theme="dark"] .archive-thumb,
html[data-theme="dark"] .detail-image,
html[data-theme="dark"] .image-preview {
  background: rgba(6, 12, 15, 0.48) !important;
}

html[data-theme="dark"] table,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  color: var(--text) !important;
  border-color: rgba(224, 215, 198, 0.11) !important;
}

html[data-theme="dark"] th {
  background: rgba(112, 142, 139, 0.10) !important;
}

html[data-theme="dark"] tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.018);
}

/* Status- und Fortschrittsflächen */
html[data-theme="dark"] .ai-analysis-status.is-loading,
html[data-theme="dark"] .wine-recommendation-note.is-warning {
  color: #dfc183 !important;
  background: rgba(196, 163, 106, 0.10) !important;
  border-color: rgba(196, 163, 106, 0.26) !important;
}

html[data-theme="dark"] .ai-analysis-status.is-success,
html[data-theme="dark"] .is-success {
  color: #a7c6ae !important;
  background: rgba(112, 142, 139, 0.13) !important;
  border-color: rgba(143, 179, 154, 0.24) !important;
}

html[data-theme="dark"] .ai-analysis-status.is-error,
html[data-theme="dark"] .is-error {
  color: #efaaa1 !important;
  background: rgba(138, 61, 54, 0.16) !important;
  border-color: rgba(223, 141, 130, 0.23) !important;
}

html[data-theme="dark"] .wine-recommendation-progress-track,
html[data-theme="dark"] progress {
  background: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .wine-recommendation-progress-track > span,
html[data-theme="dark"] progress::-webkit-progress-value {
  background: linear-gradient(90deg, #708e8b, #c4a36a) !important;
}

/* Empfehlung: Rollen dezent differenzieren */
html[data-theme="dark"] [data-recommendation-group="safe"],
html[data-theme="dark"] .wine-recommendation-group--safe {
  border-left-color: #c4a36a !important;
}

html[data-theme="dark"] [data-recommendation-group="discovery"],
html[data-theme="dark"] .wine-recommendation-group--discovery {
  border-left-color: #708e8b !important;
}

html[data-theme="dark"] [data-recommendation-group="surprise"],
html[data-theme="dark"] .wine-recommendation-group--surprise {
  border-left-color: #9f6f72 !important;
}

/* Footer Dark */
html[data-theme="dark"] .app-footer {
  border-top-color: rgba(196, 163, 106, 0.20);
  color: #aaa9a3;
}

html[data-theme="dark"] .app-footer-version {
  color: #aaa9a3;
}

@media (max-width: 560px) {
  .app-footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-toggle {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .theme-toggle-track,
  .theme-toggle-track > span {
    transition: none !important;
  }
}


/* -------------------------------------------------------
   v7.9.10 – Footer-Menueleiste Desktop und Mobil
------------------------------------------------------- */
.app-footer-menu {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line, rgba(49, 69, 85, 0.14));
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.74);
  box-shadow: 0 10px 28px rgba(36, 49, 59, 0.07);
  backdrop-filter: blur(18px);
}

.app-footer-menu-link {
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate, #314555);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-footer-menu-link:hover,
.app-footer-menu-link.is-active {
  color: #fff;
  background: var(--slate, #314555);
}

.app-footer-menu-link:active { transform: translateY(1px); }
.app-footer-menu-link:focus-visible {
  outline: 3px solid rgba(184, 154, 103, 0.28);
  outline-offset: 2px;
}

.app-footer-menu-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  position: relative;
  display: inline-block;
}
.app-footer-menu-icon::before,
.app-footer-menu-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}
.app-footer-menu-icon-home::before { inset: 5px 3px 2px; border: 2px solid currentColor; border-top: 0; border-radius: 2px; }
.app-footer-menu-icon-home::after { width: 12px; height: 12px; left: 3px; top: 1px; border-left: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
.app-footer-menu-icon-plus::before { width: 16px; height: 2px; left: 1px; top: 8px; background: currentColor; border-radius: 2px; }
.app-footer-menu-icon-plus::after { width: 2px; height: 16px; left: 8px; top: 1px; background: currentColor; border-radius: 2px; }
.app-footer-menu-icon-archive::before { inset: 4px 2px 1px; border: 2px solid currentColor; border-radius: 3px; }
.app-footer-menu-icon-archive::after { width: 14px; height: 4px; left: 2px; top: 1px; border: 2px solid currentColor; border-radius: 2px; }
.app-footer-menu-icon-bottles::before { width: 6px; height: 15px; left: 2px; top: 2px; border: 2px solid currentColor; border-radius: 2px 2px 3px 3px; box-shadow: 8px 0 0 -2px transparent, 8px 0 0 0 currentColor; }
.app-footer-menu-icon-bottles::after { width: 2px; height: 4px; left: 4px; top: 0; background: currentColor; box-shadow: 8px 0 0 currentColor; }
.app-footer-menu-icon-profile::before { width: 7px; height: 7px; left: 5px; top: 1px; border: 2px solid currentColor; border-radius: 50%; }
.app-footer-menu-icon-profile::after { width: 16px; height: 8px; left: 1px; bottom: 0; border: 2px solid currentColor; border-bottom: 0; border-radius: 10px 10px 0 0; }

html[data-theme="dark"] .app-footer-menu {
  background: rgba(25, 36, 41, 0.92);
  border-color: rgba(196, 163, 106, 0.22);
  box-shadow: 0 15px 34px rgba(0,0,0,0.24);
}
html[data-theme="dark"] .app-footer-menu-link { color: #e7e2d8; }
html[data-theme="dark"] .app-footer-menu-link:hover,
html[data-theme="dark"] .app-footer-menu-link.is-active {
  color: #10181c;
  background: linear-gradient(135deg, #d0b37e, #b99458);
}

/* Premium-Logo: reale Header-Grafik statt alter Icon-Klasse */
html[data-theme="dark"] .brand-logo-link {
  padding: 9px 14px;
  border: 1px solid rgba(196, 163, 106, 0.38);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,253,248,0.98), rgba(239,232,217,0.94));
  box-shadow: 0 14px 34px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.9);
}
html[data-theme="dark"] .brand-logo-full-img {
  filter: drop-shadow(0 7px 12px rgba(36,49,59,0.14));
}

/* Lesekontrast ausserhalb der hellen Eingabefelder */
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] dt,
html[data-theme="dark"] dd,
html[data-theme="dark"] .detail-value,
html[data-theme="dark"] .wine-recommendation-facts,
html[data-theme="dark"] .wine-recommendation-facts dd {
  color: #e7e3db;
}
html[data-theme="dark"] .field label,
html[data-theme="dark"] label,
html[data-theme="dark"] legend,
html[data-theme="dark"] .form-section summary {
  color: #f0ece4 !important;
}

@media (max-width: 760px) {
  .app-footer { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .app-footer-menu { gap: 4px; padding: 6px; border-radius: 18px; }
  .app-footer-menu-link {
    min-height: 58px;
    padding: 7px 3px;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    line-height: 1.1;
    white-space: nowrap;
  }
  .app-footer-menu-icon { width: 17px; height: 17px; }
  .app-footer-meta { align-items: center; flex-direction: row; }
  html[data-theme="dark"] .brand-logo-link { padding: 7px 10px; border-radius: 15px; }
}

@media (max-width: 390px) {
  .app-footer-menu-link { font-size: 9px; }
  .app-footer-version { white-space: normal; }
}


/* -------------------------------------------------------
   v7.9.10 Revision – globaler Premium-Header und sichere Footer-Ebenen
------------------------------------------------------- */
.global-brand-header,
.app-header.global-brand-header {
  width: 100%;
  min-height: 72px;
  margin: 0 0 18px;
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 40;
}

.brand-logo-link {
  width: fit-content;
  max-width: min(62vw, 230px);
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  border-radius: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.brand-logo-link:hover { transform: translateY(-1px); }
.brand-logo-link:focus-visible {
  outline: 3px solid rgba(184, 154, 103, 0.30);
  outline-offset: 3px;
}
.brand-logo-full-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  display: block;
}
.global-brand-header .header-actions,
.global-brand-header [data-header-actions] {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

html[data-theme="dark"] .brand-logo-link {
  padding: 8px 13px;
  border: 1px solid rgba(196, 163, 106, 0.38);
  background: linear-gradient(145deg, rgba(255,253,248,0.99), rgba(238,230,214,0.96));
  box-shadow: 0 16px 38px rgba(0,0,0,0.30), inset 0 1px 0 rgba(255,255,255,0.92);
}
html[data-theme="dark"] .brand-logo-full-img {
  filter: drop-shadow(0 6px 10px rgba(36,49,59,0.13));
}

.app-footer {
  position: relative;
  z-index: 1600;
  isolation: isolate;
}
.app-footer-menu,
.app-footer-meta {
  position: relative;
  z-index: 1610;
}
.app-footer-meta {
  pointer-events: auto;
}
.theme-toggle {
  position: relative;
  z-index: 1640;
  pointer-events: auto !important;
  touch-action: manipulation;
}
body.has-sticky-actions .app-footer {
  padding-bottom: calc(var(--weinapp-sticky-actions-height, 88px) + 28px + env(safe-area-inset-bottom));
}
body.has-sticky-actions .app-footer-meta {
  margin-bottom: 6px;
}

@media (max-width: 760px) {
  .global-brand-header,
  .app-header.global-brand-header {
    min-height: 62px;
    margin-bottom: 12px;
    gap: 10px;
  }
  .brand-logo-link { max-width: min(58vw, 190px); }
  .brand-logo-full-img { max-width: 188px; }
  .global-brand-header .header-actions,
  .global-brand-header [data-header-actions] {
    max-width: 42%;
    gap: 6px;
  }
  .app-footer-meta {
    order: -1;
    margin-bottom: 12px;
  }
  .app-footer {
    display: flex;
    flex-direction: column;
  }
  body.has-sticky-actions .app-footer {
    padding-bottom: calc(var(--weinapp-sticky-actions-height, 88px) + 34px + env(safe-area-inset-bottom));
  }
}

/* v7.9.10 Revision 2 – Footer bleibt über festen Formularleisten erreichbar. */
.app-footer { z-index: 5000; }
.app-footer-menu,
.app-footer-meta { z-index: 5010; }

/* Bereits vorhandene Startseiten-Wortmarke in denselben Premium-Header integrieren. */
.global-brand-header [data-global-brand-logo="existing"],
.global-brand-header .brand img,
.global-brand-header .logo img {
  display: block;
  max-width: 210px;
  width: auto;
  height: auto;
}
html[data-theme="dark"] .global-brand-header [data-global-brand-logo="existing"] {
  filter: drop-shadow(0 6px 10px rgba(36,49,59,0.14));
}


/* v7.9.10 Revision 4 – unauffälliger Theme-Schalter im Header */
.global-brand-header .theme-toggle--header {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--muted, #7e8790);
  box-shadow: none;
  gap: 0;
  flex: 0 0 34px;
}
.global-brand-header .theme-toggle--header:hover {
  border-color: var(--line, rgba(49, 69, 85, 0.14));
  background: rgba(49, 69, 85, 0.055);
  color: var(--slate, #314555);
}
.global-brand-header .theme-toggle--header .theme-toggle-icon {
  width: auto;
  font-size: 16px;
  color: currentColor;
}
.global-brand-header .theme-toggle--header .theme-toggle-label,
.global-brand-header .theme-toggle--header .theme-toggle-track {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
html[data-theme="dark"] .global-brand-header .theme-toggle--header {
  border-color: transparent;
  background: transparent;
  color: #b9c1c7;
}
html[data-theme="dark"] .global-brand-header .theme-toggle--header:hover {
  border-color: rgba(231, 226, 216, 0.18);
  background: rgba(255, 255, 255, 0.055);
  color: #fffdf8;
}
@media (max-width: 760px) {
  .global-brand-header .theme-toggle--header {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    flex-basis: 32px;
  }
}


/* v8.0.1: paralleler KI-Direktmodus */
.wine-recommendation-submit-slot--dual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}
.wine-recommendation-search--ai-direct {
  border: 1px solid rgba(32, 67, 84, 0.22);
  background: rgba(255, 255, 255, 0.70);
}
.wine-recommendation-engine-hint {
  grid-column: 1 / -1;
  color: var(--muted, #65727a);
  line-height: 1.45;
}
html[data-theme="dark"] .wine-recommendation-search--ai-direct {
  color: var(--text) !important;
  background: rgba(31, 44, 49, 0.90) !important;
  border-color: rgba(224, 215, 198, 0.13) !important;
  box-shadow: none !important;
}
@media (max-width: 720px) {
  .wine-recommendation-submit-slot--dual {
    grid-template-columns: 1fr;
  }
}


/* v8.0.3: kompakter Recherche-Status mit geschlossenem Akkordeon */
.wine-recommendation-status {
  display: grid;
  gap: 0.55rem;
}

.wine-recommendation-status-brief {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
}

.wine-recommendation-status-brief.is-loading { color: var(--text, #263238); }
.wine-recommendation-status-brief.is-success { color: #24633f; }
.wine-recommendation-status-brief.is-error { color: #9b2f2f; }

.wine-recommendation-progress-details {
  margin: 0;
  border: 0;
  background: transparent;
}

.wine-recommendation-progress-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.2rem 0;
  color: var(--text-muted, #6f777b);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.wine-recommendation-progress-toggle::-webkit-details-marker { display: none; }
.wine-recommendation-progress-toggle::after {
  content: "⌄";
  font-size: 1rem;
  transition: transform 160ms ease;
}
.wine-recommendation-progress-details[open] .wine-recommendation-progress-toggle::after {
  transform: rotate(180deg);
}

.wine-recommendation-progress-body {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(38, 50, 56, 0.12);
}

html[data-theme="dark"] .wine-recommendation-status-brief.is-loading { color: #f1eee7; }
html[data-theme="dark"] .wine-recommendation-status-brief.is-success { color: #9fd1ad; }
html[data-theme="dark"] .wine-recommendation-status-brief.is-error { color: #efaaa3; }
html[data-theme="dark"] .wine-recommendation-progress-toggle { color: #b9b6ae; }
html[data-theme="dark"] .wine-recommendation-progress-body { border-top-color: rgba(255,255,255,0.10); }

/* -------------------------------------------------------
   v8.0.4 – Weinempfehlung nach Premium-Vorlage
------------------------------------------------------- */
.coastal-recommendation-page .wine-recommendation-page-hero {
  padding: 30px 34px;
  border-radius: 28px;
  border: 1px solid rgba(190, 160, 105, 0.18);
  background: rgba(255, 253, 249, 0.78);
  box-shadow: none;
}

.coastal-recommendation-page .wine-recommendation-page-hero .page-title {
  margin-bottom: 10px;
  color: #243947;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.coastal-recommendation-page .wine-recommendation-page-hero .page-subtitle {
  max-width: 880px;
  margin: 0;
  color: #697379;
  font-size: 0.98rem;
  line-height: 1.65;
}

.coastal-recommendation-page .wine-recommendation-panel {
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(54, 66, 74, 0.09);
  background: rgba(255, 254, 251, 0.92);
  box-shadow: 0 18px 52px rgba(58, 47, 30, 0.07);
}

.coastal-recommendation-page .wine-recommendation-search-bar-shell {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.coastal-recommendation-page .wine-recommendation-controls--one-look {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) minmax(220px, 0.95fr) minmax(240px, 0.9fr) minmax(250px, 0.95fr);
  gap: 28px;
  align-items: end;
}

.coastal-recommendation-page .wine-recommendation-field > span {
  display: block;
  margin-bottom: 10px;
  color: #6d675b;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coastal-recommendation-page .wine-recommendation-field select {
  width: 100%;
  min-height: 72px;
  padding: 0 52px 0 18px;
  border: 1px solid rgba(184, 154, 103, 0.25);
  border-radius: 16px;
  background-color: #fffdf9;
  color: #263d4b;
  font-size: 1.16rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.coastal-recommendation-page .wine-recommendation-submit-slot {
  display: flex;
  align-items: stretch;
}

.coastal-recommendation-page .wine-recommendation-search {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #c79a35, #d6ad52);
  color: #fff;
  font-size: 1.04rem;
  font-weight: 850;
  box-shadow: 0 12px 26px rgba(190, 143, 45, 0.20);
}

.coastal-recommendation-page .wine-recommendation-search:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #bb8b27, #d0a243);
}

.coastal-recommendation-page .wine-recommendation-status-card {
  min-height: 108px;
  padding: 18px 20px;
  border: 1px solid rgba(70, 120, 89, 0.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(241, 248, 242, 0.98), rgba(247, 249, 244, 0.94));
  display: flex;
  align-items: center;
}

.coastal-recommendation-page .wine-recommendation-status {
  width: 100%;
  gap: 8px;
}

.coastal-recommendation-page .wine-recommendation-status-brief {
  position: relative;
  padding-left: 32px;
  color: #1f6a42;
  font-size: 0.94rem;
}

.coastal-recommendation-page .wine-recommendation-status-brief.is-success::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #2f7d50;
  color: #fff;
  font-size: 0.85rem;
}

.coastal-recommendation-page .wine-recommendation-progress-toggle {
  width: 100%;
  justify-content: space-between;
  color: #737b7e;
  font-size: 0.88rem;
}

.coastal-recommendation-page .wine-recommendation-form-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(54, 66, 74, 0.09);
}

.coastal-recommendation-page .wine-recommendation-disclaimer {
  margin: 0;
  color: #697379;
  font-size: 0.88rem;
}

.coastal-recommendation-page .wine-recommendation-disclaimer > span {
  margin-right: 7px;
  color: #bd8d2d;
}

.coastal-recommendation-page .wine-recommendation-result-head {
  margin-top: 38px;
  gap: 24px;
}

.coastal-recommendation-page .wine-recommendation-result-copy h2 {
  color: #243947;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.coastal-recommendation-page .wine-recommendation-package-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.coastal-recommendation-page .wine-recommendation-package-meta > * {
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(184, 154, 103, 0.20);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.84);
  display: inline-flex;
  align-items: center;
  color: #4a555d;
  font-size: 0.88rem;
  box-shadow: 0 5px 18px rgba(54, 45, 30, 0.04);
}

/* Theme-Schalter direkt vor „Start“ in der oberen Navigation */
.global-brand-header nav .theme-toggle--nav,
.global-brand-header .header-actions .theme-toggle--nav,
.global-brand-header [data-header-actions] .theme-toggle--nav {
  order: -100;
  margin-right: 2px;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-status-card {
  border-color: rgba(143, 179, 154, 0.28) !important;
  background: linear-gradient(145deg, rgba(31, 55, 45, 0.96), rgba(27, 45, 39, 0.96)) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field select {
  background: #fffdf9 !important;
  color: #263d4b !important;
  border-color: rgba(196, 163, 106, 0.35) !important;
}

@media (max-width: 1100px) {
  .coastal-recommendation-page .wine-recommendation-controls--one-look {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 680px) {
  .coastal-recommendation-page .wine-recommendation-page-hero,
  .coastal-recommendation-page .wine-recommendation-panel {
    padding: 18px;
    border-radius: 22px;
  }
  .coastal-recommendation-page .wine-recommendation-controls--one-look {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .coastal-recommendation-page .wine-recommendation-field select,
  .coastal-recommendation-page .wine-recommendation-search {
    min-height: 60px;
  }
  .coastal-recommendation-page .wine-recommendation-status-card {
    min-height: 88px;
  }
}
.coastal-recommendation-page .wine-recommendation-status-card:has(.wine-recommendation-status[hidden]) {
  display: none;
}


/* v8.0.5 – kompakter Ergebnis-Kopf nach Designvorlage */
.coastal-recommendation-page .wine-recommendation-result-head--compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-top: 42px;
  padding: 0 2px 28px;
  border-bottom: 1px solid rgba(56, 68, 76, 0.10);
}

.coastal-recommendation-page .wine-recommendation-result-kicker {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 8px;
}

.coastal-recommendation-page .wine-recommendation-result-kicker .eyebrow {
  flex: 0 0 auto;
  color: #9a6e20;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coastal-recommendation-page .wine-recommendation-result-kicker p {
  margin: 0;
  color: #768087;
  font-size: 0.78rem;
  line-height: 1.45;
}

.coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
  margin: 0;
  color: #243947;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.coastal-recommendation-page .wine-recommendation-package-meta--compact {
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-self: end;
  padding-bottom: 2px;
}

.coastal-recommendation-page .wine-recommendation-package-meta--compact > * {
  min-height: 54px;
  padding: 0 22px;
  font-size: 0.98rem;
  white-space: nowrap;
}

.coastal-recommendation-page .wine-recommendation-results-outer {
  margin-top: 28px;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-head--compact {
  border-bottom-color: rgba(255,255,255,.09);
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
  color: #f1eee7;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-kicker p {
  color: #b9b6ae;
}

@media (max-width: 860px) {
  .coastal-recommendation-page .wine-recommendation-result-head--compact {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }
  .coastal-recommendation-page .wine-recommendation-package-meta--compact {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .coastal-recommendation-page .wine-recommendation-result-head--compact {
    margin-top: 30px;
    padding-bottom: 22px;
  }
  .coastal-recommendation-page .wine-recommendation-result-kicker {
    display: block;
  }
  .coastal-recommendation-page .wine-recommendation-result-kicker p {
    margin-top: 8px;
  }
  .coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }
  .coastal-recommendation-page .wine-recommendation-package-meta--compact {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .coastal-recommendation-page .wine-recommendation-package-meta--compact > * {
    min-width: 0;
    justify-content: center;
    padding: 0 12px;
    font-size: 0.88rem;
  }
}

/* -------------------------------------------------------
   v8.0.5 Revision – Sylt Classic Cool Dark
   Vollstaendig zusammenhaengendes dunkles Farbkonzept fuer
   /weinempfehlung.php. Ueberschreibt die frueheren hellen
   Formular- und Kartenflaechen im Dark Mode.
------------------------------------------------------- */
html[data-theme="dark"] {
  --sylt-night: #0b1519;
  --sylt-deep: #101d22;
  --sylt-slate: #16272d;
  --sylt-surface: #1a2d33;
  --sylt-surface-raised: #20353b;
  --sylt-input: #132329;
  --sylt-line: rgba(214, 202, 180, 0.14);
  --sylt-line-strong: rgba(202, 165, 106, 0.34);
  --sylt-ivory: #f3efe7;
  --sylt-copy: #d8d8d1;
  --sylt-muted: #a8b2b0;
  --sylt-gold: #caa56a;
  --sylt-gold-light: #dcc08d;
  --sylt-green: #77a88f;
  --sylt-green-deep: #17362e;
  --sylt-red: #d6948b;
}

html[data-theme="dark"] body.wine-recommendation-page,
html[data-theme="dark"] body.coastal-recommendation-page {
  background:
    radial-gradient(circle at 7% 0%, rgba(93, 127, 126, 0.18), transparent 29%),
    radial-gradient(circle at 91% 5%, rgba(202, 165, 106, 0.09), transparent 25%),
    linear-gradient(155deg, var(--sylt-night) 0%, #0f1c21 48%, #14252b 100%) !important;
  color: var(--sylt-copy) !important;
}

/* Navigation und Logo */
html[data-theme="dark"] .global-brand-header,
html[data-theme="dark"] .app-header.global-brand-header {
  border-bottom-color: rgba(214, 202, 180, 0.08) !important;
}

html[data-theme="dark"] .brand-logo-link {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .brand-logo-full-img {
  filter: brightness(1.16) saturate(0.88) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28)) !important;
}

html[data-theme="dark"] .global-brand-header nav a,
html[data-theme="dark"] .global-brand-header .app-nav a,
html[data-theme="dark"] .global-brand-header .header-actions a {
  color: #b7c1bf !important;
}

html[data-theme="dark"] .global-brand-header nav a:hover,
html[data-theme="dark"] .global-brand-header nav a.is-active,
html[data-theme="dark"] .global-brand-header .app-nav a:hover,
html[data-theme="dark"] .global-brand-header .app-nav a.is-active {
  color: var(--sylt-ivory) !important;
}

html[data-theme="dark"] .global-brand-header nav a.is-active,
html[data-theme="dark"] .global-brand-header .app-nav a.is-active {
  background: rgba(202, 165, 106, 0.13) !important;
  border-color: rgba(202, 165, 106, 0.22) !important;
}

html[data-theme="dark"] .theme-toggle--nav {
  color: var(--sylt-gold-light) !important;
  background: rgba(24, 43, 49, 0.82) !important;
  border-color: rgba(202, 165, 106, 0.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 8px 20px rgba(0,0,0,.18) !important;
}

html[data-theme="dark"] .theme-toggle--nav:hover {
  color: var(--sylt-ivory) !important;
  background: rgba(32, 56, 63, 0.96) !important;
  border-color: rgba(202, 165, 106, 0.46) !important;
}

/* Hero */
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-page-hero,
html[data-theme="dark"] .coastal-recommendation-page .page-hero.wine-recommendation-page-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(107, 145, 141, 0.13), transparent 34%),
    linear-gradient(145deg, rgba(26, 45, 51, 0.98), rgba(17, 31, 36, 0.99)) !important;
  border-color: var(--sylt-line) !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.27), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-page-hero .eyebrow,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-kicker .eyebrow {
  color: var(--sylt-gold-light) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-page-hero .page-title,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
  color: var(--sylt-ivory) !important;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-page-hero .page-subtitle,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-kicker p {
  color: var(--sylt-muted) !important;
}

/* Suchpanel und Controls */
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-panel {
  background:
    linear-gradient(155deg, rgba(23, 40, 46, 0.98), rgba(17, 31, 36, 0.99)) !important;
  border-color: var(--sylt-line) !important;
  box-shadow: 0 22px 58px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-search-bar-shell,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-controls--one-look {
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field > span {
  color: #c8c6bd !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field select,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field input,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field textarea {
  color: var(--sylt-ivory) !important;
  -webkit-text-fill-color: var(--sylt-ivory) !important;
  background: linear-gradient(145deg, #16282e, #122228) !important;
  border-color: rgba(214, 202, 180, 0.17) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 20px rgba(0,0,0,.15) !important;
  color-scheme: dark !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field select:hover,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field input:hover,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field textarea:hover {
  border-color: rgba(202, 165, 106, 0.34) !important;
  background: linear-gradient(145deg, #1a2e35, #14252b) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field select:focus,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field input:focus,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field textarea:focus {
  border-color: rgba(220, 192, 141, 0.72) !important;
  outline: 3px solid rgba(202, 165, 106, 0.15) !important;
  outline-offset: 1px;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-field option {
  color: var(--sylt-ivory) !important;
  background: var(--sylt-slate) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-search {
  color: #142126 !important;
  background: linear-gradient(135deg, #d3b172, #b98c42) !important;
  border: 1px solid rgba(236, 210, 162, 0.18) !important;
  box-shadow: 0 14px 30px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.22) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-search:hover {
  color: #0f1c21 !important;
  background: linear-gradient(135deg, #dfc58f, #c79d58) !important;
  box-shadow: 0 17px 36px rgba(0,0,0,.30), inset 0 1px 0 rgba(255,255,255,.28) !important;
}

/* Status */
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-status-card {
  background: linear-gradient(145deg, rgba(25, 58, 48, 0.96), rgba(19, 45, 38, 0.98)) !important;
  border-color: rgba(119, 168, 143, 0.27) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 12px 26px rgba(0,0,0,.20) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-status-brief,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-status-brief.is-success {
  color: #b9ddc9 !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-status-brief.is-error {
  color: #f0b4ac !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-progress-toggle {
  color: #c3ccc8 !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-progress-body {
  color: var(--sylt-copy) !important;
  border-top-color: rgba(214,202,180,.12) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-form-foot {
  border-top-color: rgba(214,202,180,.10) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-disclaimer {
  color: var(--sylt-muted) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-disclaimer > span {
  color: var(--sylt-gold-light) !important;
}

/* Ergebnis-Kopf und Kennzahlen */
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-result-head--compact {
  border-bottom-color: rgba(214,202,180,.11) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-package-meta > *,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-package-meta--compact > * {
  color: #dce1dd !important;
  background: linear-gradient(145deg, rgba(28, 48, 55, 0.94), rgba(20, 36, 42, 0.96)) !important;
  border-color: rgba(214,202,180,.15) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 8px 22px rgba(0,0,0,.18) !important;
}

/* Empfehlungskarten */
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-results-outer,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-group,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-card {
  color: var(--sylt-copy) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-group {
  background: linear-gradient(155deg, rgba(25, 43, 49, 0.98), rgba(18, 32, 37, 0.99)) !important;
  border-color: var(--sylt-line) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,.23), inset 0 1px 0 rgba(255,255,255,.02) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-group-header,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-card-topline {
  background: rgba(202, 165, 106, 0.055) !important;
  border-color: rgba(214,202,180,.09) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-card {
  background: linear-gradient(155deg, rgba(29, 49, 56, 0.97), rgba(21, 37, 43, 0.98)) !important;
  border-color: rgba(214,202,180,.11) !important;
  box-shadow: 0 14px 32px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.02) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-card:hover {
  border-color: rgba(202,165,106,.28) !important;
  background: linear-gradient(155deg, rgba(32, 54, 61, 0.99), rgba(23, 41, 47, 0.99)) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-product-title,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-group h3,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-card h3 {
  color: var(--sylt-ivory) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-summary,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-keyfacts,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-reason,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-style,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-facts,
html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-facts dd {
  color: #cbd1ce !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-price {
  color: var(--sylt-gold-light) !important;
  background: rgba(202,165,106,.08) !important;
  border-color: rgba(202,165,106,.18) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-product-link {
  color: #132329 !important;
  background: linear-gradient(135deg, #d4b374, #bd934d) !important;
  border-color: rgba(236,210,162,.18) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-product-link:hover {
  background: linear-gradient(135deg, #dfc58f, #c9a05b) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-details {
  background: rgba(10, 23, 28, 0.30) !important;
  border-color: rgba(214,202,180,.09) !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-details summary {
  color: #d8d5cc !important;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-note {
  color: var(--sylt-muted) !important;
  background: rgba(202,165,106,.055) !important;
  border-color: rgba(202,165,106,.14) !important;
}

/* Keine hellen Autofill-/Browserflaechen auf dieser Seite */
html[data-theme="dark"] .coastal-recommendation-page input:-webkit-autofill,
html[data-theme="dark"] .coastal-recommendation-page input:-webkit-autofill:hover,
html[data-theme="dark"] .coastal-recommendation-page input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--sylt-ivory) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--sylt-input) inset !important;
  caret-color: var(--sylt-ivory) !important;
}

@media (max-width: 680px) {
  html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-page-hero,
  html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-panel,
  html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-group {
    box-shadow: 0 14px 34px rgba(0,0,0,.22) !important;
  }
}

/* -------------------------------------------------------
   v8.0.6 – Layoutkorrektur Hero und Ergebnis-Kopf
------------------------------------------------------- */
.coastal-recommendation-page .wine-recommendation-page-hero-copy {
  width: min(100%, 980px);
  margin: 0 auto;
  text-align: center;
}

.coastal-recommendation-page .wine-recommendation-page-hero .eyebrow {
  display: block;
  margin: 0 0 10px;
  text-align: center;
}

.coastal-recommendation-page .wine-recommendation-page-hero .page-title {
  max-width: 980px;
  margin: 0 auto 14px;
  text-align: center;
  line-height: 1.04;
}

.coastal-recommendation-page .wine-recommendation-page-hero .page-subtitle {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.coastal-recommendation-page .wine-recommendation-result-head--compact {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.coastal-recommendation-page .wine-recommendation-result-copy {
  min-width: 0;
}

.coastal-recommendation-page .wine-recommendation-result-kicker {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 14px;
}

.coastal-recommendation-page .wine-recommendation-result-kicker p {
  min-width: 0;
  font-size: 0.86rem;
}

.coastal-recommendation-page .wine-recommendation-title-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  min-width: 0;
}

.coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
  flex: 0 1 auto;
  white-space: nowrap;
  font-size: clamp(2.5rem, 4.25vw, 3.7rem);
  line-height: 1.02;
}

.coastal-recommendation-page .wine-recommendation-merchant-badge {
  flex: 0 1 auto;
  max-width: min(320px, 32vw);
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(184, 154, 103, 0.24);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.86);
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  color: #976918;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 5px 18px rgba(54, 45, 30, 0.04);
}

.coastal-recommendation-page .wine-recommendation-package-meta--compact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

html[data-theme="dark"] .coastal-recommendation-page .wine-recommendation-merchant-badge {
  border-color: rgba(203, 172, 109, 0.28);
  background: rgba(31, 45, 50, 0.92);
  color: #d4b46f;
}

@media (max-width: 980px) {
  .coastal-recommendation-page .wine-recommendation-result-head--compact {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .coastal-recommendation-page .wine-recommendation-package-meta--compact {
    justify-content: flex-start;
  }
  .coastal-recommendation-page .wine-recommendation-merchant-badge {
    max-width: 360px;
  }
}

@media (max-width: 680px) {
  .coastal-recommendation-page .wine-recommendation-result-kicker {
    display: block;
  }
  .coastal-recommendation-page .wine-recommendation-result-kicker p {
    margin-top: 8px;
  }
  .coastal-recommendation-page .wine-recommendation-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .coastal-recommendation-page .wine-recommendation-result-head--compact .wine-recommendation-result-copy h2 {
    white-space: normal;
    font-size: clamp(2.25rem, 12vw, 3.1rem);
  }
  .coastal-recommendation-page .wine-recommendation-merchant-badge {
    max-width: 100%;
  }
}


/* === v8.1.0 Sylt Classic Cool redesign === */
:root {
  --weinapp-navy-900: #091722;
  --weinapp-navy-850: #0c2030;
  --weinapp-navy-800: #102638;
  --weinapp-navy-760: #143246;
  --weinapp-sea-600: #1c5465;
  --weinapp-sea-500: #2a6a7a;
  --weinapp-gold-400: #b78e46;
  --weinapp-gold-500: #c7a467;
  --weinapp-gold-600: #d5b57f;
  --weinapp-cream-50: #fbf7ef;
  --weinapp-cream-100: #f2ebdf;
  --weinapp-mist-300: #bec9cf;
  --weinapp-line-light: rgba(225, 214, 190, 0.16);
}

.app-footer-version {
  font-size: 12px;
  letter-spacing: 0.06em;
}

.coastal-mobile-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}

.coastal-mobile-brand img {
  display: block;
  width: auto;
  height: 34px;
  object-fit: contain;
}

.coastal-mobile-icon-placeholder {
  display: inline-block;
  width: 44px;
  height: 44px;
}

html.coastal-ui .coastal-desktop-navigation-item,
html.coastal-ui .coastal-guest-navigation .btn,
.app-footer-menu-link {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

html.coastal-ui .coastal-desktop-navigation-item:hover,
html.coastal-ui .coastal-desktop-navigation-item.is-active {
  background: rgba(183, 142, 70, 0.12);
  color: #6d5121;
}

.app-footer-menu {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-footer-menu-icon-scan::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.app-footer-menu-icon-scan::after {
  width: 8px;
  height: 8px;
  left: 5px;
  top: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.scan-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.scan-placeholder-card {
  grid-column: span 4;
  padding: 24px;
}

.scan-placeholder-card--hero,
.scan-placeholder-card--cta {
  grid-column: span 6;
}

.scan-placeholder-icon {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(145deg, rgba(202, 164, 103, 0.20), rgba(42, 106, 122, 0.12));
  color: var(--gold, #b89a67);
}

.scan-placeholder-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scan-placeholder-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.scan-placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.scan-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.8;
}

.scan-placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--weinapp-navy-900);
  --bg-soft: #10202a;
  --card: rgba(14, 31, 43, 0.92);
  --card-solid: #102533;
  --text: #f4efe6;
  --muted: #c0c7cb;
  --line: rgba(225, 214, 190, 0.14);
  --sand: #dbc39a;
  --stone: #8f7e62;
  --gold: var(--weinapp-gold-500);
  --slate: #f3ecdf;
  --slate-soft: #94a9b0;
  --danger: #d58174;
  --success: #3f946f;
  --warning: #d7a95e;
  --shadow-soft: 0 26px 64px rgba(0, 0, 0, 0.34);
  --shadow-card: 0 16px 42px rgba(0, 0, 0, 0.26);
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.edit-modern {
  background:
    radial-gradient(circle at 16% 0%, rgba(38, 92, 108, 0.34), transparent 28%),
    radial-gradient(circle at 100% 6%, rgba(199, 164, 103, 0.12), transparent 22%),
    linear-gradient(165deg, #07141f 0%, #0b1d2a 42%, #112736 100%) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] .global-brand-header,
html[data-theme="dark"] .coastal-navigation-header {
  margin-bottom: 18px;
}

html[data-theme="dark"] .coastal-desktop-navigation-shell,
html[data-theme="dark"] .coastal-mobile-navigation {
  background: linear-gradient(180deg, rgba(15, 33, 46, 0.88), rgba(10, 25, 36, 0.78));
  border: 1px solid rgba(214, 193, 153, 0.15);
  box-shadow: 0 20px 44px rgba(0,0,0,0.28);
  backdrop-filter: blur(16px);
}

html[data-theme="dark"] .coastal-desktop-navigation-shell {
  min-height: 72px;
  padding: 12px 18px;
  border-radius: 28px;
}

html[data-theme="dark"] .coastal-mobile-navigation {
  padding: 8px 10px;
  border-radius: 22px;
}

html[data-theme="dark"] .coastal-desktop-brand.brand-logo-link,
html[data-theme="dark"] .coastal-mobile-brand {
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.25));
}

html[data-theme="dark"] .coastal-desktop-navigation-item {
  color: #d8d7d0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

html[data-theme="dark"] .coastal-desktop-navigation-item:hover,
html[data-theme="dark"] .coastal-desktop-navigation-item.is-active {
  color: #111b23;
  background: linear-gradient(135deg, #d9b571, #bf9452);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 10px 22px rgba(0,0,0,0.20);
}

html[data-theme="dark"] .coastal-account-action,
html[data-theme="dark"] .coastal-mobile-icon-button {
  border-color: rgba(214, 193, 153, 0.18);
  background: rgba(255,255,255,0.06);
  color: #efe6d5;
}

html[data-theme="dark"] .coastal-account-action:hover,
html[data-theme="dark"] .coastal-mobile-icon-button:hover {
  background: rgba(255,255,255,0.11);
}

html[data-theme="dark"] .coastal-home-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(225,214,190,0.14);
  box-shadow: var(--shadow-soft);
}

html[data-theme="dark"] .coastal-home-hero-overlay {
  background: linear-gradient(180deg, rgba(8,22,31,0.18) 0%, rgba(8,22,31,0.42) 60%, rgba(8,22,31,0.76) 100%);
}

html[data-theme="dark"] .coastal-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,24,33,0.72) 0%, rgba(11,24,33,0.34) 38%, rgba(11,24,33,0.0) 70%),
    radial-gradient(circle at 80% 20%, rgba(233, 190, 112, 0.10), transparent 22%);
  pointer-events: none;
}

html[data-theme="dark"] .coastal-home-hero-content {
  position: relative;
  z-index: 2;
}

html[data-theme="dark"] .coastal-home-greeting {
  color: #e0d6c0;
}

html[data-theme="dark"] .coastal-home-hero h1,
html[data-theme="dark"] .coastal-home-intro {
  color: #f6efe4;
}

html[data-theme="dark"] .coastal-home-list,
html[data-theme="dark"] .coastal-home-row,
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .profile-panel,
html[data-theme="dark"] .archive-card,
html[data-theme="dark"] .detail-section,
html[data-theme="dark"] .message-box,
html[data-theme="dark"] .wine-recommendation-panel,
html[data-theme="dark"] .wine-recommendation-result,
html[data-theme="dark"] .wine-recommendation-card,
html[data-theme="dark"] .wine-recommendation-group,
html[data-theme="dark"] .wine-recommendation-search-bar-shell,
html[data-theme="dark"] .tasting-result-panel,
html[data-theme="dark"] .tasting-result-wine-card,
html[data-theme="dark"] .scan-placeholder-card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] body.edit-modern fieldset,
html[data-theme="dark"] body.edit-modern .section,
html[data-theme="dark"] body.edit-modern .card,
html[data-theme="dark"] body.edit-modern .panel {
  background: linear-gradient(180deg, rgba(14, 31, 43, 0.94), rgba(11, 24, 34, 0.92)) !important;
  border: 1px solid rgba(225,214,190,0.12) !important;
  box-shadow: var(--shadow-card) !important;
}

html[data-theme="dark"] .coastal-home-row {
  padding: 18px 18px;
}

html[data-theme="dark"] .coastal-home-row + .coastal-home-row {
  border-top: 1px solid rgba(225,214,190,0.10);
}

html[data-theme="dark"] .coastal-home-row-icon {
  background: linear-gradient(145deg, rgba(199,164,103,0.18), rgba(42,106,122,0.18));
  border: 1px solid rgba(199,164,103,0.18);
  color: #e9d9bc;
}

html[data-theme="dark"] .coastal-home-row.is-highlighted {
  background: linear-gradient(145deg, rgba(187, 143, 69, 0.90), rgba(144, 104, 39, 0.92)) !important;
  border-color: rgba(230, 210, 173, 0.16) !important;
}

html[data-theme="dark"] .coastal-home-row.is-highlighted .coastal-home-row-icon {
  background: rgba(255,255,255,0.12);
  color: #fff7ea;
  border-color: rgba(255,255,255,0.18);
}

html[data-theme="dark"] .coastal-home-row-copy small,
html[data-theme="dark"] .coastal-home-row-copy span,
html[data-theme="dark"] .coastal-home-row-copy strong,
html[data-theme="dark"] .coastal-chevron,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] strong {
  color: #f6efe4 !important;
}

html[data-theme="dark"] .page-subtitle,
html[data-theme="dark"] .hero-subtitle,
html[data-theme="dark"] p,
html[data-theme="dark"] li,
html[data-theme="dark"] dd,
html[data-theme="dark"] .detail-label,
html[data-theme="dark"] .archive-meta,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .wine-recommendation-note,
html[data-theme="dark"] .wine-recommendation-meta,
html[data-theme="dark"] .wine-recommendation-copy,
html[data-theme="dark"] .tasting-result-empty,
html[data-theme="dark"] small {
  color: #c8d0d4 !important;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .wine-recommendation-result-kicker,
html[data-theme="dark"] .wine-recommendation-role,
html[data-theme="dark"] .wine-recommendation-grid-label,
html[data-theme="dark"] label,
html[data-theme="dark"] legend,
html[data-theme="dark"] .field label,
html[data-theme="dark"] .form-section summary {
  color: #d9bb7b !important;
}

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-gold,
html[data-theme="dark"] .wine-recommendation-search,
html[data-theme="dark"] .capture-save-primary,
html[data-theme="dark"] .save-btn {
  background: linear-gradient(135deg, #d6b16f, #b7863d) !important;
  color: #111c25 !important;
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.22) !important;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .capture-save-secondary,
html[data-theme="dark"] .secondary-btn {
  background: rgba(255,255,255,0.04) !important;
  color: #ece4d5 !important;
  border: 1px solid rgba(225,214,190,0.14) !important;
}

html[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .input,
html[data-theme="dark"] .select,
html[data-theme="dark"] .textarea,
html[data-theme="dark"] body.edit-modern input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.edit-modern select,
html[data-theme="dark"] body.edit-modern textarea {
  background: rgba(243, 239, 231, 0.98) !important;
  color: #22313c !important;
  border-color: rgba(208, 190, 159, 0.65) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.82), 0 6px 16px rgba(0,0,0,0.08) !important;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #73808b !important;
}

html[data-theme="dark"] .wine-recommendation-status-card,
html[data-theme="dark"] .wine-recommendation-status,
html[data-theme="dark"] .wine-recommendation-status-brief.is-success {
  color: #d7f0df !important;
}

html[data-theme="dark"] .wine-recommendation-status {
  background: linear-gradient(145deg, rgba(45, 122, 91, 0.30), rgba(39, 94, 74, 0.18));
  border: 1px solid rgba(88, 167, 125, 0.26);
}

html[data-theme="dark"] .wine-recommendation-merchant-badge,
html[data-theme="dark"] .wine-recommendation-package-meta > span,
html[data-theme="dark"] .wine-recommendation-price,
html[data-theme="dark"] .wine-recommendation-product-link,
html[data-theme="dark"] .archive-chip,
html[data-theme="dark"] .pill,
html[data-theme="dark"] .chip {
  border-color: rgba(225,214,190,0.14) !important;
  background: rgba(255,255,255,0.04) !important;
  color: #efe7d7 !important;
}

html[data-theme="dark"] .app-footer {
  border-top-color: transparent;
}

html[data-theme="dark"] .app-footer-version {
  color: #99a8af;
}

html[data-theme="dark"] .app-footer-menu {
  background: linear-gradient(180deg, rgba(12, 31, 44, 0.94), rgba(8, 24, 35, 0.92));
  border-color: rgba(214, 193, 153, 0.18);
  box-shadow: 0 18px 44px rgba(0,0,0,0.34);
}

html[data-theme="dark"] .app-footer-menu-link {
  color: #d5ddd9;
}

html[data-theme="dark"] .app-footer-menu-link:hover,
html[data-theme="dark"] .app-footer-menu-link.is-active {
  color: #0f1a23;
  background: linear-gradient(135deg, #d8b675, #bf9350);
}

@media (min-width: 761px) {
  html[data-theme="dark"] .page-hero,
  html[data-theme="dark"] .scan-page-hero,
  html[data-theme="dark"] .wine-recommendation-page-hero {
    padding: 32px 34px;
    border-radius: 30px;
  }

  html[data-theme="dark"] body:not(.coastal-home-page) .page-hero {
    background:
      radial-gradient(circle at 100% 0%, rgba(199,164,103,0.08), transparent 20%),
      radial-gradient(circle at 0% 100%, rgba(42,106,122,0.12), transparent 20%),
      linear-gradient(180deg, rgba(15,32,45,0.94), rgba(10,24,34,0.94)) !important;
  }
}

@media (max-width: 760px) {
  .page { padding-bottom: 132px; }
  .app-footer {
    padding-top: 8px;
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .app-footer-menu {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto;
    z-index: 6000;
    gap: 2px;
    padding: 7px 5px;
    border-radius: 22px;
    backdrop-filter: blur(18px);
  }

  .app-footer-menu-link {
    min-height: 62px;
    padding: 8px 2px;
    font-size: 9px;
    gap: 4px;
  }

  .app-footer-menu-icon {
    width: 16px;
    height: 16px;
  }

  .app-footer-version {
    text-align: center;
    width: 100%;
  }

  html.coastal-ui .coastal-navigation-header {
    margin-bottom: 12px;
  }

  html.coastal-ui .coastal-mobile-navigation {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
    align-items: center;
  }

  html[data-theme="dark"] .coastal-mobile-navigation {
    min-height: 64px;
  }

  html[data-theme="dark"] .coastal-home-hero {
    min-height: 280px;
  }

  html[data-theme="dark"] .coastal-home-hero-content {
    padding-top: 92px;
  }

  html[data-theme="dark"] .coastal-home-mark {
    display: none;
  }

  html[data-theme="dark"] .coastal-home-hero h1 {
    font-size: clamp(46px, 12vw, 64px);
    line-height: 0.92;
  }

  .scan-placeholder-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scan-placeholder-card,
  .scan-placeholder-card--hero,
  .scan-placeholder-card--cta {
    grid-column: auto;
    padding: 20px;
  }
}

/* =======================================================
   v8.1.1 Hotfix – durchgehend dunkle Formular- und Inhaltsflaechen
   Betroffene Seiten:
   /neue-verkostung.php, /edit_verkostung.php, /verkostungen.php,
   /weinempfehlung.php und /weinprofil.php
======================================================= */

html[data-theme="dark"] body.coastal-capture-page,
html[data-theme="dark"] body.coastal-archive-page,
html[data-theme="dark"] body.coastal-recommendation-page,
html[data-theme="dark"] body.coastal-profile-page {
  --dark-field-bg: #102633;
  --dark-field-bg-hover: #14303f;
  --dark-field-bg-soft: rgba(19, 43, 56, 0.88);
  --dark-field-border: rgba(204, 188, 157, 0.20);
  --dark-field-border-strong: rgba(211, 177, 111, 0.62);
  --dark-field-text: #f4efe6;
  --dark-field-muted: #aebdc3;
  --dark-panel-bg: linear-gradient(155deg, rgba(17, 39, 52, 0.97), rgba(10, 27, 38, 0.97));
  --dark-panel-bg-raised: linear-gradient(155deg, rgba(22, 49, 63, 0.98), rgba(13, 33, 45, 0.98));
}

/* Gemeinsame dunkle Formulareingaben nur auf den betroffenen internen Seiten */
html[data-theme="dark"] body.coastal-capture-page input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.coastal-capture-page select,
html[data-theme="dark"] body.coastal-capture-page textarea,
html[data-theme="dark"] body.coastal-archive-page input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.coastal-archive-page select,
html[data-theme="dark"] body.coastal-archive-page textarea,
html[data-theme="dark"] body.coastal-recommendation-page input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.coastal-recommendation-page select,
html[data-theme="dark"] body.coastal-recommendation-page textarea,
html[data-theme="dark"] body.coastal-profile-page input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.coastal-profile-page select,
html[data-theme="dark"] body.coastal-profile-page textarea {
  color: var(--dark-field-text) !important;
  -webkit-text-fill-color: var(--dark-field-text) !important;
  caret-color: #e1bd78 !important;
  background: linear-gradient(145deg, #14303e, #0f2531) !important;
  border-color: var(--dark-field-border) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 8px 20px rgba(0,0,0,0.16) !important;
  color-scheme: dark !important;
}

html[data-theme="dark"] body.coastal-capture-page input::placeholder,
html[data-theme="dark"] body.coastal-capture-page textarea::placeholder,
html[data-theme="dark"] body.coastal-archive-page input::placeholder,
html[data-theme="dark"] body.coastal-archive-page textarea::placeholder,
html[data-theme="dark"] body.coastal-recommendation-page input::placeholder,
html[data-theme="dark"] body.coastal-recommendation-page textarea::placeholder,
html[data-theme="dark"] body.coastal-profile-page input::placeholder,
html[data-theme="dark"] body.coastal-profile-page textarea::placeholder {
  color: var(--dark-field-muted) !important;
  -webkit-text-fill-color: var(--dark-field-muted) !important;
  opacity: 1 !important;
}

html[data-theme="dark"] body.coastal-capture-page input:focus,
html[data-theme="dark"] body.coastal-capture-page select:focus,
html[data-theme="dark"] body.coastal-capture-page textarea:focus,
html[data-theme="dark"] body.coastal-archive-page input:focus,
html[data-theme="dark"] body.coastal-archive-page select:focus,
html[data-theme="dark"] body.coastal-archive-page textarea:focus,
html[data-theme="dark"] body.coastal-recommendation-page input:focus,
html[data-theme="dark"] body.coastal-recommendation-page select:focus,
html[data-theme="dark"] body.coastal-recommendation-page textarea:focus,
html[data-theme="dark"] body.coastal-profile-page input:focus,
html[data-theme="dark"] body.coastal-profile-page select:focus,
html[data-theme="dark"] body.coastal-profile-page textarea:focus {
  background: linear-gradient(145deg, #183848, #122b38) !important;
  border-color: var(--dark-field-border-strong) !important;
  outline: 3px solid rgba(211, 177, 111, 0.13) !important;
  outline-offset: 1px !important;
}

html[data-theme="dark"] body.coastal-capture-page option,
html[data-theme="dark"] body.coastal-archive-page option,
html[data-theme="dark"] body.coastal-recommendation-page option,
html[data-theme="dark"] body.coastal-profile-page option {
  color: var(--dark-field-text) !important;
  background: #102633 !important;
}

html[data-theme="dark"] body.coastal-capture-page input:-webkit-autofill,
html[data-theme="dark"] body.coastal-capture-page input:-webkit-autofill:hover,
html[data-theme="dark"] body.coastal-capture-page input:-webkit-autofill:focus,
html[data-theme="dark"] body.coastal-archive-page input:-webkit-autofill,
html[data-theme="dark"] body.coastal-archive-page input:-webkit-autofill:hover,
html[data-theme="dark"] body.coastal-archive-page input:-webkit-autofill:focus,
html[data-theme="dark"] body.coastal-recommendation-page input:-webkit-autofill,
html[data-theme="dark"] body.coastal-recommendation-page input:-webkit-autofill:hover,
html[data-theme="dark"] body.coastal-recommendation-page input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--dark-field-text) !important;
  -webkit-box-shadow: 0 0 0 1000px #102633 inset !important;
  caret-color: #e1bd78 !important;
}

/* Erfassen und Bearbeiten */
html[data-theme="dark"] body.coastal-capture-page .form-section,
html[data-theme="dark"] body.coastal-capture-page .form-section-content,
html[data-theme="dark"] body.coastal-capture-page .capture-mode-switch,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-editor,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-editor-content,
html[data-theme="dark"] body.coastal-capture-page .review-field-result,
html[data-theme="dark"] body.coastal-capture-page .capture-ui-check,
html[data-theme="dark"] body.coastal-capture-page .ai-analysis-field {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg) !important;
  border-color: var(--dark-field-border) !important;
  box-shadow: 0 15px 38px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

html[data-theme="dark"] body.coastal-capture-page .upload-card,
html[data-theme="dark"] body.coastal-capture-page .label-upload-tile,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-row,
html[data-theme="dark"] body.coastal-capture-page .capture-mode-button,
html[data-theme="dark"] body.coastal-capture-page .input-suffix,
html[data-theme="dark"] body.coastal-capture-page .calculated,
html[data-theme="dark"] body.coastal-capture-page .input-calculated {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg-raised) !important;
  border-color: var(--dark-field-border) !important;
}

html[data-theme="dark"] body.coastal-capture-page .label-upload-placeholder,
html[data-theme="dark"] body.coastal-capture-page .label-upload-caption,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-intro,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-pole,
html[data-theme="dark"] body.coastal-capture-page .capture-detailed-intro {
  color: #c2cdd1 !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-mode-button.is-active,
html[data-theme="dark"] body.coastal-capture-page .capture-mode-button[aria-selected="true"] {
  color: #111d26 !important;
  background: linear-gradient(135deg, #d6b16f, #b7863d) !important;
  border-color: rgba(225, 198, 145, 0.42) !important;
}

/* Archiv und Filter */
html[data-theme="dark"] body.coastal-archive-page .archive-filter-panel,
html[data-theme="dark"] body.coastal-archive-page .archive-filter-body,
html[data-theme="dark"] body.coastal-archive-page .archive-filter-line,
html[data-theme="dark"] body.coastal-archive-page .archive-list,
html[data-theme="dark"] body.coastal-archive-page .archive-card,
html[data-theme="dark"] body.coastal-archive-page .archive-summary,
html[data-theme="dark"] body.coastal-archive-page .filter-row,
html[data-theme="dark"] body.coastal-archive-page .pagination,
html[data-theme="dark"] body.coastal-archive-page .archive-actions {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg) !important;
  border-color: var(--dark-field-border) !important;
}

html[data-theme="dark"] body.coastal-archive-page .archive-card {
  box-shadow: 0 14px 34px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

html[data-theme="dark"] body.coastal-archive-page .filter-chip:not(.active),
html[data-theme="dark"] body.coastal-archive-page .archive-chip,
html[data-theme="dark"] body.coastal-archive-page .badge {
  color: #d9e0e1 !important;
  background: rgba(255,255,255,0.045) !important;
  border-color: var(--dark-field-border) !important;
}

html[data-theme="dark"] body.coastal-archive-page .archive-title,
html[data-theme="dark"] body.coastal-archive-page .card-title {
  color: #f5efe5 !important;
}

html[data-theme="dark"] body.coastal-archive-page .archive-meta,
html[data-theme="dark"] body.coastal-archive-page .card-text {
  color: #b7c4c9 !important;
}

/* Weinempfehlung */
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-page-hero,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-panel,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-search-bar-shell,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-controls,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-status-card,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-results-outer,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-result-head,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-group,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-card,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-source-card,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-details,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-style,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-facts {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg) !important;
  border-color: var(--dark-field-border) !important;
}

html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-card,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-source-card,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-details {
  background: var(--dark-panel-bg-raised) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,0.21), inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-field > span,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-result-kicker,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-role,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-grid-label {
  color: #d9bb7b !important;
}

html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-summary,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-keyfacts,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-reason,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-copy,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-facts dd,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-disclaimer {
  color: #c2cdd1 !important;
}

html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-package-meta > span,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-merchant-badge,
html[data-theme="dark"] body.coastal-recommendation-page .wine-recommendation-price {
  color: #efe7d8 !important;
  background: rgba(255,255,255,0.045) !important;
  border-color: var(--dark-field-border) !important;
}

/* Profil */
html[data-theme="dark"] body.coastal-profile-page .profile-panel,
html[data-theme="dark"] body.coastal-profile-page .profile-axis-overview,
html[data-theme="dark"] body.coastal-profile-page .profile-tendency-block,
html[data-theme="dark"] body.coastal-profile-page .profile-tendency-summary,
html[data-theme="dark"] body.coastal-profile-page .profile-axis-list,
html[data-theme="dark"] body.coastal-profile-page .profile-archetype-panel,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-panel,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-group,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-columns,
html[data-theme="dark"] body.coastal-profile-page .profile-insight-list {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg) !important;
  border-color: var(--dark-field-border) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-tendency-card,
html[data-theme="dark"] body.coastal-profile-page .profile-axis-row,
html[data-theme="dark"] body.coastal-profile-page .profile-axis-detail-panel,
html[data-theme="dark"] body.coastal-profile-page .profile-archetype-primary,
html[data-theme="dark"] body.coastal-profile-page .profile-archetype-chip,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-direction,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-item,
html[data-theme="dark"] body.coastal-profile-page .profile-insight-list li,
html[data-theme="dark"] body.coastal-profile-page .profile-balanced-summary {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg-raised) !important;
  border-color: var(--dark-field-border) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-direction.is-positive {
  background: linear-gradient(155deg, rgba(27, 69, 57, 0.58), rgba(14, 42, 39, 0.78)) !important;
  border-color: rgba(91, 159, 125, 0.25) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-direction.is-negative {
  background: linear-gradient(155deg, rgba(73, 43, 47, 0.58), rgba(43, 28, 34, 0.78)) !important;
  border-color: rgba(183, 105, 106, 0.22) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-scale {
  background: linear-gradient(90deg, rgba(80, 118, 132, 0.36), rgba(255,255,255,0.08), rgba(178, 137, 70, 0.34)) !important;
  border-color: rgba(225,214,190,0.13) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-center {
  background: rgba(240, 232, 217, 0.36) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-marker {
  background: #d7b16d !important;
  border-color: #f2dfba !important;
  box-shadow: 0 0 0 5px rgba(211,177,111,0.13), 0 5px 14px rgba(0,0,0,0.26) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-section-intro,
html[data-theme="dark"] body.coastal-profile-page .profile-data-line,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-meta,
html[data-theme="dark"] body.coastal-profile-page .profile-grape-cuvee-item > p,
html[data-theme="dark"] body.coastal-profile-page .profile-axis-detail-panel p,
html[data-theme="dark"] body.coastal-profile-page .profile-archetype-primary p {
  color: #bdc9cd !important;
}

/* Mobile: dunkle Felder kompakter und ohne helle Browser-Auto-Flächen */
@media (max-width: 760px) {
  html[data-theme="dark"] body.coastal-capture-page input,
  html[data-theme="dark"] body.coastal-capture-page select,
  html[data-theme="dark"] body.coastal-capture-page textarea,
  html[data-theme="dark"] body.coastal-archive-page input,
  html[data-theme="dark"] body.coastal-archive-page select,
  html[data-theme="dark"] body.coastal-recommendation-page input,
  html[data-theme="dark"] body.coastal-recommendation-page select,
  html[data-theme="dark"] body.coastal-profile-page input,
  html[data-theme="dark"] body.coastal-profile-page select {
    min-height: 52px;
  }
}


/* =======================================================
   v8.1.2 Hotfix – mobile Theme-Umschaltung, Startseitenbreite,
   Abmelde-Icon und vollstaendig dunkle Erfassungsflaechen
======================================================= */

.mobile-footer-theme-toggle {
  display: none;
}

@media (max-width: 760px) {
  .app-footer-meta {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .mobile-footer-theme-toggle {
    appearance: none;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid rgba(184, 154, 103, 0.30);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    background: rgba(255, 252, 247, 0.72);
    color: #8d6928;
    box-shadow: 0 8px 20px rgba(36, 49, 59, 0.10);
  }

  .mobile-footer-theme-toggle .theme-toggle-icon {
    width: auto;
    color: currentColor;
    font-size: 17px;
    line-height: 1;
  }

  .mobile-footer-theme-toggle .theme-toggle-label,
  .mobile-footer-theme-toggle .theme-toggle-track {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .global-brand-header .theme-toggle--header,
  .coastal-navigation-header .theme-toggle--header {
    display: none !important;
  }

  html[data-theme="dark"] .mobile-footer-theme-toggle {
    color: #e0bd7a;
    background: linear-gradient(145deg, rgba(22, 48, 62, 0.98), rgba(12, 31, 43, 0.98));
    border-color: rgba(214, 185, 126, 0.28);
    box-shadow: 0 10px 24px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
  }

  /* Hero und Menuekarte auf der mobilen Startseite erhalten dieselbe Breite. */
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-container {
    width: 100% !important;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero,
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-list {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 24px !important;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-list {
    margin-top: 16px !important;
  }

  /* Auf der mobilen Startseite bleibt nur die reine Profil-Silhouette. */
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-mobile-account-form,
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-mobile-account-form button {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-mobile-account-form .coastal-mobile-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    color: #59656b !important;
  }

  html[data-theme="dark"] body.coastal-home-page.is-authenticated .coastal-mobile-account-form .coastal-mobile-icon-button {
    color: #e8dfcf !important;
  }
}

/* Noch vorhandene helle Unterflaechen auf Erfassen/Bearbeiten. */
html[data-theme="dark"] body.coastal-capture-page .capture-experience-enabled .capture-quick-data,
html[data-theme="dark"] body.coastal-capture-page .capture-experience-enabled .capture-quick-axes,
html[data-theme="dark"] body.coastal-capture-page .capture-experience-enabled .capture-score-panel,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-choice,
html[data-theme="dark"] body.coastal-capture-page .capture-detailed-intro,
html[data-theme="dark"] body.coastal-capture-page .capture-detailed-axis-editor,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-row,
html[data-theme="dark"] body.coastal-capture-page .capture-primary-axis-editor,
html[data-theme="dark"] body.coastal-capture-page .capture-ui-check,
html[data-theme="dark"] body.coastal-capture-page .ai-field-suggestion,
html[data-theme="dark"] body.coastal-capture-page .ai-field-suggestion-accept,
html[data-theme="dark"] body.coastal-capture-page .review-field-ai,
html[data-theme="dark"] body.coastal-capture-page .review-field-result,
html[data-theme="dark"] body.coastal-capture-page .review-profile-result,
html[data-theme="dark"] body.coastal-capture-page .review-block-result,
html[data-theme="dark"] body.coastal-capture-page .wizard-block-header,
html[data-theme="dark"] body.coastal-capture-page .upload-current,
html[data-theme="dark"] body.coastal-capture-page .label-upload-placeholder strong,
html[data-theme="dark"] body.coastal-capture-page .ai-analysis-status,
html[data-theme="dark"] body.coastal-capture-page details.form-section > summary,
html[data-theme="dark"] body.coastal-capture-page details.wine-axis-editor > summary {
  color: var(--dark-field-text) !important;
  background: var(--dark-panel-bg-raised) !important;
  border-color: var(--dark-field-border) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.025) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-axis-choice:hover,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-row:hover,
html[data-theme="dark"] body.coastal-capture-page .label-upload-tile.upload-card:hover {
  background: linear-gradient(155deg, rgba(27, 57, 71, 0.98), rgba(16, 39, 51, 0.98)) !important;
  border-color: rgba(211, 177, 111, 0.34) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-axis-choice.is-selected,
html[data-theme="dark"] body.coastal-capture-page .review-field-result,
html[data-theme="dark"] body.coastal-capture-page .review-profile-result,
html[data-theme="dark"] body.coastal-capture-page .review-block-result {
  color: #f5ead7 !important;
  background: linear-gradient(145deg, rgba(120, 87, 38, 0.34), rgba(22, 47, 59, 0.96)) !important;
  border-color: rgba(211, 177, 111, 0.38) !important;
  box-shadow: inset 3px 0 0 rgba(211, 177, 111, 0.70) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-panel-title,
html[data-theme="dark"] body.coastal-capture-page .capture-score-number,
html[data-theme="dark"] body.coastal-capture-page .capture-detailed-intro h2,
html[data-theme="dark"] body.coastal-capture-page .review-block-result .wizard-block-title,
html[data-theme="dark"] body.coastal-capture-page .capture-ui-check strong,
html[data-theme="dark"] body.coastal-capture-page .upload-current span {
  color: #f4efe6 !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-panel-copy,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-note,
html[data-theme="dark"] body.coastal-capture-page .capture-score-explanation,
html[data-theme="dark"] body.coastal-capture-page .capture-score-unit,
html[data-theme="dark"] body.coastal-capture-page .capture-score-ruler,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-label,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-reset,
html[data-theme="dark"] body.coastal-capture-page .result-hint,
html[data-theme="dark"] body.coastal-capture-page .upload-current {
  color: #b9c6cb !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-label.is-selected,
html[data-theme="dark"] body.coastal-capture-page .capture-score-label,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-footer .wine-axis-tendency,
html[data-theme="dark"] body.coastal-capture-page .ai-field-marker {
  color: #dfbf82 !important;
}

html[data-theme="dark"] body.coastal-capture-page .label-upload-tile.upload-card {
  background: linear-gradient(155deg, rgba(20, 46, 59, 0.98), rgba(12, 32, 43, 0.98)) !important;
  border-color: rgba(204, 188, 157, 0.24) !important;
}

html[data-theme="dark"] body.coastal-capture-page .label-upload-placeholder strong {
  color: #e7d6b5 !important;
  border-color: rgba(211, 177, 111, 0.28) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-stops span,
html[data-theme="dark"] body.coastal-capture-page .tasting-profile-ring::after {
  background: #173442 !important;
  border-color: rgba(211, 177, 111, 0.42) !important;
}

html[data-theme="dark"] body.coastal-capture-page .sticky-actions,
html[data-theme="dark"] body.coastal-capture-page .tasting-wizard-actions {
  background: rgba(8, 24, 34, 0.94) !important;
  border-top-color: rgba(214, 193, 153, 0.16) !important;
  box-shadow: 0 -16px 38px rgba(0,0,0,0.30) !important;
  backdrop-filter: blur(20px) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-ui-check.is-confirmed {
  background: linear-gradient(145deg, rgba(31, 89, 65, 0.50), rgba(13, 43, 37, 0.88)) !important;
  border-color: rgba(96, 164, 125, 0.30) !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-ui-check.is-confirmed strong {
  color: #bfe3cd !important;
}

/* =======================================================
   v8.1.3 Hotfix – Startseite, Erfassung, Journal und
   persistentes mobiles Logo auf internen Unterseiten
======================================================= */

/* Journal: zentrale Goldaktion fuer jeden Datensatz */
.archive-recommendation-button--gold {
  color: #17232b !important;
  background: linear-gradient(135deg, #e2c584 0%, #c99d4c 55%, #b98736 100%) !important;
  border: 1px solid rgba(214, 174, 96, 0.70) !important;
  box-shadow: 0 12px 26px rgba(132, 91, 26, 0.22), inset 0 1px 0 rgba(255,255,255,0.30) !important;
  font-weight: 850 !important;
  white-space: nowrap;
}

.archive-recommendation-button--gold:hover {
  color: #101a21 !important;
  background: linear-gradient(135deg, #ecd69f 0%, #d7ad5e 55%, #c49543 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(132, 91, 26, 0.28), inset 0 1px 0 rgba(255,255,255,0.34) !important;
}

.archive-recommendation-button--gold:focus-visible {
  outline: 3px solid rgba(225, 192, 126, 0.38) !important;
  outline-offset: 3px;
}

/* Erfassen und Bearbeiten: einheitliche helle Typografie im Dark Mode */
html[data-theme="dark"] body.coastal-capture-page,
html[data-theme="dark"] body.coastal-capture-page main,
html[data-theme="dark"] body.coastal-capture-page .app-container,
html[data-theme="dark"] body.coastal-capture-page .tasting-wizard,
html[data-theme="dark"] body.coastal-capture-page .tasting-wizard-shell,
html[data-theme="dark"] body.coastal-capture-page .form-section,
html[data-theme="dark"] body.coastal-capture-page .form-section-content {
  color: #f4efe6 !important;
}

html[data-theme="dark"] body.coastal-capture-page h1,
html[data-theme="dark"] body.coastal-capture-page h2,
html[data-theme="dark"] body.coastal-capture-page h3,
html[data-theme="dark"] body.coastal-capture-page h4,
html[data-theme="dark"] body.coastal-capture-page h5,
html[data-theme="dark"] body.coastal-capture-page h6,
html[data-theme="dark"] body.coastal-capture-page .page-title,
html[data-theme="dark"] body.coastal-capture-page .card-title,
html[data-theme="dark"] body.coastal-capture-page .capture-panel-title,
html[data-theme="dark"] body.coastal-capture-page .wizard-block-title,
html[data-theme="dark"] body.coastal-capture-page .capture-score-number,
html[data-theme="dark"] body.coastal-capture-page strong {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html[data-theme="dark"] body.coastal-capture-page p,
html[data-theme="dark"] body.coastal-capture-page li,
html[data-theme="dark"] body.coastal-capture-page dt,
html[data-theme="dark"] body.coastal-capture-page dd,
html[data-theme="dark"] body.coastal-capture-page small,
html[data-theme="dark"] body.coastal-capture-page .page-subtitle,
html[data-theme="dark"] body.coastal-capture-page .hint,
html[data-theme="dark"] body.coastal-capture-page .capture-panel-copy,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-note,
html[data-theme="dark"] body.coastal-capture-page .capture-score-explanation,
html[data-theme="dark"] body.coastal-capture-page .capture-score-unit,
html[data-theme="dark"] body.coastal-capture-page .capture-score-ruler,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-label,
html[data-theme="dark"] body.coastal-capture-page .result-hint,
html[data-theme="dark"] body.coastal-capture-page .label-upload-caption,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-intro,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-pole,
html[data-theme="dark"] body.coastal-capture-page .upload-current {
  color: #d6dde0 !important;
  -webkit-text-fill-color: #d6dde0 !important;
}

html[data-theme="dark"] body.coastal-capture-page label,
html[data-theme="dark"] body.coastal-capture-page legend,
html[data-theme="dark"] body.coastal-capture-page .eyebrow,
html[data-theme="dark"] body.coastal-capture-page .field-label,
html[data-theme="dark"] body.coastal-capture-page .capture-score-label,
html[data-theme="dark"] body.coastal-capture-page .capture-axis-slider-label.is-selected,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-tendency,
html[data-theme="dark"] body.coastal-capture-page .ai-field-marker,
html[data-theme="dark"] body.coastal-capture-page details > summary {
  color: #e2c58d !important;
  -webkit-text-fill-color: #e2c58d !important;
}

html[data-theme="dark"] body.coastal-capture-page input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
html[data-theme="dark"] body.coastal-capture-page select,
html[data-theme="dark"] body.coastal-capture-page textarea {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
  caret-color: #e2c58d !important;
}

html[data-theme="dark"] body.coastal-capture-page input::placeholder,
html[data-theme="dark"] body.coastal-capture-page textarea::placeholder {
  color: #aebbc1 !important;
  -webkit-text-fill-color: #aebbc1 !important;
}

html[data-theme="dark"] body.coastal-capture-page option {
  color: #fffaf1 !important;
  background: #102633 !important;
}

/* Goldbuttons behalten dunklen Text fuer ausreichenden Kontrast. */
html[data-theme="dark"] body.coastal-capture-page .btn-primary,
html[data-theme="dark"] body.coastal-capture-page .btn-gold,
html[data-theme="dark"] body.coastal-capture-page .capture-save-primary,
html[data-theme="dark"] body.coastal-capture-page .save-btn,
html[data-theme="dark"] body.coastal-capture-page .capture-mode-button.is-active,
html[data-theme="dark"] body.coastal-capture-page .capture-mode-button[aria-selected="true"] {
  color: #15222a !important;
  -webkit-text-fill-color: #15222a !important;
}

/* Journal: durchgehend helle Schrift, Gold fuer Akzente und Metadaten. */
html[data-theme="dark"] body.coastal-archive-page,
html[data-theme="dark"] body.coastal-archive-page main,
html[data-theme="dark"] body.coastal-archive-page .app-container,
html[data-theme="dark"] body.coastal-archive-page .archive-list,
html[data-theme="dark"] body.coastal-archive-page .archive-card,
html[data-theme="dark"] body.coastal-archive-page .archive-filter-panel,
html[data-theme="dark"] body.coastal-archive-page .archive-summary {
  color: #f4efe6 !important;
}

html[data-theme="dark"] body.coastal-archive-page h1,
html[data-theme="dark"] body.coastal-archive-page h2,
html[data-theme="dark"] body.coastal-archive-page h3,
html[data-theme="dark"] body.coastal-archive-page .page-title,
html[data-theme="dark"] body.coastal-archive-page .archive-title,
html[data-theme="dark"] body.coastal-archive-page .archive-title a,
html[data-theme="dark"] body.coastal-archive-page .card-title,
html[data-theme="dark"] body.coastal-archive-page strong {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html[data-theme="dark"] body.coastal-archive-page p,
html[data-theme="dark"] body.coastal-archive-page .page-subtitle,
html[data-theme="dark"] body.coastal-archive-page .archive-meta,
html[data-theme="dark"] body.coastal-archive-page .card-text,
html[data-theme="dark"] body.coastal-archive-page .hint,
html[data-theme="dark"] body.coastal-archive-page .pagination,
html[data-theme="dark"] body.coastal-archive-page .filter-row,
html[data-theme="dark"] body.coastal-archive-page .archive-summary {
  color: #d7dfe2 !important;
  -webkit-text-fill-color: #d7dfe2 !important;
}

html[data-theme="dark"] body.coastal-archive-page label,
html[data-theme="dark"] body.coastal-archive-page .eyebrow,
html[data-theme="dark"] body.coastal-archive-page .filter-chip.active,
html[data-theme="dark"] body.coastal-archive-page .badge,
html[data-theme="dark"] body.coastal-archive-page .archive-chip {
  color: #e3c78f !important;
  -webkit-text-fill-color: #e3c78f !important;
}

html[data-theme="dark"] body.coastal-archive-page input,
html[data-theme="dark"] body.coastal-archive-page select,
html[data-theme="dark"] body.coastal-archive-page textarea {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
}

html[data-theme="dark"] body.coastal-archive-page input::placeholder,
html[data-theme="dark"] body.coastal-archive-page textarea::placeholder {
  color: #aebbc1 !important;
  -webkit-text-fill-color: #aebbc1 !important;
}

html[data-theme="dark"] body.coastal-archive-page .btn-secondary:not(.archive-recommendation-button--gold) {
  color: #f2eadb !important;
  -webkit-text-fill-color: #f2eadb !important;
}

html[data-theme="dark"] body.coastal-archive-page .archive-recommendation-button--gold {
  color: #15222a !important;
  -webkit-text-fill-color: #15222a !important;
}

/* Mobiles Logo: alte Hide-Regeln werden auf allen internen Unterseiten ueberstimmt. */
@media (max-width: 900px) {
  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-navigation-header,
  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .global-brand-header {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 0 14px !important;
    inset: auto !important;
  }

  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-mobile-navigation {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    min-height: 66px !important;
    padding: 8px 10px !important;
  }

  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-mobile-brand--persistent {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 210px !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
    color: inherit !important;
  }

  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-mobile-brand--persistent picture {
    display: block !important;
  }

  html.coastal-ui body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-mobile-brand--persistent img {
    display: block !important;
    width: auto !important;
    height: 38px !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }

  html[data-theme="dark"] body:not(.coastal-home-page):not(.coastal-auth-page) .coastal-mobile-brand--persistent img {
    filter: brightness(1.12) saturate(0.92) drop-shadow(0 7px 14px rgba(0,0,0,0.25)) !important;
  }

  .archive-actions {
    align-items: stretch;
  }

  .archive-recommendation-button--gold {
    flex: 1 1 100% !important;
    width: 100% !important;
  }
}


/* v8.1.3 Nachschaerfung: verbleibende Kurztexte und Suffixe */
html[data-theme="dark"] body.coastal-capture-page .field,
html[data-theme="dark"] body.coastal-capture-page .suffix,
html[data-theme="dark"] body.coastal-capture-page .calculated,
html[data-theme="dark"] body.coastal-capture-page .input-suffix,
html[data-theme="dark"] body.coastal-capture-page .result-hint,
html[data-theme="dark"] body.coastal-capture-page .badge {
  color: #e1e6e7 !important;
  -webkit-text-fill-color: #e1e6e7 !important;
}

html[data-theme="dark"] body.coastal-capture-page .badge,
html[data-theme="dark"] body.coastal-capture-page .points-source-field,
html[data-theme="dark"] body.coastal-capture-page .wine-axis-tendency {
  color: #e2c58d !important;
  -webkit-text-fill-color: #e2c58d !important;
}

html[data-theme="dark"] body.coastal-archive-page .archive-actions .btn:not(.archive-recommendation-button--gold) {
  color: #f3ecdf !important;
  -webkit-text-fill-color: #f3ecdf !important;
}

/* -------------------------------------------------------
   v8.1.3 Revision b – Profil: Info-Buttons der Geschmacksachsen
------------------------------------------------------- */
html[data-theme="dark"] body.coastal-profile-page .profile-axis-details > summary,
html[data-theme="dark"] body.wine-profile-page .profile-axis-details > summary {
  color: #ead9b8 !important;
  background: linear-gradient(145deg, #18313c, #102631) !important;
  border-color: rgba(215, 177, 109, 0.34) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 7px 16px rgba(0, 0, 0, 0.24) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-details > summary:hover,
html[data-theme="dark"] body.wine-profile-page .profile-axis-details > summary:hover {
  color: #fff2d8 !important;
  background: linear-gradient(145deg, #214351, #17333e) !important;
  border-color: rgba(222, 190, 132, 0.58) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-details[open] > summary,
html[data-theme="dark"] body.wine-profile-page .profile-axis-details[open] > summary {
  color: #10212b !important;
  background: linear-gradient(135deg, #ddbf84, #bd914d) !important;
  border-color: rgba(245, 222, 178, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 18px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] body.coastal-profile-page .profile-axis-details > summary:focus-visible,
html[data-theme="dark"] body.wine-profile-page .profile-axis-details > summary:focus-visible {
  outline: 3px solid rgba(221, 191, 132, 0.34) !important;
  outline-offset: 3px !important;
}


/* =======================================================
   v8.1.4 Hotfix – Journal-Goldbutton und Hero-Bild
======================================================= */

/* Der alte Coastal-Selektor ist spezifischer als die reine Goldklasse.
   Daher wird die zentrale Journal-Aktion hier bewusst voll qualifiziert. */
html.coastal-ui body.coastal-archive-page .archive-actions
.archive-recommendation-button.archive-recommendation-button--gold,
html.coastal-ui body.coastal-archive-page .archive-actions
.archive-recommendation-button.archive-recommendation-button--gold:visited {
  appearance: none !important;
  color: #17232b !important;
  -webkit-text-fill-color: #17232b !important;
  background-color: #c99d4c !important;
  background-image: linear-gradient(135deg, #ead49b 0%, #d4ad61 48%, #bb8533 100%) !important;
  border: 1px solid rgba(235, 204, 137, 0.82) !important;
  box-shadow:
    0 13px 28px rgba(128, 83, 20, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.38) !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html.coastal-ui body.coastal-archive-page .archive-actions
.archive-recommendation-button.archive-recommendation-button--gold:hover {
  color: #101a21 !important;
  -webkit-text-fill-color: #101a21 !important;
  background-color: #d8b464 !important;
  background-image: linear-gradient(135deg, #f1dfad 0%, #dfba70 48%, #c7923f 100%) !important;
  border-color: rgba(244, 218, 162, 0.92) !important;
  transform: translateY(-1px) !important;
  box-shadow:
    0 16px 32px rgba(128, 83, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.44) !important;
}

html.coastal-ui body.coastal-archive-page .archive-actions
.archive-recommendation-button.archive-recommendation-button--gold:active {
  transform: translateY(0) !important;
  box-shadow:
    0 8px 18px rgba(128, 83, 20, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.34) !important;
}

html.coastal-ui body.coastal-archive-page .archive-actions
.archive-recommendation-button.archive-recommendation-button--gold:focus-visible {
  outline: 3px solid rgba(231, 197, 128, 0.54) !important;
  outline-offset: 3px !important;
}

/* Journal-Hero: echtes Startseitenmotiv statt der bisherigen blassen
   Pseudo-Grafik. Das Bild nutzt dieselbe Quelle und denselben Zuschnitt
   wie der Hero auf /index.php. */
html.coastal-ui body.coastal-archive-page .archive-page-hero {
  min-height: 292px !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr) !important;
  align-items: stretch !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: 34px !important;
  isolation: isolate !important;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero::before,
html.coastal-ui body.coastal-archive-page .archive-page-hero::after {
  display: none !important;
  content: none !important;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero-copy {
  min-width: 0;
  padding: 36px 34px 38px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero-visual,
html.coastal-ui body.coastal-archive-page .archive-page-hero-visual picture,
html.coastal-ui body.coastal-archive-page .archive-page-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 292px;
  display: block;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero-visual {
  position: relative;
  overflow: hidden;
  background: #cfc7b7;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero-visual img {
  object-fit: cover;
  object-position: center 45%;
}

html.coastal-ui body.coastal-archive-page .archive-page-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--card-solid, #fffcf7) 0%, rgba(255, 252, 247, 0.64) 13%, rgba(255, 252, 247, 0.08) 42%, transparent 66%),
    linear-gradient(180deg, rgba(20, 31, 38, 0.02), rgba(20, 31, 38, 0.14));
}

html[data-theme="dark"].coastal-ui body.coastal-archive-page .archive-page-hero-visual::after {
  background:
    linear-gradient(90deg, #0e1f2b 0%, rgba(14, 31, 43, 0.76) 15%, rgba(14, 31, 43, 0.18) 45%, transparent 68%),
    linear-gradient(180deg, rgba(6, 18, 28, 0.06), rgba(6, 18, 28, 0.42));
}

html[data-theme="dark"].coastal-ui body.coastal-archive-page .archive-page-hero {
  background:
    radial-gradient(circle at 12% 0%, rgba(42, 106, 122, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(14, 31, 43, 0.96), rgba(10, 24, 34, 0.96)) !important;
  border-color: rgba(225, 214, 190, 0.14) !important;
}

@media (max-width: 760px) {
  html.coastal-ui body.coastal-archive-page .archive-page-hero {
    min-height: auto !important;
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 0 0 14px !important;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero-visual {
    grid-row: 1;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero-visual,
  html.coastal-ui body.coastal-archive-page .archive-page-hero-visual picture,
  html.coastal-ui body.coastal-archive-page .archive-page-hero-visual img {
    min-height: 178px;
    height: 178px;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero-visual::after {
    background:
      linear-gradient(180deg, transparent 22%, rgba(255, 252, 247, 0.10) 52%, var(--card-solid, #fffcf7) 100%);
  }

  html[data-theme="dark"].coastal-ui body.coastal-archive-page .archive-page-hero-visual::after {
    background:
      linear-gradient(180deg, rgba(6, 18, 28, 0.04) 18%, rgba(10, 24, 34, 0.18) 54%, #0e1f2b 100%);
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero-copy {
    grid-row: 2;
    padding: 0 20px 24px !important;
    margin-top: -10px;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero .page-title,
  html.coastal-ui body.coastal-archive-page .archive-page-hero .page-subtitle {
    display: block !important;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero .page-title {
    font-size: clamp(34px, 10vw, 46px) !important;
  }

  html.coastal-ui body.coastal-archive-page .archive-page-hero .page-subtitle {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}


/* =======================================================
   v8.1.5 Hotfix – kompakte Suchleiste im Dark Mode
======================================================= */

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--one-look.wine-recommendation-controls--compact {
  background:
    linear-gradient(180deg, rgba(13, 35, 48, 0.97), rgba(10, 28, 40, 0.96)) !important;
  border-color: rgba(219, 185, 119, 0.24) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-field > span {
  color: #e0bd76 !important;
  -webkit-text-fill-color: #e0bd76 !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-field select {
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
  background-color: #132b37 !important;
  background-image: linear-gradient(145deg, #17323e, #102732) !important;
  border-color: rgba(225, 199, 145, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.035),
    0 9px 22px rgba(0,0,0,0.22) !important;
  color-scheme: dark !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-field select:hover {
  background-image: linear-gradient(145deg, #1b3b49, #14303c) !important;
  border-color: rgba(232, 204, 149, 0.42) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-field select:focus {
  border-color: rgba(229, 193, 126, 0.72) !important;
  outline: 3px solid rgba(218, 176, 98, 0.16) !important;
  outline-offset: 2px !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-budget-hint {
  color: #aebbc0 !important;
  -webkit-text-fill-color: #aebbc0 !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-search {
  color: #142128 !important;
  -webkit-text-fill-color: #142128 !important;
  background: linear-gradient(135deg, #dfc17f 0%, #cda454 52%, #b98538 100%) !important;
  border: 1px solid rgba(242, 216, 163, 0.30) !important;
  box-shadow:
    0 14px 30px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.30) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-search:hover {
  background: linear-gradient(135deg, #ead39f 0%, #d7b36c 52%, #c49243 100%) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-status-card--compact {
  color: #d9e1e2 !important;
  background: linear-gradient(145deg, #17313b, #102731) !important;
  border: 1px solid rgba(223, 200, 156, 0.17) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.025),
    0 10px 24px rgba(0,0,0,0.22) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-status.is-success
.wine-recommendation-status-brief {
  color: #a9d8bc !important;
  -webkit-text-fill-color: #a9d8bc !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-status.is-error
.wine-recommendation-status-brief {
  color: #f0b5ad !important;
  -webkit-text-fill-color: #f0b5ad !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-status.is-loading
.wine-recommendation-status-brief {
  color: #e8cf9c !important;
  -webkit-text-fill-color: #e8cf9c !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-progress-toggle {
  color: #c6d0d2 !important;
  -webkit-text-fill-color: #c6d0d2 !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-controls--compact .wine-recommendation-progress-body {
  color: #b8c5c9 !important;
  -webkit-text-fill-color: #b8c5c9 !important;
  border-top-color: rgba(225, 214, 190, 0.12) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-note--compact {
  color: #e0d5c2 !important;
  -webkit-text-fill-color: #e0d5c2 !important;
  background: rgba(201, 157, 76, 0.08) !important;
  border-color: rgba(218, 177, 99, 0.18) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-note--compact.is-warning {
  color: #edc5bf !important;
  -webkit-text-fill-color: #edc5bf !important;
  background: rgba(150, 75, 68, 0.13) !important;
  border-color: rgba(213, 129, 116, 0.22) !important;
}

html[data-theme="dark"].coastal-ui body.coastal-recommendation-page
.wine-recommendation-form-foot .wine-recommendation-disclaimer {
  color: #9eacb1 !important;
  -webkit-text-fill-color: #9eacb1 !important;
}


/* =======================================================
   v8.1.6 Hotfix – Gast-Logos, Formularaktionen und Startposition
======================================================= */

/* Login nutzt nun den gemeinsamen Marken-Header. */
.auth-shell-with-header {
  display: block !important;
  min-height: 100dvh;
  padding: 18px !important;
}

.auth-page-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
}

.auth-page-container .auth-card {
  margin: clamp(22px, 5vh, 54px) auto 0 !important;
}

/* Speicheraktionen bleiben am echten Formularende statt fixiert im Viewport. */
html.coastal-ui body.coastal-capture-page .capture-page-actions,
html.coastal-ui body.coastal-capture-page .tasting-wizard-actions.capture-page-actions {
  position: static !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  margin: 26px 0 10px !important;
  padding: 14px !important;
  border: 1px solid rgba(49, 69, 85, 0.14) !important;
  border-radius: 22px !important;
  background: rgba(255, 252, 247, 0.78) !important;
  box-shadow: 0 14px 34px rgba(36, 49, 59, 0.10) !important;
  backdrop-filter: blur(16px) !important;
  z-index: auto !important;
}

html.coastal-ui body.coastal-capture-page .capture-page-actions .sticky-actions-inner,
html.coastal-ui body.coastal-capture-page .capture-page-actions .wizard-sticky-actions {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

html[data-theme="dark"] body.coastal-capture-page .capture-page-actions,
html[data-theme="dark"] body.coastal-capture-page .tasting-wizard-actions.capture-page-actions {
  background: linear-gradient(180deg, rgba(14, 34, 46, 0.98), rgba(9, 26, 37, 0.98)) !important;
  border-color: rgba(214, 193, 153, 0.18) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28) !important;
}

/* Die alte Sticky-Erkennung darf für die nun statische Leiste keinen Zusatzraum erzwingen. */
body.coastal-capture-page.has-sticky-actions .app-footer {
  padding-bottom: calc(108px + env(safe-area-inset-bottom)) !important;
}

@media (max-width: 900px) {
  /* Gast-Startseite: Logo im mobilen Header wieder sichtbar machen. */
  html.coastal-ui body.coastal-home-page.is-guest .coastal-navigation-header,
  html.coastal-ui body.coastal-home-page.is-guest .global-brand-header,
  html.coastal-ui body.coastal-auth-page .coastal-navigation-header,
  html.coastal-ui body.coastal-auth-page .global-brand-header {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    min-height: 66px !important;
    margin: 0 0 14px !important;
    inset: auto !important;
  }

  html.coastal-ui body.coastal-home-page.is-guest .coastal-mobile-navigation,
  html.coastal-ui body.coastal-auth-page .coastal-mobile-navigation {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
    align-items: center !important;
    min-height: 66px !important;
    padding: 8px 10px !important;
  }

  html.coastal-ui body.coastal-home-page.is-guest .coastal-mobile-brand--persistent,
  html.coastal-ui body.coastal-auth-page .coastal-mobile-brand--persistent {
    display: inline-flex !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    max-width: 210px !important;
    justify-self: center !important;
    align-items: center !important;
    justify-content: center !important;
  }

  html.coastal-ui body.coastal-home-page.is-guest .coastal-mobile-brand--persistent picture,
  html.coastal-ui body.coastal-auth-page .coastal-mobile-brand--persistent picture {
    display: block !important;
  }

  html.coastal-ui body.coastal-home-page.is-guest .coastal-mobile-brand--persistent img,
  html.coastal-ui body.coastal-auth-page .coastal-mobile-brand--persistent img {
    display: block !important;
    width: auto !important;
    height: 38px !important;
    max-width: 190px !important;
    object-fit: contain !important;
  }

  html[data-theme="dark"] body.coastal-home-page.is-guest .coastal-mobile-brand--persistent img,
  html[data-theme="dark"] body.coastal-auth-page .coastal-mobile-brand--persistent img {
    filter: brightness(1.12) saturate(0.92) drop-shadow(0 7px 14px rgba(0,0,0,0.25)) !important;
  }

  .auth-shell-with-header {
    padding: 0 12px calc(28px + env(safe-area-inset-bottom)) !important;
  }

  .auth-page-container .auth-card {
    margin-top: 12px !important;
  }

  html.coastal-ui body.coastal-capture-page .capture-page-actions,
  html.coastal-ui body.coastal-capture-page .tasting-wizard-actions.capture-page-actions {
    margin: 22px 0 8px !important;
    padding: 10px !important;
    border-radius: 18px !important;
  }

  html.coastal-ui body.coastal-capture-page .capture-page-actions .sticky-actions-inner,
  html.coastal-ui body.coastal-capture-page .capture-page-actions .wizard-sticky-actions {
    gap: 8px !important;
  }
}

@media (max-width: 370px) {
  html.coastal-ui body.coastal-capture-page .capture-page-actions .sticky-actions-inner,
  html.coastal-ui body.coastal-capture-page .capture-page-actions .wizard-sticky-actions {
    grid-template-columns: 1fr !important;
  }
}


/* === v8.1.7 Split-Start Startseite === */
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-container {
  max-width: 880px;
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split {
  min-height: 390px;
  border-radius: 34px;
  box-shadow: 0 22px 54px rgba(37, 48, 54, 0.12);
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-hero-image img {
  object-position: center 48%;
  filter: saturate(0.88) contrast(1.02) brightness(1.02);
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(248, 244, 235, 0.04) 0%, rgba(247, 242, 232, 0.14) 34%, rgba(249, 246, 239, 0.88) 80%, #faf7f0 100%),
    linear-gradient(90deg, rgba(31, 43, 50, 0.12), transparent 58%);
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-hero-content {
  min-height: 390px;
  max-width: 680px;
  padding: 34px clamp(26px, 5vw, 52px) 42px;
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split h1 {
  max-width: 640px;
  font-size: clamp(44px, 7vw, 68px);
  line-height: 0.98;
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-intro {
  max-width: 610px;
}

html.coastal-ui .coastal-split-home {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

html.coastal-ui .coastal-split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

html.coastal-ui .coastal-split-action,
html.coastal-ui .coastal-split-profile {
  position: relative;
  min-width: 0;
  color: var(--coastal-ink, #24313b);
  text-decoration: none;
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid rgba(54, 62, 66, 0.09);
  box-shadow: 0 12px 28px rgba(35, 48, 56, 0.065);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

html.coastal-ui .coastal-split-action {
  min-height: 198px;
  padding: 24px 22px 20px;
  border-radius: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: start;
  text-align: center;
}

html.coastal-ui .coastal-split-action:hover,
html.coastal-ui .coastal-split-profile:hover,
html.coastal-ui .coastal-split-search:hover {
  transform: translateY(-2px);
}

html.coastal-ui .coastal-split-action:hover,
html.coastal-ui .coastal-split-profile:hover {
  border-color: rgba(183, 142, 70, 0.25);
  box-shadow: 0 18px 38px rgba(35, 48, 56, 0.10);
}

html.coastal-ui .coastal-split-action:focus-visible,
html.coastal-ui .coastal-split-profile:focus-visible,
html.coastal-ui .coastal-split-search:focus-visible {
  outline: 3px solid rgba(188, 145, 59, 0.34);
  outline-offset: 3px;
}

html.coastal-ui .coastal-split-action-icon,
html.coastal-ui .coastal-split-profile-icon {
  display: grid;
  place-items: center;
  color: #9b742c;
  background: linear-gradient(145deg, #fffdf8, #efe6d6);
}

html.coastal-ui .coastal-split-action-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 14px;
  border-radius: 50%;
}

html.coastal-ui .coastal-split-action-icon svg,
html.coastal-ui .coastal-split-profile-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html.coastal-ui .coastal-split-action-copy,
html.coastal-ui .coastal-split-action-copy small,
html.coastal-ui .coastal-split-action-copy strong,
html.coastal-ui .coastal-split-action-copy span,
html.coastal-ui .coastal-split-search-copy,
html.coastal-ui .coastal-split-search-copy small,
html.coastal-ui .coastal-split-search-copy strong,
html.coastal-ui .coastal-split-search-copy span,
html.coastal-ui .coastal-split-profile-copy,
html.coastal-ui .coastal-split-profile-copy small,
html.coastal-ui .coastal-split-profile-copy strong,
html.coastal-ui .coastal-split-profile-copy span {
  min-width: 0;
  display: block;
}

html.coastal-ui .coastal-split-action-copy small,
html.coastal-ui .coastal-split-search-copy small,
html.coastal-ui .coastal-split-profile-copy small {
  margin-bottom: 4px;
  color: #9b742c;
  font-size: 11px;
  font-weight: 790;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

html.coastal-ui .coastal-split-action-copy strong,
html.coastal-ui .coastal-split-profile-copy strong {
  color: var(--coastal-ink, #24313b);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 550;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

html.coastal-ui .coastal-split-action-copy span,
html.coastal-ui .coastal-split-profile-copy span {
  margin-top: 8px;
  color: #737d83;
  font-size: 13px;
  line-height: 1.45;
}

html.coastal-ui .coastal-split-action-arrow {
  margin-top: 13px;
  color: #25343d;
  font-size: 21px;
  line-height: 1;
}

html.coastal-ui .coastal-split-search {
  min-height: 138px;
  padding: 24px 26px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 20px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(135deg, #bc913b 0%, #d6ad55 100%);
  box-shadow: 0 17px 34px rgba(148, 105, 30, 0.22), inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

html.coastal-ui .coastal-split-search:hover {
  box-shadow: 0 22px 42px rgba(148, 105, 30, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

html.coastal-ui .coastal-split-search-number {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255,255,255,0.48);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: ui-serif, Georgia, serif;
  font-size: 38px;
  line-height: 1;
}

html.coastal-ui .coastal-split-search-copy small,
html.coastal-ui .coastal-split-search-copy strong,
html.coastal-ui .coastal-split-search-copy span,
html.coastal-ui .coastal-split-search-arrow {
  color: #fff;
}

html.coastal-ui .coastal-split-search-copy strong {
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(29px, 4.8vw, 42px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -0.025em;
}

html.coastal-ui .coastal-split-search-copy span {
  margin-top: 7px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  line-height: 1.4;
}

html.coastal-ui .coastal-split-search-arrow,
html.coastal-ui .coastal-split-profile-arrow {
  font-family: ui-serif, Georgia, serif;
  font-size: 30px;
  line-height: 1;
}

html.coastal-ui .coastal-split-profile {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 22px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 14px;
}

html.coastal-ui .coastal-split-profile-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

html.coastal-ui .coastal-split-profile-copy strong {
  font-size: 21px;
}

html.coastal-ui .coastal-split-profile-copy span {
  margin-top: 4px;
  font-size: 12px;
}

html.coastal-ui .coastal-split-profile-arrow {
  color: #25343d;
}

html[data-theme="dark"] body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-hero-overlay {
  background:
    linear-gradient(180deg, rgba(7,20,31,0.04) 0%, rgba(7,20,31,0.18) 38%, rgba(8,24,35,0.80) 82%, #081823 100%),
    linear-gradient(90deg, rgba(7,20,31,0.34), transparent 58%);
}

html[data-theme="dark"] body.coastal-home-page.is-authenticated .coastal-home-hero--split h1,
html[data-theme="dark"] body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-greeting,
html[data-theme="dark"] body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-intro {
  color: #f6efe4 !important;
}

html[data-theme="dark"] .coastal-split-action,
html[data-theme="dark"] .coastal-split-profile {
  color: #f6efe4;
  background: linear-gradient(180deg, rgba(14, 31, 43, 0.96), rgba(10, 24, 34, 0.94));
  border-color: rgba(225, 214, 190, 0.13);
  box-shadow: 0 16px 38px rgba(0,0,0,0.25);
}

html[data-theme="dark"] .coastal-split-action:hover,
html[data-theme="dark"] .coastal-split-profile:hover {
  border-color: rgba(214, 185, 126, 0.28);
  box-shadow: 0 20px 42px rgba(0,0,0,0.33);
}

html[data-theme="dark"] .coastal-split-action-icon,
html[data-theme="dark"] .coastal-split-profile-icon {
  color: #e0bd7a;
  background: linear-gradient(145deg, rgba(199,164,103,0.20), rgba(42,106,122,0.17));
  border: 1px solid rgba(214,185,126,0.13);
}

html[data-theme="dark"] .coastal-split-action-copy strong,
html[data-theme="dark"] .coastal-split-profile-copy strong,
html[data-theme="dark"] .coastal-split-action-arrow,
html[data-theme="dark"] .coastal-split-profile-arrow {
  color: #f6efe4 !important;
}

html[data-theme="dark"] .coastal-split-action-copy span,
html[data-theme="dark"] .coastal-split-profile-copy span {
  color: #c4cdd1 !important;
}

html[data-theme="dark"] .coastal-split-action-copy small,
html[data-theme="dark"] .coastal-split-profile-copy small {
  color: #d9bb7b !important;
}

@media (max-width: 760px) {
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split {
    min-height: 350px;
    border-radius: 26px !important;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-hero-content {
    min-height: 350px;
    padding: 24px 24px 30px;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-mark {
    top: 22px;
    width: 124px;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split h1 {
    max-width: 325px;
    font-size: clamp(38px, 10.6vw, 48px);
    line-height: 0.98;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split .coastal-home-intro {
    max-width: 330px;
    font-size: 14px;
  }

  html.coastal-ui .coastal-split-home {
    margin-top: 14px;
    gap: 12px;
  }

  html.coastal-ui .coastal-split-actions {
    gap: 10px;
  }

  html.coastal-ui .coastal-split-action {
    min-height: 210px;
    padding: 20px 13px 16px;
    border-radius: 22px;
  }

  html.coastal-ui .coastal-split-action-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

  html.coastal-ui .coastal-split-action-copy strong {
    font-size: clamp(22px, 6.2vw, 27px);
  }

  html.coastal-ui .coastal-split-action-copy span {
    font-size: 12px;
    line-height: 1.42;
  }

  html.coastal-ui .coastal-split-search {
    min-height: 128px;
    padding: 21px 18px;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
    gap: 14px;
    border-radius: 22px;
  }

  html.coastal-ui .coastal-split-search-number {
    width: 56px;
    height: 56px;
    font-size: 34px;
  }

  html.coastal-ui .coastal-split-search-copy strong {
    font-size: clamp(28px, 8vw, 36px);
  }

  html.coastal-ui .coastal-split-search-copy span {
    font-size: 12px;
  }

  html.coastal-ui .coastal-split-profile {
    padding: 15px;
  }
}

@media (max-width: 365px) {
  html.coastal-ui .coastal-split-actions {
    grid-template-columns: 1fr;
  }

  html.coastal-ui .coastal-split-action {
    min-height: 164px;
  }
}

/* v8.1.7 Feinschliff: klare Goldkarte, kompakter Profilstatus und mobile Überlappung. */
html[data-theme="dark"] .coastal-split-search-copy small,
html[data-theme="dark"] .coastal-split-search-copy strong,
html[data-theme="dark"] .coastal-split-search-copy span,
html[data-theme="dark"] .coastal-split-search-arrow {
  color: #fff8eb !important;
}

html.coastal-ui .coastal-split-profile-copy strong,
html.coastal-ui .coastal-split-profile-copy span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

html.coastal-ui .coastal-split-profile-copy strong {
  -webkit-line-clamp: 1;
}

html.coastal-ui .coastal-split-profile-copy span {
  -webkit-line-clamp: 2;
}

@media (max-width: 760px) {
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-home {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding: 0 8px;
    isolation: isolate;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-actions {
    position: relative;
    z-index: 1;
  }
}

/* === v8.1.8 Revision d: Split-Karten, Archivtext und Footer-Outline === */

/* Footer-/Bottom-Bar: zweistufige Kontur für klare Abgrenzung im Light Mode. */
.app-footer-menu {
  border: 2px solid rgba(38, 58, 72, 0.30) !important;
  outline: 1px solid rgba(184, 145, 70, 0.48);
  outline-offset: 2px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.86),
    0 0 0 4px rgba(184, 145, 70, 0.12),
    0 18px 46px rgba(36, 49, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

/* Dark Mode: warme Goldkontur mit tiefem Navy-Gegenring. */
html[data-theme="dark"] .app-footer-menu {
  border-color: rgba(216, 182, 117, 0.62) !important;
  outline-color: rgba(216, 182, 117, 0.58);
  box-shadow:
    0 0 0 1px rgba(5, 17, 25, 0.96),
    0 0 0 4px rgba(216, 182, 117, 0.14),
    0 20px 52px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

@media (max-width: 760px) {
  .app-footer-menu {
    outline-width: 1px;
    outline-offset: 2px;
  }
}


/* === v8.1.9: Einheitliche Startseitenabstände und mobiler Erfassungs-Hero === */

/* Startseite: Hero, Split-Karten und Goldkarte verwenden dieselbe Außenbreite
   und einen einheitlichen Abstand. Alte mobile Innenränder werden aufgehoben. */
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split,
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-home,
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-actions,
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-action,
html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-search {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-home {
  --coastal-home-card-gap: 16px;
  margin: var(--coastal-home-card-gap) 0 0 !important;
  padding: 0 !important;
  gap: var(--coastal-home-card-gap) !important;
}

html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-actions {
  gap: var(--coastal-home-card-gap) !important;
}

@media (max-width: 760px) {
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-home-hero--split,
  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-home {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-home {
    --coastal-home-card-gap: 14px;
    position: relative;
    z-index: 1;
    isolation: isolate;
  }

  html.coastal-ui body.coastal-home-page.is-authenticated .coastal-split-actions {
    gap: var(--coastal-home-card-gap) !important;
  }
}

/* Neue Verkostung: Der einleitende Kasten bleibt auch auf Mobilgeräten
   vollständig sichtbar. Diese Regel überschreibt die frühere mobile
   Ausblendung in coastal-ui.css. */
@media (max-width: 760px) {
  html.coastal-ui body.coastal-capture-page .form-page-hero {
    display: block !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 0 14px !important;
    padding: 18px 20px 19px !important;
    border: 1px solid rgba(49, 69, 85, 0.12) !important;
    border-radius: 22px !important;
    background: linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(247, 242, 233, 0.96)) !important;
    box-shadow: 0 12px 30px rgba(36, 49, 59, 0.08) !important;
    overflow: hidden !important;
  }

  html.coastal-ui body.coastal-capture-page .form-page-hero > .eyebrow {
    display: block !important;
    margin: 0 0 6px !important;
    color: #9b742c !important;
  }

  html.coastal-ui body.coastal-capture-page .form-page-hero > .page-title,
  html.coastal-ui body.coastal-capture-page .form-page-hero .edit-title-row,
  html.coastal-ui body.coastal-capture-page .form-page-hero .edit-title-row .page-title {
    display: block !important;
  }

  html.coastal-ui body.coastal-capture-page .form-page-hero > .page-title,
  html.coastal-ui body.coastal-capture-page .form-page-hero .edit-title-row .page-title {
    margin: 0 !important;
    color: #24313b !important;
    font-size: clamp(31px, 9.5vw, 40px) !important;
    line-height: 1.02 !important;
  }

  html[data-theme="dark"].coastal-ui body.coastal-capture-page .form-page-hero {
    border-color: rgba(216, 182, 117, 0.20) !important;
    background: linear-gradient(155deg, rgba(17, 39, 53, 0.98), rgba(9, 25, 36, 0.98)) !important;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28) !important;
  }

  html[data-theme="dark"].coastal-ui body.coastal-capture-page .form-page-hero > .eyebrow {
    color: #d9bb7b !important;
  }

  html[data-theme="dark"].coastal-ui body.coastal-capture-page .form-page-hero > .page-title,
  html[data-theme="dark"].coastal-ui body.coastal-capture-page .form-page-hero .edit-title-row .page-title {
    color: #f6efe4 !important;
  }
}


/* === v8.1.12: Dunkle Geschmacksachsen und Trinkspass === */

/* /verkostung-detail.php: Achsenkarten, Skala und Ergebnisbereich werden
   im Dark Mode vollständig an die dunklen Detailkarten angeglichen. */
html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile.profile-axis-overview,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile.profile-axis-overview {
  color: #f4efe6 !important;
  background: linear-gradient(155deg, rgba(16, 38, 51, 0.98), rgba(8, 25, 36, 0.98)) !important;
  border-color: rgba(216, 182, 117, 0.20) !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-section-intro,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-section-intro {
  color: #c8d2d6 !important;
  -webkit-text-fill-color: #c8d2d6 !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .wine-axis-detail-row,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .wine-axis-detail-row {
  color: #f4efe6 !important;
  background: linear-gradient(150deg, rgba(22, 49, 63, 0.98), rgba(12, 32, 44, 0.98)) !important;
  border-color: rgba(204, 188, 157, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-labels,
html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-labels strong,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-labels,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-labels strong {
  color: #ede7db !important;
  -webkit-text-fill-color: #ede7db !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-row.is-left .profile-axis-label-left,
html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-row.is-right .profile-axis-label-right,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-row.is-left .profile-axis-label-left,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-row.is-right .profile-axis-label-right {
  color: #e2c58d !important;
  -webkit-text-fill-color: #e2c58d !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-scale,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-scale {
  border-color: rgba(216, 182, 117, 0.28) !important;
  background:
    linear-gradient(90deg,
      rgba(193, 143, 65, 0.30) 0%,
      rgba(46, 80, 91, 0.72) 38%,
      rgba(13, 34, 46, 0.98) 50%,
      rgba(46, 80, 91, 0.72) 62%,
      rgba(193, 143, 65, 0.30) 100%) !important;
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.36), 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-center,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-center {
  background: rgba(238, 225, 198, 0.62) !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-marker,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-marker {
  border-color: #142c38 !important;
  background: #d2aa62 !important;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(231, 204, 151, 0.52) !important;
}

html[data-theme="dark"] body.detail-coastal-page .wine-axis-detail-profile .profile-axis-result-text,
html[data-theme="dark"] body.coastal-detail-page .wine-axis-detail-profile .profile-axis-result-text {
  color: #dfbf82 !important;
  -webkit-text-fill-color: #dfbf82 !important;
}

/* /edit_verkostung.php: Das hervorgehobene Trinkspass-Feld erhält keine
   helle Sandsteinfläche mehr. */
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .review-field-trinkspass,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .field.review-field-result:has(select[name="trinkspass"]) {
  color: #f4efe6 !important;
  background: linear-gradient(145deg, rgba(82, 62, 31, 0.32), rgba(17, 42, 55, 0.98)) !important;
  border-color: rgba(216, 182, 117, 0.42) !important;
  box-shadow: inset 3px 0 0 rgba(216, 182, 117, 0.72), 0 12px 30px rgba(0, 0, 0, 0.22) !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .review-field-trinkspass label,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .field.review-field-result:has(select[name="trinkspass"]) label {
  color: #e2c58d !important;
  -webkit-text-fill-color: #e2c58d !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .review-field-trinkspass select,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page select[name="trinkspass"] {
  color: #fffaf1 !important;
  -webkit-text-fill-color: #fffaf1 !important;
  background: linear-gradient(145deg, #173746, #102a38) !important;
  border-color: rgba(216, 182, 117, 0.34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 0, 0, 0.18) !important;
  color-scheme: dark !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page select[name="trinkspass"] option {
  color: #fffaf1 !important;
  background: #102a38 !important;
}

/* /edit_verkostung.php: Geschmacksachsen inklusive äußerem Editor,
   Einzelachsen und Range-Spuren vollständig dunkel. */
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wizard-profile-block,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .review-profile-result,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .review-block-result,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-editor,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-editor-content,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-list {
  color: #f4efe6 !important;
  background: linear-gradient(155deg, rgba(16, 38, 51, 0.98), rgba(8, 25, 36, 0.98)) !important;
  border-color: rgba(204, 188, 157, 0.20) !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-editor-content {
  box-shadow: none !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-row {
  color: #f4efe6 !important;
  background: linear-gradient(150deg, rgba(22, 49, 63, 0.98), rgba(12, 32, 44, 0.98)) !important;
  border-color: rgba(204, 188, 157, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 8px 22px rgba(0, 0, 0, 0.18) !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-intro,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-pole {
  color: #d6dde0 !important;
  -webkit-text-fill-color: #d6dde0 !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-tendency {
  color: #dfbf82 !important;
  -webkit-text-fill-color: #dfbf82 !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-row input[type="range"]::-webkit-slider-runnable-track {
  border-color: rgba(216, 182, 117, 0.26) !important;
  background:
    linear-gradient(90deg,
      rgba(193, 143, 65, 0.34) 0%,
      rgba(42, 78, 91, 0.78) 42%,
      rgba(228, 214, 188, 0.70) 49.4%,
      rgba(228, 214, 188, 0.70) 50.6%,
      rgba(42, 78, 91, 0.78) 58%,
      rgba(193, 143, 65, 0.34) 100%) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-row input[type="range"]::-moz-range-track {
  border-color: rgba(216, 182, 117, 0.26) !important;
  background:
    linear-gradient(90deg,
      rgba(193, 143, 65, 0.34) 0%,
      rgba(42, 78, 91, 0.78) 42%,
      rgba(228, 214, 188, 0.70) 49.4%,
      rgba(228, 214, 188, 0.70) 50.6%,
      rgba(42, 78, 91, 0.78) 58%,
      rgba(193, 143, 65, 0.34) 100%) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.36) !important;
}

html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-row input[type="range"]::-webkit-slider-thumb,
html[data-theme="dark"] body.coastal-edit-page.edit-polished.tasting-wizard-page .wine-axis-row input[type="range"]::-moz-range-thumb {
  border-color: #142c38 !important;
  background: #d2aa62 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(231, 204, 151, 0.50) !important;
}

/* -------------------------------------------------------
   v8.1.13 – Profilprägung: Fit-Badge im Dark Mode
------------------------------------------------------- */
html[data-theme="dark"] body.coastal-profile-page .profile-archetype-primary > em {
  color: #f3dfb8 !important;
  -webkit-text-fill-color: #f3dfb8 !important;
  background: linear-gradient(145deg, rgba(29, 61, 72, 0.98), rgba(13, 35, 48, 0.98)) !important;
  border-color: rgba(213, 181, 127, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 6px 16px rgba(0, 0, 0, 0.18) !important;
}


/* === v8.1.14: Ergebnis-Einblicke im Dark Mode === */
html[data-theme="dark"] body.tasting-result-page .tasting-insight-panel {
  color: #f4efe6 !important;
  background: linear-gradient(155deg, rgba(16, 38, 51, 0.98), rgba(8, 25, 36, 0.98)) !important;
  border-color: rgba(216, 182, 117, 0.18) !important;
}

html[data-theme="dark"] body.tasting-result-page .tasting-insight-card,
html[data-theme="dark"] body.tasting-result-page .tasting-insight {
  color: #f4efe6 !important;
  background: linear-gradient(145deg, rgba(24, 51, 65, 0.98), rgba(12, 32, 44, 0.98)) !important;
  border-color: rgba(204, 188, 157, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.20) !important;
}

html[data-theme="dark"] body.tasting-result-page .tasting-insight-card p,
html[data-theme="dark"] body.tasting-result-page .tasting-insight p {
  color: #f2ece1 !important;
  -webkit-text-fill-color: #f2ece1 !important;
}

html[data-theme="dark"] body.tasting-result-page .tasting-insight-card .tasting-insight-icon,
html[data-theme="dark"] body.tasting-result-page .tasting-insight-icon {
  color: #e1bf7d !important;
  -webkit-text-fill-color: #e1bf7d !important;
  background: linear-gradient(145deg, rgba(190, 143, 65, 0.28), rgba(92, 68, 33, 0.34)) !important;
  border: 1px solid rgba(216, 182, 117, 0.30) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045) !important;
}

@media (max-width: 760px) {
  html[data-theme="dark"] body.tasting-wizard-page .wine-axis-row input.capture-axis-range[type="range"]::-webkit-slider-thumb {
    border-color: #142c38 !important;
    background: #d5ad64 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.46), 0 0 0 5px rgba(213, 173, 100, 0.18) !important;
  }

  html[data-theme="dark"] body.tasting-wizard-page .wine-axis-row input.capture-axis-range[type="range"]::-moz-range-thumb {
    border-color: #142c38 !important;
    background: #d5ad64 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.46), 0 0 0 5px rgba(213, 173, 100, 0.18) !important;
  }
}

/* =======================================================
   v8.1.14c – Dreistufiger 6Flaschen-Assistent
======================================================= */
html[data-theme="dark"] .wr6-assistant-step,
html[data-theme="dark"] .wr6-assistant-message,
html[data-theme="dark"] .wr6-archive-selector,
html[data-theme="dark"] .wr6-assistant-panel {
  color: #f4efe6;
  background: linear-gradient(180deg, rgba(14,31,43,.96), rgba(9,24,35,.95)) !important;
  border-color: rgba(216,182,117,.18) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.28) !important;
}

html[data-theme="dark"] .wr6-step-head h2,
html[data-theme="dark"] .wr6-archive-selector-head h2,
html[data-theme="dark"] .wr6-step-three-head h2,
html[data-theme="dark"] .wr6-assistant-message h2,
html[data-theme="dark"] .wr6-basis-copy strong,
html[data-theme="dark"] .wr6-reference-card strong,
html[data-theme="dark"] .wr6-basis-summary strong,
html[data-theme="dark"] .wr6-archive-copy h3 {
  color: #f5efe5 !important;
}

html[data-theme="dark"] .wr6-step-head p,
html[data-theme="dark"] .wr6-archive-selector-head p,
html[data-theme="dark"] .wr6-assistant-message p,
html[data-theme="dark"] .wr6-basis-copy > span,
html[data-theme="dark"] .wr6-reference-card span,
html[data-theme="dark"] .wr6-basis-summary span,
html[data-theme="dark"] .wr6-archive-copy p,
html[data-theme="dark"] .wr6-archive-summary,
html[data-theme="dark"] .wr6-archive-disabled,
html[data-theme="dark"] .wine-recommendation-status-summary {
  color: #c8d0d4 !important;
}

html[data-theme="dark"] .wr6-step-label,
html[data-theme="dark"] .wr6-basis-copy small,
html[data-theme="dark"] .wr6-reference-card small,
html[data-theme="dark"] .wr6-basis-summary small,
html[data-theme="dark"] .wr6-archive-status-label,
html[data-theme="dark"] .wr6-change-link,
html[data-theme="dark"] .wr6-basis-copy em {
  color: #d9b66f !important;
}

html[data-theme="dark"] .wr6-basis-card,
html[data-theme="dark"] .wr6-basis-summary,
html[data-theme="dark"] .wr6-reference-card,
html[data-theme="dark"] .wr6-step-three-head,
html[data-theme="dark"] .wr6-archive-filter,
html[data-theme="dark"] .wr6-archive-card {
  background: linear-gradient(155deg, rgba(20,42,55,.96), rgba(11,29,41,.96)) !important;
  border-color: rgba(216,182,117,.17) !important;
  color: #f4efe6 !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.22) !important;
}

html[data-theme="dark"] .wr6-basis-card:hover,
html[data-theme="dark"] .wr6-basis-card:focus-visible,
html[data-theme="dark"] .wr6-archive-card.is-final:hover {
  border-color: rgba(216,182,117,.65) !important;
  background: linear-gradient(155deg, rgba(25,51,65,.98), rgba(13,33,46,.98)) !important;
}

html[data-theme="dark"] .wr6-basis-icon,
html[data-theme="dark"] .wr6-archive-thumb {
  color: #e2c487 !important;
  background: rgba(199,164,103,.14) !important;
  border-color: rgba(216,182,117,.22) !important;
}

html[data-theme="dark"] .wr6-selected-mark {
  color: #83c99d !important;
}

html[data-theme="dark"] .wr6-archive-chip {
  color: #d0d7da;
  border-color: rgba(216,182,117,.17);
  background: rgba(255,255,255,.03);
}

html[data-theme="dark"] .wr6-archive-chip.is-active {
  color: #101b23;
  background: linear-gradient(135deg, #d8b675, #bd8d3d);
}

html[data-theme="dark"] .wr6-archive-filter input,
html[data-theme="dark"] .wr6-archive-filter select,
html[data-theme="dark"] .wr6-step-two-form select {
  background: #132d3b !important;
  color: #f4efe6 !important;
  -webkit-text-fill-color: #f4efe6 !important;
  border-color: rgba(216,182,117,.24) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
}

html[data-theme="dark"] .wr6-archive-filter input::placeholder {
  color: #91a1a8 !important;
}

html[data-theme="dark"] .wr6-archive-filter option,
html[data-theme="dark"] .wr6-step-two-form option {
  background: #132d3b !important;
  color: #f4efe6 !important;
}

html[data-theme="dark"] .wr6-archive-facts span {
  background: rgba(255,255,255,.05) !important;
  color: #d2d9dc !important;
}

html[data-theme="dark"] .wr6-archive-select,
html[data-theme="dark"] .wr6-step-two-form .wine-recommendation-search {
  color: #111c25 !important;
  background: linear-gradient(135deg, #d8b675, #bd8d3d) !important;
}

html[data-theme="dark"] .wr6-step-three {
  border-top-color: rgba(216,182,117,.16);
}


/* === v8.1.16: dunkler Recherche-Ladekasten === */
html[data-theme="dark"] body.wine-recommendation-page .wine-recommendation-page-grid326 .wine-recommendation-loading-stage {
  background:
    radial-gradient(circle at 50% 18%, rgba(213, 173, 100, 0.14), transparent 46%),
    linear-gradient(155deg, rgba(18, 42, 55, 0.98), rgba(9, 27, 39, 0.98)) !important;
  border-color: rgba(216, 182, 117, 0.28) !important;
  color: #f4efe6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 36px rgba(0, 0, 0, 0.28) !important;
}

html[data-theme="dark"] body.wine-recommendation-page .wine-recommendation-page-grid326 .wine-recommendation-loading-stage strong {
  color: #f5efe5 !important;
  -webkit-text-fill-color: #f5efe5 !important;
}

html[data-theme="dark"] body.wine-recommendation-page .wine-recommendation-page-grid326 .wine-recommendation-loading-stage p {
  color: #bdc9ce !important;
  -webkit-text-fill-color: #bdc9ce !important;
}

html[data-theme="dark"] body.wine-recommendation-page .wine-recommendation-page-grid326 .wine-recommendation-hourglass {
  color: #e1bf7d !important;
  background: linear-gradient(145deg, rgba(190, 143, 65, 0.24), rgba(92, 68, 33, 0.30)) !important;
  border-color: rgba(216, 182, 117, 0.34) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
