:root {
  color-scheme: light;
  --ink: #351722;
  --muted: #674454;
  --bordeaux: #4c1026;
  --wine: #701d3b;
  --rose: #f8cddc;
  --ivory: #fcf7f0;
  --wash: #f2e1e8;
  --paper: #fbf6f8;
  --line: #e8d6de;
  --white: #fff;
  --radius: 24px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
html { background: linear-gradient(155deg, var(--ivory), #faf0f1 45%, var(--wash)); }
body { margin: 0 auto; max-width: 1320px; min-height: 100vh; background: var(--white); color: var(--ink); font: 1rem/1.6 var(--font); }
a { color: inherit; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #982851; outline-offset: 4px; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--rose); }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
header { background: var(--white); }
.nav, nav, .links, .hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.nav { justify-content: space-between; padding-block: 1rem; min-height: 76px; }
nav a { text-decoration: none; font-weight: 650; padding-block: .25rem; }
nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { display: block; width: 2.75rem; height: 2.75rem; flex: none; }
.brand-type { display: grid; gap: .1rem; line-height: 1; }
.brand-type strong { font-size: 1.22rem; font-weight: 800; letter-spacing: -.04em; }
.brand-type span { color: var(--wine); font-size: .875rem; font-weight: 650; }
.hero {
  display: grid;
  align-items: center;
  min-height: clamp(275px, 30vw, 420px);
  width: min(1480px, calc(100% - 32px));
  margin-inline: auto;
  border-radius: 32px;
  color: var(--white);
  background: linear-gradient(90deg, #000000c9, #00000066 40%, #0000000d 78%),
    url('panorama-reutte.jpg') center 52% / cover,
    var(--wine);
}
.hero .wrap { padding: 2rem 0; width: min(1200px, calc(100% - 72px)); }
.kicker { margin: 0 0 .75rem; font-size: .875rem; font-weight: 750; letter-spacing: .105em; text-transform: uppercase; color: var(--muted); }
.hero .kicker, #gemeinden > .kicker {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: 10px;
  font-weight: 450;
}
.hero .kicker { color: #fff5f8; }
.hero h1 { line-height: .98; }
.hero .kicker::before, #gemeinden > .kicker::before {
  content: "";
  flex: 0 0 1.6rem;
  border-top: 1px solid currentColor;
}
h1, h2, h3 { margin: 0; font-weight: 780; line-height: 1.07; letter-spacing: -.045em; }
h1 { font-size: clamp(3rem, 8.6vw, 7.4rem); }
h2 { font-size: clamp(2rem, 4.9vw, 4.05rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
.lead { font-size: clamp(1.1rem, 2.1vw, 1.4rem); max-width: 42rem; }
.hero-actions { gap: .65rem; margin-top: 1.65rem; }
.button { display: inline-block; padding: .7rem 1.15rem; border: 1px solid transparent; border-radius: 100px; background: var(--rose); color: var(--ink); font-weight: 500; text-decoration: none; }
.button:hover { background: #ffe5ef; }
.button-quiet { background: #35172280; border-color: #ffffff8c; color: var(--white); }
.button-quiet:hover { background: var(--wine); }
.choices, .places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.choices { padding-block: 1.5rem 0; }
.entry { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.choices article { background: var(--white); padding: clamp(1.3rem, 3.5vw, 2.75rem); border: 1px solid var(--line); border-radius: var(--radius); }
.choices article a { font-weight: 700; }
.band, .section { padding-block: clamp(2.75rem, 6vw, 5.5rem); }
.band { background: #f2e3ea; }
#termine { color: var(--white); background: var(--wine); }
#termine .kicker { color: var(--rose); }
.links a { border: 1px solid #ffffff55; border-radius: 100px; padding: .45rem .95rem; font-weight: 500; text-decoration: none; }
.links a:hover { background: #ffffff24; }
.places { margin-top: 1.6rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.directory, .map { padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
label { display: block; font-weight: 700; margin-bottom: .4rem; }
input { font: inherit; color: var(--ink); padding: .7rem .85rem; width: 100%; border: 1px solid #a27a8b; border-radius: 12px; background: var(--paper); }
#count { margin: .55rem 0; color: var(--muted); font-size: .9rem; }
#list { list-style: none; padding: 0 .2rem; margin: 0; max-height: 22rem; overflow: auto; }
#list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem; padding: .65rem .2rem; border-bottom: 1px solid var(--line); }
#list li:last-child { border-bottom: 0; }
.maplink { font-size: .875rem; color: var(--wine); }
iframe { display: block; width: 100%; height: 27rem; border: 1px solid var(--line); border-radius: 14px; background: #f4e7ed; }
.mapnote { font-size: .875rem; color: var(--muted); margin: .6rem 0 0; }
footer { background: #3e1124; color: var(--white); padding-block: 2.25rem; font-size: .9rem; }
footer p { margin: .5rem 0; }
#detail h1 { font-size: clamp(3rem, 8vw, 6rem); }
#detail .kicker { margin-top: 2rem; }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 32px); }
  .choices, .places { grid-template-columns: 1fr; }
  .nav, nav { gap: .6rem 1rem; }
  .hero { width: calc(100% - 16px); border-radius: 22px; background-position: 58% center; }
  .hero .wrap { width: calc(100% - 36px); }
  iframe { height: 19rem; }
}
.hero-title-word {
  font-family: Arial, sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 6.7vw, 5.25rem);
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.hero-accent {
  color: var(--rose);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .78);
  text-transform: none;
}

@media (min-width: 901px) {
  .entry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 701px) and (max-width: 900px) {
  .entry { grid-template-columns: 1fr; }
}
.entry .entry-card {
  display: block;
  padding: clamp(1.3rem, 3.5vw, 2.75rem);
  background: var(--bordeaux);
  color: var(--white);
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
}
.entry .entry-card:hover { background: #3c0c1e; }
.entry .entry-card p { margin-bottom: 0; }
.portal-heading { padding-bottom: 0; }
#gemeinden > h2 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); }
.portal-heading h1, .history h1 { margin-top: 1rem; font-size: clamp(2.2rem, 6vw, 4.7rem); }
.history { max-width: 55rem; }
.history article, .history section, .place-history { margin-block: 2.5rem; }
.history h2, .place-history h2 { font-size: clamp(1.65rem, 4vw, 2.65rem); }
.timeline { list-style: none; padding: 0; margin: 1.25rem 0; }
.timeline li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; border-top: 1px solid var(--line); padding-block: 1rem; }
.timeline time { color: var(--wine); font-weight: 750; font-variant-numeric: tabular-nums; }
.timeline p { margin-block: .35rem 0; }

.entry-card h2 { font-size: clamp(1.85rem, 4vw, 3rem); }
.ad-slot {
  width: min(728px, calc(100% - 32px));
  margin-top: 1.5rem;
}
.ad-label {
  display: block;
  margin-bottom: .3rem;
  color: var(--muted);
  font-size: .875rem;
}
.baro-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  min-height: 90px;
  padding: .8rem 1.4rem;
  border: 1px solid #233d56;
  border-radius: 12px;
  background: linear-gradient(105deg, #101721 24%, #13283d);
  color: #f8fafc;
  text-decoration: none;
}
.baro-stripes { display: flex; flex: none; gap: 4px; padding-inline: 5px; transform: skew(-29deg); }
.baro-stripes i { width: 7px; height: 34px; background: #ff4b4e; }
.baro-stripes i:nth-child(2) { background: #67dc72; }
.baro-stripes i:nth-child(3) { background: #4fc4ff; }
.baro-copy { display: grid; gap: .1rem; line-height: 1.2; }
.baro-copy strong { font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: -.04em; }
.baro-copy > span { color: #d4e0ee; font-size: .875rem; }
.baro-cta {
  flex: none;
  margin-left: auto;
  padding: .45rem .75rem;
  border: 1px solid #7790a8;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
}
.baro-banner:hover .baro-cta { background: #e9f3ff; border-color: #e9f3ff; color: #101721; }
@media (max-width: 460px) {
  .baro-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .55rem .9rem;
    padding-inline: 1rem;
  }
  .baro-cta { grid-column: 2; justify-self: start; margin-left: 0; }
}

.imprint h2 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: normal;
}

.region-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.region-intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.region-intro p { max-width: 38rem; }
.region-intro figure { margin: 0; }
.region-intro img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
.region-intro figcaption { margin-top: .5rem; color: var(--muted); font-size: .875rem; }
@media (max-width: 700px) {
  .region-intro { grid-template-columns: 1fr; }
}

@media (min-width: 760px) {
  body {
    width: calc(100% - 40px);
    border-left: 1px solid #d7bdc9;
    box-shadow: 16px 0 26px -20px rgba(53, 23, 34, .42);
  }
}

.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem 1.25rem; }
.footer-main small { font-size: inherit; }
.footer-links, .privacy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
.footer-links { justify-content: flex-end; }
.footer-main > .footer-links { margin-left: auto; }
.footer-links button {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: .23em;
}
.external-map > div {
  display: grid;
  justify-items: start;
  align-content: center;
  padding: 1rem;
  min-height: 12rem;
  background: var(--paper);
  border-radius: 14px;
}
.external-map button, .privacy-actions button {
  border: 1px solid var(--wine);
  border-radius: 8px;
  padding: .5rem .8rem;
  background: var(--white);
  color: var(--wine);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.external-map button:hover, .privacy-actions button:hover { background: var(--paper); }
.privacy-panel {
  position: fixed;
  z-index: 5;
  inset: auto auto 1rem 50%;
  transform: translateX(-50%);
  width: min(42rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: 1.25rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 36px rgba(53, 23, 34, .2);
}
.privacy-panel h2 { font-size: 1.25rem; }
.privacy-panel p { margin: .65rem 0; }
.privacy-actions { gap: .5rem; margin-top: .85rem; }
body:has(.privacy-panel:not([hidden])) { padding-bottom: min(22rem, 60vh); }

.portal-heading.portal-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(230px, 25vw, 325px);
  margin-top: .5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(90deg, #000000d1, #00000080 58%, #00000033),
    url('hier-leben-collage.webp') center 54% / cover, var(--bordeaux);
}
.portal-hero h1 { margin-top: .75rem; }
.portal-hero p { max-width: 32rem; margin-bottom: 0; }
.portal-hero :focus-visible { outline-color: var(--rose); }

.living-entry { padding-top: 1.25rem; }
.living-ad {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1rem;
  max-width: 728px;
  min-height: 90px;
  align-content: center;
  margin: 0 auto 1.25rem;
  padding: .75rem;
  border: 1px dashed #c4a7b4;
  border-radius: 12px;
  background: var(--paper);
  color: var(--muted);
  font-size: .875rem;
}
.living-ad span:first-child { font-weight: 650; }
.living-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: .55rem;
}
.living-menu a {
  display: flex;
  align-items: center;
  min-height: 3rem;
  padding: .55rem .85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--bordeaux);
  background: var(--paper);
  font-weight: 620;
  text-decoration: none;
}
.living-menu a:hover { border-color: var(--wine); text-decoration: underline; }
.living-topics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  padding-top: 0;
}
.living-topics article {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.living-topics h2 { font-size: clamp(1.35rem, 2.7vw, 1.8rem); }
.living-topics ul { padding-left: 1.2rem; margin-bottom: 0; }

.living-menu a[aria-current="location"] { color: var(--white); background: var(--bordeaux); border-color: var(--bordeaux); }
.living-entry:not([hidden]) + #gemeinden, .living-topics, .living-entry:not([hidden]) ~ #termine { padding-top: 1.8rem; }
.living-topics .service-panel { grid-column: 1 / -1; }
.living-topics .service-list { list-style: none; padding: 0; margin-top: 1.15rem; }
.service-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .55rem 1rem;
  border-top: 1px solid var(--line);
  padding: .9rem 0;
}
.service-list p { margin: .2rem 0 0; }
.service-phone { padding: .35rem .65rem; border-radius: 6px; background: var(--paper); color: var(--bordeaux); font-weight: 700; }
.service-source { color: var(--muted); font-size: .9rem; }

.service-roster { margin-top: 1rem; }
.service-roster section { margin-block: .8rem; }
.service-roster h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-roster ul { list-style: none; padding: 0; margin: 0; }
.service-roster li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .15rem .8rem;
  padding: .55rem 0;
}
.service-roster li span { grid-row: 2; color: var(--muted); }
.service-roster li a { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 520px) {
  .service-roster li { display: flex; flex-direction: column; align-items: flex-start; }
  .service-roster li a { align-self: flex-start; }
}

.service-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: .5rem;
  margin-top: 1.15rem;
}
.service-picker button {
  min-height: 2.8rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--bordeaux);
  background: var(--paper);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.service-picker button:hover { border-color: var(--wine); }
.service-picker button[aria-pressed="true"] { background: var(--bordeaux); color: var(--white); border-color: var(--bordeaux); }
.service-picker:not([hidden]) + .service-list > li {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.living-topics .directory-region { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.directory-region h3 { font-size: 1.3rem; }
.directory-region h4 { margin: 1rem 0 .35rem; }
.living-topics .directory-practices { padding: 0; margin: 0; list-style: none; }
.directory-practices li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  border-top: 1px solid var(--line);
  padding: .65rem 0;
}
.directory-practices p { margin: .15rem 0; }

#list button[data-municipality] {
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--bordeaux);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: .2em;
  padding: .15rem .2rem;
}
#list button[aria-pressed="true"] { background: var(--paper); }
.municipality-card {
  align-self: start;
  min-width: 0;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.municipality-return {
  font: inherit;
  color: var(--bordeaux);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .4rem .7rem;
  margin-bottom: .9rem;
  cursor: pointer;
}
.municipality-card figure { margin: .9rem 0; }
.municipality-card figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.municipality-card figcaption { color: var(--muted); font-size: .875rem; margin-top: .35rem; }
.municipality-card h4 { margin: .9rem 0 .3rem; }
.municipality-card address { font-style: normal; }
.municipality-card ul { margin: .25rem 0 .45rem; padding-left: 1.2rem; }
.municipality-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1rem; }
@media (max-width: 700px) {
  .municipality-card h3 { scroll-margin-top: 4rem; }
}

.privacy-panel .privacy-option {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: .65rem 0;
  font-weight: 400;
}
.privacy-option input[type="checkbox"] {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: .3rem 0 0;
  accent-color: var(--wine);
}

.municipality-card figure .municipality-photo-portrait { object-position: center 34%; }

.municipality-heading { display: flex; align-items: center; gap: .8rem; }
.municipality-card .municipality-coat {
  flex: 0 0 44px;
  width: 44px;
  height: 52px;
  object-fit: contain;
  border-radius: 0;
}
