/*
 * 6Flaschen WeinApp
 * Datei: /assets/style.css
 * Version: 5.4.0
 * Stand: 2026-07-27 Europe/Berlin
 */
:root {
  --bg: #f7f4ee;
  --bg-soft: #fbf9f5;
  --card: rgba(255, 252, 247, 0.92);
  --card-solid: #fffcf7;

  --text: #24313b;
  --muted: #7e8790;
  --line: rgba(49, 69, 85, 0.14);

  --sand: #d9cdbd;
  --stone: #c9b8a3;
  --gold: #b89a67;
  --slate: #314555;
  --slate-soft: #7e91a0;

  --danger: #8a3d36;
  --success: #4f7b59;
  --warning: #b58a42;

  --radius-xl: 32px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 50px rgba(36, 49, 59, 0.10);
  --shadow-card: 0 10px 28px rgba(36, 49, 59, 0.08);

  --font-serif: Georgia, "Times New Roman", serif;
  --font-sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Basis */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(145deg, #fbf9f5 0%, #f7f4ee 48%, #e9dfd1 100%);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* App-Grundlayout */

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 18px;
}

.app-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.page {
  padding-bottom: 96px;
}

/* Header */

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(184, 154, 103, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 252, 247, 0.72);
  box-shadow: var(--shadow-card);
  position: relative;
}

.brand-mark::before {
  content: "✦";
  position: absolute;
  top: -9px;
  right: 5px;
  color: var(--gold);
  font-size: 11px;
}

.brand-glass {
  width: 14px;
  height: 22px;
  border: 1.6px solid var(--slate);
  border-top: 2px solid var(--slate);
  border-radius: 7px 7px 5px 5px;
  position: relative;
}

.brand-glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -13px;
  width: 1.5px;
  height: 12px;
  background: var(--slate);
  transform: translateX(-50%);
}

.brand-text {
  line-height: 1.05;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Typografie */

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title,
.hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  line-height: 0.98;
  margin: 0;
}

.hero-title {
  font-size: clamp(52px, 14vw, 112px);
  letter-spacing: -0.05em;
}

.page-title {
  font-size: clamp(36px, 9vw, 64px);
  letter-spacing: -0.035em;
}

.page-subtitle,
.hero-subtitle {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin: 14px 0 0;
  max-width: 640px;
}

/* Karten */

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.card-pad {
  padding: 22px;
}

.card-title {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Buttons */

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  min-height: 46px;
}

.btn-primary {
  background: var(--slate);
  color: #fff;
  box-shadow: 0 12px 24px rgba(49, 69, 85, 0.20);
}

.btn-secondary {
  background: rgba(255, 252, 247, 0.72);
  color: var(--slate);
  border: 1px solid var(--line);
}

.btn-gold {
  background: var(--gold);
  color: #fff;
}

.btn-danger {
  background: rgba(138, 61, 54, 0.10);
  color: var(--danger);
  border: 1px solid rgba(138, 61, 54, 0.25);
}

.btn-full {
  width: 100%;
}

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.7);
}

.badge-entwurf {
  color: #8a642a;
  border-color: rgba(181, 138, 66, 0.35);
  background: rgba(181, 138, 66, 0.11);
}

.badge-final {
  color: #41694a;
  border-color: rgba(79, 123, 89, 0.32);
  background: rgba(79, 123, 89, 0.10);
}

.badge-geloescht {
  color: #8a3d36;
  border-color: rgba(138, 61, 54, 0.30);
  background: rgba(138, 61, 54, 0.09);
}

/* Hero Startseite */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 28px;
  min-height: 620px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.82), rgba(247,244,238,0.50)),
    radial-gradient(circle at 78% 22%, rgba(126,145,160,0.22), transparent 34%),
    linear-gradient(180deg, #fbf9f5, #eadfce);
  box-shadow: var(--shadow-soft);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 34px;
}

.hero-actions {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.hero-card {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.hero-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.hero-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.hero-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(184, 154, 103, 0.12);
  display: grid;
  place-items: center;
  color: var(--gold);
  flex: 0 0 auto;
}

.hero-visual {
  position: absolute;
  right: -24px;
  bottom: -34px;
  width: min(52vw, 360px);
  height: 430px;
  opacity: 0.95;
  pointer-events: none;
}

.bottle {
  position: absolute;
  right: 72px;
  bottom: 0;
  width: 104px;
  height: 360px;
  border-radius: 34px 34px 18px 18px;
  background: linear-gradient(90deg, #cad2c5, #eef0e8 35%, #b6c0b2);
  box-shadow: -18px 20px 40px rgba(49, 69, 85, 0.16);
}

.bottle::before {
  content: "";
  position: absolute;
  top: -78px;
  left: 32px;
  width: 39px;
  height: 96px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(90deg, #b7c0af, #edf0e8 45%, #a9b4a5);
}

.bottle-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 92px;
  height: 106px;
  border-radius: 16px;
  background: #fbf9f5;
  border: 1px solid rgba(49, 69, 85, 0.10);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--slate);
}

.glass {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 92px;
  height: 170px;
  border: 2px solid rgba(49, 69, 85, 0.30);
  border-radius: 0 0 42px 42px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0.12));
}

.glass::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -88px;
  width: 2px;
  height: 88px;
  background: rgba(49, 69, 85, 0.22);
}

/* Formulare */

.form-section {
  margin-bottom: 16px;
}

.form-section summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
  color: var(--slate);
}

.form-section summary::-webkit-details-marker {
  display: none;
}

.form-section-content {
  padding: 0 22px 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
}

.input,
.select,
.textarea,
input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(49, 69, 85, 0.16);
  background: rgba(255,255,255,0.58);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  font-size: 16px;
  font-family: var(--font-sans);
}

textarea,
.textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(184, 154, 103, 0.28);
  border-color: rgba(184, 154, 103, 0.55);
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.upload-card {
  border: 1px dashed rgba(49, 69, 85, 0.24);
  background: rgba(255,255,255,0.42);
  border-radius: var(--radius-md);
  padding: 18px;
}

/* Sticky Actions */

.sticky-actions {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: rgba(247, 244, 238, 0.86);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(49, 69, 85, 0.12);
  z-index: 50;
}

.sticky-actions-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Archiv */

.toolbar {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.searchbar {
  position: relative;
}

.searchbar input {
  padding-left: 44px;
}

.searchbar::before {
  content: "⌕";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 20px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.50);
  color: var(--slate);
  padding: 9px 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.filter-chip.active {
  background: var(--slate);
  color: #fff;
}

.archive-list {
  display: grid;
  gap: 14px;
}

.archive-card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
}

.archive-thumb {
  width: 86px;
  height: 118px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(49, 69, 85, 0.08);
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

.archive-meta {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.archive-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* Detail */

.detail-layout {
  display: grid;
  gap: 18px;
}

.detail-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(49, 69, 85, 0.08);
  min-height: 180px;
}

.detail-section {
  padding: 22px;
  margin-bottom: 14px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.detail-field {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.detail-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-value {
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Meldungen */

.message-box {
  max-width: 680px;
  margin: 60px auto;
  padding: 28px;
  text-align: left;
}

.message-title {
  font-family: var(--font-serif);
  font-size: 38px;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.message-text {
  color: var(--muted);
  line-height: 1.55;
}

/* Desktop */

@media (min-width: 760px) {
  .app-shell {
    padding: 30px;
  }

  .hero {
    min-height: 680px;
    padding: 54px;
  }

  .hero-content {
    width: 56%;
    padding-top: 64px;
  }

  .hero-actions {
    max-width: 520px;
  }

  .hero-visual {
    right: 50px;
    bottom: 10px;
    width: 380px;
    height: 520px;
  }

  .bottle {
    height: 440px;
    width: 124px;
  }

  .glass {
    width: 108px;
    height: 194px;
  }

  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .field-full {
    grid-column: 1 / -1;
  }

  .toolbar {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .archive-card {
    grid-template-columns: 110px 1fr;
    padding: 18px;
  }

  .archive-thumb {
    width: 110px;
    height: 148px;
  }

  .detail-layout {
    grid-template-columns: 320px 1fr;
  }

  .detail-image-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .detail-field-full {
    grid-column: 1 / -1;
  }
}

/* -------------------------------------------------------
   Edit-Seite: optische Angleichung der bestehenden Bearbeitung
   Ziel: neue 6Flaschen-Optik, ohne Formularlogik zu verändern
------------------------------------------------------- */

body.edit-modern {
  margin: 0 !important;
  min-height: 100vh !important;
  font-family: var(--font-sans) !important;
  color: var(--text) !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(145deg, #fbf9f5 0%, #f7f4ee 48%, #e9dfd1 100%) !important;
}

body.edit-modern * {
  box-sizing: border-box;
}

body.edit-modern a {
  color: var(--slate);
}

body.edit-modern > h1,
body.edit-modern > h2,
body.edit-modern > h3,
body.edit-modern > p,
body.edit-modern > form,
body.edit-modern > div,
body.edit-modern > section {
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.edit-modern h1 {
  font-family: var(--font-serif) !important;
  font-size: clamp(34px, 8vw, 58px) !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  line-height: 1 !important;
  color: var(--text) !important;
  margin-top: 28px !important;
  margin-bottom: 18px !important;
}

body.edit-modern h2,
body.edit-modern h3 {
  color: var(--slate) !important;
  letter-spacing: -0.02em !important;
}

body.edit-modern form {
  width: calc(100% - 36px) !important;
  max-width: 1120px !important;
  margin: 0 auto 110px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.edit-modern fieldset,
body.edit-modern details,
body.edit-modern .section,
body.edit-modern .card,
body.edit-modern .box,
body.edit-modern .form-section,
body.edit-modern .panel {
  background: var(--card) !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
  backdrop-filter: blur(18px);
  margin: 0 0 16px !important;
  padding: 20px !important;
  color: var(--text) !important;
}

body.edit-modern legend {
  font-weight: 800 !important;
  color: var(--slate) !important;
  padding: 0 8px !important;
}

body.edit-modern label {
  display: block;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--slate) !important;
  margin-bottom: 7px !important;
}

body.edit-modern input,
body.edit-modern select,
body.edit-modern textarea {
  width: 100% !important;
  border: 1px solid rgba(49, 69, 85, 0.16) !important;
  background: rgba(255,255,255,0.58) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 15px !important;
  font-size: 16px !important;
  font-family: var(--font-sans) !important;
  box-shadow: none !important;
}

body.edit-modern textarea {
  min-height: 112px !important;
  resize: vertical;
}

body.edit-modern input:focus,
body.edit-modern select:focus,
body.edit-modern textarea:focus {
  outline: 2px solid rgba(184, 154, 103, 0.28) !important;
  border-color: rgba(184, 154, 103, 0.55) !important;
}

body.edit-modern input[type="file"] {
  background: rgba(255,255,255,0.34) !important;
  border: 1px dashed rgba(49, 69, 85, 0.24) !important;
}

body.edit-modern button,
body.edit-modern input[type="submit"],
body.edit-modern input[type="button"] {
  appearance: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 13px 18px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-family: var(--font-sans) !important;
  cursor: pointer !important;
  background: var(--slate) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(49, 69, 85, 0.20) !important;
}

body.edit-modern button.secondary,
body.edit-modern input.secondary {
  background: rgba(255, 252, 247, 0.72) !important;
  color: var(--slate) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
}

body.edit-modern table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 10px !important;
}

body.edit-modern td,
body.edit-modern th {
  padding: 8px !important;
  vertical-align: top !important;
  color: var(--text) !important;
}

body.edit-modern img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

body.edit-modern .edit-modern-header {
  width: calc(100% - 36px);
  max-width: 1120px;
  margin: 18px auto 18px;
}

body.edit-modern .edit-modern-title-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
  margin-bottom: 18px;
}

body.edit-modern .edit-modern-title-card h1 {
  margin: 0 !important;
}

body.edit-modern .edit-modern-title-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Mobile Feinschliff */

@media (max-width: 760px) {
  body.edit-modern .app-header {
    align-items: flex-start;
  }

  body.edit-modern .header-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  body.edit-modern form {
    width: calc(100% - 28px) !important;
  }

  body.edit-modern fieldset,
  body.edit-modern details,
  body.edit-modern .section,
  body.edit-modern .card,
  body.edit-modern .box,
  body.edit-modern .form-section,
  body.edit-modern .panel {
    padding: 16px !important;
    border-radius: 22px !important;
  }
}
/* -------------------------------------------------------
   Edit-Seite: finaler optischer Umschlag
   Ziel: gleiche UI-Logik wie /neue-verkostung.php
------------------------------------------------------- */

body.edit-polished .app-shell.page {
  padding-bottom: 116px !important;
}

body.edit-polished .app-container {
  max-width: 1160px !important;
}

body.edit-polished #weinForm {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.edit-polished .edit-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

body.edit-polished .edit-title-card .page-title {
  margin: 0 !important;
}

body.edit-polished .form-section.card {
  overflow: hidden !important;
  padding: 0 !important;
  margin-bottom: 16px !important;
  background: var(--card) !important;
  border: 1px solid rgba(255, 255, 255, 0.66) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-card) !important;
}

body.edit-polished .form-section summary {
  position: relative;
  padding: 20px 54px 20px 22px !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--slate) !important;
  background: rgba(255, 252, 247, 0.35) !important;
  font-size: 18px !important;
  font-weight: 850 !important;
}

body.edit-polished .form-section summary::after {
  content: "⌄";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(184, 154, 103, 0.10);
  border: 1px solid rgba(184, 154, 103, 0.22);
}

body.edit-polished .form-section[open] summary::after {
  content: "⌃";
}

body.edit-polished .form-section-content {
  padding: 22px !important;
}

body.edit-polished .form-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 16px !important;
}

body.edit-polished .field {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
}

body.edit-polished .field-full {
  grid-column: 1 / -1 !important;
}

body.edit-polished label {
  font-size: 13px !important;
  font-weight: 800 !important;
  color: var(--slate) !important;
  margin: 0 !important;
}

body.edit-polished input,
body.edit-polished select,
body.edit-polished textarea {
  width: 100% !important;
  border: 1px solid rgba(49, 69, 85, 0.16) !important;
  background: rgba(255,255,255,0.58) !important;
  color: var(--text) !important;
  border-radius: var(--radius-sm) !important;
  padding: 14px 15px !important;
  font-size: 16px !important;
  font-family: var(--font-sans) !important;
  box-shadow: none !important;
}

body.edit-polished .input-calculated,
body.edit-polished .calculated {
  background: rgba(184, 154, 103, 0.08) !important;
  border-color: rgba(184, 154, 103, 0.28) !important;
  font-weight: 800 !important;
}

body.edit-polished .edit-upload-card {
  display: grid;
  gap: 8px;
}

body.edit-polished .upload-current {
  margin-top: 8px !important;
  padding: 12px !important;
  background: rgba(255,255,255,0.46) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius-md) !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

body.edit-polished .upload-current span {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--slate);
}

body.edit-polished .upload-current img {
  width: 96px !important;
  height: 128px !important;
  max-width: 96px !important;
  max-height: 128px !important;
  object-fit: cover !important;
  border-radius: 16px !important;
  box-shadow: var(--shadow-card) !important;
}

body.edit-polished .hint,
body.edit-polished .result-hint {
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

body.edit-polished .input-suffix {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.edit-polished .input-suffix input {
  flex: 1 !important;
}

body.edit-polished .suffix {
  color: var(--muted) !important;
  font-weight: 800 !important;
}

body.edit-polished .sticky-actions {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
  background: rgba(247, 244, 238, 0.88) !important;
  backdrop-filter: blur(18px) !important;
  border-top: 1px solid rgba(49, 69, 85, 0.12) !important;
  z-index: 50 !important;
}

body.edit-polished .edit-sticky-actions-inner {
  max-width: 1120px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}

body.edit-polished .sticky-actions .btn {
  width: 100% !important;
}

body.edit-polished button.btn,
body.edit-polished .btn {
  border-radius: 999px !important;
}

body.edit-polished .btn-primary {
  background: var(--slate) !important;
  color: #fff !important;
}

body.edit-polished .btn-secondary {
  background: rgba(255, 252, 247, 0.72) !important;
  color: var(--slate) !important;
  border: 1px solid var(--line) !important;
}

@media (min-width: 760px) {
  body.edit-polished .form-grid {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 760px) {
  body.edit-polished .edit-title-row {
    display: block;
  }

  body.edit-polished .edit-title-row .badge {
    margin-top: 14px;
  }

  body.edit-polished .app-header {
    align-items: flex-start;
  }

  body.edit-polished .header-actions {
    /* Gleiche mobile Header-Logik wie auf /neue-verkostung.php. */
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  body.edit-polished .form-section-content {
    padding: 16px !important;
  }

  body.edit-polished .form-section summary {
    padding: 18px 50px 18px 18px !important;
  }
}

/* -------------------------------------------------------
   Login / Register / Account
   Vorbereitung für kommende User-Anwendung
------------------------------------------------------- */

.auth-shell {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 24px 18px;
}

.auth-card {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 26px;
}

.auth-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.auth-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.auth-meta a {
  color: var(--slate);
  font-weight: 800;
  text-decoration: none;
}

/* -------------------------------------------------------
   Generische Systemmeldungen / Empty States
------------------------------------------------------- */

.empty-state {
  padding: 28px;
  text-align: left;
}

.empty-state-title {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--slate);
}

.empty-state-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.alert {
  border-radius: var(--radius-md);
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.52);
  color: var(--text);
  line-height: 1.5;
}

.alert-success {
  color: var(--success);
  border-color: rgba(79, 123, 89, 0.28);
  background: rgba(79, 123, 89, 0.08);
}

.alert-warning {
  color: #8a642a;
  border-color: rgba(181, 138, 66, 0.32);
  background: rgba(181, 138, 66, 0.10);
}

.alert-danger {
  color: var(--danger);
  border-color: rgba(138, 61, 54, 0.28);
  background: rgba(138, 61, 54, 0.08);
}

/* -------------------------------------------------------
   Kleiner Feinschliff für Upload-Vorschau aus /assets/app.js
------------------------------------------------------- */

.upload-card.has-file {
  border-color: rgba(184, 154, 103, 0.48);
  background: rgba(255,255,255,0.62);
}

.upload-preview {
  margin-top: 10px;
  width: 96px;
  height: 128px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.upload-file-name,
.file-name {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------
   Druck / reduzierte Animation
------------------------------------------------------- */

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

@media print {
  .sticky-actions,
  .header-actions,
  .hero-visual {
    display: none !important;
  }

  body {
    background: #fff !important;
    color: #000 !important;
  }

  .card {
    box-shadow: none !important;
    border-color: #ddd !important;
  }
}


/* -------------------------------------------------------
   Gemeinsamer Footer
------------------------------------------------------- */

.app-footer {
  margin-top: 28px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}


/* -------------------------------------------------------
   Login / Register – finaler Funktionsblock
------------------------------------------------------- */

.auth-shell .brand {
  justify-content: center;
  margin-bottom: 18px;
}

.auth-card .page-title {
  margin-bottom: 12px;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.auth-form .field {
  gap: 7px;
}

.auth-form input {
  width: 100%;
}

.auth-actions .btn {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.auth-links a {
  color: var(--slate);
  font-weight: 800;
  text-decoration: none;
}

.auth-small {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.user-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* -------------------------------------------------------
   E-Mail-Bestätigung / Account-Hinweise
------------------------------------------------------- */

.confirm-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: -10px 0 24px;
  border-color: rgba(181, 138, 66, 0.30);
  background: rgba(181, 138, 66, 0.10);
  color: #8a642a;
}

.confirm-banner strong {
  display: block;
  color: #8a642a;
  font-size: 14px;
}

.confirm-banner span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.confirm-banner .btn {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .confirm-banner {
    display: grid;
    gap: 12px;
    margin-top: -8px;
  }

  .confirm-banner .btn {
    width: 100%;
  }
}


/* -------------------------------------------------------
   Mobile Layout Fix 2026-06
   - verhindert abgeschnittene Header-Buttons auf Smartphones
   - schafft mehr Scrollraum hinter der Sticky-Speicherleiste
   - entfernt horizontales Überlaufen in Formularen
------------------------------------------------------- */

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100dvh;
}

.app-shell {
  padding-left: clamp(14px, 4vw, 30px);
  padding-right: clamp(14px, 4vw, 30px);
}

.app-container,
.hero,
.card,
.form-section,
.form-section-content,
.form-grid,
.field,
.upload-card {
  min-width: 0;
}

.btn {
  white-space: nowrap;
}

.app-header {
  min-width: 0;
}

.brand,
.brand-text {
  min-width: 0;
}

.header-actions {
  min-width: 0;
  max-width: 100%;
}

.page {
  padding-bottom: calc(170px + env(safe-area-inset-bottom));
}

body.edit-polished .app-shell.page {
  padding-bottom: calc(190px + env(safe-area-inset-bottom)) !important;
}

form#weinForm {
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}

input[type="date"] {
  min-height: 48px;
  text-align: left;
  line-height: 1.2;
}

input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

input[type="file"] {
  max-width: 100%;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-card input[type="file"] {
  background: rgba(255,255,255,0.60);
  border: 1px solid rgba(49, 69, 85, 0.14);
  border-radius: var(--radius-sm);
}

.sticky-actions {
  padding-left: clamp(14px, 4vw, 22px);
  padding-right: clamp(14px, 4vw, 22px);
}

.sticky-actions-inner,
body.edit-polished .edit-sticky-actions-inner {
  width: 100%;
  max-width: 1120px !important;
}

.app-footer {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

@media (max-width: 760px) {
  .app-shell {
    padding-top: 14px;
    padding-bottom: calc(150px + env(safe-area-inset-bottom));
  }

  .hero {
    min-height: auto;
    padding: 22px 18px 34px;
  }

  .app-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    margin-bottom: 28px;
  }

  .brand {
    width: 100%;
    max-width: 100%;
  }

  .brand-name {
    font-size: clamp(22px, 7vw, 30px);
  }

  .brand-sub {
    font-size: 11px;
  }

  .header-actions {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1px 2px 7px;
    margin: 0 -2px;
  }

  .header-actions::-webkit-scrollbar {
    display: none;
  }

  .header-actions .btn {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 15px;
    font-size: 14px;
  }

  .card-pad {
    padding: 20px;
  }

  .form-section summary {
    padding: 18px 18px;
  }

  .form-section-content {
    padding: 0 18px 20px;
  }

  .form-grid {
    gap: 15px;
  }

  .input,
  .select,
  .textarea,
  input,
  select,
  textarea {
    min-width: 0;
    max-width: 100%;
  }

  .sticky-actions {
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .sticky-actions-inner,
  body.edit-polished .edit-sticky-actions-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .sticky-actions .btn {
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 15px;
  }

  .hero-visual {
    right: -70px;
    bottom: -75px;
    opacity: 0.62;
  }
}

@media (max-width: 380px) {
  .sticky-actions .btn {
    font-size: 14px;
  }

  .header-actions .btn {
    padding-left: 13px;
    padding-right: 13px;
  }
}


/* -------------------------------------------------------
   KI-Analyse Vorbereitung
   Button zwischen Rücketikett und Probentitel
------------------------------------------------------- */

.ai-analysis-field {
  grid-column: 1 / -1;
}

.ai-analysis-button {
  width: 100%;
  min-height: 52px;
  justify-content: center;
}

.ai-analysis-hint {
  margin-top: 8px;
}

.ai-analysis-status {
  margin-top: 12px;
  border-radius: var(--radius-md);
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.56);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.ai-analysis-status.is-loading {
  border-color: rgba(184, 154, 103, 0.32);
  background: rgba(184, 154, 103, 0.10);
  color: #8a642a;
}

.ai-analysis-status.is-success {
  border-color: rgba(79, 123, 89, 0.32);
  background: rgba(79, 123, 89, 0.10);
  color: var(--success);
}

.ai-analysis-status.is-warning {
  border-color: rgba(181, 138, 66, 0.32);
  background: rgba(181, 138, 66, 0.10);
  color: #8a642a;
}

.ai-analysis-status.is-error {
  border-color: rgba(138, 61, 54, 0.28);
  background: rgba(138, 61, 54, 0.08);
  color: var(--danger);
}

@media (max-width: 760px) {
  .ai-analysis-button {
    white-space: normal;
    line-height: 1.25;
    padding-top: 13px;
    padding-bottom: 13px;
  }
}


/* -------------------------------------------------------
   Luxury Design Refresh 2026-06
   Ziel: näher an Referenzbildern – hell, ruhig, hochwertig, coastal, 6Flaschen.
------------------------------------------------------- */

:root {
  --bg: #f8f5ee;
  --bg-soft: #fffdfa;
  --card: rgba(255, 252, 247, 0.88);
  --card-solid: #fffaf3;
  --text: #21313c;
  --muted: #737d84;
  --line: rgba(49, 69, 85, 0.13);
  --gold: #b89a67;
  --gold-soft: #d7bf8a;
  --slate: #2f4656;
  --slate-deep: #1d303c;
  --stone: #c9b8a3;
  --sand: #e1d5c6;
  --shadow-soft: 0 28px 80px rgba(32, 43, 50, 0.12);
  --shadow-card: 0 16px 38px rgba(32, 43, 50, 0.08);
  --shadow-lift: 0 22px 55px rgba(32, 43, 50, 0.13);
}

body {
  background:
    radial-gradient(circle at 18% -4%, rgba(255,255,255,0.96), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(184,154,103,0.13), transparent 25%),
    linear-gradient(145deg, #fbf8f1 0%, #f6f1e8 45%, #e9dfd1 100%);
}

.app-shell {
  padding-top: clamp(16px, 3.5vw, 34px);
}

.app-container {
  max-width: 1160px;
}

.app-header {
  position: relative;
  z-index: 10;
  padding: 0;
}

.brand-mark {
  background: rgba(255, 252, 247, 0.82);
  border-color: rgba(184, 154, 103, 0.38);
}

.brand-name {
  font-size: 25px;
  color: var(--slate-deep);
}

.header-actions .btn {
  min-height: 44px;
  background: rgba(255, 252, 247, 0.74);
  box-shadow: 0 8px 22px rgba(32, 43, 50, 0.06);
}

.header-actions .btn-primary {
  background: var(--slate);
  color: #fff;
}

/* Startseite */

.landing-shell {
  padding-bottom: 22px;
}

.landing-container {
  max-width: 1180px;
}

.hero-luxury {
  min-height: min(840px, calc(100dvh - 38px));
  padding: clamp(22px, 4vw, 54px);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.88) 0%, rgba(255,252,246,0.62) 48%, rgba(235,226,213,0.86) 100%),
    radial-gradient(circle at 76% 18%, rgba(126,145,160,0.24), transparent 33%),
    linear-gradient(180deg, #fffdfa, #e8ded1);
}

.hero-luxury::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.00) 0 38%, rgba(187,203,210,0.25) 39% 48%, rgba(238,230,218,0.35) 49% 100%),
    radial-gradient(ellipse at 14% 65%, rgba(184,154,103,0.16), transparent 26%);
  opacity: 0.92;
}

.hero-luxury::after {
  content: "";
  position: absolute;
  inset: auto -8% -14% -8%;
  height: 44%;
  z-index: -1;
  background:
    repeating-linear-gradient(105deg, rgba(82,96,88,0.09) 0 2px, transparent 2px 26px),
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(221,209,191,0.34));
  transform: skewY(-8deg);
  transform-origin: left top;
  opacity: 0.58;
}

.hero-luxury .app-header {
  margin-bottom: 8px;
}

.luxury-hero-grid {
  min-height: calc(min(840px, 100dvh) - 150px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.luxury-copy {
  max-width: 620px;
  padding-top: clamp(10px, 5vh, 42px);
}

.luxury-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 0 24px;
  border: 2px solid rgba(184, 154, 103, 0.52);
  border-radius: 999px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(255,252,247,0.46);
  box-shadow: 0 16px 34px rgba(32,43,50,0.08);
}

.luxury-icon-star {
  position: absolute;
  top: -17px;
  right: 17px;
  color: var(--gold);
  font-size: 18px;
}

.luxury-icon-glass,
.glass-icon::before,
.bottle-label-mark::before {
  content: "";
  width: 24px;
  height: 34px;
  border: 2px solid var(--gold);
  border-top-width: 2.5px;
  border-radius: 12px 12px 8px 8px;
  display: block;
  position: relative;
}

.luxury-icon-glass::after,
.glass-icon::after,
.bottle-label-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 2px;
  height: 21px;
  background: var(--gold);
  transform: translateX(-50%);
  box-shadow: 0 21px 0 5px transparent, -9px 22px 0 -1px var(--gold), 9px 22px 0 -1px var(--gold);
}

.luxury-eyebrow {
  color: var(--gold);
  margin-bottom: 14px;
}

.luxury-title {
  font-size: clamp(64px, 11vw, 134px);
  letter-spacing: -0.06em;
  text-shadow: 0 14px 35px rgba(32,43,50,0.06);
}

.luxury-title span {
  color: var(--gold);
}

.ornament-line {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(300px, 80%);
  margin: 20px 0 26px;
  color: var(--gold);
}

.ornament-line::before,
.ornament-line::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(184,154,103,0.72));
}

.ornament-line::after {
  background: linear-gradient(90deg, rgba(184,154,103,0.72), transparent);
}

.ornament-line span {
  width: 10px;
  height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.luxury-subtitle {
  max-width: 470px;
  font-size: clamp(16px, 2vw, 19px);
  color: #56626b;
}

.luxury-actions {
  margin-top: clamp(34px, 6vh, 58px);
  max-width: 650px;
}

.luxury-card {
  min-height: 132px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(255,252,247,0.86));
  border: 1px solid rgba(255,255,255,0.78);
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(18px);
}

.luxury-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 26px 66px rgba(32,43,50,0.16);
}

.luxury-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fffdf8, #eee4d7);
  border: 1px solid rgba(184,154,103,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 14px 26px rgba(32,43,50,0.08);
}

.glass-icon::before {
  width: 18px;
  height: 25px;
  border-color: #9d8053;
}

.archive-icon::before {
  content: "";
  width: 33px;
  height: 27px;
  border: 2px solid #9d8053;
  border-radius: 4px;
  box-shadow: 0 -10px 0 -4px #fffdf8, 0 -10px 0 -2px #9d8053;
}

.luxury-card-copy {
  min-width: 0;
  flex: 1;
}

.luxury-card-copy strong {
  font-family: var(--font-serif);
  font-size: clamp(25px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--slate-deep);
  margin: 0 0 8px;
}

.luxury-card-copy span {
  display: block;
  max-width: 390px;
  font-size: 15px;
}

.luxury-card-arrow {
  font-size: 52px;
  line-height: 1;
  color: #9d8053;
  opacity: 0.85;
}

.luxury-note {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  max-width: 620px;
  background: rgba(255,252,247,0.48);
  box-shadow: none;
  border-color: rgba(184,154,103,0.18);
}

.luxury-note-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(184,154,103,0.55);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 26px;
}

.luxury-note p {
  margin: 0;
  color: #56626b;
  line-height: 1.55;
}

.luxury-visual {
  min-height: 610px;
  position: relative;
}

.luxury-bottle-real {
  position: absolute;
  right: clamp(26px, 6vw, 92px);
  bottom: 32px;
  width: clamp(126px, 18vw, 190px);
  height: clamp(430px, 55vw, 610px);
  border-radius: 54px 54px 26px 26px;
  background:
    linear-gradient(90deg, rgba(18,28,23,0.88) 0%, rgba(80,78,45,0.92) 19%, rgba(35,44,32,0.98) 45%, rgba(94,88,45,0.88) 74%, rgba(16,22,18,0.95) 100%);
  box-shadow: -30px 38px 68px rgba(32,43,50,0.28), inset 18px 0 18px rgba(255,255,255,0.08), inset -20px 0 20px rgba(0,0,0,0.28);
}

.bottle-neck {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 18px);
  width: 46%;
  height: 132px;
  transform: translateX(-50%);
  border-radius: 20px 20px 6px 6px;
  background: inherit;
  box-shadow: inherit;
}

.bottle-cap {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 92px);
  width: 50%;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(90deg, #b99452, #f1d28c 45%, #b38b4c);
  box-shadow: inset 0 12px 0 rgba(255,255,255,0.12);
}

.bottle-label-real {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 30%;
  height: 30%;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,0.82), transparent 36%),
    linear-gradient(180deg, #fffaf1, #efe4d2);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: var(--slate-deep);
  box-shadow: inset 0 0 0 1px rgba(184,154,103,0.19);
}

.bottle-label-mark {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(184,154,103,0.52);
  display: grid;
  place-items: center;
  position: relative;
}

.bottle-label-mark::before {
  width: 12px;
  height: 17px;
  border-width: 1.3px;
}

.bottle-label-mark::after {
  height: 11px;
  bottom: 5px;
  width: 1.2px;
}

.bottle-label-real strong {
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 500;
}

.bottle-label-real span:last-child {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(13px, 1.8vw, 19px);
}

.luxury-glass-real {
  position: absolute;
  right: clamp(160px, 25vw, 330px);
  bottom: 56px;
  width: clamp(92px, 11vw, 142px);
  height: clamp(220px, 28vw, 310px);
  border: 2px solid rgba(61,76,83,0.28);
  border-top: 1px solid rgba(61,76,83,0.16);
  border-radius: 12px 12px 48px 48px;
  background: linear-gradient(90deg, rgba(255,255,255,0.45), rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.38));
  box-shadow: 0 26px 40px rgba(32,43,50,0.10), inset 16px 0 18px rgba(255,255,255,0.30);
}

.luxury-glass-real::before {
  content: "";
  position: absolute;
  left: 13%;
  right: 13%;
  bottom: 18%;
  height: 42%;
  border-radius: 0 0 42px 42px;
  background: linear-gradient(180deg, rgba(244,224,153,0.50), rgba(215,177,89,0.32));
}

.luxury-glass-real::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 116px;
  background: rgba(61,76,83,0.20);
  transform: translateX(-50%);
  box-shadow: -44px 116px 0 -1px rgba(61,76,83,0.20), 44px 116px 0 -1px rgba(61,76,83,0.20);
}

/* Seiten-Hero / Formulare / Archiv */

.page-hero {
  margin-bottom: 20px !important;
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px) !important;
  border-radius: 30px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.76), rgba(255,250,243,0.90)),
    radial-gradient(circle at 86% 18%, rgba(184,154,103,0.12), transparent 30%);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -64px;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(126,145,160,0.14), transparent 68%);
  pointer-events: none;
}

.tasting-stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.tasting-stepper span {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.tasting-stepper b {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid var(--line);
  color: var(--slate);
  box-shadow: 0 8px 16px rgba(32,43,50,0.05);
}

.tasting-stepper .active b {
  background: linear-gradient(145deg, var(--slate), #6f8291);
  color: #fff;
}

.form-section.card {
  border-radius: 30px;
  background: rgba(255,252,247,0.88);
  border-color: rgba(255,255,255,0.74);
}

.form-section summary {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--slate-deep);
}

.form-section summary::first-letter {
  color: var(--slate);
}

.upload-card {
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 10px;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.52), rgba(255,250,244,0.76));
  border-color: rgba(49,69,85,0.16);
}

.ai-analysis-button {
  background: linear-gradient(135deg, #b89a67, #cfb579) !important;
  color: #fff !important;
  box-shadow: 0 16px 32px rgba(184,154,103,0.24);
}

.ai-analysis-status {
  background: rgba(255,252,247,0.78);
}

.sticky-actions {
  background: rgba(250,247,240,0.86);
  box-shadow: 0 -18px 45px rgba(32,43,50,0.08);
}

/* Archiv */

.archive-page-hero .page-title {
  font-size: clamp(39px, 7vw, 70px);
}

.archive-summary {
  margin-bottom: 16px !important;
  padding: 15px 20px !important;
  box-shadow: none;
  background: rgba(255,252,247,0.58);
}

.archive-card {
  border-radius: 30px;
  background: rgba(255,252,247,0.91);
  border-color: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-card);
  align-items: stretch;
}

.archive-thumb {
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.52), rgba(224,216,205,0.42));
  box-shadow: inset 0 0 0 1px rgba(49,69,85,0.05);
}

.archive-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.05;
}

.archive-actions .btn {
  min-width: 128px;
}

/* Detail */

.detail-hero .page-title {
  font-size: clamp(38px, 7vw, 66px);
}

.detail-section {
  border-radius: 30px;
}

.detail-image {
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.detail-label {
  color: #8b7a61;
}

/* Mobile */

@media (max-width: 760px) {
  .hero-luxury {
    min-height: auto;
    padding: 18px 16px 26px;
  }

  .hero-luxury .app-header {
    margin-bottom: 14px;
  }

  .luxury-hero-grid {
    display: block;
    min-height: auto;
  }

  .luxury-copy {
    padding-top: 14px;
  }

  .luxury-icon-wrap {
    width: 66px;
    height: 66px;
    margin: 4px auto 22px;
  }

  .luxury-icon-glass {
    width: 19px;
    height: 27px;
  }

  .luxury-title {
    font-size: clamp(58px, 18vw, 82px);
  }

  .luxury-subtitle {
    font-size: 16px;
    max-width: 73%;
  }

  .luxury-visual {
    position: absolute;
    right: -26px;
    top: 112px;
    width: 46%;
    min-height: 300px;
    opacity: 0.92;
    pointer-events: none;
  }

  .luxury-bottle-real {
    right: 10px;
    bottom: -6px;
    width: 88px;
    height: 305px;
  }

  .bottle-neck {
    height: 84px;
  }

  .bottle-cap {
    height: 46px;
    bottom: calc(100% + 56px);
  }

  .bottle-label-real {
    left: 9px;
    right: 9px;
    bottom: 34%;
    height: 88px;
    border-radius: 12px;
    gap: 2px;
  }

  .bottle-label-mark {
    width: 28px;
    height: 28px;
  }

  .bottle-label-real strong {
    font-size: 13px;
  }

  .bottle-label-real span:last-child {
    font-size: 11px;
  }

  .luxury-glass-real {
    right: 90px;
    bottom: 14px;
    width: 66px;
    height: 152px;
    opacity: 0.85;
  }

  .luxury-glass-real::after {
    height: 62px;
    box-shadow: -25px 62px 0 -1px rgba(61,76,83,0.18), 25px 62px 0 -1px rgba(61,76,83,0.18);
  }

  .luxury-actions {
    margin-top: 34px;
  }

  .luxury-card {
    min-height: 120px;
    padding: 18px;
    gap: 14px;
  }

  .luxury-card-icon {
    width: 62px;
    height: 62px;
  }

  .luxury-card-copy strong {
    font-size: clamp(25px, 8vw, 34px);
  }

  .luxury-card-copy span {
    font-size: 14px;
  }

  .luxury-card-arrow {
    font-size: 42px;
  }

  .luxury-note {
    grid-template-columns: 44px 1fr;
    padding: 16px;
  }

  .tasting-stepper {
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tasting-stepper::-webkit-scrollbar {
    display: none;
  }

  .form-section summary {
    font-size: 22px;
  }

  .archive-card {
    grid-template-columns: 92px 1fr;
    gap: 14px;
  }

  .archive-thumb {
    width: 92px;
    height: 126px;
  }

  .archive-actions .btn {
    min-width: 0;
    flex: 1 1 120px;
  }
}

@media (max-width: 430px) {
  .luxury-subtitle {
    max-width: 76%;
  }

  .luxury-visual {
    right: -48px;
    top: 128px;
    opacity: 0.68;
  }

  .luxury-card {
    align-items: center;
  }

  .luxury-card-icon {
    width: 56px;
    height: 56px;
  }

  .luxury-note p {
    font-size: 14px;
  }
}


/* -------------------------------------------------------
   Finaler Bild-Luxury-Refresh
   Echte KI-generierte Bildassets statt CSS-Flasche
------------------------------------------------------- */

.hero-luxury {
  background:
    linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(255,252,247,0.90) 44%, rgba(255,255,255,0.16) 100%),
    url('/assets/img/hero-weinapp_2.png');
  background-size: cover;
  background-position: center right;
}

.hero-luxury::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(255,255,255,0.76), transparent 28%),
    linear-gradient(90deg, rgba(255,252,247,0.68), rgba(255,252,247,0.08));
}

.hero-luxury::after {
  opacity: 0.18;
}

.luxury-visual {
  min-height: 620px;
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,252,247,0.24)),
    url('/assets/img/hero-weinapp-mobile.webp');
  background-size: cover;
  background-position: center;
  box-shadow: 0 32px 84px rgba(32,43,50,0.16);
  border: 1px solid rgba(255,255,255,0.56);
}

.luxury-bottle-real,
.luxury-glass-real {
  display: none !important;
}

.luxury-card:nth-child(1) .luxury-card-icon,
.luxury-card:nth-child(2) .luxury-card-icon {
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(184,154,103,0.22);
}

.luxury-card:nth-child(1) .luxury-card-icon {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,252,247,0.62)),
    url('/assets/img/card-bottle_2.png');
}

.luxury-card:nth-child(2) .luxury-card-icon {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.28), rgba(255,252,247,0.66)),
    url('/assets/img/card-dunes.webp');
}

.luxury-card:nth-child(1) .luxury-card-icon::before,
.luxury-card:nth-child(1) .luxury-card-icon::after,
.luxury-card:nth-child(2) .luxury-card-icon::before,
.luxury-card:nth-child(2) .luxury-card-icon::after {
  display: none !important;
}

.archive-thumb:not(:has(img)) {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,252,247,0.60)),
    url('/assets/img/card-dunes.webp');
  background-size: cover;
  background-position: center;
}

@supports not selector(:has(*)) {
  .archive-thumb {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,252,247,0.60)),
      url('/assets/img/card-dunes.webp');
    background-size: cover;
    background-position: center;
  }
}

@media (max-width: 760px) {
  .hero-luxury {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,252,247,0.70) 42%, rgba(255,252,247,0.95) 100%),
      url('/assets/img/hero-weinapp-mobile.webp');
    background-size: cover;
    background-position: center top;
  }

  .luxury-visual {
    min-height: 360px;
    border-radius: 34px;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,252,247,0.16)),
      url('/assets/img/hero-weinapp-mobile.webp');
  }
}


/* -------------------------------------------------------
   Mobile Dunes Fix 2026-06
   - Startseite mobil ohne abgeschnittenes Hero-Foto
   - Dünenbild als ruhiger Hintergrund statt großem Bild-Duplikat
   - Stepper-/Form-Hero mit dezentem Strand-Element
   - #KIgefüllt wird nicht mehr als sichtbarer Formularwert gesetzt
------------------------------------------------------- */

.hero-luxury {
  background:
    linear-gradient(105deg, rgba(255,255,255,0.96) 0%, rgba(255,252,247,0.90) 44%, rgba(255,255,255,0.16) 100%),
    url('/assets/img/hero-weinapp_2.png');
  background-size: cover;
  background-position: center right;
}

.form-page-hero {
  isolation: isolate;
}

.form-page-hero::before,
.archive-page-hero::before,
.detail-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: min(44%, 330px);
  height: 100%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,252,247,0.94), rgba(255,252,247,0.32)),
    url('/assets/img/card-dunes.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  pointer-events: none;
}

.form-page-hero::after,
.archive-page-hero::after,
.detail-hero::after {
  opacity: 0.24;
}

.tasting-stepper {
  position: relative;
  z-index: 2;
}

@media (max-width: 760px) {
  .hero-luxury {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,252,247,0.74) 42%, rgba(255,252,247,0.98) 100%),
      url('/assets/img/card-dunes.webp');
    background-size: cover;
    background-position: center top;
  }

  .luxury-hero-grid {
    display: block;
    min-height: auto;
  }

  .luxury-copy {
    max-width: 100%;
    padding-top: 10px;
  }

  .luxury-title {
    font-size: clamp(54px, 16vw, 76px);
    letter-spacing: -0.055em;
    max-width: 100%;
  }

  .luxury-subtitle {
    max-width: 100%;
    padding-right: 0;
  }

  .luxury-visual {
    display: none !important;
  }

  .luxury-actions {
    margin-top: 30px;
  }

  .luxury-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    width: 100%;
  }

  .luxury-card-copy strong {
    overflow-wrap: normal;
    hyphens: auto;
  }

  .form-page-hero,
  .archive-page-hero,
  .detail-hero {
    background:
      linear-gradient(160deg, rgba(255,255,255,0.90), rgba(255,250,243,0.92)),
      url('/assets/img/card-dunes.webp') !important;
    background-size: cover !important;
    background-position: center bottom !important;
  }

  .form-page-hero::before,
  .archive-page-hero::before,
  .detail-hero::before {
    display: none;
  }

  .form-page-hero .page-title {
    font-size: clamp(42px, 13vw, 60px);
  }

  .tasting-stepper {
    grid-template-columns: repeat(5, minmax(68px, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .tasting-stepper span {
    font-size: 12px;
    color: #667078;
  }

  .tasting-stepper b {
    background: rgba(255,255,255,0.78);
  }
}

@media (max-width: 430px) {
  .hero-luxury {
    padding-left: 16px;
    padding-right: 16px;
  }

  .luxury-card {
    grid-template-columns: 52px minmax(0, 1fr) 20px;
    padding: 16px;
  }

  .luxury-card-copy strong {
    font-size: clamp(24px, 8vw, 31px);
  }

  .luxury-card-copy span {
    font-size: 14px;
  }

  .luxury-card-arrow {
    font-size: 34px;
  }
}

/* -------------------------------------------------------
   Logo Asset Refresh 2026-06
   - echtes Logo-Asset aus der Vorlage abgeleitet
   - Header, Login/Register und Startseiten-Icon nutzen /assets/img/logo-mark.svg
   - mobile Startseite bleibt dunes-first und vermeidet Bild-Clipping
------------------------------------------------------- */

.brand-mark-svg {
  overflow: visible;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.brand-mark-svg::before,
.brand-mark-svg .brand-glass {
  display: none !important;
}

.brand-logo-mark-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(32,43,50,0.08));
}

.brand-name {
  letter-spacing: -0.015em;
}

.luxury-icon-wrap-svg {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.luxury-logo-mark {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(32,43,50,0.08));
}

.auth-card .brand {
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.auth-card .brand-logo-mark-img {
  width: 58px;
  height: 58px;
}

.hero-luxury {
  background-position: center right;
}

@media (max-width: 760px) {
  .brand-logo-mark-img {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    font-size: clamp(26px, 8vw, 34px);
  }

  .brand-sub {
    letter-spacing: 0.13em;
  }

  .hero-luxury {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,252,247,0.76) 44%, rgba(255,252,247,0.98) 100%),
      url('/assets/img/card-dunes.webp');
    background-size: cover;
    background-position: center top;
  }

  .luxury-logo-mark {
    width: 76px;
    height: 76px;
  }

  .luxury-icon-wrap-svg {
    margin-bottom: 18px;
  }
}

/* -------------------------------------------------------
   Website Logo Refresh 2026-06
   Neues Logo aus bereitgestellter Vorlage: Icon + Wortmarke "WeinApp" + 6Flaschen.de.
------------------------------------------------------- */

.sr-only {
  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;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
}

.brand-logo-link picture {
  display: block;
  line-height: 0;
}

.brand-logo-full-img {
  display: block;
  width: clamp(210px, 34vw, 360px);
  height: auto;
  max-height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(32, 43, 50, 0.08));
}

.app-header .brand-logo-link + .brand-text,
.brand-logo-link .brand-mark,
.brand-logo-link .brand-text {
  display: none !important;
}

.auth-logo-link {
  justify-content: center;
  margin: 0 auto 22px;
  width: 100%;
}

.auth-logo-img {
  width: min(100%, 420px);
  max-height: none;
}

.hero-logo-stage {
  width: min(100%, 640px);
  margin: 0 0 22px;
  position: relative;
  z-index: 2;
}

.hero-logo-image {
  width: min(100%, 620px);
  height: auto;
  filter: drop-shadow(0 18px 32px rgba(32, 43, 50, 0.08));
}

.hero-luxury .app-header {
  align-items: flex-start;
}

.hero-luxury .header-actions {
  padding-top: 8px;
}

@media (min-width: 761px) {
  .hero-logo-stage {
    margin-top: clamp(12px, 4vh, 42px);
  }

  .landing-page .brand-logo-full-img {
    width: clamp(230px, 30vw, 390px);
  }
}

@media (max-width: 760px) {
  .app-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-logo-link {
    max-width: 100%;
  }

  .brand-logo-full-img {
    width: min(100%, 315px);
    max-height: 64px;
  }

  .header-actions {
    margin-top: 2px;
  }

  .hero-logo-stage {
    margin: 8px 0 18px;
    width: 100%;
  }

  .hero-logo-image {
    width: min(100%, 330px);
  }

  .luxury-copy {
    padding-top: 4px;
  }
}

@media (max-width: 420px) {
  .brand-logo-full-img {
    width: min(100%, 285px);
  }

  .hero-logo-image {
    width: min(100%, 300px);
  }
}

/* -------------------------------------------------------
   Startseite: Logo-/Dünen-/Hero-Fix 2026-06
   - kleines Header-Logo auf der Startseite entfernt
   - Hero-Hintergrund nutzt reines Dünenbild
   - Flaschenbild liegt nur noch als Visual rechts
   - Flaschenetikett nutzt aktualisierte Logo-Assets
------------------------------------------------------- */

.landing-auth-header {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  min-height: 52px;
  margin-bottom: clamp(12px, 2.6vw, 26px) !important;
}

.landing-auth-actions {
  width: auto !important;
  justify-content: flex-end !important;
  margin-left: auto;
}

.landing-page .hero-luxury {
  background:
    linear-gradient(105deg, rgba(255,255,255,0.92) 0%, rgba(255,252,247,0.82) 48%, rgba(255,252,247,0.58) 100%),
    url('/assets/img/hintergrund_duenenstrand.webp') !important;
  background-size: cover !important;
  background-position: center bottom !important;
}

.landing-page .hero-luxury::before {
  background:
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.72), transparent 31%),
    linear-gradient(90deg, rgba(255,252,247,0.62), rgba(255,252,247,0.12)) !important;
  opacity: 0.92 !important;
}

.landing-page .luxury-visual {
  display: block !important;
  min-height: 620px;
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,252,247,0.10)),
    url('/assets/img/hero-weinapp_2.png') !important;
  background-size: cover !important;
  background-position: center center !important;
  box-shadow: 0 32px 84px rgba(32,43,50,0.16);
  border: 1px solid rgba(255,255,255,0.56);
}

.landing-page .hero-logo-stage {
  margin-top: clamp(6px, 2.4vh, 26px);
}

.landing-page .hero-logo-image {
  max-width: min(100%, 620px);
}

@media (max-width: 760px) {
  .landing-auth-header {
    display: flex !important;
    justify-content: flex-start !important;
    min-height: auto;
    margin-bottom: 14px !important;
  }

  .landing-auth-actions {
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .landing-page .hero-luxury {
    background:
      linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,252,247,0.80) 44%, rgba(255,252,247,0.98) 100%),
      url('/assets/img/hintergrund_duenenstrand.webp') !important;
    background-size: cover !important;
    background-position: center bottom !important;
  }

  .landing-page .luxury-visual {
    display: none !important;
  }
}

/* -------------------------------------------------------
   Persönliches Wein-Profil auf der Startseite
   Stand 2026-07-18
------------------------------------------------------- */

.wine-profile-card {
  width: 100%;
  cursor: default;
  position: relative;
}

.wine-profile-card:hover {
  transform: none;
  box-shadow: var(--shadow-lift);
}

.wine-profile-card.is-refreshing {
  border-color: rgba(184, 154, 103, 0.30);
}

.profile-icon {
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, rgba(184,154,103,0.16) 0 22%, transparent 23%),
    linear-gradient(145deg, #fffdf8, #eee4d7) !important;
}

.profile-icon::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #9d8053;
  box-shadow:
    inset 0 0 0 7px rgba(184,154,103,0.10),
    0 0 0 6px rgba(184,154,103,0.06);
}

.profile-icon::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 23px;
  background: #9d8053;
  transform: translateY(-8px) rotate(42deg);
  transform-origin: center bottom;
  border-radius: 999px;
}

.wine-profile-meta {
  display: block;
  margin-top: 10px;
  color: #8b7a61;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.wine-profile-meta[hidden] {
  display: none !important;
}

.wine-profile-state {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(49, 69, 85, 0.18);
  background: rgba(255,255,255,0.54);
}

.wine-profile-state.is-loading {
  border-color: rgba(184,154,103,0.28);
  border-top-color: var(--gold);
  animation: wine-profile-spin 0.85s linear infinite;
}

.wine-profile-state.is-success {
  border-color: rgba(79,123,89,0.34);
  background: rgba(79,123,89,0.68);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.76);
}

.wine-profile-state.is-error {
  border-color: rgba(138,61,54,0.32);
  background: rgba(138,61,54,0.18);
}

@keyframes wine-profile-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .wine-profile-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 18px;
  }

  .wine-profile-meta {
    margin-top: 8px;
  }
}

@media (max-width: 430px) {
  .wine-profile-card {
    grid-template-columns: 52px minmax(0, 1fr) 16px;
  }
}

/* -------------------------------------------------------
   Wein-Profil 1.2 – manuelle Aktualisierung und Detailseite
------------------------------------------------------- */

.wine-profile-card {
  align-items: flex-start;
}

.wine-profile-card-copy {
  display: block;
}

.wine-profile-actions {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.wine-profile-analysis-link {
  width: auto;
  min-height: 42px;
  padding: 10px 16px;
  font-size: 14px;
}

.wine-profile-refresh-button {
  appearance: none;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(184,154,103,0.30);
  background: rgba(255,252,247,0.84);
  color: var(--slate);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(32,43,50,0.08);
}

.wine-profile-refresh-button span {
  display: block;
  font-size: 19px;
  line-height: 1;
}

.wine-profile-refresh-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(32,43,50,0.12);
}

.wine-profile-refresh-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.wine-profile-card.is-refreshing .wine-profile-refresh-button span,
.profile-page-hero.is-refreshing .wine-profile-refresh-button span {
  animation: wine-profile-spin 0.85s linear infinite;
}

.wine-profile-feedback {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.wine-profile-feedback[hidden] {
  display: none !important;
}

.wine-profile-feedback.is-loading { color: #8a642a; }
.wine-profile-feedback.is-success { color: var(--success); }
.wine-profile-feedback.is-error { color: var(--danger); }

.wine-profile-page {
  padding-bottom: 50px;
}

.profile-page-hero {
  margin-bottom: 18px;
}

.profile-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.profile-page-refresh {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}

.profile-data-line {
  margin: 14px 0 0;
  color: #8b7a61;
  font-size: 13px;
  font-weight: 700;
}

.profile-dashboard-grid,
.profile-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.75fr);
  gap: 16px;
  margin-bottom: 16px;
}

.profile-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-panel {
  padding: clamp(20px, 3vw, 30px);
  margin-bottom: 16px;
}

.profile-dashboard-grid .profile-panel,
.profile-two-column .profile-panel {
  margin-bottom: 0;
}

.profile-radar {
  width: min(100%, 520px);
  margin: 12px auto 0;
}

.profile-radar svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-grid {
  fill: rgba(184,154,103,0.025);
  stroke: rgba(49,69,85,0.15);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(49,69,85,0.13);
  stroke-width: 1;
}

.radar-data {
  fill: rgba(184,154,103,0.24);
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linejoin: round;
}

.profile-maturity-label {
  margin: 4px 0 18px;
  color: var(--muted);
  text-transform: capitalize;
}

.profile-progress,
.profile-score-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(49,69,85,0.09);
}

.profile-progress span,
.profile-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--slate-soft));
}

.profile-facts {
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}

.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 800; color: var(--slate); }

.compass-axis-list,
.profile-score-list {
  display: grid;
  gap: 22px;
  margin-top: 20px;
}

.compass-axis-labels,
.profile-score-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.compass-axis-labels span:last-child { text-align: right; }
.compass-axis-labels strong { color: var(--gold); font-size: 12px; }

.compass-axis-track {
  position: relative;
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126,145,160,0.20), rgba(255,255,255,0.76) 50%, rgba(184,154,103,0.23));
  border: 1px solid rgba(49,69,85,0.10);
}

.compass-axis-center {
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 18px;
  background: rgba(49,69,85,0.30);
}

.compass-axis-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--slate);
  border: 3px solid #fff;
  box-shadow: 0 5px 14px rgba(32,43,50,0.20);
  transform: translate(-50%, -50%);
}

.compass-axis-row p,
.profile-score-row p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.profile-score-head {
  grid-template-columns: 1fr auto;
  font-size: 14px;
  margin-bottom: 7px;
}

.profile-score-head span {
  color: var(--gold);
  font-weight: 800;
}

.profile-insight-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 11px;
}

.profile-insight-list li {
  position: relative;
  padding-left: 22px;
  color: #56626b;
  line-height: 1.5;
}

.profile-insight-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--gold);
  font-size: 11px;
}

.profile-long-text {
  margin: 16px 0 0;
  color: #56626b;
  line-height: 1.7;
}

.recommendation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.recommendation-tags span {
  display: inline-flex;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(184,154,103,0.10);
  border: 1px solid rgba(184,154,103,0.22);
  color: #7f673f;
  font-size: 13px;
  font-weight: 700;
}

.profile-budget-preview {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 4px;
}

.profile-budget-preview .filter-chip:disabled {
  opacity: 0.64;
}

@media (max-width: 760px) {
  .wine-profile-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .wine-profile-actions {
    flex-wrap: wrap;
  }

  .profile-dashboard-grid,
  .profile-two-column {
    grid-template-columns: 1fr;
  }

  .profile-hero-row {
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .profile-page-refresh {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .compass-axis-labels {
    font-size: 12px;
  }
}

/* -------------------------------------------------------
   Wein-Profil 1.2.1 – Kompass-Legende und reduzierte Reifegrad-Darstellung
------------------------------------------------------- */

.profile-radar-panel {
  width: 100%;
}

.radar-axis-number {
  fill: var(--slate);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
}

.radar-scale-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.radar-scale-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid rgba(49,69,85,0.20);
  background: rgba(255,255,255,0.84);
}

.legend-dot-center {
  background: var(--slate);
  border-color: var(--slate);
}

.legend-dot-neutral {
  background: rgba(184,154,103,0.46);
  border-color: rgba(184,154,103,0.72);
}

.legend-dot-outer {
  background: var(--gold);
  border-color: var(--gold);
}

.radar-method-note {
  max-width: 760px;
  margin: 18px auto 0;
  color: #56626b;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.radar-axis-legend {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: radar-axis;
}

.radar-axis-legend li {
  counter-increment: radar-axis;
  position: relative;
  min-width: 0;
  padding: 14px 14px 14px 48px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.38);
}

.radar-axis-legend li::before {
  content: counter(radar-axis);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(184,154,103,0.13);
  color: #8b6d3e;
  font-size: 12px;
  font-weight: 800;
}

.radar-axis-legend strong,
.radar-axis-legend span {
  display: block;
}

.radar-axis-legend strong {
  color: var(--slate);
  font-size: 14px;
  line-height: 1.35;
}

.radar-axis-legend span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .radar-axis-legend {
    grid-template-columns: 1fr;
  }

  .radar-scale-legend {
    justify-content: flex-start;
  }

  .radar-method-note {
    text-align: left;
  }
}


/* -------------------------------------------------------
   Startseite 1.3 – einheitliche, klar erkennbare Kartenaktionen
------------------------------------------------------- */

.landing-page .luxury-card-arrow {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--slate);
  color: #fff;
  opacity: 1;
  box-shadow: 0 12px 24px rgba(49, 69, 85, 0.20);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.landing-page .luxury-card-arrow-glyph {
  display: block;
  color: #fff !important;
  font-family: var(--font-sans);
  font-size: 33px !important;
  font-weight: 700;
  line-height: 1;
  transform: translate(1px, -1px);
}

.landing-page a.luxury-card:hover .luxury-card-arrow,
.landing-page a.luxury-card:focus-visible .luxury-card-arrow {
  transform: translateX(3px);
  background: var(--slate-deep);
  box-shadow: 0 15px 30px rgba(49, 69, 85, 0.27);
}

.landing-page a.luxury-card:focus-visible {
  outline: 3px solid rgba(47, 70, 86, 0.22);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .landing-page .luxury-card {
    grid-template-columns: 58px minmax(0, 1fr) 48px;
  }

  .landing-page .luxury-card-arrow {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .landing-page .luxury-card-arrow-glyph {
    font-size: 30px !important;
  }
}

@media (max-width: 430px) {
  .landing-page .luxury-card {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
  }
}


/* -------------------------------------------------------
   Startseite 1.4 – Profilkarte mit identischer Pfeilnavigation
------------------------------------------------------- */

.landing-page .wine-profile-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 48px;
  align-items: center;
}

.landing-page .wine-profile-card .wine-profile-actions {
  margin-top: 14px;
}

.landing-page .wine-profile-card .wine-profile-detail-arrow {
  text-decoration: none;
  align-self: center;
}

.landing-page .wine-profile-card .wine-profile-detail-arrow:hover,
.landing-page .wine-profile-card .wine-profile-detail-arrow:focus-visible {
  transform: translateX(3px);
  background: var(--slate-deep);
  box-shadow: 0 15px 30px rgba(49, 69, 85, 0.27);
}

.landing-page .wine-profile-card .wine-profile-detail-arrow:focus-visible {
  outline: 3px solid rgba(47, 70, 86, 0.22);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .landing-page .wine-profile-card {
    grid-template-columns: 58px minmax(0, 1fr) 48px;
  }
}

@media (max-width: 430px) {
  .landing-page .wine-profile-card {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
  }
}


/* -------------------------------------------------------
   UX Update 1.4 – Gastbereich, Kernfelder und Profilgrafiken
------------------------------------------------------- */
.guest-onboarding-card {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(255,252,247,.9));
  box-shadow: var(--shadow-lift);
}
.guest-onboarding-card h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(25px,4vw,38px); font-weight: 500; color: var(--slate-deep); }
.guest-onboarding-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.guest-onboarding-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.guest-profile-card { cursor: default; }
.guest-profile-types { margin-top: 12px; color: #8b7a61 !important; font-size: 12px !important; line-height: 1.6 !important; font-weight: 700; }

.key-field { position: relative; padding: 14px; border-radius: 18px; background: linear-gradient(145deg, rgba(184,154,103,.10), rgba(255,252,247,.52)); border: 1px solid rgba(184,154,103,.28); box-shadow: inset 4px 0 0 rgba(184,154,103,.72); }
.key-field > .field { padding: 0; }
.key-field label { color: #7f673f !important; }
.key-field input, .key-field select, .key-field .upload-card { background: rgba(255,255,255,.78) !important; border-color: rgba(184,154,103,.34) !important; }
.key-field-ai { box-shadow: inset 4px 0 0 var(--slate-soft); background: linear-gradient(145deg, rgba(126,145,160,.12), rgba(255,252,247,.52)); }
.points-source-field { cursor: default; opacity: .82; }

.profile-intro-expanded { max-width: 900px; margin: 16px 0 0; color: #56626b; line-height: 1.72; font-size: 15px; }
.compass-axis-track { overflow: hidden; }
.compass-axis-fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.compass-axis-fill.is-left { background: linear-gradient(90deg, rgba(126,145,160,.78), rgba(126,145,160,.34)); }
.compass-axis-fill.is-right { background: linear-gradient(90deg, rgba(184,154,103,.36), rgba(184,154,103,.84)); }
.compass-axis-center { display: none !important; }
.radar-axis-title { font-size: 11px; }
.radar-data { fill: rgba(184,154,103,.30); stroke-width: 4; filter: drop-shadow(0 5px 8px rgba(184,154,103,.20)); }

@media (max-width:760px) {
  .desktop-auth-header { display: none !important; }
  .guest-onboarding-actions { display:grid; grid-template-columns:1fr 1fr; }
  .guest-onboarding-actions .btn { width:100%; }
  .guest-profile-card { grid-template-columns:58px minmax(0,1fr); }
  .radar-axis-title { font-size: 10px; }
}

/* -------------------------------------------------------
   Wein-Profil 2.0 – bipolare Geschmacksachsen
------------------------------------------------------- */
.profile-section-heading-split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
}

.profile-section-intro {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.profile-polarity-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.profile-polarity-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.42);
}

.profile-polarity-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-pole {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--muted);
}

.profile-pole strong {
  color: var(--slate);
  font-size: 14px;
}

.profile-pole span {
  font-size: 20px;
  font-family: var(--font-serif);
  color: #8c969d;
}

.profile-pole.is-dominant strong,
.profile-pole.is-dominant span {
  color: #8b6d3e;
}

.profile-pole-right {
  justify-content: flex-end;
  text-align: right;
}

.profile-axis-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(184,154,103,0.12);
  color: #8b6d3e;
  font-size: 12px;
  font-weight: 800;
}

.profile-butterfly {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.profile-butterfly-half {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(49,69,85,0.07);
  border: 1px solid rgba(49,69,85,0.08);
  display: flex;
}

.profile-butterfly-left {
  justify-content: flex-end;
}

.profile-butterfly-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
}

/* Grundfarbe beider Pole: zurückhaltendes Schiefergrau. */
.profile-butterfly-left .profile-butterfly-bar {
  background: linear-gradient(90deg, rgba(126,145,160,0.42), rgba(126,145,160,0.90));
}

.profile-butterfly-right .profile-butterfly-bar {
  background: linear-gradient(90deg, rgba(126,145,160,0.90), rgba(126,145,160,0.42));
}

/* Nur der jeweils höhere Wert wird gold hervorgehoben. */
.profile-butterfly.is-left-dominant .profile-butterfly-left .profile-butterfly-bar {
  background: linear-gradient(90deg, rgba(184,154,103,0.45), rgba(184,154,103,0.92));
}

.profile-butterfly.is-right-dominant .profile-butterfly-right .profile-butterfly-bar {
  background: linear-gradient(90deg, rgba(184,154,103,0.92), rgba(184,154,103,0.45));
}

/* Bei exakt 50/50 bleibt die Darstellung bewusst neutral. */
.profile-butterfly.is-balanced .profile-butterfly-bar {
  background: linear-gradient(90deg, rgba(126,145,160,0.48), rgba(126,145,160,0.72));
}

.profile-butterfly-center {
  position: absolute;
  left: 50%;
  top: -3px;
  width: 2px;
  height: 20px;
  border-radius: 999px;
  background: var(--slate);
  transform: translateX(-50%);
  box-shadow: 0 0 0 4px rgba(255,252,247,0.92);
}

.profile-axis-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.profile-confidence {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid var(--line);
}

.profile-confidence-high {
  color: var(--success);
  background: rgba(79,123,89,0.08);
  border-color: rgba(79,123,89,0.24);
}

.profile-confidence-medium {
  color: #8a642a;
  background: rgba(181,138,66,0.09);
  border-color: rgba(181,138,66,0.25);
}

.profile-confidence-low {
  color: var(--muted);
  background: rgba(49,69,85,0.05);
}

.profile-axis-description,
.profile-axis-reason {
  margin: 10px 0 0;
  line-height: 1.55;
  font-size: 13px;
}

.profile-axis-description {
  color: var(--muted);
}

.profile-axis-reason {
  color: #56626b;
  padding-top: 9px;
  border-top: 1px solid rgba(49,69,85,0.08);
}

.profile-radar-secondary {
  background: rgba(255,252,247,0.74);
}

.profile-radar-compact {
  width: min(100%, 390px);
  margin-top: 8px;
}

.profile-radar-key {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 850px;
  margin: 4px auto 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.profile-radar-key span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-radar-key b {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(184,154,103,0.12);
  color: #8b6d3e;
  font-size: 10px;
}

@media (max-width: 760px) {
  .profile-polarity-row {
    padding: 15px;
  }

  .profile-polarity-head {
    grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
    gap: 8px;
  }

  .profile-pole {
    display: grid;
    gap: 2px;
  }

  .profile-pole-right {
    justify-items: end;
  }

  .profile-pole span {
    font-size: 18px;
  }

  .profile-butterfly {
    gap: 8px;
  }

  .profile-radar-key {
    justify-content: flex-start;
  }
}


/* -------------------------------------------------------
   Wein-Profil 2.1 – konsistente Achsentexte und 14 Einzelwerte
------------------------------------------------------- */

.profile-radar-14 {
  width: min(100%, 760px);
  margin: 18px auto 0;
}

.profile-radar-14 svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.radar-axis-label-14 {
  fill: var(--slate);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
}

.radar-data-14 {
  fill: rgba(184,154,103,0.24);
  stroke: var(--gold);
  stroke-width: 3.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 10px rgba(184,154,103,0.18));
}

.profile-radar-key-14 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  max-width: 880px;
  margin-top: 18px;
}

.profile-radar-key-14 span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 11px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.38);
}

.profile-radar-key-14 span.is-left-pole {
  box-shadow: inset 3px 0 0 rgba(126,145,160,0.68);
}

.profile-radar-key-14 span.is-right-pole {
  box-shadow: inset 3px 0 0 rgba(184,154,103,0.72);
}

.profile-radar-key-14 strong {
  min-width: 0;
  color: var(--slate);
  font-size: 12px;
  line-height: 1.35;
}

.profile-radar-key-14 em {
  color: #8b6d3e;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.profile-axis-reason {
  font-weight: 700;
  color: var(--slate);
}

@media (max-width: 760px) {
  .profile-radar-14 {
    width: 100%;
    overflow-x: auto;
    padding: 0 4px 10px;
  }

  .profile-radar-14 svg {
    min-width: 650px;
  }

  .profile-radar-key-14 {
    grid-template-columns: 1fr;
  }

  .radar-axis-label-14 {
    font-size: 12px;
  }
}

/* -------------------------------------------------------
   Wahrgenommenes Weinprofil – sieben editierbare Achsen
------------------------------------------------------- */

.wine-axis-editor {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid rgba(184, 154, 103, 0.34);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.70);
}

.wine-axis-editor[hidden] {
  display: none !important;
}

.wine-axis-editor > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 18px;
  color: var(--slate);
  font-weight: 850;
  border: 0;
  background: rgba(184, 154, 103, 0.08);
}

.wine-axis-editor > summary::-webkit-details-marker {
  display: none;
}

.wine-axis-editor > summary::after {
  content: "⌄";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 20px;
}

.wine-axis-editor[open] > summary::after {
  content: "⌃";
}

.wine-axis-editor-content {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(49, 69, 85, 0.10);
}

.wine-axis-intro {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.wine-axis-list {
  display: grid;
  gap: 14px;
}

.wine-axis-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.9fr) minmax(140px, 2.5fr) minmax(76px, 0.9fr) 46px;
  gap: 10px;
  align-items: center;
}

.wine-axis-pole {
  color: var(--slate);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.wine-axis-pole-left {
  text-align: right;
}

.wine-axis-pole-right {
  text-align: left;
}

.wine-axis-row input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.wine-axis-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(49, 69, 85, 0.42) 0%,
      rgba(49, 69, 85, 0.16) 49.3%,
      rgba(184, 154, 103, 0.18) 50.7%,
      rgba(184, 154, 103, 0.70) 100%);
}

.wine-axis-row input[type="range"]::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(49, 69, 85, 0.42) 0%,
      rgba(49, 69, 85, 0.16) 49.3%,
      rgba(184, 154, 103, 0.18) 50.7%,
      rgba(184, 154, 103, 0.70) 100%);
}

.wine-axis-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--gold);
  box-shadow: 0 3px 12px rgba(49, 69, 85, 0.24);
}

.wine-axis-row input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: var(--gold);
  box-shadow: 0 3px 12px rgba(49, 69, 85, 0.24);
}

.wine-axis-row input[type="range"]:focus-visible {
  outline: 2px solid rgba(184, 154, 103, 0.42) !important;
  outline-offset: 4px;
}

.wine-axis-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid rgba(184, 154, 103, 0.30);
  border-radius: 999px;
  background: rgba(184, 154, 103, 0.10);
  color: var(--slate);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.wine-axis-scale {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  margin: 8px 56px 0 96px;
  color: var(--muted);
  font-size: 10px;
}

.wine-axis-scale span:nth-child(2) {
  text-align: center;
}

.wine-axis-scale span:last-child {
  text-align: right;
}

.wine-axis-meta {
  margin-top: 14px;
}

/* Nur-Lese-Darstellung in der Verkostungsdetailseite */
.wine-axis-readonly-list {
  display: grid;
  gap: 13px;
  margin-top: 14px;
}

.wine-axis-readonly-row {
  display: grid;
  grid-template-columns: minmax(76px, 0.9fr) minmax(140px, 2.5fr) minmax(76px, 0.9fr) 46px;
  gap: 10px;
  align-items: center;
}

.wine-axis-readonly-track {
  position: relative;
  height: 7px;
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(49, 69, 85, 0.42) 0%,
      rgba(49, 69, 85, 0.16) 49.3%,
      rgba(184, 154, 103, 0.18) 50.7%,
      rgba(184, 154, 103, 0.70) 100%);
}

.wine-axis-readonly-marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 3px 10px rgba(49, 69, 85, 0.22);
  transform: translate(-50%, -50%);
}

@media (max-width: 680px) {
  .wine-axis-row,
  .wine-axis-readonly-row {
    grid-template-columns: minmax(66px, 1fr) minmax(115px, 2fr) minmax(66px, 1fr) 42px;
    gap: 7px;
  }

  .wine-axis-pole {
    font-size: 11px;
  }

  .wine-axis-editor-content {
    padding: 14px;
  }

  .wine-axis-scale {
    display: none;
  }
}

/* Überschreibt die breit gefassten Legacy-Regeln der Bearbeitungsseite. */
body.edit-modern details.wine-axis-editor,
body.edit-polished .form-section details.wine-axis-editor {
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(184, 154, 103, 0.34) !important;
  border-radius: var(--radius-md) !important;
  background: rgba(255, 252, 247, 0.70) !important;
  box-shadow: none !important;
}

body.edit-polished .form-section .wine-axis-editor > summary,
body.edit-modern .wine-axis-editor > summary {
  padding: 16px 48px 16px 18px !important;
  border: 0 !important;
  background: rgba(184, 154, 103, 0.08) !important;
  color: var(--slate) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

body.edit-polished .form-section .wine-axis-editor > summary::after,
body.edit-modern .wine-axis-editor > summary::after {
  right: 16px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--gold) !important;
}

body.edit-polished .form-section .wine-axis-editor-content,
body.edit-modern .wine-axis-editor-content {
  padding: 16px 18px 18px !important;
}

body.edit-polished .form-section .wine-axis-editor > summary::after,
body.edit-modern .wine-axis-editor > summary::after {
  content: "⌄" !important;
}

body.edit-polished .form-section .wine-axis-editor[open] > summary::after,
body.edit-modern .wine-axis-editor[open] > summary::after {
  content: "⌃" !important;
}

@media (max-width: 680px) {
  .wine-axis-row,
  .wine-axis-readonly-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    grid-template-areas:
      "left right value"
      "range range value";
    row-gap: 6px;
    column-gap: 8px;
  }

  .wine-axis-pole-left {
    grid-area: left;
    text-align: left;
  }

  .wine-axis-pole-right {
    grid-area: right;
    text-align: right;
  }

  .wine-axis-row input[type="range"],
  .wine-axis-readonly-track {
    grid-area: range;
  }

  .wine-axis-value {
    grid-area: value;
    align-self: center;
  }
}


/* -------------------------------------------------------
   Drei-Schritt-Erfassung v3.7
   Mobil: Wein erfassen → Wein bewerten → Deep Dive
------------------------------------------------------- */

.tasting-wizard-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tasting-wizard-progress button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  min-width: 0;
}

.tasting-wizard-progress button span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tasting-wizard-progress button b {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line);
  color: var(--slate);
  box-shadow: 0 8px 16px rgba(32,43,50,0.05);
}

.tasting-wizard-progress button.active {
  color: var(--slate-deep);
  font-weight: 800;
}

.tasting-wizard-progress button.active b {
  background: linear-gradient(145deg, var(--slate), #6f8291);
  color: #fff;
  border-color: transparent;
}

.wizard-step[hidden] {
  display: none !important;
}

.wizard-step {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.wizard-step-heading {
  padding: 20px 22px;
  background:
    linear-gradient(140deg, rgba(255,255,255,0.78), rgba(255,250,243,0.90)),
    radial-gradient(circle at 90% 12%, rgba(184,154,103,0.12), transparent 32%);
}

.wizard-step-title {
  margin: 0;
  color: var(--slate-deep);
  font-family: var(--font-serif);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.wizard-step-description,
.wizard-block-description {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.wizard-block {
  padding: 0;
  overflow: hidden;
}

body.edit-modern .wizard-block,
body.edit-polished .wizard-block,
body.edit-modern .wizard-step-heading,
body.edit-polished .wizard-step-heading,
body.edit-modern .wizard-deep-intro,
body.edit-polished .wizard-deep-intro {
  padding: 0 !important;
}

body.edit-modern .wizard-step-heading,
body.edit-polished .wizard-step-heading {
  padding: 20px 22px !important;
}

.wizard-block-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,252,247,0.38);
}

.wizard-block-title {
  margin: 0;
  color: var(--slate-deep);
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.wizard-block-content {
  padding: 20px 22px 22px;
}

.wizard-profile-block .wizard-block-content {
  display: block;
}

.wizard-profile-placeholder {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed rgba(184,154,103,0.34);
  border-radius: var(--radius-md);
  background: rgba(184,154,103,0.07);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.wizard-profile-block .wine-axis-editor {
  width: 100%;
}

.wizard-deep-intro {
  padding: 20px 22px;
}

body.edit-modern .wizard-deep-intro,
body.edit-polished .wizard-deep-intro {
  padding: 20px 22px !important;
}

.wizard-deep-section {
  margin-bottom: 0 !important;
}

.wizard-sticky-actions,
body.edit-polished .wizard-sticky-actions {
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1fr) 48px !important;
  align-items: center;
  gap: 8px !important;
}

.wizard-arrow-button {
  width: 48px;
  min-width: 48px;
  padding: 0 !important;
  font-size: 25px;
  line-height: 1;
}

.wizard-arrow-button:disabled {
  opacity: 0.30;
  cursor: default;
  box-shadow: none;
}

.wizard-save-button {
  min-width: 0;
  width: 100%;
}

.tasting-wizard-page .points-source-field {
  background: rgba(184,154,103,0.08) !important;
  border-color: rgba(184,154,103,0.34) !important;
  font-weight: 800;
}

@media (max-width: 760px) {
  .tasting-wizard-progress {
    grid-template-columns: repeat(3, minmax(78px, 1fr));
    overflow-x: visible;
  }

  .tasting-wizard-progress button {
    font-size: 11px;
  }

  .wizard-step {
    gap: 14px;
  }

  .wizard-step-heading,
  body.edit-modern .wizard-step-heading,
  body.edit-polished .wizard-step-heading {
    padding: 18px !important;
  }

  .wizard-block-header {
    padding: 17px 18px 13px;
  }

  .wizard-block-content {
    padding: 17px 18px 19px;
  }

  .wizard-deep-intro,
  body.edit-modern .wizard-deep-intro,
  body.edit-polished .wizard-deep-intro {
    padding: 18px !important;
  }

  .wizard-sticky-actions,
  body.edit-polished .wizard-sticky-actions {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 44px !important;
    gap: 7px !important;
  }

  .wizard-arrow-button {
    width: 44px;
    min-width: 44px;
    min-height: 46px;
    font-size: 23px !important;
  }

  .wizard-save-button {
    padding-left: 8px !important;
    padding-right: 8px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 370px) {
  .wizard-sticky-actions,
  body.edit-polished .wizard-sticky-actions {
    grid-template-columns: 40px minmax(0, 1fr) minmax(0, 1fr) 40px !important;
  }

  .wizard-arrow-button {
    width: 40px;
    min-width: 40px;
  }

  .wizard-save-button {
    font-size: 13px !important;
  }
}

/* Bearbeitungsseite: breit gefasste Legacy-Button-Regeln für den Wizard neutralisieren. */
body.edit-modern .tasting-wizard-progress button,
body.edit-polished .tasting-wizard-progress button {
  background: transparent !important;
  color: var(--muted) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-height: 0 !important;
}
body.edit-modern .tasting-wizard-progress button.active,
body.edit-polished .tasting-wizard-progress button.active { color: var(--slate-deep) !important; }
body.edit-modern .tasting-wizard-progress button b,
body.edit-polished .tasting-wizard-progress button b {
  background: rgba(255,255,255,0.68) !important;
  color: var(--slate) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 16px rgba(32,43,50,0.05) !important;
}
body.edit-modern .tasting-wizard-progress button.active b,
body.edit-polished .tasting-wizard-progress button.active b {
  background: linear-gradient(145deg, var(--slate), #6f8291) !important;
  color: #fff !important;
  border-color: transparent !important;
}


/* -------------------------------------------------------
   Drei-Schritt-Erfassung v3.8
   Kompakter Kopf, sichtbares Nullprofil, klare Deep-Dive-
   Pfeile und vier gleich große Navigationsflächen.
------------------------------------------------------- */

.tasting-wizard-page .form-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  grid-template-areas:
    "eyebrow progress"
    "title progress"
    "subtitle progress"
    "current progress";
  align-items: center;
  column-gap: clamp(22px, 4vw, 54px);
  row-gap: 4px;
  padding: clamp(18px, 2.5vw, 28px);
  margin-bottom: 12px;
}

.tasting-wizard-page .form-page-hero > .eyebrow {
  grid-area: eyebrow;
  margin: 0 0 2px;
}

.tasting-wizard-page .form-page-hero > .page-title,
.tasting-wizard-page .form-page-hero .edit-title-row {
  grid-area: title;
}

.tasting-wizard-page .form-page-hero > .page-title {
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
}

.tasting-wizard-page .form-page-hero > .page-subtitle {
  grid-area: subtitle;
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.45;
  max-width: 620px;
}

.tasting-wizard-page .form-page-hero .edit-title-row {
  margin: 0;
}

.tasting-wizard-page .form-page-hero .edit-title-row .page-title {
  font-size: clamp(34px, 5vw, 54px) !important;
  line-height: 1 !important;
}

.tasting-wizard-page .form-page-hero .edit-title-row .page-subtitle {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.tasting-wizard-page .tasting-wizard-progress {
  grid-area: progress;
  margin: 0;
  align-self: center;
  min-width: 0;
}

.wizard-current-step {
  grid-area: current;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.wizard-current-description {
  grid-area: current;
  justify-self: start;
  margin: 8px 0 0 132px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wizard-step {
  gap: 12px;
  margin-bottom: 12px;
}

/* Die zusätzliche große Schritttitel-Karte aus v3.7 entfällt. */
.wizard-step-heading {
  display: none !important;
}

.wizard-block-header {
  padding: 15px 20px 12px;
}

.wizard-block-content {
  padding: 16px 20px 19px;
}

.wizard-block-title {
  font-size: 21px;
}

.wizard-block-description {
  margin-top: 5px;
}

/* Profil ist auch ohne KI direkt als neutrales Nullprofil bedienbar. */
.wizard-profile-placeholder {
  display: none !important;
}

.wizard-profile-block .wine-axis-editor {
  display: block !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.wizard-profile-block .wine-axis-editor > summary {
  display: none !important;
}

.wizard-profile-block .wine-axis-editor-content {
  display: block !important;
  padding: 0 !important;
}

/* Aufklappbarkeit des Deep Dives klar sichtbar machen. */
.wizard-deep-intro {
  display: none !important;
}

.wizard-deep-section {
  position: relative;
  overflow: hidden;
}

.wizard-deep-section > summary {
  position: relative;
  padding-right: 70px !important;
}

.wizard-deep-section > summary::after,
body.edit-modern .wizard-deep-section > summary::after,
body.edit-polished .wizard-deep-section > summary::after {
  content: "→" !important;
  position: absolute !important;
  right: 20px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 999px !important;
  color: var(--slate) !important;
  background: rgba(49, 69, 85, 0.08) !important;
  border: 1px solid rgba(49, 69, 85, 0.14) !important;
  font-family: var(--font-sans) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.wizard-deep-section[open] > summary::after,
body.edit-modern .wizard-deep-section[open] > summary::after,
body.edit-polished .wizard-deep-section[open] > summary::after {
  content: "↓" !important;
  color: #fff !important;
  background: var(--slate) !important;
  border-color: var(--slate) !important;
}

/* Zwei gleich große Speicherflächen in der unteren Navigation. */
.wizard-sticky-actions,
body.edit-polished .wizard-sticky-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.wizard-sticky-actions .btn,
body.edit-polished .wizard-sticky-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  padding: 10px 8px !important;
}

.wizard-arrow-button,
body.edit-modern .wizard-arrow-button,
body.edit-polished .wizard-arrow-button {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 32px !important;
  color: var(--slate-deep) !important;
  background: rgba(49, 69, 85, 0.13) !important;
  border: 1px solid rgba(49, 69, 85, 0.18) !important;
  box-shadow: none !important;
}

.wizard-arrow-button:not(:disabled):hover,
.wizard-arrow-button:not(:disabled):focus-visible {
  background: rgba(49, 69, 85, 0.20) !important;
}

.wizard-arrow-button:disabled {
  opacity: 0.34;
  background: rgba(49, 69, 85, 0.06) !important;
}

@media (max-width: 760px) {
  .tasting-wizard-page .form-page-hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "subtitle"
      "current"
      "progress";
    gap: 3px;
    padding: 17px 18px 18px;
  }

  .tasting-wizard-page .form-page-hero > .page-title,
  .tasting-wizard-page .form-page-hero .edit-title-row .page-title {
    font-size: clamp(31px, 10vw, 42px) !important;
  }

  .tasting-wizard-page .form-page-hero > .page-subtitle,
  .tasting-wizard-page .form-page-hero .edit-title-row .page-subtitle {
    font-size: 13px;
    line-height: 1.4;
  }

  .wizard-current-step {
    margin-top: 7px;
  }

  .wizard-current-description {
    margin: 7px 0 0 124px;
    font-size: 12px;
  }

  .tasting-wizard-page .tasting-wizard-progress {
    margin-top: 14px;
  }

  .wizard-block-header {
    padding: 14px 17px 11px;
  }

  .wizard-block-content {
    padding: 15px 17px 18px;
  }

  .wizard-deep-section > summary {
    padding: 17px 62px 17px 18px !important;
  }

  .wizard-deep-section > summary::after,
  body.edit-modern .wizard-deep-section > summary::after,
  body.edit-polished .wizard-deep-section > summary::after {
    right: 15px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 21px !important;
  }

  .wizard-sticky-actions,
  body.edit-polished .wizard-sticky-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .wizard-sticky-actions .btn,
  body.edit-polished .wizard-sticky-actions .btn {
    min-height: 52px !important;
    font-size: 13px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }

  .wizard-arrow-button,
  body.edit-modern .wizard-arrow-button,
  body.edit-polished .wizard-arrow-button {
    font-size: 30px !important;
  }
}

@media (max-width: 370px) {
  .wizard-sticky-actions .btn,
  body.edit-polished .wizard-sticky-actions .btn {
    font-size: 12px !important;
  }
}


/* v4.0.0 – POST-Logout ohne Layoutsprung */
.header-logout-form { margin: 0; display: inline-flex; }
.header-logout-form .btn { width: auto; }


/* -------------------------------------------------------
   Geschmacksachsen 3.0 – Evidenz und Achsensicherheit
------------------------------------------------------- */

.wine-axis-evidence {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(49, 69, 85, 0.055);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wine-axis-readonly-evidence {
  grid-column: 1 / -1;
  margin: 7px 0 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wine-axis-identification {
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(184, 154, 103, 0.24);
  border-radius: 14px;
  background: rgba(184, 154, 103, 0.08);
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}


/* -------------------------------------------------------
   Wizard-Navigation 4.1.1
   Stabiler Kopf ohne Überlagerungen, sichtbare Seitennavigation
   und kontrastreichere Aktionsleiste.
------------------------------------------------------- */

.tasting-wizard-page .form-page-hero,
body.edit-modern.tasting-wizard-page .form-page-hero,
body.edit-polished.tasting-wizard-page .form-page-hero {
  display: block !important;
  min-height: 0 !important;
  padding: clamp(18px, 2.5vw, 27px) !important;
  margin-bottom: 14px !important;
  overflow: hidden !important;
}

.tasting-wizard-page .form-page-hero > .eyebrow {
  margin: 0 0 7px !important;
}

.tasting-wizard-page .form-page-hero > .page-title,
.tasting-wizard-page .form-page-hero .edit-title-row .page-title {
  margin: 0 !important;
  max-width: 100% !important;
  font-size: clamp(34px, 5.4vw, 56px) !important;
  line-height: 1.02 !important;
  overflow-wrap: anywhere;
}

.tasting-wizard-page .form-page-hero > .page-subtitle,
.tasting-wizard-page .form-page-hero .edit-title-row .page-subtitle {
  display: block !important;
  max-width: 760px !important;
  margin: 9px 0 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  position: static !important;
  transform: none !important;
}

.tasting-wizard-page .form-page-hero .edit-title-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  width: 100% !important;
  margin: 0 !important;
}

.wizard-current-step {
  display: block !important;
  margin: 12px 0 0 !important;
  color: var(--gold) !important;
  font-size: 12px !important;
  font-weight: 850 !important;
  letter-spacing: 0.13em !important;
  line-height: 1.4 !important;
  text-transform: uppercase !important;
  position: static !important;
}

.wizard-current-description {
  display: none !important;
}

.tasting-wizard-page .tasting-wizard-progress,
body.edit-modern .tasting-wizard-progress,
body.edit-polished .tasting-wizard-progress {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 17px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(49, 69, 85, 0.12) !important;
  gap: clamp(8px, 2.5vw, 28px) !important;
  position: static !important;
  transform: none !important;
}

.tasting-wizard-page .tasting-wizard-progress button,
body.edit-modern .tasting-wizard-progress button,
body.edit-polished .tasting-wizard-progress button {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-rows: auto auto !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 7px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: normal !important;
}

.tasting-wizard-page .tasting-wizard-progress button span,
body.edit-modern .tasting-wizard-progress button span,
body.edit-polished .tasting-wizard-progress button span {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: auto;
}

.tasting-wizard-page .tasting-wizard-progress button b,
body.edit-modern .tasting-wizard-progress button b,
body.edit-polished .tasting-wizard-progress button b {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  border-radius: 999px !important;
}

.tasting-wizard-page .tasting-wizard-progress button.active,
body.edit-modern .tasting-wizard-progress button.active,
body.edit-polished .tasting-wizard-progress button.active {
  color: var(--slate-deep) !important;
  font-weight: 850 !important;
}

/* Prominente Navigation am tatsächlichen Seitenende von Seite 1 und 2. */
.wizard-inline-navigation {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  margin: 4px 0 12px;
  padding: 18px;
  border: 1px solid rgba(184, 154, 103, 0.25);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 252, 247, 0.94), rgba(231, 218, 198, 0.72));
  box-shadow: 0 12px 30px rgba(36, 49, 59, 0.08);
}

.wizard-inline-button {
  min-height: 54px !important;
  padding: 13px 20px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
  white-space: normal !important;
}

.wizard-inline-back,
body.edit-modern .wizard-inline-back,
body.edit-polished .wizard-inline-back {
  color: #fff !important;
  background: linear-gradient(145deg, #758b9a, #5d7485) !important;
  box-shadow: 0 10px 22px rgba(49, 69, 85, 0.20) !important;
}

.wizard-inline-next,
body.edit-modern .wizard-inline-next,
body.edit-polished .wizard-inline-next {
  color: #fff !important;
  background: linear-gradient(145deg, #c9894f, #ae7444) !important;
  box-shadow: 0 12px 26px rgba(174, 116, 68, 0.26) !important;
}

/* Untere Aktionsleiste: nur noch Entwurf und Final speichern. */
.tasting-wizard-actions {
  z-index: 120 !important;
  background: rgba(247, 244, 238, 0.97) !important;
  border-top: 1px solid rgba(49, 69, 85, 0.18) !important;
  box-shadow: 0 -12px 34px rgba(36, 49, 59, 0.16) !important;
}

.wizard-sticky-actions,
body.edit-polished .wizard-sticky-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

.wizard-sticky-actions .btn,
body.edit-polished .wizard-sticky-actions .btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 12px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 17px !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  white-space: normal !important;
  box-shadow: 0 8px 18px rgba(36, 49, 59, 0.16) !important;
}


.wizard-save-draft,
body.edit-modern .wizard-save-draft,
body.edit-polished .wizard-save-draft {
  color: #263744 !important;
  background: #d4b875 !important;
}

.wizard-save-final,
body.edit-modern .wizard-save-final,
body.edit-polished .wizard-save-final {
  color: #fff !important;
  background: #263f50 !important;
}



@media (max-width: 760px) {
  .tasting-wizard-page .form-page-hero,
  body.edit-modern.tasting-wizard-page .form-page-hero,
  body.edit-polished.tasting-wizard-page .form-page-hero {
    padding: 17px 18px 19px !important;
  }

  .tasting-wizard-page .form-page-hero .edit-title-row {
    display: block !important;
  }

  .tasting-wizard-page .form-page-hero .edit-title-row .badge {
    display: inline-flex !important;
    margin-top: 12px !important;
  }

  .tasting-wizard-page .form-page-hero > .page-title,
  .tasting-wizard-page .form-page-hero .edit-title-row .page-title {
    font-size: clamp(31px, 10vw, 42px) !important;
  }

  .tasting-wizard-page .form-page-hero > .page-subtitle,
  .tasting-wizard-page .form-page-hero .edit-title-row .page-subtitle {
    font-size: 13px !important;
    line-height: 1.42 !important;
  }

  .tasting-wizard-page .tasting-wizard-progress,
  body.edit-modern .tasting-wizard-progress,
  body.edit-polished .tasting-wizard-progress {
    margin-top: 14px !important;
    padding-top: 14px !important;
    gap: 5px !important;
  }

  .tasting-wizard-page .tasting-wizard-progress button,
  body.edit-modern .tasting-wizard-progress button,
  body.edit-polished .tasting-wizard-progress button {
    padding: 0 2px !important;
    font-size: 12px !important;
  }

  .tasting-wizard-page .tasting-wizard-progress button b,
  body.edit-modern .tasting-wizard-progress button b,
  body.edit-polished .tasting-wizard-progress button b {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }

  .wizard-inline-navigation {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 14px;
    border-radius: 18px;
  }

  .wizard-inline-navigation.has-two-actions {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-inline-button {
    width: 100% !important;
    min-height: 52px !important;
    padding: 11px 12px !important;
    font-size: 13px !important;
  }

  .wizard-sticky-actions,
  body.edit-polished .wizard-sticky-actions {
    gap: 6px !important;
  }

  .wizard-sticky-actions .btn,
  body.edit-polished .wizard-sticky-actions .btn {
    min-height: 54px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }
}

@media (max-width: 370px) {
  .wizard-inline-navigation.has-two-actions {
    grid-template-columns: 1fr;
  }

  .wizard-sticky-actions .btn,
  body.edit-polished .wizard-sticky-actions .btn {
    font-size: 11px !important;
  }
}

/* -------------------------------------------------------
   Edit-Header 5.1.3
   Der gemeinsame Header muss auf Neu- und Edit-Seite identisch bleiben.
   Die veraltete Klasse .edit-modern wird in edit_verkostung.php nicht mehr
   gesetzt. Diese Regeln sichern zusätzlich Logo und Logout-Formular ab.
------------------------------------------------------- */
body.edit-polished.tasting-wizard-page .app-header {
  width: 100%;
  max-width: none;
}

body.edit-polished.tasting-wizard-page .app-header .brand-logo-full-img {
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.edit-polished.tasting-wizard-page .app-header .header-logout-form {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.edit-polished.tasting-wizard-page .app-header .header-actions {
  align-items: center;
}

@media (max-width: 760px) {
  body.edit-polished.tasting-wizard-page .app-header .header-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
  }
}


/* -------------------------------------------------------
   Zwei-Seiten-Erfassung v5.3.0
   Seite 1: vollständige Verkostung
   Seite 2: optionaler Deep Dive
------------------------------------------------------- */

.tasting-wizard-progress {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-analysis-hint {
  display: none !important;
}

/* Alte Hervorhebungslogik wird durch zwei fachliche Prüfgruppen ersetzt. */
.review-field {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.review-field > .field {
  padding: 0;
}

.review-field-ai {
  background: linear-gradient(145deg, rgba(184, 154, 103, 0.14), rgba(255, 252, 247, 0.72));
  border: 1px solid rgba(184, 154, 103, 0.40);
  box-shadow: inset 4px 0 0 rgba(184, 154, 103, 0.88);
}

.review-field-ai label {
  color: #765e36 !important;
}

.review-field-ai input,
.review-field-ai select,
.review-field-ai textarea,
.review-field-ai .upload-card {
  background: rgba(255, 255, 255, 0.84) !important;
  border-color: rgba(184, 154, 103, 0.42) !important;
}

.review-field-result {
  background: linear-gradient(145deg, rgba(47, 70, 86, 0.13), rgba(255, 252, 247, 0.76));
  border: 1px solid rgba(47, 70, 86, 0.42);
  box-shadow: inset 4px 0 0 var(--slate);
}

.review-field-result label {
  color: var(--slate-deep) !important;
}

.review-field-result input,
.review-field-result select,
.review-field-result textarea {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(47, 70, 86, 0.42) !important;
  font-weight: 750;
}

.review-block-result {
  border-color: rgba(47, 70, 86, 0.34) !important;
  box-shadow: inset 4px 0 0 var(--slate), var(--shadow-card) !important;
}

.review-block-result .wizard-block-header {
  background: linear-gradient(145deg, rgba(47, 70, 86, 0.13), rgba(255, 252, 247, 0.78));
  border-bottom-color: rgba(47, 70, 86, 0.20);
}

.review-block-result .wizard-block-title {
  color: var(--slate-deep);
}

/* Die Profil-Schnellerfassung ist ein Kernergebnis, bleibt aber editierbar. */
.review-block-result .wine-axis-editor {
  border-color: rgba(47, 70, 86, 0.28) !important;
  background: rgba(47, 70, 86, 0.045) !important;
}

/* Kompakter KI-Status direkt unter dem Analysebutton. */
.ai-analysis-status {
  margin-top: 10px;
  padding: 11px 14px;
  line-height: 1.35;
  font-weight: 700;
}

/* Seitennavigation für zwei statt drei Seiten. */
.wizard-step[data-wizard-step="2"] .wizard-inline-navigation {
  justify-content: flex-start;
}

.wizard-inline-next {
  background: linear-gradient(145deg, var(--slate), #526b7b) !important;
  box-shadow: 0 12px 26px rgba(47, 70, 86, 0.24) !important;
}

.wizard-inline-back {
  background: rgba(255, 252, 247, 0.88) !important;
  color: var(--slate) !important;
  border: 1px solid rgba(47, 70, 86, 0.24) !important;
  box-shadow: 0 10px 22px rgba(47, 70, 86, 0.10) !important;
}

@media (max-width: 760px) {
  .review-field {
    padding: 13px;
    border-radius: 17px;
  }

  .wizard-inline-navigation {
    padding: 14px;
  }

  .wizard-inline-button {
    width: 100%;
  }
}

/* Edit-Seite: berechnete Felder dürfen nicht auf die alte Goldmarkierung zurückfallen. */
body.edit-polished .review-field-result input,
body.edit-polished .review-field-result select,
body.edit-polished .review-field-result textarea {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(47, 70, 86, 0.42) !important;
  color: var(--text) !important;
  font-weight: 750 !important;
}

/* -------------------------------------------------------
   UI Refresh v5.4.0
   - Startseiten-Karten mit Bildmotiven im bestehenden Farbkonzept
   - vorbereiteter Profil-Button
   - kompakte Etikett-Uploads mit direkter Vorschau
------------------------------------------------------- */

.landing-page .landing-auth-header {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.landing-profile-button {
  appearance: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--slate-deep);
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 48, 60, 0.20);
  cursor: default;
}

.landing-profile-button-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.landing-profile-button-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  height: 6px;
  border: 1.6px solid #fff;
  border-radius: 999px;
  transform: translateX(-50%);
}

.landing-profile-button-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 15px;
  height: 8px;
  border: 1.6px solid #fff;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform: translateX(-50%);
}

.landing-page .home-feature-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 154px;
  padding: 22px 24px;
  align-items: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.82), rgba(255,252,247,0.92));
  border-color: rgba(255,255,255,0.82);
}

.landing-page .home-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,252,247,0.99) 0%, rgba(255,252,247,0.94) 48%, rgba(255,252,247,0.36) 72%, rgba(255,252,247,0.08) 100%);
  pointer-events: none;
}

.landing-page .home-feature-card .luxury-card-icon,
.landing-page .home-feature-card .luxury-card-copy,
.landing-page .home-feature-card .luxury-card-arrow,
.landing-page .home-feature-card .wine-profile-actions {
  position: relative;
  z-index: 3;
}

.landing-page .home-feature-card .luxury-card-icon {
  width: 54px;
  height: 54px;
  background: var(--slate-deep) !important;
  border: 1px solid rgba(255,255,255,0.26) !important;
  box-shadow: 0 12px 24px rgba(29,48,60,0.16) !important;
}

.landing-page .home-feature-card .glass-icon::before {
  border-color: #fff !important;
}

.landing-page .home-feature-card .glass-icon::after {
  background: #fff !important;
  box-shadow: 0 21px 0 5px transparent, -9px 22px 0 -1px #fff, 9px 22px 0 -1px #fff !important;
}

.landing-page .home-feature-card .archive-icon::before {
  border-color: #fff !important;
  box-shadow: 0 -10px 0 -4px var(--slate-deep), 0 -10px 0 -2px #fff !important;
}

.landing-page .home-feature-card .profile-icon::before,
.landing-page .home-feature-card .profile-icon::after {
  border-color: #fff !important;
}

.landing-page .home-feature-card .luxury-card-copy {
  max-width: 58%;
  padding-right: 8px;
}

.landing-page .home-feature-card .luxury-card-copy strong {
  font-size: clamp(25px, 3.4vw, 36px);
}

.landing-page .home-feature-card .luxury-card-copy > span:not(.wine-profile-actions) {
  max-width: 310px;
}

.home-feature-media {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 47%;
  overflow: hidden;
  pointer-events: none;
}

.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(0.98);
}

.landing-page .home-feature-card .luxury-card-arrow {
  margin-left: auto;
  color: var(--slate-deep);
  align-self: center;
}

.landing-page .wine-profile-card .home-feature-media {
  width: 45%;
}

.landing-page .wine-profile-card-copy {
  max-width: 58%;
}

/* Kompakte Etikett-Uploads */
.label-upload-section {
  gap: 10px;
}

.label-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.label-upload-tile.upload-card {
  position: relative;
  min-height: 150px;
  padding: 0 !important;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(49,69,85,0.26) !important;
  border-radius: 20px !important;
  background: rgba(255,255,255,0.52) !important;
  cursor: pointer;
  isolation: isolate;
}

.label-upload-tile.upload-card:hover,
.label-upload-tile.upload-card:focus-within {
  border-color: rgba(184,154,103,0.66) !important;
  box-shadow: 0 12px 28px rgba(32,43,50,0.08);
}

.label-upload-input,
body.edit-polished .label-upload-input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 4 !important;
}

.label-upload-placeholder {
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--slate);
  text-align: center;
  padding: 18px;
}

.label-upload-placeholder[hidden] {
  display: none !important;
}

.label-upload-placeholder strong {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(49,69,85,0.08);
  border: 1px solid rgba(49,69,85,0.14);
  color: var(--slate-deep);
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.label-upload-placeholder span {
  font-size: 13px;
  font-weight: 800;
}

.label-upload-preview,
body.edit-polished .label-upload-preview {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  z-index: 1;
}

.label-upload-preview[hidden] {
  display: none !important;
}

.label-upload-caption {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(29,48,60,0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}

.label-upload-tile.has-image .label-upload-caption {
  opacity: 1;
  transform: translateY(0);
}

.label-upload-tile.has-image {
  border-style: solid !important;
  border-color: rgba(184,154,103,0.42) !important;
}

@media (max-width: 760px) {
  .landing-page .landing-auth-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-height: 48px;
    margin-bottom: 10px;
  }

  .landing-page .home-feature-card {
    min-height: 144px;
    padding: 18px;
    gap: 12px;
  }

  .landing-page .home-feature-card .luxury-card-icon {
    width: 48px;
    height: 48px;
  }

  .landing-page .home-feature-card .luxury-card-copy,
  .landing-page .wine-profile-card-copy {
    max-width: 60%;
  }

  .landing-page .home-feature-card .luxury-card-copy strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .landing-page .home-feature-card .luxury-card-copy > span:not(.wine-profile-actions) {
    font-size: 13px;
    line-height: 1.35;
  }

  .home-feature-media {
    width: 46%;
  }

  .landing-page .home-feature-card::before {
    background: linear-gradient(90deg, rgba(255,252,247,0.99) 0%, rgba(255,252,247,0.93) 50%, rgba(255,252,247,0.28) 76%, rgba(255,252,247,0.05) 100%);
  }

  .landing-page .home-feature-card .luxury-card-arrow {
    font-size: 34px;
  }

  .label-upload-tile.upload-card {
    min-height: 132px;
    border-radius: 18px !important;
  }

  .label-upload-placeholder strong {
    width: 44px;
    height: 44px;
    font-size: 27px;
  }
}

@media (max-width: 390px) {
  .label-upload-grid {
    gap: 9px;
  }

  .label-upload-tile.upload-card {
    min-height: 122px;
  }

  .landing-page .home-feature-card .luxury-card-copy {
    max-width: 62%;
  }
}
