/* ===========================================
   FONT DEFINITIONS
   =========================================== */

@font-face {
  font-family: 'Pangea';
  src: url('../fonts/PangeaLatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pangea';
  src: url('../fonts/PangeaLatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Pangea';
  src: url('../fonts/PangeaLatn-BoldItalic.woff2') format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ===========================================
   BASE RESET
   =========================================== */

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

:root {
  /* Breakpoints (zur Referenz, in Media Queries als feste Werte verwendet)
   * --bp-mobile: 640px / 40rem
   * --bp-tablet: 1024px / 64rem
   * --bp-desktop: 1280px / 80rem
   */
  
  /* Layout */
  --max-width: 64rem;
  --padding: 1rem;
  
  /* ============================================
     BRAND COLORS
     ============================================ */
  --color-brilliant-rose: #DE58A2;
  --color-cerise: #E92960;
  --color-murrey: #931961;
  --color-palatinate-blue: #393BDF;
  --color-resolution-blue: #19277D;
  --color-penn-blue: #040742;
  --color-white: #FCFFFA;
  --color-salmon: #EA7873;
  --color-gray: #e9e9e9;
  --color-lime-green: #47D035;
  
  /* Legacy color mappings */
  --color-black: var(--color-penn-blue);
  --color-grey: #777;
  --color-light: var(--color-gray);
  --color-text: var(--color-penn-blue);
  --color-text-grey: var(--color-resolution-blue);
  --color-background: var(--color-white);
  
  /* Semantic Colors */
  --color-primary: var(--color-palatinate-blue);
  --color-primary-dark: var(--color-resolution-blue);
  --color-secondary: var(--color-cerise);
  --color-accent: var(--color-brilliant-rose);
  --color-success: var(--color-lime-green);
  --color-warning: var(--color-salmon);
  
  /* Code Colors */
  --color-code-light-grey:  #cacbd1;
  --color-code-comment:     #a9aaad;
  --color-code-white:       #c5c9c6;
  --color-code-red:         #d16464;
  --color-code-orange:      #de935f;
  --color-code-yellow:      #f0c674;
  --color-code-green:       #a7bd68;
  --color-code-aqua:        #8abeb7;
  --color-code-blue:        #7e9abf;
  --color-code-purple:      #b294bb;
  
  /* Typography */
  --font-family-sans: 'Pangea', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  :root {
    --padding: 1.5rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  :root {
    --padding: 2rem;
  }
}

html {
  font-family: var(--font-family-sans);
  color: var(--color-text);
  background: var(--color-background);
  overflow-x: hidden;
}
img {
  width: 100%;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
}

/* Container für begrenzte Content-Breite */
.site-container {
  padding: 0 var(--padding);
  max-width: var(--max-width);
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

/* ===========================================
   HEADER - Sticky Transparent
   =========================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem var(--padding);
  background: transparent;
  color: var(--color-white);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Header scrolled state */
.header.is-scrolled,
.header--solid {
  background: rgba(252, 255, 250, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(4, 7, 66, 0.1);
  color: var(--color-penn-blue);
}

.logo {
  padding: 0.5rem;
  padding-left: 0;
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
}

.logo img {
  width: auto;
  height: 2rem;
  /* Logo weiß im transparenten Zustand */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}

.header.is-scrolled .logo img,
.header--solid .logo img {
  filter: none;
}

/* Header Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Header CTA Button */
.header-cta {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.header-cta.btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
}

.header.is-scrolled .header-cta,
.header--solid .header-cta {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Header Social Links - hidden on mobile */
.header-social {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.header-social a {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-social a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.header-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .header {
    padding: 1rem var(--padding);
  }
  
  .logo {
    padding-left: 0.5rem;
  }
  
  .header-right {
    gap: 1.5rem;
  }
  
  .header-cta.btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
  }
  
  .header-social {
    display: flex;
    gap: 0.5rem;
  }
  
  .header-social svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .header {
    padding: 1rem 2rem;
  }
  
  .header-right {
    gap: 2rem;
  }
}

/* Legacy menu styles (for non-landing pages) */
.menu {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: flex-start;
  gap: 0;
}
.menu a {
  padding: 0.5rem 0.75rem;
  display: block;
  font-size: 0.875rem;
}
.menu a[aria-current] {
  text-decoration: underline;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .menu {
    width: auto;
    justify-content: flex-end;
  }
  .menu a {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .menu a {
    padding: 1rem;
  }
}

/* Legacy social styles */
.social {
  display: flex;
  padding: 0 0.25rem;
}
.social a {
  padding: 0.5rem 0.25rem;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .social {
    padding: 0 0.5rem;
  }
  .social a {
    padding: 0.75rem 0.5rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .social a {
    padding: 1rem 0.5rem;
  }
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

/* Override heading colors in hero/branded sections */
.block-hero h1,
.block-hero h2,
.block-hero h3,
.block-hero p,
.branded-gradient h1,
.branded-gradient h2,
.branded-gradient h3,
.branded-gradient p {
  color: #FCFFFA !important;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.25em;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .text h1,
  .h1,
  .intro {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .text h1,
  .h1,
  .intro {
    font-size: 2rem;
    margin-bottom: 3rem;
  }
}
.text h2,
.h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.text h3,
.h3 {
  font-weight: 600;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

.align-center {
  text-align: center;
}

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

/* Normaler Content-Bereich (nicht Landing Page) */
.main {
  padding: 0 var(--padding);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Landing Page - volle Breite für Block-Hintergründe */
.landing-page.main,
main.landing-page {
  padding: 0;
  max-width: none;
}

/* FAQ Page */
.faq-page {
  padding: 6rem var(--padding) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-page .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-penn-blue);
}

.faq-page .page-intro {
  font-size: 1.125rem;
  color: var(--color-resolution-blue);
  margin-bottom: 3rem;
  max-width: 40rem;
}

@media (min-width: 40rem) {
  .faq-page {
    padding: 8rem var(--padding) 4rem;
  }
  .faq-page .page-title {
    font-size: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .faq-page {
    padding: 10rem var(--padding) 6rem;
  }
  .faq-page .page-title {
    font-size: 3rem;
  }
}

/* Simple Page (Default Template) */
.simple-page {
  padding: 6rem var(--padding) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.simple-page .page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-penn-blue);
}

.simple-page .text {
  color: var(--color-resolution-blue);
  font-size: 1rem;
  line-height: 1.7;
}

.simple-page .text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-penn-blue);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.simple-page .text h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-penn-blue);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.simple-page .text p {
  margin-bottom: 1.25rem;
}

.simple-page .text a {
  color: var(--color-palatinate-blue);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.simple-page .text a:hover {
  color: var(--color-cerise);
}

.simple-page .text ul,
.simple-page .text ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.simple-page .text li {
  margin-bottom: 0.5rem;
}

@media (min-width: 40rem) {
  .simple-page {
    padding: 8rem var(--padding) 4rem;
  }
  .simple-page .page-title {
    font-size: 2.5rem;
  }
  .simple-page .text {
    font-size: 1.0625rem;
  }
}

@media (min-width: 64rem) {
  .simple-page {
    padding: 10rem var(--padding) 6rem;
  }
  .simple-page .page-title {
    font-size: 3rem;
  }
}

/* ===========================================
   FAQ ACCORDION (shared styles)
   =========================================== */

.faq-accordion,
.faqs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-gray);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-penn-blue);
  transition: color 0.2s ease;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: "";
}

.faq-question:hover {
  color: var(--color-palatinate-blue);
}

.faq-question-text {
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.faq-icon svg {
  width: 100%;
  height: 100%;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 0 1.5rem 0;
  color: var(--color-resolution-blue);
  line-height: 1.7;
  font-size: 1rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (min-width: 40rem) {
  .faq-question {
    padding: 1.5rem 0;
    font-size: 1.125rem;
  }
  
  .faq-answer {
    padding: 0 0 2rem 0;
    font-size: 1.0625rem;
  }
}

/* ===========================================
   FAQ BLOCK (Homepage)
   =========================================== */

.block-faq {
  padding: 4rem 0;
  background: var(--color-white);
}

.block-faq-header {
  text-align: center;
  margin-bottom: 3rem;
}

.block-faq-headline {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-penn-blue);
  margin-bottom: 0.75rem;
}

.block-faq-subline {
  font-size: 1.125rem;
  color: var(--color-resolution-blue);
  max-width: 36rem;
  margin: 0 auto;
}

.block-faq-footer {
  text-align: center;
  margin-top: 2.5rem;
}

@media (min-width: 40rem) {
  .block-faq {
    padding: 5rem 0;
  }
  
  .block-faq-headline {
    font-size: 2rem;
  }
  
  .block-faq-header {
    margin-bottom: 3.5rem;
  }
}

@media (min-width: 64rem) {
  .block-faq {
    padding: 6rem 0;
  }
  
  .block-faq-headline {
    font-size: 2.25rem;
  }
}

/* Two-column FAQ layout (Homepage) */
.faq-columns {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-column {
  flex: 1;
}

@media (min-width: 64rem) {
  .faq-columns {
    flex-direction: row;
    gap: 3rem;
  }
}

/* Button Styles for FAQ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--color-palatinate-blue);
  border: 2px solid var(--color-palatinate-blue);
}

.btn-secondary:hover {
  background: var(--color-palatinate-blue);
  color: var(--color-white);
}

.btn-secondary svg {
  transition: transform 0.2s ease;
}

.btn-secondary:hover svg {
  transform: translateX(4px);
}

/* ===========================================
   FOOTER
   =========================================== */

.footer {
  padding: 4rem var(--padding) 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  line-height: 1.5em;
}

.footer .footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 640px) {
  .footer .footer-columns {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

/* Footer Brand/Logo Section */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: inline-block;
  width: fit-content;
}

.footer .footer-logo img {
  width: 3rem !important;
  height: auto !important;
  max-width: none;
  transition: transform 0.2s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-resolution-blue);
  line-height: 1.6;
  max-width: 20rem;
}

.footer-email {
  font-size: 0.875rem;
  color: var(--color-palatinate-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--color-cerise);
}

/* Footer Navigation */
.footer-nav h2,
.footer-social h2 {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-penn-blue);
  margin-bottom: 1rem;
}

.footer-nav ul,
.footer-social ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a {
  font-size: 0.9375rem;
  color: var(--color-resolution-blue);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--color-penn-blue);
}

/* Footer Social Links */
.footer-social ul {
  gap: 0.625rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--color-resolution-blue);
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: var(--color-palatinate-blue);
}

.footer-social svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* Tablet: ab 640px */
@media screen and (min-width: 640px) {
  .footer {
    padding: 5rem var(--padding) 4rem;
  }
  
  .footer .footer-logo img {
    width: 3.5rem !important;
  }
  
  .footer-tagline {
    font-size: 1rem;
  }
}

/* Desktop: ab 1024px */
@media screen and (min-width: 1024px) {
  .footer {
    padding: 6rem var(--padding) 4rem;
  }
  
  .footer-columns {
    gap: 4rem;
  }
  
  .footer .footer-logo img {
    width: 4rem !important;
  }
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


/* Grid Responsive */
@media (min-width: 40rem) {
  .grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .grid > .column {
    grid-column: span min(var(--columns), 6);
  }
}

@media (min-width: 64rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

/* ===========================================
   SPECIAL BANNER
   =========================================== */

.special-banner {
  background: var(--color-palatinate-blue);
  color: var(--color-white);
  padding: 1.5rem var(--padding);
  border-radius: 13px;
}

/* Hero with Banner Container */
.hero-with-banner {
  position: relative;
}

/* Mobile/Tablet: Banner im Flow, verdrängt nachfolgende Inhalte, mit negativem margin-top nach oben */
@media (max-width: 63.9375rem) {
  .hero-with-banner {
    position: relative;
  }
  
  .hero-with-banner .block-hero {
    position: relative;
    margin-bottom: 0;
    overflow: visible;
  }
  
  .hero-with-banner .special-banner {
    position: relative;
    margin-left: var(--padding);
    margin-right: var(--padding);
    margin-bottom: 0;
    z-index: 10;
  }
  
  .special-banner-logo {
    max-width: 60vw;
    margin: 0 auto;
  }
  
  .special-banner-logo img {
    max-width: 100%;
  }
}

/* Tablet (640px - 1024px): Banner weniger nach oben, damit nicht komplett im Hero */
@media (min-width: 40rem) and (max-width: 63.9375rem) {
  .hero-with-banner .special-banner {
    /* Weniger negativer margin, damit Banner nicht komplett im Hero ist */
    margin-top: -20%;
    margin-bottom: 0.5rem;
  }
}

/* Tablet/Mobile (450px - 640px): Weniger Überlappung, damit Banner nicht in social proof ragt */
@media (min-width: 28.125rem) and (max-width: 39.9375rem) {
  .hero-with-banner .special-banner {
    margin-top: -30%;
    margin-bottom: 0.5rem;
  }
}

/* Mobile (< 450px): Logo-Breite begrenzen, maximal 1/4 Überlappung */
@media (max-width: 28.0625rem) {
  .hero-with-banner .special-banner {
    /* margin-top: -25% = nur 25% (1/4) des Banners bleiben im Hero */
    margin-top: -25%;
    margin-bottom: 0.5rem;
  }
  
  .special-banner-logo {
    max-width: 60vw;
    margin: 0 auto;
  }
  
  .special-banner-logo img {
    max-width: 100%;
  }
}

/* Desktop: Banner absolut positioniert, 60% überlappend im Hero */
@media (min-width: 64rem) {
  .hero-with-banner {
    /* Container für absolute Positionierung */
    position: relative;
  }
  
  .hero-with-banner .block-hero {
    /* Hero bleibt an seiner Position */
    position: relative;
    margin-bottom: 0;
  }
  
  .hero-with-banner .special-banner {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(40%);
    z-index: 10;
    width: 87.8%;
    max-width: calc(var(--max-width) - 2 * var(--padding));
    margin: 0;
  }
  
  /* Container für Banner-Content zentrieren */
  .hero-with-banner .special-banner-content {
    margin: 0 auto;
  }
  
  /* Abstand nach dem Banner-Container für nachfolgende Blöcke */
  .hero-with-banner + .block {
    margin-top: 2rem;
  }
}

.special-banner-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-align: center;
  align-items: center;
}

.special-banner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.special-banner-logo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  min-width: 0;
  object-fit: contain;
  display: block;
}

.special-banner-copy-ctas {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

.special-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.special-banner-subline {
  font-size: 0.875rem;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.special-banner-headline {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.special-banner-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.special-banner-cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.special-banner-tertiary-link {
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--color-white);
}

.special-banner-tertiary-link:hover {
  opacity: 1;
}

.special-banner-link {
  font-size: 0.9375rem;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.special-banner-link:hover {
  opacity: 1;
}

/* Button White (for special banner) */
.btn-white {
  background: var(--color-white);
  color: var(--color-palatinate-blue);
  border: 2px solid var(--color-white);
}

.btn-white:hover {
  background: var(--color-resolution-blue);
  color: var(--color-white);
  border-color: var(--color-resolution-blue);
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .special-banner {
    padding: 1.25rem var(--padding);
  }
  
  .special-banner-content {
    grid-template-columns: 1fr 2fr;
    text-align: left;
    gap: 2rem;
    align-items: center;
  }
  
  .special-banner-logo {
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    align-self: stretch;
    padding-right: 1.5rem;
  }
  
  .special-banner-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    min-width: 0;
    object-fit: contain;
    display: block;
  }
  
  .special-banner-copy-ctas {
    align-items: flex-start;
    gap: 1.5rem;
    align-self: center;
  }
  
  .special-banner-text {
    text-align: left;
  }
  
  .special-banner-subline {
    font-size: 1rem;
  }
  
  .special-banner-headline {
    font-size: 1.5rem;
  }
  
  .special-banner-ctas {
    flex-direction: row;
    flex-shrink: 0;
    gap: 1rem;
    align-items: center;
  }
  
  .special-banner-cta-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .special-banner-logo {
    padding: 1.5rem 2.5rem 1.5rem 0;
  }
  
  .special-banner-logo img {
    width: 100%;
    height: auto;
    max-width: 100%;
    /* SVG sollte die volle Breite nutzen */
    object-fit: contain;
  }
  
  .special-banner-headline {
    font-size: 1.75rem;
  }
}

/* Promo Banner Block (Standalone) */
.block-promo-banner {
  padding: 3rem 0;
}

.block-promo-banner .special-banner {
  margin: 0;
}

/* Tablet: ab 640px */
@media (min-width: 40rem) {
  .block-promo-banner {
    padding: 4rem 0;
  }
}

/* Desktop: ab 1024px */
@media (min-width: 64rem) {
  .block-promo-banner {
    padding: 5rem 0;
  }
}

