/* Bürgerliste Riedenburg – 1:1 Nachbau
   Schritt 1: Header + Hero
*/

:root {
  --orange: #ff9418;
  --orange-light: #ffd9ad;
  --cream: #fff8ef;
  --navy: #111128;
  --muted: #606067;
  --white: #ffffff;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--navy);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(calc(100% - 100px), var(--max-width));
  margin-inline: auto;
}

/* ---------------- Header ---------------- */

#header-partial {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  position: relative;
  z-index: 20;
  height: 84px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(30, 30, 40, .07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.logo {
  display: block;
  width: 205px;
  line-height: 0;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a:not(.dialog-link):hover {
  color: var(--orange);
}

.dialog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 17px;
  color: #fff;
  background: var(--orange);
}

.dialog-link img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* ---------------- Hero ---------------- */

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 50% 50%;
  background: var(--cream);
}

.hero-copy {
  display: flex;
  align-items: center;
  background: var(--cream);
}

.hero-copy-inner {
  width: min(650px, calc(100% - 100px));
  margin-left: max(50px, calc((100vw - var(--max-width)) / 2));
  padding: 65px 0 50px;
}

.welcome-label {
  display: inline-flex;
  margin-bottom: 25px;
  font-size: 14px;
  font-weight: 700;
}

.welcome-label span:first-child {
  padding: 7px 13px;
  color: #fff;
  background: var(--orange);
}

.welcome-label span:last-child {
  padding: 7px 13px;
  background: var(--orange-light);
}

h1 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: clamp(42px, 4.5vw, 66px);
  line-height: .98;
  letter-spacing: -2.7px;
  font-weight: 800;
}

h1 span {
  color: var(--orange);
}

.hero-copy p {
  max-width: 585px;
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.48;
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  gap: 13px;
}

.button {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--orange);
}

.button.outline {
  color: var(--orange);
  border: 2px solid var(--orange);
  background: transparent;
}

.button:hover {
  transform: translateY(-1px);
}

.scroll-hint {
  display: block;
  width: 24px;
  height: 32px;
  margin-top: 22px;
}

.mouse {
  position: relative;
  display: block;
  width: 18px;
  height: 27px;
  border: 2px solid var(--orange);
  border-radius: 10px;
}

.mouse::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 2px;
  height: 6px;
  transform: translateX(-50%);
  background: var(--orange);
  border-radius: 2px;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  padding: 50px 70px 0 0;
  overflow: visible;
  background: var(--cream);
}

.hero-image-frame {
  position: relative;
  width: 100%;
}

.hero-photo-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 1.44;
  overflow: hidden;
  box-shadow: 14px 14px 25px rgba(17, 17, 40, .12);
}

.hero-photo-crop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(29, 51, 37, .08);
  pointer-events: none;
  z-index: 1;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 900ms cubic-bezier(.2,.65,.25,1);
}

.hero-visual:hover .hero-photo {
  transform: scale(1.045);
}

.hero-bars {
  position: absolute;
  right: 0;
  bottom: -57px;
  z-index: 2;
  display: block;
  width: min(65%, 330px);
  height: auto;
  pointer-events: none;
}

/* Platzhalter für den nächsten Bauabschnitt */

.placeholder {
  min-height: 250px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #777;
}

/* ---------------- Mobile ---------------- */

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 7px;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

@media (max-width: 1050px) {
  .container {
    width: min(calc(100% - 50px), var(--max-width));
  }

  .main-nav {
    gap: 16px;
    font-size: 13px;
  }

  .logo {
    width: 190px;
  }
}

@media (max-width: 850px) {
  .site-header {
    height: 72px;
  }

  .logo {
    width: 175px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    padding: 15px 25px 25px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    box-shadow: 0 12px 20px rgba(0,0,0,.1);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 0;
  }

  .dialog-link {
    justify-content: center;
    margin-top: 5px;
  }

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

  .hero-copy {
    min-height: 560px;
  }

  .hero-copy-inner {
    width: min(calc(100% - 50px), 650px);
    margin: auto;
  }

  .hero-visual {
    min-height: 450px;
    padding: 0;
    overflow: hidden;
  }

  .hero-image-frame {
    width: 100%;
  }

  .hero-photo-crop {
    height: 450px;
    aspect-ratio: auto;
  }

  .hero-bars {
    bottom: 0;
  }
}

@media (max-width: 520px) {
  .hero-copy-inner {
    padding: 45px 0;
  }

  h1 {
    font-size: 42px;
    letter-spacing: -1.8px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }
}


/* ---------------- Über die Bürgerliste ---------------- */

.about-section {
  position: relative;
  background: #fff;
  padding: 72px 0 0;
}

.about-main {
  display: grid;
  grid-template-columns: 350px minmax(0, 470px);
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding-bottom: 72px;
}

.about-photo {
  width: 350px;
  align-self: start;
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-copy {
  align-self: center;
  max-width: 470px;
}

.about-copy h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(25px, 2.2vw, 31px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 800;
}

.about-copy h2 span {
  color: var(--orange);
}

.about-copy p {
  margin: 0 0 17px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.48;
  font-weight: 600;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-stats-wrap {
  width: 100%;
  background: var(--cream);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: center;
}

.about-stat {
  min-height: 72px;
  padding: 10px 24px 12px;
  text-align: center;
  background: #fff;
  border-right: 1px solid #eee8df;
}

.about-stat:first-child {
  border-left: 1px solid #eee8df;
}

.about-stat strong {
  display: block;
  margin: 0 0 1px;
  color: var(--orange);
  font-size: 35px;
  line-height: .95;
  letter-spacing: -1.5px;
  font-weight: 800;
}

.about-stat span {
  display: block;
  color: var(--navy);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 700;
}

@media (max-width: 850px) {
  .about-section {
    padding-top: 55px;
  }

  .about-main {
    grid-template-columns: minmax(260px, 350px) minmax(0, 1fr);
    gap: 35px;
    padding-bottom: 55px;
  }

  .about-photo {
    width: 100%;
  }

  .about-copy p {
    font-size: 14px;
  }
}

@media (max-width: 650px) {
  .about-main {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 45px;
  }

  .about-photo {
    width: min(100%, 350px);
    margin-inline: auto;
  }

  .about-copy {
    max-width: none;
  }

  .about-copy h2 {
    font-size: 32px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-stat,
  .about-stat:first-child {
    min-height: auto;
    padding: 14px 20px;
    border-left: 1px solid #eee8df;
    border-right: 1px solid #eee8df;
    border-bottom: 1px solid #eee8df;
  }
}


/* ---------------- Stadträte ---------------- */

.council-section {
  padding: 66px 0 72px;
  background: var(--white);
}

.council-heading {
  max-width: 1080px;
  margin: 0 auto 30px;
}

.council-label {
  display: inline-flex;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
}

.council-label span {
  padding: 5px 10px;
}

.council-label span:first-child {
  color: var(--white);
  background: var(--orange);
}

.council-label span:last-child {
  color: var(--navy);
  background: var(--orange-light);
}

.council-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 800;
}

.council-heading h2 span,
.council-role-highlight {
  color: var(--orange);
}

.council-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 27px 68px;
  max-width: 1080px;
  margin: 0 auto;
}

.council-member {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 19px;
}

.council-member > img {
  display: block;
  width: 106px;
  max-width: none;
  margin-top: 1px;
}

.council-member h3 {
  margin: 1px 0 8px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.15;
  font-weight: 500;
}

.council-member p {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.48;
  font-weight: 500;
}

.council-member .council-role {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

@media (max-width: 850px) {
  .council-section {
    padding: 58px 0 64px;
  }

  .council-grid {
    gap: 35px 38px;
  }

  .council-member {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .council-member > img {
    width: 96px;
  }
}

@media (max-width: 650px) {
  .council-heading {
    margin-bottom: 28px;
  }

  .council-heading h2 {
    font-size: 29px;
  }

  .council-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .council-member {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 17px;
  }

  .council-member > img {
    width: 106px;
  }
}


/* ---------------- Politik & Ziele ---------------- */

.goals-section {
  padding: 64px 0 72px;
  background: var(--cream);
}

.goals-heading {
  max-width: 930px;
  margin: 0 auto 21px;
  text-align: center;
}

.goals-label {
  display: inline-flex;
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 800;
}

.goals-label span {
  padding: 5px 10px;
}

.goals-label span:first-child {
  color: var(--white);
  background: var(--orange);
}

.goals-label span:last-child {
  color: var(--navy);
  background: var(--orange-light);
}

.goals-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(23px, 2.15vw, 30px);
  line-height: 1.08;
  letter-spacing: -1.1px;
  font-weight: 800;
}

.goals-navigation {
  position: relative;
  max-width: 956px;
  height: 47px;
  margin: 0 auto 19px;
  overflow: hidden;
}

.goals-navigation::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--orange);
}

.goals-nav-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.goals-tab {
  position: relative;
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 6px 7px 18px;
  border: 0;
  color: var(--navy);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.22;
  text-align: center;
  white-space: normal;
  transition: color 180ms ease;
}

.goals-tab span {
  display: inline-block;
  padding: 4px 9px;
  background: var(--orange-light);
}

.goals-tab::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: translateX(-50%) rotate(45deg);
  opacity: .5;
}

.goals-tab:hover,
.goals-tab:focus-visible {
  color: var(--orange);
  outline: none;
}

.goals-tab:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.goals-tab.is-active {
  color: var(--white);
  font-weight: 800;
}

.goals-tab.is-active span {
  background: var(--orange);
}

.goals-tab.is-active::after {
  width: 8px;
  height: 8px;
  opacity: 1;
}

.goals-carousel {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
}

.goals-viewport {
  margin: 0 42px;
  overflow: hidden;
}

.goals-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.goals-track::-webkit-scrollbar {
  display: none;
}

.goal-card {
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 23px 21px 25px;
  background: var(--white);
  border-top: 4px solid var(--orange);
  scroll-snap-align: start;
}

.goal-card > img {
  width: 68px;
  height: 68px;
  margin: 0 0 14px;
  object-fit: contain;
}

.goal-card h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -.5px;
  font-weight: 800;
}

.goal-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.goal-card li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 14px;
  color: var(--navy);
  font-size: 11px;
  line-height: 1.36;
  font-weight: 600;
}

.goal-card li::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--orange);
}

.goals-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 25px;
  height: 32px;
  padding: 0 0 2px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
}

.goals-arrow:hover,
.goals-arrow:focus-visible {
  background: #e98208;
  outline: none;
}

.goals-prev { left: 0; }
.goals-next { right: 0; }

@media (max-width: 850px) {
  .goals-section {
    padding: 58px 0 64px;
  }

  .goals-navigation {
    max-width: calc(100% - 84px);
  }

  .goal-card {
    flex-basis: calc((100% - 20px) / 2);
  }

}

@media (max-width: 650px) {
  .goals-heading {
    margin-bottom: 20px;
    text-align: left;
  }

  .goals-tab {
    padding: 10px 12px 16px;
    font-size: 12px;
  }

  .goals-navigation {
    max-width: calc(100% - 62px);
    margin-bottom: 17px;
  }

  .goals-viewport {
    margin: 0 31px;
  }

  .goal-card {
    flex-basis: 100%;
    padding: 22px 20px 24px;
  }

  .goals-arrow {
    width: 22px;
    height: 30px;
    font-size: 23px;
  }
}


/* ---------------- Aktuelles ---------------- */

.news-section {
  padding: 64px 0 58px;
  background: var(--cream);
}

.news-heading {
  max-width: 1050px;
  margin: 0 auto 20px;
}

.news-label {
  display: inline-flex;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
}

.news-label span {
  padding: 5px 10px;
}

.news-label span:first-child {
  color: var(--white);
  background: var(--orange);
}

.news-label span:last-child {
  color: var(--navy);
  background: var(--orange-light);
}

.news-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(27px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 800;
}

.news-heading h2 span {
  color: var(--orange);
}

.news-carousel {
  position: relative;
  max-width: 1050px;
  margin: 0 auto;
}

.news-viewport {
  margin: 0 28px;
  overflow: hidden;
}

.news-track {
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.news-track::-webkit-scrollbar {
  display: none;
}

.news-card {
  flex: 0 0 calc((100% - 68px) / 3);
  background: var(--white);
  scroll-snap-align: start;
}

.news-image {
  position: relative;
  height: 152px;
  overflow: hidden;
}

.news-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-image time {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  width: 50px;
  height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--orange);
  font-size: 8px;
  line-height: .95;
  font-weight: 700;
}

.news-image time strong {
  font-size: 20px;
  line-height: .86;
}

.news-card-body {
  min-height: 193px;
  padding: 16px 15px 16px;
}

.news-card h3 {
  min-height: 42px;
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.12;
  font-weight: 500;
}

.news-card p {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: 11px;
  line-height: 1.42;
  font-weight: 500;
}

.news-read-more {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 12px;
  color: var(--white);
  background: var(--orange);
  font-size: 11px;
  font-weight: 800;
}

.news-read-more:hover {
  background: #e98208;
}

.news-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  width: 26px;
  height: 28px;
  padding: 0 0 2px;
  border: 0;
  color: var(--white);
  background: var(--orange-light);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transform: translateY(-50%);
}

.news-arrow:hover,
.news-arrow:focus-visible {
  background: var(--orange);
  outline: none;
}

.news-prev { left: 0; }
.news-next { right: 0; }

.news-arrow:disabled {
  cursor: default;
  opacity: .58;
}

.news-indicator {
  width: 7px;
  height: 7px;
  margin: 14px auto 0;
  background: var(--orange);
  border-radius: 50%;
}

@media (max-width: 850px) {
  .news-section {
    padding: 58px 0 54px;
  }

  .news-track {
    gap: 22px;
  }

  .news-card {
    flex-basis: calc((100% - 22px) / 2);
  }
}

@media (max-width: 650px) {
  .news-heading h2 {
    font-size: 29px;
  }

  .news-viewport {
    margin: 0 31px;
  }

  .news-card {
    flex-basis: 100%;
  }

  .news-image {
    height: 190px;
  }

  .news-card-body {
    min-height: 0;
  }

  .news-arrow {
    width: 23px;
    height: 28px;
  }
}


/* ---------------- Presse ---------------- */

.press-section {
  padding: 66px 0 72px;
  background: var(--white);
}

.press-heading {
  max-width: 1140px;
  margin: 0 auto 24px;
}

.press-label {
  display: inline-flex;
  margin: 0 0 13px;
  font-size: 11px;
  font-weight: 800;
}

.press-label span {
  padding: 5px 10px;
}

.press-label span:first-child {
  color: var(--white);
  background: var(--orange);
}

.press-label span:last-child {
  color: var(--navy);
  background: var(--orange-light);
}

.press-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 500;
}

.press-heading h2 span {
  color: var(--orange);
}

.press-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  max-width: 1140px;
  margin: 0 auto;
}

.press-panel {
  min-height: 456px;
  padding: 36px;
  background: var(--cream);
}

.press-panel h3 {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 500;
}

.press-intro {
  max-width: 455px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
}

.press-intro a {
  color: var(--orange);
  border-bottom: 1px solid var(--orange);
  font-weight: 800;
}

.press-entries {
  display: grid;
  gap: 15px;
}

.press-entry {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.press-entry h4,
.press-entry p {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.press-entry p {
  font-weight: 500;
}

a.press-entry:hover h4,
a.press-entry:focus-visible h4 {
  color: var(--orange);
}

a.press-entry:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.press-icon {
  display: block;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  background: var(--orange);
  -webkit-mask: url("images/icons/link.svg") center / contain no-repeat;
  mask: url("images/icons/link.svg") center / contain no-repeat;
}

.press-reader-entries {
  gap: 20px;
}

.press-reader-icon {
  -webkit-mask-image: url("images/icons/article.svg");
  mask-image: url("images/icons/article.svg");
}

.press-entry-muted {
  opacity: .2;
}

.press-archive {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.press-archive[hidden] {
  display: none;
}

.press-button {
  display: inline-flex;
  min-height: 35px;
  align-items: center;
  margin-top: 17px;
  padding: 0 16px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.press-button:hover {
  background: #e98208;
}

@media (max-width: 850px) {
  .press-section {
    padding: 58px 0 64px;
  }

  .press-columns {
    gap: 30px;
  }

  .press-panel {
    padding: 28px;
  }
}

@media (max-width: 650px) {
  .press-heading h2 {
    font-size: 30px;
  }

  .press-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .press-panel {
    min-height: 0;
    padding: 25px 22px;
  }
}


/* ---------------- Mitwirken ---------------- */

.participate-section {
  position: relative;
  min-height: 605px;
  overflow: hidden;
  background: #233f35 url("images/Riedenburg-02.jpeg") center center / cover no-repeat;
}

.participate-overlay {
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 60% 100%);
}

.participate-content {
  position: relative;
  min-height: 605px;
}

.participate-copy {
  width: 47%;
  margin-left: 47%;
  padding-top: 141px;
  color: var(--white);
}

.participate-copy h2 {
  margin: 0 0 18px;
  color: var(--white);
  font-size: clamp(30px, 2.8vw, 39px);
  line-height: 1.1;
  font-weight: 500;
}

.participate-copy p {
  max-width: 590px;
  margin: 0;
  color: var(--white);
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.4;
  font-weight: 500;
}

.participate-badge {
  position: absolute;
  z-index: 1;
  top: 132px;
  left: max(13%, calc((100vw - 1200px) / 2 + 120px));
  width: min(270px, 25vw);
  height: auto;
}

@media (max-width: 850px) {
  .participate-section,
  .participate-content {
    min-height: 530px;
  }

  .participate-overlay {
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 52% 100%);
  }

  .participate-copy {
    width: 51%;
    margin-left: 46%;
    padding-top: 110px;
  }

  .participate-badge {
    top: 140px;
    left: 9%;
    width: 210px;
  }
}

@media (max-width: 650px) {
  .participate-section {
    min-height: 0;
    padding-top: 270px;
    background-position: 42% center;
  }

  .participate-overlay {
    clip-path: polygon(0 25%, 100% 0, 100% 100%, 0 100%);
  }

  .participate-content {
    min-height: 0;
  }

  .participate-copy {
    width: auto;
    margin-left: 0;
    padding: 72px 0 58px;
  }

  .participate-copy h2 {
    font-size: 31px;
  }

  .participate-copy p {
    font-size: 18px;
  }

  .participate-badge {
    top: 47px;
    left: 50%;
    width: 205px;
    transform: translateX(-50%);
  }
}


/* ---------------- Dialog ---------------- */

.dialog-section {
  position: relative;
  min-height: 648px;
  padding: 36px 0 44px;
  overflow: hidden;
  background: var(--white);
}

.dialog-decoration {
  position: absolute;
  top: 0;
  height: 36px;
}

.dialog-decoration-photo {
  left: 0;
  width: 18%;
  background: var(--orange);
}

.dialog-decoration-orange {
  right: 0;
  width: 18%;
  background: var(--orange);
}

.dialog-inner {
  width: min(692px, calc(100% - 100px));
  margin-left: max(50px, calc((100vw - var(--max-width)) / 2 + 235px));
}

.dialog-label {
  display: inline-flex;
  margin: 0 0 17px;
  font-size: 11px;
  font-weight: 800;
}

.dialog-label span {
  padding: 5px 10px;
}

.dialog-label span:first-child {
  color: var(--white);
  background: var(--orange);
}

.dialog-label span:last-child {
  color: var(--navy);
  background: var(--orange-light);
}

.dialog-inner h2 {
  margin: 0 0 11px;
  color: var(--navy);
  font-size: clamp(30px, 3vw, 39px);
  line-height: 1.08;
  letter-spacing: -1.2px;
  font-weight: 500;
}

.dialog-inner h2 span {
  color: var(--orange);
}

.dialog-intro {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
}

.dialog-form {
  color: var(--navy);
}

.dialog-form input,
.dialog-form select,
.dialog-form textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid var(--navy);
  border-radius: 0;
  color: var(--navy);
  background: var(--white);
  font: inherit;
  font-size: 13px;
  outline: none;
}

.dialog-form select {
  width: 173px;
  margin-bottom: 11px;
}

.dialog-form textarea {
  height: 107px;
  padding-top: 11px;
  resize: vertical;
}

.dialog-input-icon {
  position: relative;
}

.dialog-input-icon img {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  filter: invert(56%) sepia(93%) saturate(1001%) hue-rotate(347deg) brightness(102%) contrast(101%);
  pointer-events: none;
}

.dialog-input-icon input {
  padding-left: 34px;
}

.dialog-form input:focus,
.dialog-form select:focus,
.dialog-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}

.dialog-fields-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
  margin-bottom: 10px;
}

.dialog-subjects {
  min-width: 0;
  margin: 15px 0 13px;
  padding: 0;
  border: 0;
}

.dialog-subjects legend,
.dialog-privacy strong {
  display: block;
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.dialog-subjects legend span {
  color: var(--orange);
}

.dialog-subjects > div {
  display: grid;
  grid-template-columns: 1.1fr .95fr 1.45fr .85fr;
  gap: 12px;
}

.dialog-subjects label,
.dialog-privacy label {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
}

.dialog-subjects input,
.dialog-privacy input {
  width: 17px;
  min-width: 17px;
  min-height: 17px;
  height: 17px;
  padding: 0;
  border: 1px solid var(--navy);
  accent-color: var(--orange);
}

.dialog-privacy {
  margin-top: 11px;
}

.dialog-privacy label {
  max-width: 645px;
  font-size: 11px;
}

.dialog-privacy input {
  border-color: var(--orange);
  border-radius: 50%;
}

.dialog-privacy a {
  color: var(--navy);
  text-decoration: underline;
  font-weight: 800;
}

.dialog-submit-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  margin-top: 0;
}

.dialog-captcha {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  font-weight: 500;
}

.dialog-captcha input {
  width: 44px;
  min-height: 47px;
  padding: 0 5px;
}

.dialog-submit-row button {
  min-height: 46px;
  padding: 0 17px;
  border: 0;
  color: var(--white);
  background: var(--orange);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.dialog-submit-row button:hover,
.dialog-submit-row button:focus-visible {
  background: #e98208;
  outline: none;
}

.dialog-form-status {
  min-height: 18px;
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 850px) {
  .dialog-inner {
    width: min(692px, calc(100% - 80px));
    margin: 0 auto;
  }
}

@media (max-width: 650px) {
  .dialog-section {
    min-height: 0;
    padding: 34px 0 48px;
  }

  .dialog-decoration-photo,
  .dialog-decoration-orange {
    width: 25%;
  }

  .dialog-inner {
    width: calc(100% - 50px);
  }

  .dialog-fields-two,
  .dialog-subjects > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dialog-subjects > div {
    gap: 9px;
  }

  .dialog-submit-row {
    margin-top: 15px;
  }
}

/* ---------------- Bereich vor dem Footer ---------------- */

.prefooter-section {
  min-height: 331px;
  padding: 72px 0 18px;
  background: var(--cream);
}

.prefooter-inner {
  display: grid;
  grid-template-columns: 135px 170px 160px 145px;
  align-items: start;
  gap: 0;
  width: min(832px, calc(100% - 80px));
  margin: 0 auto;
}

.prefooter-brand img {
  display: block;
  width: 135px;
  height: 135px;
  object-fit: cover;
}

.prefooter-facebook {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  margin-top: 11px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.prefooter-contact,
.prefooter-sitemap {
  color: var(--navy);
  font-size: 16px;
  font-style: normal;
  line-height: 1.5;
}

.prefooter-contact {
  transform: translateX(72px);
}

.prefooter-contact h2,
.prefooter-sitemap h2 {
  margin: 0 0 13px;
  font-size: 16px;
  font-weight: 500;
}

.prefooter-contact p {
  margin: 0 0 6px;
}

.prefooter-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.prefooter-contact-row img {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  filter: invert(56%) sepia(93%) saturate(1001%) hue-rotate(347deg) brightness(102%) contrast(101%);
}

.prefooter-contact a,
.prefooter-sitemap a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prefooter-contact a,
.prefooter-sitemap a:hover,
.prefooter-sitemap a:focus-visible {
  color: var(--orange);
}

.prefooter-sitemap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(111px);
  line-height: 1.48;
}

.prefooter-sitemap h2 {
  margin-bottom: 14px;
}

.prefooter-sitemap a {
  color: var(--orange);
  font-weight: 700;
}

.prefooter-mark {
  position: relative;
  width: 140px;
  height: 140px;
  margin: -8px 0 0 159px;
}

.prefooter-orbit {
  position: absolute;
  inset: 0;
  width: 140px;
  height: 140px;
  overflow: visible;
  animation: prefooter-orbit 22s linear infinite;
}

.prefooter-orbit text {
  fill: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
}

.prefooter-mark > img {
  position: absolute;
  top: 57px;
  left: 34px;
  width: 76px;
  height: auto;
}

@keyframes prefooter-orbit {
  to { transform: rotate(360deg); }
}

.prefooter-legal {
  width: min(832px, calc(100% - 80px));
  margin: 42px auto 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.prefooter-legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .prefooter-orbit {
    animation-play-state: paused;
  }
}

@media (max-width: 920px) {
  .prefooter-section {
    padding-top: 58px;
  }

  .prefooter-inner {
    grid-template-columns: 135px 1fr 1fr;
    gap: 42px;
  }

  .prefooter-contact,
  .prefooter-sitemap {
    transform: none;
  }

  .prefooter-mark {
    grid-column: 2 / 4;
    justify-self: end;
    margin: -105px 0 0;
  }
}

@media (max-width: 620px) {
  .prefooter-section {
    padding: 48px 0 34px;
  }

  .prefooter-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px 28px;
    width: calc(100% - 50px);
  }

  .prefooter-brand {
    grid-column: 1 / -1;
  }

  .prefooter-mark {
    grid-column: auto;
    justify-self: start;
    margin: 0;
  }

  .prefooter-legal {
    width: calc(100% - 50px);
    margin-top: 34px;
  }
}

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

.site-footer {
  position: relative;
  min-height: 92px;
  background: var(--orange);
  color: var(--white);
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(890px, calc(100% - 100px));
  min-height: 92px;
  margin: 0 auto;
  padding: 20px 0;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.site-footer a {
  color: var(--white);
}

.site-footer p a {
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.footer-heart {
  font-size: 11px;
}

.footer-to-top {
  position: absolute;
  right: 34px;
  bottom: 27px;
  font-size: 20px;
  line-height: 1;
}

.footer-to-top:hover,
.footer-to-top:focus-visible {
  opacity: .75;
}

@media (max-width: 650px) {
  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: calc(100% - 50px);
    min-height: 0;
    padding: 22px 35px 22px 0;
  }

  .footer-to-top {
    right: 20px;
    bottom: 22px;
  }
}
