/* =====================================================================
   Claudio Griese – Oberbürgermeister Hameln
   Modern, reduziert, barrierefrei
   ===================================================================== */

@font-face {
  font-family: Assistant;
  src: url(/font/Assistant.ttf) format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --c-brand: #5498A0;
  --c-brand-light: #62c4d0;
  --c-ink: #111;
  --c-ink-soft: #666;
  --c-paper: #fff;
  --c-muted: #f4f6f6;
  --c-muted-2: #eef1f1;
  --c-line: rgba(0, 0, 0, 0.08);
  --c-focus: #5498A0;

  --font: "Assistant", "Segoe UI", system-ui, sans-serif;

  --radius-s: 7px;
  --radius-m: 12px;
  --radius-l: 20px;

  --container: 1200px;
  --gap: clamp(1rem, 2vw, 1.75rem);

  --shadow-sm: 0 2px 16px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 6px 23px rgba(17, 17, 17, 0.07);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  font: inherit;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font);
  font-size: 16px;
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font);
  color: var(--c-ink);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3rem);
}

h2 {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
}

h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 600;
}

p {
  max-width: 68ch;
  font-size: 1.05rem;
}


.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  background: var(--c-brand);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-s);
  z-index: 200;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}

.btn-primary {
  background: var(--c-brand);
  color: #fff;
  border-color: var(--c-brand);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--c-brand);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: #fff;
  color: var(--c-ink);
}

.section-cta {
  margin: 2rem auto 0;
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 0.85rem;
  transition: box-shadow .3s ease;
  background: transparent;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: background .3s ease;
}

.home .site-header::before {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0);
}

.home .site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.96);
}

.home .site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.home .site-header .nav-list a {
  color: #fff;
}

.home .site-header.is-scrolled .nav-list a {
  color: var(--c-ink);
}

.page .site-header {
  position: sticky;
  box-shadow: var(--shadow-sm);
}

.page .site-header::before {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.96);
}

.page .site-header .nav-list a {
  color: var(--c-ink);
}

.site-header.is-nav-open::before {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.is-nav-open {
  box-shadow: var(--shadow-sm);
}

.home .site-header.is-nav-open .nav-list a {
  color: var(--c-ink);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand img {
  width: clamp(96px, 14vw, 120px);
  height: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.75rem);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav-list a {
  padding: 0.35rem 0;
  opacity: 0.88;
  transition: opacity .2s ease, color .2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
  opacity: 1;
  color: var(--c-brand);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
  z-index: 110;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform .2s ease, opacity .2s ease;
}

.home .site-header:not(.is-scrolled):not(.is-nav-open) .nav-toggle span {
  background: #fff;
}

.site-header.is-nav-open .nav-toggle span,
.nav-toggle[aria-expanded="true"] span {
  background: var(--c-ink);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .brand {
    position: relative;
    z-index: 110;
  }

  .nav-toggle {
    position: relative;
    z-index: 110;
  }

  .nav-list {
    position: fixed;
    inset: 0;
    z-index: 105;
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 5rem 2rem 2rem;
    margin: 0;
    list-style: none;
    display: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
    text-align: center;
  }

  .nav-list a {
    display: block;
    font-size: 1.25rem;
    line-height: 1.4;
    color: var(--c-ink) !important;
    padding: 0.85rem 1rem;
    opacity: 1;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list a[aria-current="page"] {
    color: var(--c-brand) !important;
  }
}

body.is-nav-open {
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  background: #2a2a2a url(/img/claudio.jpg) top right / cover no-repeat;
  color: #fff;
}

.hero .container {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-block: clamp(5rem, 12vw, 7rem) clamp(2.5rem, 6vw, 4rem);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  width: 100%;
  max-width: 450px;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.hero-logo {
  width: 100%;
  max-width: 397px;
  height: auto;
  margin-bottom: clamp(1rem, 2vw, 3rem);
}

.hero-slogan {
  width: 100%;
  max-width: 300px;
  height: auto;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.hero-scroll::after {
  content: "→";
  transform: rotate(90deg);
  font-size: 1rem;
  transition: transform .2s ease;
}

.hero-scroll:hover::after,
.hero-scroll:focus-visible::after {
  transform: rotate(90deg) translateX(6px);
}

@media (max-width: 990px) {
  .hero-logo {
    max-width: 300px;
    margin-bottom: 2rem;
  }

  .hero-slogan {
    max-width: 250px;
  }
}

@media (max-width: 768px) {
  .hero .container {
    justify-content: center;
    align-items: flex-end;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 860px) {
  nav {
    position: absolute;
  }
}

@media (max-width: 650px) {
  .hero-logo {
    max-width: min(280px, 85vw);
    margin-bottom: 0;
    padding-bottom: 2rem;
  }

  .hero-slogan {
    max-width: 200px;
    padding-bottom: 2rem;
  }
}

@media (max-width: 550px) {
  .hero {
    min-height: min(100svh, 650px);
  }

  .hero-logo {
    max-width: min(250px, 80vw);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-alt {
  background: var(--c-muted);
}

.section-head {
  max-width: 680px;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--c-ink-soft);
  margin-inline: auto;
}

/* ---------- Intro ---------- */
.intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .intro {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}

.intro-copy h2 {
  margin-bottom: 1.25rem;
}

.intro-copy p+p {
  margin-top: 1rem;
  color: var(--c-ink-soft);
}

.intro-figure {
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.signature {
  margin-top: 1.5rem;
  font-weight: 600;
}

/* ---------- Karten ---------- */
.card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

@media (min-width: 700px) {
  .card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--c-paper);
  border-radius: var(--radius-m);
  padding: clamp(1.4rem, 3vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card p {
  color: var(--c-ink-soft);
  font-size: 1rem;
  flex: 1;
}

.card .card-link {
  margin-top: auto;
  font-weight: 600;
  color: var(--c-brand);
  font-size: 0.95rem;
}

.card .card-link::after {
  content: " →";
}

/* ---------- Projekte ---------- */
.project-scroller {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-block: 0.25rem 0.75rem;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
  scrollbar-width: none;
}

.project-scroller::-webkit-scrollbar {
  display: none;
}

.project-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(260px, 78vw, 320px);
  background: var(--c-paper);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.project-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-md);
}

.project-card .thumb {
  aspect-ratio: 4/3;
  background: var(--c-muted-2);
  overflow: hidden;
}

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

.project-card .body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.project-card .tag {
  color: var(--c-brand);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card p {
  font-size: 0.94rem;
  color: var(--c-ink-soft);
}

.scroller-controls {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

.scroller-controls button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-brand-light);
  color: #fff;
  font-size: 0.95rem;
  transition: background .2s ease, transform .2s ease;
}

.scroller-controls button:hover,
.scroller-controls button:focus-visible {
  background: var(--c-brand);
  transform: scale(1.04);
}

/* ---------- Statistik ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 768px) {
  .stat-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat .num {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--c-ink);
  display: block;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat .label {
  color: var(--c-ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

/* ---------- Programm-Übersicht ---------- */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.chapter-nav a {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--c-muted);
  border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}

.chapter-nav a:hover,
.chapter-nav a:focus-visible {
  background: var(--c-brand);
  color: #fff;
}

/* ---------- Steckbrief (Live-Accordion) ---------- */
.about-section {
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-muted) 100%);
}

.about-title {
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.about-box {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  gap: 4vw;
}

.about-cv {
  width: 100%;
}

@media (min-width: 900px) {
  .about-cv {
    width: calc(50% - 2vw);
    padding-right: clamp(1rem, 4vw, 5rem);
  }
}

.about-photo {
  width: 100%;
}

@media (min-width: 900px) {
  .about-photo {
    width: calc(50% - 2vw);
  }
}

.about-photo .program-theme.claudio {
  width: 100%;
  border-radius: var(--radius-m);
  height: clamp(420px, 60vw, 900px);
  background-image: url("/img/steckbrief_griese.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-section .drop {
  color: var(--c-ink);
  padding: 2rem 0;
}

.about-section .drop.nopad {
  padding-bottom: 0;
}

.about-section .drop-head {
  appearance: none;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  font-size: 1.4rem;
  font-weight: 600;
  position: relative;
  padding: 0 0 1.5rem;
  width: 100%;
  border-bottom: 1px solid #cecece;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: inherit;
}

.about-section .drop-head::after {
  content: '';
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  background: url("/img/arrow-down.svg") center / 15px no-repeat;
  transition: transform .1s ease;
  margin-right: .2rem;
}

.about-section .drop.open .drop-head::after {
  transform: rotate(180deg);
}

.about-section .drop-toggle {
  padding: 0;
  list-style: none;
  margin: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  min-height: 0;
  transition: opacity .2s ease;
}

.about-section .drop.open .drop-toggle {
  height: auto;
  opacity: 1;
  padding: 1.5rem 0 0;
}

.about-section .drop-toggle li {
  display: flex;
  flex-flow: row;
  padding-bottom: 1rem;
}

.about-section .drop-toggle li.nopad {
  padding-bottom: 0;
}

.about-section .drop-toggle .long {
  font-weight: 600;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  flex-shrink: 0;
}

.about-section .drop-toggle .short {
  padding-left: 1rem;
  font-weight: 400;
}

.about-section .span-amt {
  font-weight: 600;
}

@media (max-width: 520px) {
  .about-section .drop-toggle li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .about-section .drop-toggle .long {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .about-section .drop-toggle .short {
    padding-left: 0;
  }
}

/* ---------- Programm-Seite ---------- */
.program-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 960px) {
  .program-layout {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.program-toc {
  position: sticky;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  z-index: 20;
  background: var(--c-muted);
  border-radius: var(--radius-m);
  padding: 1.25rem;
  max-height: calc(100vh - 5.5rem - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--c-brand) transparent;
}

.program-toc h2 {
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-ink-soft);
}

.program-toc ol {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  counter-reset: toc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.program-toc li {
  counter-increment: toc;
}

.program-toc a {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  border-left: 3px solid transparent;
}

.program-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--c-brand);
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 1.4rem;
}

.program-toc a:hover,
.program-toc a:focus-visible {
  background: rgba(84, 152, 160, 0.1);
  color: var(--c-brand);
}

.program-toc a.is-active,
.program-toc a[aria-current="location"] {
  background: rgba(84, 152, 160, 0.14);
  color: var(--c-ink);
  border-left-color: var(--c-brand);
}

.program-toc a.is-active::before,
.program-toc a[aria-current="location"]::before {
  color: var(--c-brand);
}

@media (max-width: 959px) {
  .program-toc {
    top: calc(3.75rem + env(safe-area-inset-top, 0px));
    max-height: none;
    overflow: visible;
    padding: 0.85rem 0;
    margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2rem));
    padding-inline: clamp(1.25rem, 4vw, 2rem);
    border-radius: 0;
    background: rgba(244, 246, 246, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(17, 17, 17, 0.06);
  }

  .program-toc h2 {
    display: none;
  }

  .program-toc ol {
    flex-direction: row;
    gap: 0.35rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .program-toc ol::-webkit-scrollbar {
    display: none;
  }

  .program-toc li {
    counter-increment: none;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .program-toc a {
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.45rem 0.85rem;
    border-left: none;
    border-radius: 999px;
    background: var(--c-paper);
  }

  .program-toc a::before {
    display: none;
  }

  .program-toc a.is-active,
  .program-toc a[aria-current="location"] {
    background: var(--c-brand);
    color: #fff;
    border-left-color: transparent;
  }
}

.program-chapter {
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  scroll-margin-top: 5.5rem;
}

@media (max-width: 959px) {
  .program-chapter {
    scroll-margin-top: 7.5rem;
  }
}

.program-chapter+.program-chapter {
  border-top: 1px solid var(--c-line);
}

.program-chapter .chapter-num {
  font-weight: 600;
  color: var(--c-brand);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.program-chapter h2 {
  margin-top: 0.2rem;
}

.program-chapter h3 {
  margin-top: 1.25rem;
}

.program-chapter .lead {
  font-size: 1.05rem;
  color: var(--c-ink-soft);
  margin-top: 0.5rem;
}

.program-chapter ul {
  padding-left: 1.1rem;
  list-style: disc;
  margin-top: 0.75rem;
  color: var(--c-ink-soft);
}

.program-chapter li {
  margin-bottom: 0.35rem;
}

/* ---------- Kontakt / Formular (Original) ---------- */
.contact-section .section-head {
  margin-bottom: 2rem;
}

.form {
  max-width: 800px;
  margin-inline: auto;
  position: relative;
}

.form-row-100 {
  width: 100%;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  position: relative;
  gap: 0 4%;
}

.form-row-50 {
  width: 48%;
}

.form-row-wrap,
.form-wrap,
.form-wrap-100 {
  width: 100%;
  position: relative;
}

.form-label {
  display: block;
  width: 100%;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  background: transparent;
  font-size: 1rem;
  outline: none;
  border-radius: 0;
  transition: border-color .2s ease;
}

.form-input {
  margin-bottom: 1.25rem;
  cursor: text;
}

.form-textarea {
  min-height: 110px;
  max-height: 160px;
  resize: vertical;
  margin-bottom: 1rem;
  cursor: text;
}

.form-input:hover,
.form-input:focus-visible,
.form-textarea:hover,
.form-textarea:focus-visible {
  border-bottom-color: var(--c-ink);
}

.form-checkbox-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.form-checkbox-col {
  flex: 1 1 280px;
  order: 1;
}

.form-col {
  flex: 1 1 280px;
  order: 2;
}

.form-checkbox-wrap {
  max-width: 100%;
  position: relative;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--c-ink-soft);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-checkbox {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 0.1rem;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}

.form-checkbox:checked {
  background: var(--c-brand);
  border-color: var(--c-brand);
}

.form-checkbox:checked::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: url(/img/check.svg) center / contain no-repeat;
  filter: brightness(0) invert(1);
}

.form-button_submit {
  cursor: pointer;
  background: var(--c-brand);
  color: #fff;
  border: 2px solid var(--c-brand);
  padding: 0.65rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  display: block;
  transition: background .2s ease, color .2s ease;
  margin: 2rem auto 0;
}

.form-button_submit:hover,
.form-button_submit:focus-visible {
  background: transparent;
  color: var(--c-brand);
}

.form-success {
  position: relative;
  font-weight: 700;
  color: var(--c-brand);
  margin-bottom: 1rem;
}

.form-error,
#formbuilder_captcha_element,
#formbuilder_error_datenschutz {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: 0.78rem;
  color: #c0392b;
  font-weight: 600;
}

#formbuilder_error_datenschutz {
  left: 0;
  right: auto;
  bottom: -1.1rem;
}

#formbuilder_captcha_element {
  bottom: -1.75rem;
  left: 0;
  right: auto;
}

.form-note {
  font-size: 0.85rem;
  color: var(--c-ink-soft);
}

@media (max-width: 640px) {
  .form-row-50 {
    width: 100%;
  }

  .form-checkbox-row {
    flex-direction: column;
    align-items: stretch;
  }

  .form-checkbox-col,
  .form-col {
    order: unset;
    width: 100%;
  }

  .form-col {
    margin-top: 0.5rem;
  }
}

/* ---------- Footer (Live-Look) ---------- */
.footer-line {
  width: 90%;
  height: 1px;
  margin: 0 auto;
  background-color: #cecece;
}

.footer {
  background: #fff;
  padding: 5rem 0 0;
  font-size: 0.9rem;
}

.footer,
.footer * {
  color: #000;
  fill: #000;
}

.footer p,
.footer li,
.footer a {
  font-size: 1rem;
  max-width: none;
}

.footer-inner {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-content: space-between;
}

.footer-part {
  width: 22%;
}

.footer-head {
  font-weight: 700;
  padding-bottom: 1.5rem;
  margin: 0;
}

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

.footer-ul li {
  padding-bottom: 0.5rem;
}

.footer-ul li:last-child {
  padding-bottom: 0;
}

.footer-ul a {
  color: #000;
  transition: font-weight .2s ease;
}

.footer-ul a:hover,
.footer-ul a:focus-visible {
  font-weight: 500;
}

.footer .social-li {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-flow: column;
}

.footer .social-li li {
  margin-bottom: 1rem;
}

.footer .social-li li:last-child {
  margin-bottom: 0;
}

.footer .social-li a {
  display: flex;
  align-items: center;
}

.footer .img-wrap-icon {
  max-width: 20px;
  width: 20px;
  display: inline-block;
  margin-right: 0.5rem;
  padding-bottom: 0;
}

.footer .img-wrap-icon svg {
  width: 20px;
  display: block;
  transition: fill .2s ease;
}

.footer .img-wrap-icon:hover svg,
.footer .img-wrap-icon:focus-within svg {
  fill: #ea640e;
}

.footer .logo-wrap {
  max-width: 100px;
  margin-bottom: 2rem;
  margin-right: 3rem;
  width: 100%;
}

.footer .logo-wrap img {
  width: 100%;
}

.footer .flex-100 {
  display: flex;
  flex-flow: row;
  align-items: center;
  margin-top: 3rem;
  width: 100%;
}

.footer .flex-100 p {
  margin: 0;
}

.footer-block {
  background-color: #61c4d0;
  width: 100%;
  height: 3rem;
}

@media (max-width: 960px) {
  .footer-part {
    width: 30%;
    padding-bottom: 2rem;
  }

  .footer-part:last-of-type {
    width: 49%;
  }

  .footer .flex-100 {
    width: 50%;
    flex-flow: column;
    align-items: flex-start;
  }

  .footer .flex-100 .logo-wrap img {
    max-width: 130px;
  }
}

@media (max-width: 720px) {
  .footer-part {
    width: 47%;
  }

  .footer-part:last-of-type {
    width: 49%;
  }

  .footer .flex-100 {
    width: 100%;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
  }

  .footer .flex-100 .logo-wrap {
    max-width: 49%;
    margin-bottom: 0;
  }

  .footer .flex-100 .logo-wrap img {
    max-width: 130px;
  }
}

@media (max-width: 520px) {

  .footer-part,
  .footer-part:last-of-type,
  .footer .flex-100,
  .footer .flex-100 .logo-wrap {
    width: 100%;
    max-width: none;
  }

  .footer .flex-100 {
    flex-flow: row wrap;
    gap: 1rem;
  }

  .footer .logo-wrap {
    margin-right: 0;
  }
}

/* ---------- Legal / Page hero ---------- */
.page-hero {
  background: var(--c-muted);
  padding-block: clamp(2.5rem, 6vw, 3.5rem);
}

.page-hero h1 {
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--c-brand);
  font-weight: 600;
}

.legal-content {
  max-width: 72ch;
}

.legal-content h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--c-ink-soft);
}

.legal-content ul {
  padding-left: 1.1rem;
  list-style: disc;
  margin-top: 0.6rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-content p+p {
  margin-top: 1rem;
}

.legal-content a {
  color: var(--c-brand);
  text-decoration: underline;
}