:root {
  color-scheme: light;
  --ink: #27231f;
  --muted: #5d5146;
  --accent: #795222;
  --accent-dark: #302a25;
  --line: #e4d6c4;
  --control-border: #99836a;
  --gold: #ba8649;
  --surface: #fffdf8;
  --paper: #f8f0e4;
  --gold-tint: #f6e6cb;
  --peach: #f8e7d5;
  --green: #e7eee5;
  --focus: #155d8c;
  --radius: 1.25rem;
  font-family: "Avenir Next", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; font-size: 1.0625rem; line-height: 1.55; }
[hidden] { display: none !important; }

h1, h2, h3, h4, p, ul, fieldset { margin: 0; }
h1, h2, h3, h4 { line-height: 1.17; }
h1, h2 { text-wrap: balance; }
h2 { font-size: clamp(1.28rem, 2.1vw, 1.62rem); letter-spacing: -.025em; }
h3 { font-size: 1.06rem; }
a { color: var(--accent-dark); text-underline-offset: .17em; }
a:hover { color: var(--accent); }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  display: inline-block;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linejoin: round;
  stroke-linecap: round;
  fill: none;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: .8rem;
  left: .8rem;
  z-index: 2;
  padding: .6rem 1rem;
  background: var(--surface);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.page-width { width: min(calc(100% - 2.5rem), 78rem); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.8rem, 3vw, 2rem);
  min-height: 4.5rem;
  padding-block: .5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  color: #fff3d8;
  background: var(--accent-dark);
  border-radius: .8rem;
}
.main-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border-radius: .65rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.main-nav a:hover, .main-nav a[aria-current] { background: var(--gold-tint); color: var(--accent-dark); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.9rem;
  max-width: 100%;
  border: 1px solid var(--control-border);
  border-radius: .78rem;
  background: var(--surface);
  color: var(--accent-dark);
  padding: .48rem .78rem;
  text-decoration: none;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.button:hover { background: var(--gold-tint); }
.button:disabled { opacity: .72; cursor: wait; }
.primary { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.primary:hover { background: var(--accent); color: #fff; }
.icon-button { width: 2.75rem; padding-inline: .45rem; }

.main-content { padding-block: clamp(1.65rem, 4.5vw, 3.25rem) 1rem; }
.page-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: .65rem 1.35rem;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}
.place-label {
  display: flex;
  align-items: center;
  gap: .43rem;
  margin-bottom: .15rem;
  color: var(--accent-dark);
  font-weight: 650;
}
.place-label .icon { width: 1.15rem; height: 1.15rem; }
.page-intro h1 {
  font-family: Georgia, serif;
  font-size: clamp(2.3rem, 6.2vw, 4.35rem);
  font-weight: 400;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.page-intro h1 span { color: var(--accent); }
.today-label { color: var(--muted); padding-bottom: .3rem; }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr);
  gap: clamp(.85rem, 2.4vw, 1.5rem);
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 5px 24px #4330160c;
}
section[id] { scroll-margin-top: 1rem; }
.weather-panel { overflow: hidden; display: flex; flex-direction: column; }
.weather-hero {
  min-height: 13rem;
  flex: 1;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: .75rem;
  padding: clamp(1rem, 3vw, 1.65rem);
  color: #fff;
  background: linear-gradient(112deg, #152d42, #34485a 65%, #596775);
}
/* gartenfrost.jpg was created with the built-in ImageGen tool.
   Use case: photorealistic-natural. Asset type: atmospheric background photo for a small, premium German local weather dashboard. Wide horizontal editorial photograph of an ordinary well-cared-for Franconian residential garden on a late-November morning: fine white hoarfrost on tall seed heads and grass, a low garden hedge and a hint of pitched tiled roofs in soft focus, peach dawn light against misty icy blue. Put the crisply textured seed heads and the warmest light in the right third; keep the left half quieter and slightly darker, open cool blue mist suitable for later light weather text. Grounded, natural proportions, contemporary editorial photography, no people, no heavy snow, no text, no lettering, no logos, no watermarks. Intended as a horizontally cropped dashboard cover, 3:2 landscape. */
.weather-hero.frosty {
  background: linear-gradient(90deg, #12293fee 0%, #152b42c7 39%, #1a263d30 81%),
    #294158 url("gartenfrost.jpg") center 46% / cover no-repeat;
}
.weather-hero h2 { font-size: 1.15rem; font-weight: 650; letter-spacing: 0; }
.weather-current { margin-top: .4rem; }
.temperature {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: .55rem;
}
.temperature strong {
  font-variant-numeric: tabular-nums;
  font-size: clamp(3rem, 7vw, 4.45rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.08em;
}
.temperature span { color: #f0f4fa; }
.weather-condition { margin-top: .25rem; font-size: 1.03rem; }
.weather-refresh {
  color: #fff;
  background: #14283c;
  border: 1px solid #c0cbd8;
  white-space: nowrap;
}
.weather-refresh:hover { background: #263e58; }
.weather-refresh .icon { width: 1.05rem; height: 1.05rem; }
.forecast-zone { padding: .8rem; }
.forecast-legend { margin-bottom: .6rem; color: var(--muted); font-size: .94rem; }
.forecast {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .45rem;
  list-style: none;
  padding: 0;
}
.forecast-day {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: .3rem;
  padding: .52rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: var(--surface);
}
.forecast-day:first-child { background: #fcf2df; border-color: #c49a67; }
.forecast-day time { display: flex; flex-wrap: wrap; gap: .1rem .4rem; align-items: baseline; font-weight: 720; }
.forecast-day .day-date { color: var(--muted); font-size: .88rem; font-weight: 500; }
.forecast-condition { display: flex; align-items: center; gap: .28rem; color: var(--muted); font-size: .88rem; line-height: 1.2; overflow-wrap: anywhere; }
.forecast-condition .icon { color: #2c6078; }
.forecast-temperatures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem; margin: .15rem 0; }
.forecast-temperatures dt { color: var(--muted); font-size: .84rem; }
.forecast-temperatures dd { margin: 0; font-size: 1.15rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.precipitation { align-self: end; border-top: 1px solid var(--line); padding-top: .25rem; color: var(--muted); font-size: .86rem; }
.precipitation strong { display: flex; flex-wrap: wrap; align-items: center; gap: .22rem; color: #244f66; font-size: 1.03rem; }
.weather-source { padding-top: .55rem; color: var(--muted); }
.forecast:empty { display: none; }

.home-panel, .listings, .shopping-panel { padding: clamp(1rem, 2.8vw, 1.55rem); }
.section-heading { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.section-heading h2 { overflow-wrap: anywhere; }
.section-heading .muted { margin-top: .15rem; }
.section-icon {
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  flex: 0 0 auto; border-radius: .8rem; color: var(--accent-dark);
}
.section-icon.peach { background: var(--peach); color: #804019; }
.section-icon.lavender { background: var(--gold-tint); }
.section-icon.green { background: var(--green); color: #225946; }
.tip-lead { margin-bottom: .8rem; }
.tip-list { padding: 0; list-style: none; }
.check-row {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  gap: .6rem;
  cursor: pointer;
}
.check-row input {
  width: 1.25rem; height: 1.25rem; margin: 0;
  accent-color: var(--accent-dark); flex: 0 0 auto;
}
.tip-list li + li { border-top: 1px solid var(--line); }

/* ImageGen atlas prompt
Use case: photorealistic-natural. Make one landscape 3:2 editorial PHOTO ATLAS for a local German television guide. It is a strict, perfectly edge-aligned 3 by 3 grid of nine independent equal landscape photographs: columns split at exact thirds, rows split at exact thirds, no margins, no dividers, no gutters, no graphics. Each tile should fill its cell edge to edge and center its own coherent subject, easy to crop at its edges. Top row left to right: (1) a warmly lit old European villa window and evergreens on a calm snowy evening, evoking a winter TV film; (2) a quiet modern German city underpass at blue hour with wet cobblestones and moody street lights, evoking a detective story without depicting violence; (3) a medieval vaulted German abbey interior with a golden crown on burgundy cloth in the foreground, history documentary mood. Middle row left to right: (4) Bangkok's Chao Phraya river softly lit at dawn, a vessel and temple spires in the background; (5) an inviting Montafon mountain valley with a small chalet, trail, and open blue sky; (6) peaceful Lake Constance with a small unmarked white motorboat at a pier in the evening, lakeside crime show mood. Bottom row left to right: (7) an Alpine village lane below the Watzmann in Berchtesgaden, cloudy late afternoon; (8) a chamois on a rocky Austrian Alpine meadow above a misty valley, natural history photography; (9) an everyday grocery still life with green grapes in a ceramic bowl and a pat of fresh butter in an unbranded butter dish, gentle kitchen daylight. Contemporary natural photography, warm highlights and clean contrast, nine clearly different images, no recognizable people, no text, no lettering, no logos, no screenshots and no watermark. */
.atlas-photo {
  aspect-ratio: 3 / 2;
  background: #d9d5e5 url("bilder/motivbilder.jpg") var(--photo-x) var(--photo-y) / 302% 302% no-repeat;
}

.tip-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; align-items: start; }
.weather-tip { background: var(--surface); border: 1px solid #c9b292; border-radius: .85rem; }
.weather-tip[open] { border-color: #94734f; }
.weather-tip summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  min-height: 4rem;
  padding: .65rem .72rem;
  border-radius: .85rem;
  cursor: pointer;
  list-style: none;
}
.weather-tip summary::-webkit-details-marker { display: none; }
.weather-tip summary:hover, .weather-tip[open] summary { background: #fbefda; }
.tip-tile-icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; background: var(--gold-tint); color: var(--accent-dark); border-radius: .6rem; }
.tip-summary-text { display: grid; gap: .1rem; }
.tip-title { font-size: 1.06rem; line-height: 1.32; }
.tip-kicker, .tip-progress { font-size: .88rem; color: var(--muted); }
.tip-kicker { display: flex; flex-wrap: wrap; gap: .15rem .5rem; }
.tip-kicker time { font-weight: 700; color: var(--accent); }
.tip-chevron { width: .58rem; height: .58rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); margin: .55rem .2rem 0 0; transform: rotate(45deg); }
.weather-tip[open] .tip-chevron { transform: rotate(225deg); }
.tip-content { padding: .6rem .75rem .75rem; }
.tip-content .tip-lead { margin: 0 0 .25rem; }
.tip-links { display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: .38rem; font-size: .93rem; }
.tip-links a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.tip-example { margin-bottom: .55rem; }

.tv-guide, .events-panel, .shopping-panel { margin-top: 1.5rem; }
.section-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .7rem 1rem;
  margin-bottom: 1rem;
}
.section-headline .section-heading { margin-bottom: 0; }
.filter { display: flex; flex-wrap: wrap; gap: .35rem; }
.filter-button[aria-pressed="true"], .save-button[aria-pressed="true"] {
  background: var(--gold-tint);
  border-color: #c9bee6;
  color: var(--accent-dark);
}
.filter-button { font-size: .95rem; }

.tv-guide .section-heading h2,
.events-panel .section-heading h2,
.shopping-panel .section-heading h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.62rem, 3.35vw, 2.55rem);
  letter-spacing: -.04em;
}

.preference-note {
  color: var(--accent-dark);
  background: var(--gold-tint);
  border-radius: .65rem;
  padding: .53rem .75rem;
  margin-bottom: .9rem;
}
.tv-columns, .event-grid, .flyer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: .7rem;
}
.tv-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: .82rem;
  background-color: #fcf6ec;
}
.channel-heading {
  border-radius: .78rem .78rem 0 0;
  padding: .57rem .76rem;
  color: #fff;
  background: #483074;
  font-size: 1.13rem;
  font-weight: 720;
}
.tv-column[data-channel="daserste"] .channel-heading { background: #25366d; }
.tv-column[data-channel="zdf"] .channel-heading { background: #914111; }
.tv-column[data-channel="swr"] .channel-heading { background: #225647; }
.channel-programs { padding: 0; list-style: none; }
.tv-entry { padding: .65rem; }
.tv-entry + .tv-entry { border-top: 1px solid var(--line); }
.program-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .1rem .4rem;
  padding-bottom: .31rem;
  color: var(--muted);
  font-size: .9rem;
}
.program-meta time { color: var(--accent-dark); font-size: 1rem; font-weight: 740; font-variant-numeric: tabular-nums; }
.program-link { display: block; border-radius: .52rem; color: var(--ink); text-decoration-color: #9b7a53; }
.program-link:hover { color: var(--accent-dark); }
.program-link h4 { margin-top: .48rem; min-block-size: 2.34em; font-size: 1.04rem; font-weight: 680; overflow-wrap: anywhere; }
.program-photo { border-radius: .52rem; }
.program-match {
  display: block;
  color: #225946;
  font-size: .89rem;
  font-weight: 680;
  margin-top: .24rem;
}
.rating {
  display: flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
  border: 0;
  padding: 0;
  margin-top: .18rem;
}
.star {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #66577b;
  font-size: 1.46rem;
  line-height: 1;
  border-radius: .5rem;
  cursor: pointer;
}
.star.filled { color: #8a4b09; background: #fbf0df; }
.star:hover { background: var(--gold-tint); color: var(--accent-dark); }
.rating input:focus-visible + .star { outline: 3px solid var(--focus); outline-offset: -3px; }
.section-foot {
  border-top: 1px solid var(--line);
  margin-top: .9rem;
  padding-top: .65rem;
  display: flex;
  gap: .28rem 1rem;
  flex-wrap: wrap;
  font-size: .93rem;
}
.section-foot a { min-height: 2.75rem; display: inline-flex; align-items: center; }
.section-foot .muted { align-self: center; }

.event-grid { list-style: none; padding: 0; }
.event-grid > .muted { grid-column: 1/-1; }
.event-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
}
.event-visual { position: relative; }
.event-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background-color: #e6ebe5;
  border-radius: .81rem .81rem 0 0;
}
.event-card[data-event-card="konzert"] img { object-position: center 35%; }
.venue-caption {
  position: absolute;
  bottom: .42rem;
  left: .42rem;
  border-radius: .32rem;
  background: #27231fef;
  color: #fff;
  padding: .17rem .41rem;
  font-size: .86rem;
}
.event-card-body { display: flex; flex-direction: column; align-items: start; gap: .42rem; flex: 1; padding: .72rem; }
.event-meta { display: flex; align-items: center; gap: .55rem; }
.event-date {
  display: grid;
  justify-items: center;
  flex: 0 0 auto;
  line-height: 1.09;
  min-width: 2.6rem;
  padding: .3rem .34rem;
  background: var(--green);
  color: #224f40;
  border-radius: .5rem;
}
.event-date strong { font-size: 1.28rem; }
.event-date span { font-size: .875rem; }
.event-category { color: var(--muted); font-size: .91rem; }
.event-copy h3 a { color: var(--ink); text-decoration-color: #9b7a53; }
.event-copy p { margin-top: .2rem; color: var(--muted); font-size: .95rem; }
.event-card-body .save-button { margin-top: auto; }
.save-button { gap: .28rem; font-size: .93rem; padding-inline: .55rem; }
.save-button .icon { width: 1.1rem; height: 1.1rem; }
.image-credits { border-top: 1px solid var(--line); margin-top: .4rem; font-size: .93rem; color: var(--muted); }
.image-credits summary { min-height: 2.75rem; padding-block: .53rem; color: var(--accent-dark); cursor: pointer; }
.image-credits ul { padding-inline-start: 1.2rem; }
.image-credits li + li { margin-top: .15rem; }

.shopping-heading { margin-bottom: .9rem; }
.grocery-photo {
  margin-left: auto;
  width: clamp(6rem, 15vw, 11rem);
  flex: 0 0 auto;
  border-radius: .68rem;
}
.flyer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.flyer-card {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  min-width: 0;
  align-content: start;
  justify-items: start;
  gap: .28rem;
  padding: .84rem .92rem;
  color: var(--ink);
  background: #fdf6e9;
  border: 1px solid var(--line);
  border-radius: .85rem;
}
.flyer-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  background: var(--gold-tint);
  color: var(--accent-dark);
  border-radius: .67rem;
}
.flyer-address { align-self: start; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.flyer-address p + p { margin-top: .18rem; }
.flyer-action { align-self: end; margin-top: .3rem; text-align: center; }
.flyer-action .icon { width: 1rem; height: 1rem; }
.shopping-form { display: flex; align-items: end; flex-wrap: wrap; gap: .55rem; margin: .75rem 0; }
.shopping-form .field { flex: 1 1 16rem; min-width: 0; }
.shopping-form .shopping-store-field { flex: 0 1 13rem; }
.shopping-form :is(input, select) { min-height: 2.9rem; }
.shopping-jump { margin-bottom: .7rem; }
#shopping-summary { scroll-margin-top: 1rem; }
.shopping-list ul { padding: 0; list-style: none; }
.shopping-list li { display: flex; align-items: center; justify-content: space-between; gap: .4rem .75rem; }
.shopping-list li + li { border-top: 1px solid var(--line); }
.shopping-item { flex: 1 1 auto; min-width: 0; }
.shopping-check { min-width: 0; overflow-wrap: anywhere; }
.shopping-check input:checked + span { color: var(--muted); text-decoration: line-through; }
.shopping-list .text-button { flex: 0 0 auto; }
.shopping-item-store { padding-left: 2rem; padding-bottom: .25rem; }
.shopping-item-store summary { width: fit-content; padding-block: .5rem; min-height: 2.75rem; color: var(--accent-dark); font-size: .93rem; cursor: pointer; }
.shopping-item-store .field { max-width: 21rem; padding: .4rem 0 .6rem; overflow-wrap: anywhere; }
.shopping-share { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.shopping-share-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .45rem; }
.shopping-share-actions button:disabled { cursor: default; }
#shopping-share-status:not(:empty) { margin-top: .4rem; }
#shopping-copy-fallback { margin-top: .55rem; }
#shopping-copy-text { width: 100%; max-width: 40rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: .65rem; padding: .55rem; }
#shopping-print-sheet { display: none; }
@media print {
  body.shopping-printing { color: #000; background: #fff; font: 13pt/1.55 system-ui, sans-serif; }
  body.shopping-printing > :not(#shopping-print-sheet) { display: none !important; }
  body.shopping-printing > #shopping-print-sheet { display: block; }
  #shopping-print-sheet h1 { margin-bottom: .7em; font-size: 19pt; overflow-wrap: anywhere; }
  #shopping-print-sheet li { break-inside: avoid; overflow-wrap: anywhere; }
}
@media (max-width: 36rem) {
  .shopping-form .shopping-store-field { flex: 1 1 100%; }
}

.text-button {
  min-height: 2.75rem;
  padding: .15rem;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: .16em;
  font: inherit;
  cursor: pointer;
}
.page-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .25rem 1rem; padding-block: .7rem; color: var(--muted); font-size: .88rem; }

dialog {
  color: var(--ink); background: var(--surface);
  width: min(calc(100% - 1.5rem), 32rem); padding: clamp(1rem, 3vw, 1.55rem);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 80px #372a1e44;
}
dialog::backdrop { background: #271d16a3; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.dialog-intro { margin-top: .5rem; }
.profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.postcode-field { grid-column: 1/-1; }
.field { display: grid; gap: .18rem; }
.field label { font-weight: 650; }
.field label span { color: var(--muted); font-size: .87rem; font-weight: 450; }
.field input, .field select {
  width: 100%;
  min-height: 2.75rem;
  min-width: 0;
  padding: .45rem .58rem;
  border: 1px solid #8e7963;
  border-radius: .55rem;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
}
.field select {
  appearance: none;
  padding-right: 1.7rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%23423b55' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: .8rem;
  background-position: right .55rem center;
}
.profile-garden { background: var(--gold-tint); border-radius: .55rem; padding: .6rem; }
.form-error { color: #9a2532; margin-top: .55rem; }
.dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .5rem; margin-top: 1rem; }

@media (max-width: 56rem) {
  .header-inner { grid-template-columns: 1fr auto; column-gap: .7rem; row-gap: .25rem; }
  .main-nav { grid-column: 1/-1; grid-row: 2; justify-content: start; }
  .main-nav a { padding-inline: .6rem; }
}
@media (max-width: 70rem) {
  .tv-columns, .event-grid, .flyer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 48rem) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .tv-guide, .events-panel, .shopping-panel { margin-top: 1rem; }
}
@media (max-width: 34rem) {
  .page-width { width: calc(100% - 1.25rem); }
  .main-nav { column-gap: .1rem; }
  .main-nav a { padding-inline: .47rem; font-size: .91rem; }
  .weather-hero { min-height: 11rem; }
  .weather-refresh { padding-inline: .52rem; font-size: .875rem; }
  .tv-columns, .event-grid { grid-template-columns: minmax(0, 1fr); }
  .grocery-photo { width: 4.5rem; }
}

/* Menschda navigation and start page */
.site-header { background: var(--surface); }
.menschda-banner { position: relative; background: #ead2ab; }
.banner-home, .banner-home img { display: block; width: 100%; }
.banner-home img { height: auto; }
.menschda-banner .menschda-header-actions {
  position: absolute;
  right: clamp(.5rem, 1.5vw, 2rem);
  bottom: .5rem;
}
@media (max-width: 65rem) {
  .menschda-banner { padding-bottom: 3.25rem; background: #465327 url("bilder/menschda-garten.jpg") center bottom / 100% auto; }
  .site-header .menschda-banner { padding-bottom: 0; }
  .menschda-banner .menschda-header-actions { position: static; padding: .35rem .5rem; }
  .banner-home img { mask-image: linear-gradient(black 92%, transparent); }
}

.menschda-header-actions { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: end; }
@media (max-width: 24rem) {
  .menschda-header-actions .button { padding-inline: .55rem; }
}
.menschda-layout { display: grid; grid-template-columns: 13.3rem minmax(0, 1fr); align-items: start; gap: clamp(1rem, 2.6vw, 2.35rem); }
.portal-navigation { display: contents; }
.portal-back { margin-bottom: .65rem; }
.menschda-nav {
  position: sticky;
  top: 1rem;
  display: grid;
  justify-content: stretch;
  gap: .2rem;
  margin-top: 1.65rem;
  padding: .4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
}
.menschda-nav a { gap: .65rem; min-height: 3rem; padding-inline: .6rem; font-size: .96rem; }
.menschda-nav a[aria-current] { font-weight: 730; box-shadow: inset 3px 0 var(--gold); }
.menschda-nav .icon { width: 1.18rem; height: 1.18rem; }
.menschda-main { min-width: 0; padding-top: 1.65rem; }
.menschda-page-title { margin-bottom: 1rem; font-size: clamp(1.8rem, 3.7vw, 2.65rem); letter-spacing: -.035em; }
.menschda-main > [data-portal-page] > .panel { margin-top: 0; }
.menschda-main #wetter .feature-grid { grid-template-columns: minmax(0, 1fr); }
.menschda-main .page-footer { margin-top: 1rem; }
.menschda-welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9.5rem, 26%);
  align-items: center;
  gap: clamp(.85rem, 3vw, 2.3rem);
  border: 1px solid #e7d3b8;
  border-radius: 1.4rem;
  padding: clamp(1.1rem, 4vw, 2.4rem);
  background: linear-gradient(115deg, #f2dfc5, #fffbf4);
}
.menschda-welcome h1 { margin: .45rem 0 .65rem; font-size: clamp(1.8rem, 4.3vw, 3.4rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
.menschda-welcome-copy > p { max-width: 32rem; }
.menschda-date { margin-top: .8rem; color: var(--muted); font-size: .95rem; }
.menschda-portrait { min-width: 0; margin: 0; text-align: center; }
.menschda-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 1.15rem; background: #ead6bc; color: var(--ink); }
.menschda-portrait figcaption { margin-top: .35rem; color: var(--muted); font-size: .83rem; }
.menschda-shortcuts { margin-top: 1.5rem; }
.menschda-shortcuts h2 { margin-bottom: .7rem; }
.menschda-shortcut-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .65rem;
  padding: 0;
  list-style: none;
}
.menschda-shortcut-list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  min-height: 3.5rem;
  height: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--control-border);
  border-radius: .85rem;
  background: var(--surface);
  font-weight: 700;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.menschda-shortcut-list a:hover { background: var(--gold-tint); }
.shortcut-arrow { width: 1.05rem; }
.menschda-tile { display: grid; align-content: start; min-width: 0; overflow: hidden; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.menschda-tile:hover { background: var(--gold-tint); }
.menschda-tile > img { display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; background: var(--gold-tint); }
.menschda-tile > .menschda-illustration { object-fit: contain; background: #f7e9d7; }
.menschda-tile > span { display: flex; justify-content: space-between; align-items: center; gap: .35rem; margin: .65rem .75rem .12rem; font-weight: 720; line-height: 1.28; }
.menschda-tile > small { margin: 0 .75rem .72rem; color: var(--muted); }
@media (max-width: 68rem) {
  .menschda-main .feature-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 65rem) {
  html { scroll-padding-top: 4.5rem; }
  .menschda-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .menschda-nav { position: static; margin-top: .65rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menschda-nav a { min-width: 0; overflow-wrap: anywhere; }
  .menschda-main { padding-top: 1rem; }
  .portal-navigation {
    display: block;
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .portal-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
    padding: .5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .portal-toolbar .button { line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
  .portal-toolbar :is([aria-expanded="true"], [aria-current="page"]) { background: var(--gold-tint); }
  .portal-toolbar:not([hidden]) + .menschda-nav {
    position: absolute;
    inset: 100% 0 auto;
    margin: 0;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 .6rem 1.5rem #302a2526;
  }
  .skip-link { z-index: 6; }
}
@media (max-width: 39rem) {
  .menschda-shortcut-list { grid-template-columns: minmax(0, 1fr); }
  .menschda-shortcuts { margin-top: 1rem; }
  .menschda-welcome { grid-template-columns: minmax(0, 1fr) 5.75rem; column-gap: .75rem; row-gap: .35rem; }
  .menschda-welcome-copy { display: contents; }
  .menschda-welcome .place-label, .menschda-welcome h1 { grid-column: 1; }
  .menschda-welcome h1 { margin: .18rem 0 .3rem; }
  .menschda-welcome-copy > p:not(.place-label) { grid-column: 1 / -1; }
  .menschda-welcome .menschda-date { margin-top: .12rem; }
  .menschda-portrait { grid-column: 2; grid-row: 1 / span 2; }
  .menschda-portrait figcaption { font-size: .73rem; line-height: 1.25; }
  .menschda-tile { grid-template-columns: minmax(5rem, 28%) minmax(0, 1fr); align-content: center; }
  .menschda-tile > img { grid-row: span 2; height: 100%; min-height: 4.6rem; }
  .menschda-tile > span { margin-top: .55rem; }
  .menschda-tile > small { margin-bottom: .55rem; }
}
@media (max-width: 23rem) {
  .portal-toolbar .button { padding-inline: .35rem; gap: .3rem; }
  .portal-toolbar .icon { width: 1.1rem; }
  .menschda-nav { grid-template-columns: minmax(0, 1fr); }
}
.menschda-welcome-text { grid-template-columns: minmax(0, 1fr); }

.tv-today-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  margin-bottom: .9rem;
  padding: clamp(.8rem, 2.8vw, 1.3rem);
  background: #f8ead5;
}
.tv-today-link .button { text-align: center; }
#fernsehen .media-panel { margin-top: 1rem; }
.media-panel > p { margin-top: .25rem; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; list-style: none; padding: 0; margin-top: .65rem; }
.media-grid .button { width: 100%; justify-content: space-between; }
.media-grid .icon { width: 1rem; height: 1rem; }
.event-section { margin-top: .85rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.event-section h3 { font-size: 1.17rem; }
.event-section .event-grid { margin-top: .55rem; }
.event-next-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .45rem 1rem; }
.event-next-head .field { min-width: min(100%, 11rem); }
.event-copy h3 { font-size: 1.08rem; }
#angebote .shopping-list { margin-top: .9rem; }
@media (max-width: 48rem) {
  .forecast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tip-grid, .media-grid, .flyer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 32rem) {
  .forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tip-grid, .media-grid, .flyer-grid { grid-template-columns: minmax(0, 1fr); }

}

.profile-preferences {
  min-width: 0;
  margin: .85rem 0 0;
  padding: .4rem .65rem .55rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
.profile-preferences legend { padding-inline: .25rem; font-weight: 730; }
.profile-preferences .profile-fields { margin-block: .5rem .15rem; }
.profile-preferences .check-row { min-height: 2.75rem; }
.profile-interests { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .6rem; }
.event-filter-controls { display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: end; }
.event-live-panel h2 { margin-bottom: .55rem; }
.event-live-panel > p { margin-top: .45rem; }
#termine .event-live-panel + .events-panel { margin-top: .9rem; }
#event-calendar-frame iframe {
  display: block;
  width: 100%;
  height: min(42rem, 76vh);
  min-height: 20rem;
  border: 1px solid var(--line);
  margin-top: .7rem;
  border-radius: .65rem;
  background: var(--surface);
}
.event-interest-badge { padding: .18rem .4rem; border-radius: .4rem; background: var(--gold-tint); color: var(--accent-dark); font-size: .85rem; font-weight: 650; }
.flyer-period { display: grid; gap: .4rem; margin-bottom: .8rem; }
@media (max-width: 34rem) {
  .profile-interests { grid-template-columns: minmax(0, 1fr); }
}

.spielkarten { display:grid; gap:1rem; }
.spielkarte { padding:clamp(.8rem, 2vw, 1.5rem); background:var(--surface); border:1px solid var(--line); border-radius:1rem; }
.spielkarte summary { cursor:pointer; font-weight:750; font-size:1.3rem; }
.spielkarte summary small { display:block; margin-left:1.4rem; font-size:.95rem; color:var(--muted); font-weight:500; }
.spielkarte p { margin:.8rem 0; }
#sudoku-grid { display:grid; grid-template-columns:repeat(9,1fr); max-width:27rem; margin:1rem 0; border:2px solid #705132; }
#sudoku-grid input { min-width:0; width:100%; aspect-ratio:1; padding:0; text-align:center; border:1px solid #c8b89f; border-radius:0; font:inherit; font-weight:650; color:#215879; background:white; }
#sudoku-grid input:read-only { background:#f0e4d2; color:#352a20; }
#sudoku-grid input:nth-child(3n) { border-right:2px solid #705132; }
#sudoku-grid input:nth-child(n+19):nth-child(-n+27), #sudoku-grid input:nth-child(n+46):nth-child(-n+54) { border-bottom:2px solid #705132; }
#sudoku-grid input[aria-invalid=true] { outline:2px dashed #aa332b; outline-offset:-4px; }
#mill-board { display:grid; grid-template-columns:repeat(3,1fr); width:min(100%,19rem); aspect-ratio:1; margin:1rem 0; background:#eed4a8; border-radius:12px; }
#mill-board button { margin:auto; width:70%; aspect-ratio:1; border:1px solid #755733; border-radius:50%; font-size:clamp(1.3rem,4vw,2rem); color:#31271e; background:#faf2df; cursor:pointer; }
#mill-board button[aria-pressed=true] { outline:4px solid #24705f; }
#mill-board { background-image:linear-gradient(45deg,transparent 49.5%,#95744d 50%,transparent 50.5%),linear-gradient(-45deg,transparent 49.5%,#95744d 50%,transparent 50.5%),repeating-linear-gradient(0deg,transparent 0 16%,#95744d 16.5% 17%,transparent 17% 33.33%),repeating-linear-gradient(90deg,transparent 0 16%,#95744d 16.5% 17%,transparent 17% 33.33%); }
.kalenderblatt { float:right; margin-left:.65rem; text-align:center; border:1px solid var(--line); border-radius:.5rem; overflow:hidden; }
.kalenderblatt span,.kalenderblatt strong { display:block; padding:.15rem .7rem; }
.kalenderblatt span { background:#795533; color:white; }
.kalenderblatt strong { font-size:1.7rem; }

.freizeit-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:1rem; }
.freizeit-grid .menschda-tile img { aspect-ratio:2.1; }
#gartenrennen-board,#fundpaare-board { display:grid; gap:.35rem; margin:1rem 0; max-width:38rem; }
#gartenrennen-board { grid-template-columns:repeat(5,1fr); }
#gartenrennen-board span { background:#f1e4cb; padding:.45rem; border-radius:.4rem; min-height:3rem; }
#gartenrennen-board .flower { background:#dbe8cf; }
#fundpaare-board { grid-template-columns:repeat(4,1fr); }
#fundpaare-board button { min-height:3.25rem; font-size:1.5rem; }
#gartenrennen-actions button { margin:0 .35rem .65rem 0; }
