:root {
  --ink: #142452;
  --ink-2: #334169;
  --muted: #6f7894;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-solid: #fffdf8;
  --line: #eadfcf;
  --line-blue: #cfe0ff;
  --blue: #5e8df0;
  --blue-deep: #486ed5;
  --green: #a9d978;
  --green-soft: #f0fae6;
  --yellow: #ffd45a;
  --orange-soft: #fff3d8;
  --danger: #ff8f8f;
  --shadow: 0 16px 38px rgba(63, 48, 28, 0.10), 0 2px 8px rgba(63, 48, 28, 0.06);
  --soft-shadow: 0 8px 18px rgba(62, 71, 119, 0.09);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 224, 132, 0.22), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(125, 185, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #fff8ed 0%, #f9efe4 50%, #fffaf2 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 8px 8px 20px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 118px;
  padding: 22px 30px;
  border: 1px solid rgba(236, 223, 203, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 22px;
}

.sun-logo {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #ffe3a6;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8d9, #fff);
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.6), 0 10px 16px rgba(235, 182, 80, 0.13);
}

.sun-face {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 40px;
  color: #f6b736;
  line-height: 1;
  transform: translateY(-1px);
}

.eyebrow,
.section-label {
  margin-bottom: 6px;
  color: #66718f;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header h1 {
  margin: 0;
  color: #142452;
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.dashboard {
  display: grid;
  align-items: start;
  grid-template-columns: 330px minmax(460px, 1fr) 340px;
  gap: 20px;
  margin-top: 20px;
}

.left-column,
.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(10px);
}

.compact-card,
.day-card,
.coach-card,
.recommendation-card {
  padding: 20px;
}

.location-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 8px 0 14px;
  color: var(--ink-2);
  font-size: 1.08rem;
}

.pin {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  font-size: 1.3rem;
}

.primary-button,
.secondary-button,
.ghost-button,
.mode-pill,
.icon-button {
  border: 0;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, #6596f2, #4d73dd);
  box-shadow: 0 12px 22px rgba(83, 121, 228, 0.25);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.mode-pill:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.secondary-button {
  padding: 12px 16px;
  color: var(--ink-2);
  font-weight: 800;
  background: #f7f2ea;
  border: 1px solid #eadfce;
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  color: var(--ink-2);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid #d7e3fb;
  box-shadow: 0 8px 18px rgba(80, 115, 190, 0.10);
}

.micro-copy,
.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.date-line {
  margin-bottom: 12px;
  color: #6a7390;
  font-weight: 700;
}

.time-cards {
  display: grid;
  gap: 12px;
}

.time-card {
  padding: 14px;
  border: 1px solid #cfddf5;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f3f8ff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.time-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.time-value {
  display: block;
  margin-bottom: 2px;
  font-size: 1.38rem;
  color: var(--ink);
}

.condition-label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.condition-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.77rem;
  font-weight: 900;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(224, 233, 252, 0.8);
}

.coach-card {
  min-height: 172px;
  background: linear-gradient(135deg, #f3ffe9, #fbfff5);
  border-color: #d5edc5;
}

.coach-card h2 {
  margin: 2px 0 8px;
  color: #2a642b;
  font-size: 1.48rem;
  letter-spacing: -0.02em;
}

.coach-card p {
  margin: 0;
  max-width: 230px;
  color: #63708d;
  font-size: 0.94rem;
  line-height: 1.45;
  font-weight: 650;
}

.coach-symbol {
  position: absolute;
  right: 24px;
  top: 44px;
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  font-size: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 22px rgba(83, 121, 62, 0.12);
}

.hero-card {
  min-height: 0;
  padding: 22px 22px 20px;
  border-color: var(--line-blue);
  background: linear-gradient(180deg, rgba(246, 251, 255, 0.92), rgba(255, 251, 241, 0.92));
}

.hero-headline-row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.hero-intro {
  margin: 0;
  max-width: 450px;
  color: #65708d;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 700;
}

.mode-pill {
  align-self: start;
  min-width: 142px;
  padding: 10px 14px;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 950;
  white-space: nowrap;
  background: #ffffffcc;
  border: 1px solid #c9dbff;
  box-shadow: 0 8px 18px rgba(82, 118, 218, 0.10);
}

.mode-pill.is-checking {
  color: #915c06;
  background: #fff2c5;
  border-color: #f2d987;
}

.sky-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  margin-top: 14px;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 34%, rgba(255, 255, 255, 0.88) 0 8%, transparent 9%),
    radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.90) 0 12%, transparent 13%),
    radial-gradient(circle at 22% 74%, rgba(255, 255, 255, 0.75) 0 7%, transparent 8%),
    linear-gradient(180deg, #d9efff 0%, #eaf7ff 45%, #e7f5ce 46%, #d3ee9f 74%, #fff2cf 75%, #fff8e8 100%);
}

.sky-stage::before {
  content: "";
  position: absolute;
  inset: auto -8% 0;
  height: 44%;
  background:
    radial-gradient(ellipse at 18% 76%, #83bd5d 0 18%, transparent 19%),
    radial-gradient(ellipse at 78% 80%, #9fd16a 0 23%, transparent 24%),
    radial-gradient(ellipse at 50% 112%, #ffffff 0 58%, transparent 59%);
  opacity: 0.94;
}

.sky-stage::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 22px;
  height: 112px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, #fff0d3 0 55%, rgba(255, 240, 211, 0) 56%);
  opacity: .95;
}

.weather-friend {
  position: absolute;
  left: 9%;
  top: 10%;
  width: 104px;
  height: 104px;
  filter: drop-shadow(0 8px 14px rgba(129, 90, 24, .13));
  z-index: 2;
}

.avatar-image {
  position: relative;
  z-index: 3;
  width: min(62%, 350px);
  min-width: 260px;
  object-fit: contain;
  transform: translateY(22px);
  filter: drop-shadow(0 18px 16px rgba(69, 52, 38, .16));
}

.speech-bubble {
  position: absolute;
  right: 4.5%;
  top: 20%;
  z-index: 4;
  max-width: 205px;
  padding: 24px 22px;
  color: #22315f;
  font-weight: 850;
  text-align: center;
  line-height: 1.45;
  border: 1px solid rgba(236, 223, 202, 0.78);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 14px 24px rgba(74, 66, 49, 0.12);
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: 21px;
  bottom: 14px;
  width: 24px;
  height: 24px;
  border-radius: 0 0 0 100%;
  background: rgba(255, 253, 248, 0.94);
  transform: translate(-6px, 22px) rotate(-18deg);
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-top: 18px;
}

.summary-box {
  min-height: 118px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(68, 55, 28, 0.07);
}

.dressed-box {
  border-color: #d4edbe;
  background: linear-gradient(135deg, rgba(246, 255, 236, 0.92), rgba(255, 255, 246, 0.92));
}

.take-box {
  border-color: #f2dc9f;
  background: linear-gradient(135deg, rgba(255, 247, 218, 0.92), rgba(255, 252, 246, 0.92));
}

.summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  color: #2c642a;
  font-weight: 950;
  border-bottom: 1px solid rgba(118, 140, 82, 0.16);
}

.take-box .summary-title {
  color: #8c5e0e;
}

.status-dot,
.bag-dot {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 950;
  background: #bfe68d;
  color: #366220;
}

.bag-dot {
  background: #ffe3a4;
  color: #9b680b;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.clothing-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--ink-2);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(255, 255, 255, 0.65);
}

.clothing-chip img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.recommendation-card {
  min-height: 770px;
}

.outfit-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.outfit-title-row h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 2.15rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.weather-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #6d9835;
  font-size: 0.98rem;
  font-weight: 950;
  background: #f2fbe9;
  border: 1px solid #d9efc3;
}

.recommendation-summary {
  margin: 6px 0 18px;
  color: #68728d;
  line-height: 1.55;
  font-weight: 700;
}

.recommendation-list {
  display: grid;
  gap: 16px;
}

.recommendation-group-label {
  margin: 8px 0 -4px;
  color: #68718d;
  font-size: 0.9rem;
  font-weight: 950;
}

.clothing-card {
  display: grid;
  grid-template-columns: 78px 1fr 24px;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid #efdcb7;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 18px rgba(126, 86, 20, 0.07);
  user-select: none;
}

.clothing-card.is-done {
  border-color: #cdeaba;
  background: linear-gradient(135deg, rgba(245, 255, 235, 0.93), rgba(255,255,255,.82));
}

.clothing-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.clothing-card h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1rem;
}

.clothing-card p {
  margin: 0;
  color: #768098;
  font-size: 0.86rem;
  font-weight: 700;
}

.card-arrow {
  color: #9aa4b4;
  font-size: 1.8rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(32, 36, 56, 0.32);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.settings-panel {
  width: min(540px, 100%);
  max-height: min(820px, calc(100vh - 44px));
  overflow: auto;
  padding: 24px;
  border: 1px solid #eadfcf;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 28px 90px rgba(33, 36, 56, 0.28);
}

.settings-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-header h2 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid #e7dbca;
  color: var(--ink-2);
  font-size: 1.8rem;
  line-height: 1;
  background: #fff8ed;
}

.settings-form {
  display: grid;
  gap: 14px;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-weight: 900;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e8dcc9;
  border-radius: 16px;
  background: #fff8ed;
  font-weight: 850;
}

.radio-card input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

input[type="text"],
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  border: 1px solid #d9dfe9;
  border-radius: 14px;
  background: #ffffff;
  outline: none;
}

input[type="text"]:focus,
select:focus {
  border-color: #99b7f7;
  box-shadow: 0 0 0 4px rgba(94, 141, 240, 0.14);
}

.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
  margin-top: 8px;
}

body.modal-open {
  overflow: hidden;
}

.is-loading .avatar-image,
.is-loading .condition-icon {
  opacity: .42;
}

.error-text {
  color: #9b482e;
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 300px 1fr;
  }

  .right-column {
    grid-column: 1 / -1;
  }

  .recommendation-card {
    min-height: auto;
  }

  .recommendation-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recommendation-group-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .app-shell {
    padding: 8px;
  }

  .app-header {
    min-height: 90px;
    padding: 16px;
    border-radius: 20px;
  }

  .brand-lockup {
    gap: 12px;
  }

  .sun-logo {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .sun-face {
    width: 38px;
    height: 38px;
    font-size: 31px;
  }

  .app-header h1 {
    font-size: 2.1rem;
  }

  .ghost-button {
    padding: 11px 13px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .left-column {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-card,
  .recommendation-card {
    min-height: auto;
  }

  .sky-stage {
    min-height: 500px;
  }

  .speech-bubble {
    right: 4%;
    top: 14%;
    max-width: 180px;
    padding: 18px;
    font-size: .9rem;
  }

  .hero-summary-grid,
  .recommendation-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .app-header {
    align-items: center;
    gap: 10px;
  }

  .eyebrow,
  .section-label {
    font-size: .67rem;
  }

  .app-header h1 {
    font-size: 1.9rem;
  }

  .ghost-button {
    width: 48px;
    height: 48px;
    justify-content: center;
    padding: 0;
    border-radius: 16px;
    font-size: 0;
  }

  .ghost-button span {
    font-size: 1.2rem;
  }

  .compact-card,
  .day-card,
  .coach-card,
  .recommendation-card,
  .hero-card {
    padding: 16px;
    border-radius: 18px;
  }

  .hero-headline-row {
    flex-direction: column;
  }

  .mode-pill {
    width: 100%;
  }

  .sky-stage {
    min-height: 430px;
    margin-top: 12px;
  }

  .weather-friend {
    width: 75px;
    height: 75px;
    left: 5%;
    top: 7%;
  }

  .avatar-image {
    width: 76%;
    min-width: 220px;
    transform: translateY(26px);
  }

  .speech-bubble {
    top: 10%;
    max-width: 136px;
    padding: 13px;
    font-size: .78rem;
  }

  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clothing-card {
    grid-template-columns: 64px 1fr 20px;
    min-height: 84px;
  }

  .clothing-card img {
    width: 62px;
    height: 62px;
  }

  .radio-grid,
  .settings-actions {
    grid-template-columns: 1fr;
  }
}

/* v1.1.0: vereinfachte Bild-Logik statt kombinierter SVG-Avatar-Generierung */
.mode-pill:disabled {
  cursor: default;
  opacity: 1;
  transform: none;
}

.avatar-image {
  width: min(72%, 430px);
  max-height: 540px;
  min-width: 260px;
}

.outfit-card {
  border-color: #cdeaba;
  background: linear-gradient(135deg, rgba(245, 255, 235, 0.93), rgba(255,255,255,.82));
}

.outfit-card img {
  width: 74px;
  height: 80px;
  object-fit: contain;
  object-position: center bottom;
}

.weather-badge[data-tone="rain"] {
  color: #315c96;
  background: #edf6ff;
  border-color: #c9dff7;
}

.weather-badge[data-tone="cold"] {
  color: #27537f;
  background: #eff8ff;
  border-color: #cfe4f6;
}

.weather-badge[data-tone="cool"] {
  color: #426987;
  background: #f0f8fb;
  border-color: #cfe4ec;
}

.weather-badge[data-tone="warm"],
.weather-badge[data-tone="hot"] {
  color: #915c06;
  background: #fff4cd;
  border-color: #f1d990;
}

@media (max-width: 560px) {
  .avatar-image {
    width: 82%;
    max-height: 420px;
  }
}

/* v1.2.0: legal footer, compact avatar area and mobile card order */
.sky-stage {
  margin-top: 0;
}

.cache-copy {
  font-weight: 800;
}

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 22px;
  color: var(--muted);
  border: 1px solid rgba(236, 223, 203, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--soft-shadow);
}

.app-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-footer a,
.legal-card a {
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: none;
}

.app-footer a:hover,
.legal-card a:hover {
  text-decoration: underline;
}

.app-footer p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.legal-main {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.legal-card {
  padding: 28px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.legal-card h3 {
  margin: 24px 0 8px;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.65;
  font-weight: 650;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 1.25rem;
}

.legal-meta {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  color: #6d9835;
  border: 1px solid #d9efc3;
  border-radius: 999px;
  background: #f2fbe9;
  font-size: 0.84rem;
  font-weight: 950;
}

@media (max-width: 860px) {
  .left-column,
  .right-column {
    display: contents;
  }

  .hero-card {
    order: 1;
  }

  .coach-card {
    order: 2;
  }

  .day-card {
    order: 3;
  }

  .recommendation-card {
    order: 4;
  }

  .weather-card {
    order: 5;
  }

  .app-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .sky-stage {
    margin-top: 0;
  }

  .app-footer {
    padding: 16px;
    border-radius: 18px;
  }

  .legal-card {
    padding: 20px;
  }
}


/* v1.3.0: Desktop-Feinschliff nach Mockup-Review
   - linke Spalte: Tagesüberblick, Kleider-Coach, Wetterbasis
   - Avatar-Karte nicht mehr auf volle Spaltenhöhe gestreckt
   - Avatar-Hintergrund höher
   - Empfehlungsspruch als zentrierte, kinderfreundliche Überschrift */
@media (min-width: 861px) {
  .dashboard {
    align-items: start;
  }

  .hero-card {
    min-height: 0;
  }

  .sky-stage {
    min-height: 650px;
    padding-top: 72px;
  }

  .avatar-message-title {
    position: absolute;
    z-index: 6;
    top: 24px;
    left: 50%;
    right: auto;
    width: min(86%, 560px);
    max-width: none;
    transform: translateX(-50%);
    padding: 14px 24px;
    border-radius: 999px;
    text-align: center;
    color: #18285a;
    font-family: "Comic Sans MS", "Comic Neue", "Trebuchet MS", var(--font);
    font-size: clamp(1.08rem, 1.28vw, 1.38rem);
    font-weight: 950;
    line-height: 1.25;
    letter-spacing: -0.015em;
    background: rgba(255, 253, 248, 0.92);
    border: 1px solid rgba(236, 223, 202, 0.86);
    box-shadow: 0 14px 26px rgba(74, 66, 49, 0.10);
  }

  .avatar-message-title::after {
    display: none;
  }

  .weather-friend {
    top: 16%;
    left: 8%;
    width: 96px;
    height: 96px;
  }

  .avatar-image {
    max-height: 560px;
    transform: translateY(34px);
  }

  .hero-summary-grid {
    margin-top: 14px;
  }

  .summary-box {
    min-height: 96px;
    padding: 16px;
  }
}

/* v1.4.0: mehr Avatar-Bühnenhöhe, damit die Füße auf Desktop und Mobil nicht abgeschnitten werden */
@media (min-width: 861px) {
  .sky-stage {
    min-height: 760px;
    padding-top: 88px;
  }

  .avatar-image {
    max-height: 630px;
    transform: translateY(8px);
  }
}

@media (max-width: 860px) {
  .sky-stage {
    min-height: 610px;
  }

  .avatar-image {
    max-height: 540px;
    transform: translateY(8px);
  }
}

@media (max-width: 560px) {
  .sky-stage {
    min-height: 560px;
  }

  .avatar-image {
    width: 80%;
    max-height: 500px;
    transform: translateY(6px);
  }

  .speech-bubble {
    top: 8%;
  }
}


/* v1.5.0: Rechte Empfehlungsspalte verschlankt und SEO-Noscript-Block ergänzt */
.noscript-card {
  margin-top: 20px;
  padding: 22px;
}

.noscript-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.noscript-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

@media (min-width: 861px) {
  .right-column {
    align-self: start;
  }

  .recommendation-card {
    min-height: 0;
    padding: 18px;
  }

  .outfit-title-row {
    align-items: center;
  }

  .outfit-title-row h2 {
    margin-bottom: 2px;
    font-size: 1.9rem;
  }

  .weather-badge {
    min-width: 56px;
    min-height: 32px;
    padding: 6px 11px;
    font-size: 0.86rem;
  }

  .recommendation-summary {
    margin: 4px 0 12px;
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .recommendation-list {
    gap: 8px;
  }

  .recommendation-group-label {
    margin: 4px 0 -3px;
    font-size: 0.76rem;
    letter-spacing: 0.03em;
  }

  .clothing-card {
    grid-template-columns: 52px 1fr 18px;
    gap: 10px;
    min-height: 66px;
    padding: 7px 9px;
    border-radius: 15px;
  }

  .clothing-card img {
    width: 50px;
    height: 50px;
  }

  .outfit-card img {
    width: 46px;
    height: 52px;
  }

  .clothing-card h3 {
    margin-bottom: 2px;
    font-size: 0.9rem;
  }

  .clothing-card p {
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .card-arrow {
    font-size: 1.25rem;
  }
}


/* v1.7.0: Harmonisiertes Desktop-Layout nach Screenshot-Review
   Ziel: drei ruhige Spalten mit gemeinsamem oberen und unteren Abschluss.
   Die linke Spalte nutzt die Resthöhe im Tagesüberblick, nicht als harte Lücke.
   Die rechte Empfehlungskarte füllt die Spaltenhöhe, die Inhalte bleiben kompakt. */
@media (min-width: 1181px) {
  .dashboard {
    align-items: stretch;
    grid-template-columns: 330px minmax(500px, 1fr) 340px;
    gap: 20px;
  }

  .left-column,
  .right-column,
  .hero-card {
    align-self: stretch;
  }

  .left-column,
  .right-column {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    gap: 16px;
  }

  .hero-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .sky-stage {
    flex: 1 1 auto;
    min-height: 680px;
  }

  .hero-summary-grid {
    flex: 0 0 auto;
  }

  .left-column .day-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .left-column .date-line {
    flex: 0 0 auto;
  }

  .left-column .time-cards {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    gap: 12px;
  }

  .left-column .time-card {
    flex: 0 0 auto;
  }

  .left-column .coach-card,
  .left-column .weather-card {
    flex: 0 0 auto;
  }

  .left-column .weather-card {
    margin-top: 0;
  }

  .right-column .recommendation-card {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .right-column .recommendation-list {
    flex: 0 0 auto;
  }
}

/* Desktop-Zwischenbreite: keine künstlichen Auto-Lücken aus der 3-Spalten-Ansicht übernehmen. */
@media (min-width: 861px) and (max-width: 1180px) {
  .dashboard {
    align-items: start;
  }

  .left-column .weather-card {
    margin-top: 0;
  }

  .hero-card,
  .left-column,
  .right-column {
    align-self: start;
  }
}

/* v1.8.0: PWA-/SEO-/a11y-Ergänzungen und statischer Fallback */
.noscript-card {
  margin-top: 20px;
  padding: 22px;
}

.noscript-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
}

.noscript-preview {
  width: 100%;
  max-width: 180px;
  border-radius: 18px;
  background: #fff8ed;
  box-shadow: var(--soft-shadow);
}

.noscript-card h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.noscript-card p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.noscript-links {
  margin-top: 10px !important;
}

.static-time-card .condition-label {
  color: #697695;
}

@media (max-width: 620px) {
  .noscript-content {
    grid-template-columns: 1fr;
  }

  .noscript-preview {
    max-width: 240px;
    justify-self: center;
  }
}
