/*
Theme Name: variamorepager
Theme URI: https://ivaria.art
Author: Kevin Sulzmann
Author URI: https://ivaria.art
Description: Morepager by ivaria.art. Works perfekt with the Gutenberg or Block Editor in Wordpress. You can also use other WYSIWYG Editors to create your website. 
Tags: Theme for the Gutenberg / Block Editor in WP.
Requires at least: 1.0
Tested up to: 8.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://ivaria.art
Text Domain: For more information, visit my website: ivaria.art
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
/*Inline-Elemente */
html{
scroll-behavior: smooth !important;
}
/* Lenis übernimmt das weiche Scrollen */
html.lenis, html.lenis body {
  height: auto;
}
html.lenis:not(.lenis-autoToggle) {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body{
  height: auto;
  margin: 0px;
  overflow-x: hidden;
  overflow-y: auto !important;
  font-weight: 400;
}
.content-22{ 
  position: relative;
  top: 250px;
  overflow-x: hidden;
  overflow-y: auto !important;
  margin: 0;
}

/* Einheitlicher vertikaler Abstand für die äußeren Pattern-Abschnitte. */
.pattern-section-spacing,
.education-intro-section,
.text-image-mask-section,
.svg-anchor-row-section,
.media-text-edge {
  margin-top: 5%;
  margin-bottom: 2%;
}
/* Header: Logo links und mobiles Menü rechts */
.site-header {
  position: relative;
  z-index: 1000;
  min-height: 0;
  pointer-events: none;
}

.site-header__logo-area,
.site-header__menu-area {
  pointer-events: auto;
}

.site-header__logo-area {
  position: absolute;
  top: 0;
  left: -50px;
  z-index: 5;
  display: flex;
  width: 700px;
  height: 150px;
  align-items: center;
  justify-content: center;
  padding: 18px 48px 34px 24px;
  box-sizing: border-box;
  background-image: url(assets/img/logo-back.png);
  background-size: contain;
  background-repeat: no-repeat;
}

.site-header__logo-area .wp-block-site-logo {
  margin: 0;
  max-width: 100%;
  position: relative;
  left: -75px;
  top: 0px;
}

.site-header__logo-area .wp-block-site-logo img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
}

.site-header__menu-area {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 6;
  display: flex;
  width: 150px;
  height: 150px;
  background-image: url(assets/img/navi-back.png);
  background-size: cover;
}
.site-header__menu-area .wp-block-navigation {
    margin: 0;
    position: relative;
    top: 0;
    right: -50px;
    color: #0F2435;
    z-index: 1002;
    font-weight: 400;
}
.wp-block-navigation__responsive-container-open svg {
  display: none;
}

/* Eigene Menü-Icons statt der WordPress-Standard-Icons */
.site-header .wp-block-navigation__responsive-container-open {
  width: 50px;
  height: 28px;
  padding: 0;
  background: transparent url(assets/img/mobile-icon_close.svg?v=2) center / contain no-repeat;
}

/* Geöffnetes Navigations-Overlay */
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  isolation: isolate;
  animation: nav-blur-in 0.7s ease both;
}

.site-header .wp-block-navigation__responsive-container.is-closing {
  animation: nav-blur-out 0.45s ease both;
}

@keyframes nav-blur-in {
  from { background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
  to { background: rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}

@keyframes nav-blur-out {
  from { background: rgba(255, 255, 255, 0.15); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  to { background: rgba(255, 255, 255, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
}

.site-header .wp-block-navigation__responsive-container.is-menu-open,
.site-header .wp-block-navigation__responsive-container.is-closing {
  overflow-x: hidden;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content:hover,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content:focus,
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content:active {
  pointer-events: none;
  cursor: default;
  color: #0F2435;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  text-decoration: none;
}

/* Weiße Panel-Fläche liegt am Inhalt, damit sie beim Scrollen mitwächst */
.site-header .wp-block-navigation__responsive-container.is-menu-open::before {
  display: none;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  z-index: -1;
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpolygon fill='%23fff' points='0,0 100,0 100,100 60,98 12,94'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  filter: url(#hero-round-corners);
  pointer-events: none;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  position: relative;
  z-index: 1;
  display: block;
  width: 70vw;
  min-height: 90vh;
  margin: 0 0 0 auto;
  padding: 130px 6% 80px 15%;
  box-sizing: border-box;
  animation: nav-content-in 0.7s 0.15s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.site-header .wp-block-navigation__responsive-container.is-closing::before {
  animation: nav-panel-out 0.45s cubic-bezier(0.55, 0, 0.8, 0.4) both;
}

.site-header .wp-block-navigation__responsive-container.is-closing .wp-block-navigation__responsive-container-content,
.site-header .wp-block-navigation__responsive-container.is-closing .wp-block-navigation__responsive-container-close {
  animation: nav-content-out 0.3s ease-in both;
}

@keyframes nav-panel-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes nav-panel-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

@keyframes nav-content-in {
  from { transform: translateX(60px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes nav-content-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(60px); opacity: 0; }
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  width: 100%;
  align-items: start;
  justify-items: start;
  text-align: left;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu {
  display: block;
  min-width: 0;
  width: 100%;
  text-align: left;
  align-items: flex-start;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content {
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.3;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu__toggle {
  display: none;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  width: 100%;
  min-width: 0;
  margin: 12px 0 0;
  padding: 0;
  gap: 0;
  visibility: visible;
  opacity: 1;
  border: 0;
  background: transparent;
  text-align: left;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
  align-items: flex-start !important;
  justify-content: flex-start;
}

.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  padding: 3px 0;
  color: #495057;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.3;
  text-align: left;
}

.site-header .wp-block-navigation__responsive-container-close {
  position: fixed;
  top: 61px;
  right: 50px;
  width: 50px;
  height: 28px;
  padding: 0;
  color: #0F2435;
  z-index: 2;
  background: transparent url(assets/img/mobile-icon_open.svg?v=2) center / contain no-repeat;
}

.site-header .wp-block-navigation__responsive-container-close svg {
  display: none;
}

/* Platz der Scrollleiste reservieren, damit beim Öffnen des Overlays nichts verrutscht */
html {
  scrollbar-gutter: stable;
}

/*Textgestaltung/Buttons/Links*/

/* === WP Core Button === */
.wp-block-button__link,
.wp-element-button {
  background-color: #FEE7A6;
  color: #0F2435;
  border: 4px solid #FBBA00;
  border-radius: 20px 80px 20px 50px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.1875rem; /* 19px */
  font-weight: 400;
  padding: 0.6em 1.6em;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus {
  background-color: #FEE7A6;
  color: #0F2435;
  border-color: #FBBA00;
  box-shadow: 3px 3px 0 #d3d3d3;
}
/* WordPress Details-Block */
.wp-block-details {
  border-top: 3px solid #FBBA00;
  border-bottom: 3px solid #FBBA00;
  color: #0F2435;
  padding: 10px 0px;
}
.sum21{
  padding: 5% 0%;
}

.wp-block-details + .wp-block-details {
  border-top: 0;
}

.wp-block-details > summary {
  position: relative;
  display: block;
  min-height: 44px;
  box-sizing: border-box;
  padding: 14px 44px 14px 0;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.wp-block-details > summary::-webkit-details-marker {
  display: none;
}

.wp-block-details > summary::marker {
  display: none;
  content: "";
}

.wp-block-details > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  color: #FBBA00;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease, color 0.3s ease;
}

.wp-block-details[open] > summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.wp-block-details > summary:hover::after,
.wp-block-details > summary:focus-visible::after {
  color: #0F2435;
}

.wp-block-details > :not(summary) {
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease;
}

.wp-block-details[open] > :not(summary) {
  display: block;
  max-height: 12000px;
  opacity: 1;
}

/* Tabellen: drei rahmenlose Spalten mit gelber Zeilentrennung */
.wp-block-table {
  width: 100%;
  margin: 15px 0 0;
}
/* Horizontale Galerie mit drei Bildern und nativer WordPress-Lightbox */
.wp-block-gallery.horizontal-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100vw;
  max-width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  padding: 0;
}

.wp-block-gallery.horizontal-gallery > .wp-block-image {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.wp-block-gallery.horizontal-gallery > .wp-block-image a,
.wp-block-gallery.horizontal-gallery > .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.wp-block-gallery.horizontal-gallery > .wp-block-image img {
  object-fit: cover;
  cursor: zoom-in;
}

.wp-block-table caption {
  margin-bottom: 10px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
  text-align: left;
}

.wp-block-table table {
  width: 100%;
  border: 0 !important;
  border-collapse: collapse;
  table-layout: fixed;
}

.wp-block-table thead,
.wp-block-table tbody,
.wp-block-table tr,
.wp-block-table th,
.wp-block-table td {
  border: 0 !important;
}

.wp-block-table thead tr,
.wp-block-table tbody tr {
  border-bottom: 2px solid #FBBA00 !important;
}

.wp-block-table th,
.wp-block-table td {
  border: 0;
  padding: 10px 0;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  text-align: left;
  vertical-align: middle;
}

.wp-block-table th {
  padding-top: 0;
  padding-bottom: 7px;
  font-size: 1.25rem !important;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.wp-block-table thead tr {
  border-bottom: 2px solid #FBBA00 !important;
}

.wp-block-table td {
  font-size: 0.75rem !important;
  line-height: 1.3;
}

.wp-block-table th:nth-child(1),
.wp-block-table td:nth-child(1) {
  width: 34%;
}

.wp-block-table th:nth-child(2),
.wp-block-table td:nth-child(2) {
  width: 54%;
}

.wp-block-table th:nth-child(3),
.wp-block-table td:nth-child(3) {
  width: 12%;
}
.textwdth{
  display: block;
  width: 70%;
  max-width: none;
  margin-inline: auto !important;
  box-sizing: border-box;
}
.wp-block-table a {
  font-size: inherit;
}


/* Flexibles Grid fuer Abschluesse und vergleichbare Inhaltsblaecke */
.contact-section,
.waldi-cont{
    padding: 72px 0px;
}

.qualification-grid-section {
  background: #FFFFFF;
}

.qualification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 15%;
  padding: 72px 0px;
}

.qualification-grid__item {
  min-width: 0;
}

.qualification-grid__item h3 {
  margin: 0 0 10px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem !important; /* überschreibt has-large-font-size aus dem Editor */
  font-weight: 400;
  line-height: 1.3;
}

.qualification-grid__item p {
  margin: 0 0 12px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.95rem;
  line-height: 1.45;
}

.qualification-grid__item .qualification-grid__note {
  margin: 0;
  color: #FBBA00;
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.3;
}

.admission-section-cover {
  background-color: #FFFBF1;
  background-size: cover;
  background-position: center;
}

/* Leicht schräge Ober- und Unterkante für Cover-Hintergrundbilder */
.wp-block-cover .wp-block-cover__image-background,
.wp-block-cover video.wp-block-cover__video-background,
.wp-block-cover-image .wp-block-cover__image-background,
.wp-block-cover-image video.wp-block-cover__video-background {
  clip-path: polygon(0% 3%, 35% 1%, 70% 3%, 100% 0%, 100% 97%, 65% 100%, 30% 98%, 0% 100%);
  filter: sepia(0.35) saturate(1.2) brightness(1.03);
}

.admission-section-inner {
  padding: 8% 0;
}

.admission-section-title {
  margin: 0 0 10px;
  color: #0F2435;
}

.admission-section-intro {
  margin: 0 auto 42px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 1.8rem;
  font-weight: 700;
}

.admission-cards {
  gap: 24px;
}
.smaltxt{
    padding: 0% 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: center;
}

.yellowbox{
padding: 0% 13%;
}

.admission-card {
  display: flex;
  min-height: 310px;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 90px;
  background-color: transparent;
  background-image: url("assets/img/box-design.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: #0F2435;
  text-align: center;
  filter: url(#hero-round-corners);
}

.admission-card h4 {
  margin: 0 0 10px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  line-height: 1.2;
  transform: none;
}

.admission-card p {
  margin: 0 0 18px;
  color: #0F2435;
  font-size: 0.95rem;
  line-height: 1.4;
}

.admission-card .wp-block-buttons {
  margin-top: auto;
}

.admission-card .wp-block-button__link {
  padding: 0.45em 1em;
  border: 0;
  border-radius: 8px;
  background: #FEE7A6;
  color: #0F2435;
  font-size: 0.9rem;
}

.student-cta-section {
  clip-path: polygon(0% 2%, 14% 1%, 31% 2%, 51% 0%, 72% 2%, 87% 1%, 100% 2%, 100% 98%, 84% 99%, 66% 98%, 47% 100%, 27% 98%, 11% 99%, 0% 98%);
  overflow: hidden;
  background: #FEE7A6;
  padding: 0% 0% 0% 0%;
  position: relative;
  top: -50px;
}

.student-cta-columns {
  display: flex;
  min-height: 760px;
  align-items: center;
  gap: 0;
}

.student-cta-copy {
  box-sizing: border-box;
  flex: 0 0 48%;
  padding: 72px 60px 72px 0;
}

.student-cta-copy h2 {
  margin: 0 0 14px;
  color: #0F2435;
}

.student-cta-copy p {
  margin: 0 0 22px;
  color: #0F2435;
  font-size: 2rem;
  line-height: 1.45;
}

.student-cta-copy .wp-block-button__link {
  border-color: #FBBA00;
  background: #FFFFFF;
}

.student-cta-media {
  position: relative;
  display: flex;
  flex: 0 0 52%;
  align-self: stretch;
  align-items: flex-end;
  justify-content: flex-end;
}

.student-cta-image {
  width: 100%;
  height: 100%;
  margin: 0;
}

.student-cta-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
}

.student-cta-image__base,
.student-cta-image__reveal {
  position: absolute;
  inset: 0;
  margin: 0;
}

.student-cta-image__base {
  z-index: 1;
}

.student-cta-image__reveal {
  z-index: 2;
  clip-path: inset(100% 0 0 0);
  opacity: 1;
  transition: clip-path 3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.student-cta-section--revealed .student-cta-image__reveal {
  clip-path: inset(0 0 0 0);
}

/* Zeichen-Effekt: Das obere Bild erscheint entlang der S-Kurve. */
.student-cta-section--draw .student-cta-image__reveal {
  clip-path: none;
  transition: none;
}

.student-cta-draw {
  display: block;
  width: 100%;
  height: 100%;
}

.student-cta-draw__path {
  fill: none;
  stroke: #fff;
  stroke-width: 135;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.6s ease-in;
}

.student-cta-section--revealed .student-cta-draw__path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 6s cubic-bezier(0.45, 0, 0.25, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-arrow,
  .hero-button .wp-block-button__link::before {
    animation: none;
  }

  .student-cta-image__reveal,
  .student-cta-draw__path {
    transition: none;
  }
}

/* Footer layout */
.site-footer {
  min-height: 850px;
  background: #FFFFFF;
  padding: 0;
}

.site-footer__columns {
  display: flex;
  align-items: stretch;
  width: 100vw !important;
  max-width: 100vw !important;
  padding: 0;
  min-height: 850px;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(60% - 60vw) !important;
}

.site-footer__left {
  display: flex;
  flex: 0 0 42%;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: space-between;
  padding: 23% 60px 32px 7%;
  background: transparent;
}

.site-footer__right {
  position: relative;
  display: grid;
  flex: 0 0 58%;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  min-height: 1200px;
  box-sizing: border-box;
  padding: 64px 7% 64px 70px;
  background: transparent;
  padding: 26% 0% 0% 15%;
  overflow: hidden;
}

/* Hintergrundbild als eigene Ebene, damit nur das Bild einblendet und nicht der Inhalt */
.site-footer__right::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url(assets/img/footer-back.png) 0% 0% / cover transparent;
  opacity: 1;
  translate: 0 0;
  transition: opacity 1.6s ease 0.6s, translate 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.6s;
}

.has-scroll-reveal .site-footer__right:not(.is-visible)::before {
  transition: none;
  opacity: 0;
  translate: 36px 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__right::before {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
  }
}

.site-footer__right > * {
  position: relative;
  z-index: 1;
}

.site-footer__logo {
  margin-bottom: 30%; 
}

.logo-footer{
  max-width: 450px;
  height: auto;
}
.site-footer__address p {
  color: #0F2435;
  margin: 0 0 24px;
  font-size: 1.5em;
  line-height: 1.45;
}

.site-footer__legal-links {
  display: flex;
  gap: 36px;
  margin-top: auto;
  padding-top: 48px;
}

.site-footer__legal-links p {
  margin: 0;
  font-size: 0.8rem;
}

.site-footer__left a,
.site-footer__right a {
  color: #0F2435;
  text-decoration: none;
}

.site-footer__right h4 {
  display: block;
  margin: 0 0 18px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  font-weight: 400;
  transform: none;
}

.site-footer__right p {
  margin: 0;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__nav li {
  font-size: 0.85rem;
  line-height: 1.2;
}

.site-footer__contact-column {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.site-footer__social {
  margin-top: 8px;
}

.site-footer__right .site-footer__social-title {
  display: block;
  margin: 0 0 18px;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: normal;
}

.site-footer__right a.site-footer__social-link {
  display: inline-block;
  width: 56px;
  height: 56px;
  background: none !important;
}

.site-footer__right a.site-footer__social-link img {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

/* Gleicher Effekt wie bei .svg-anchor-link; überschreibt die globale Sperre für Bilder in Links */
.site-footer__right a.site-footer__social-link:hover img,
.site-footer__right a.site-footer__social-link:focus-visible img {
  transform: rotate(25deg) !important;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

h1 { /* Hero Headline – 126px */
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 7.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0F2435;
  padding: 0% 0% 2% 0%;
  margin: 0;
}
h2 { /* Section Headline – 77px */
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 5rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0F2435;
  margin: 0;
}
h3 { /* Sub Headline */
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 1.8125rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0F2435;
  margin: 0;
}
h4 { /* Card Headline – 47px */
  display: block;
  font-family: var(--wp--preset--font-family--brush-up);
  font-size: 2.9375rem;
  line-height: 1.2;
  font-weight: 700;
  color: #FBBA00;
  margin: 0;
  max-width: 100%;
}
h5 { /* Label – 29px */
  display: inline-block;
  font-family: var(--wp--preset--font-family--brush-up);
  font-size: 1.8125rem;
  line-height: 1.2;
  font-weight: 700;
  color: #FBBA00;
  padding: 0.1em 0 0.2em 0;
  margin: 0;
  max-width: 100%;
}
h6 { /* Caption – 29px */
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 1.8125rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0F2435;
  padding: 0.1em 0 0.2em 0;
  margin: 0;
}

p,
.wp-block-paragraph {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: #0F2435;
  margin: 0.5em 0 1.5em;
}

p.big { /* Large Waldorfschrift Text – 47px */
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 2.9375rem;
  line-height: 1.2;
  font-weight: 700;
  color: #0F2435;
  padding: 0.1em 0 0.2em 0;
  margin: 0;
}

.small {
  font-size: 1.875rem; /* 30px */
  line-height: 1.2;
  color: #0F2435;
}
.descr {
  font-size: 1.0625rem; /* 17px */
}
ul, ol, li {
  font-size: 1.875rem; /* 30px */
  line-height: 1.5;
  color: #0F2435;
}
a {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 400;
  color: #0F2435;
  text-transform: none;
  padding: 0.1em 0 0.2em 0;
  margin: 0;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
a:hover,
a:focus {
  color: #0F2435;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 64' preserveAspectRatio='none'%3E%3Cpath d='M8 14C8 7 14 2 21 2h196c8 0 14 7 14 14v32c0 8-6 14-14 14H21c-7 0-13-6-13-14V14z' fill='%23FEE7A6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  box-shadow: none;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
a:visited {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.1875rem;
  color: #0F2435;
  text-decoration: none;
}
a .smalllink {
  font-size: 1rem; /* 16px */
  color: #ffffff;
  text-transform: none;
  padding: 0.1em 0 0.2em 0;
  margin: 0;
}


/* Hover-Effekte bei verlinkten Bildern deaktivieren */
a img,
a figure,
a:hover img,
a:hover figure,
figure.wp-block-image a img,
figure.wp-block-image a:hover img,
.wp-block-image a img,
.wp-block-image a:hover img {
  transform: none !important;
  transition: none !important;
  filter: none !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

/* Logo-Link: alle Hover-Effekte deaktivieren */
.logo-background a,
.logo-background a:hover,
.logo-background a:focus,
.logo-hero,
a:has(img):hover,
a:has(img):focus {
  background-image: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
/*ENDE******************* Textgestaltung/Buttons/Links*/


/*Hero Section - Desktop*/
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: rgb(254, 231, 166);
  clip-path: polygon(0% 0%, 100% 0%, 100% 98%, 84% 99%, 66% 98%, 47% 100%, 27% 98%, 11% 99%, 0% 98%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* nimmt 75% der Hero-Höhe ein - feste vh-Höhe statt reinem flex-grow, damit WP-Core-Bildstile (height:auto) sie nicht verkleinern können */
.hero-image-container {
  position: relative;
  width: 100%;
  height: 75vh;
  flex: 0 0 75vh;
  overflow: hidden;
  /* rundet die scharfen Polygon-Ecken der Maske ab (SVG-Filter aus functions.php) */
  filter: url(#hero-round-corners);
}

/* oben komplett gerade; mittlerer Punkt 20% nach links, rechter Punkt 10% nach oben verschoben */
.hero-background {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  clip-path: polygon(0% 0%, 100% 0%, 90% 68%, 30% 80%, 10% 75%);
  animation: heroOrganicPulse 15s ease-in-out infinite;
}
.hero-background img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  filter: brightness(0.85);
}

/* nimmt die restlichen 25% der Hero-Höhe ein */
.hero-content {
  position: relative;
  top: -155px;
  flex: 1 1 25vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px 40px;
  text-align: center;
  z-index: 10;
}

.hero-title {
  text-transform: uppercase;
}

.hero-title-reveal {
  font-weight: 500;
}

.hero-subtitle {
  font-weight: 400;
  font-size: 3rem;
  max-width: 70%;
  margin: 0 auto 1.5em;
}

.hero-button-wrap {
  justify-content: center;
}
.hero-button .wp-block-button__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 90px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-button .wp-block-button__link:hover,
.hero-button .wp-block-button__link:focus {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-scroll-arrow {
  position: relative;
  display: block;
  width: 58px;
  height: 30px;
  /* Die Pfeilform sitzt im SVG links der Mitte; nach der Drehung wird das hier ausgeglichen. */
  translate: 0 5px;
  transform: rotate(90deg) !important;
  transform-origin: center;
  object-fit: contain;
  animation: heroScrollArrowFloat 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.hero-button .wp-block-button__link img.hero-scroll-arrow,
.hero-button .wp-block-button__link:hover img.hero-scroll-arrow,
.hero-button .wp-block-button__link:focus img.hero-scroll-arrow {
  transform: rotate(90deg) !important;
}

/* Weißer SVG-Kreis hinter dem Pfeil, bewegt sich synchron mit. */
.hero-button .wp-block-button__link::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='50' fill='%230f2435'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
  animation: heroScrollCircleFloat 3.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes heroScrollCircleFloat {
  0%, 100% {
    transform: translateY(-10px);
  }
  50% {
    transform: translateY(14px);
  }
}

@keyframes heroScrollArrowFloat {
  0%, 100% {
    top: -10px;
    opacity: 0.75;
  }
  50% {
    top: 14px;
    opacity: 1;
  }
}

/* Legacy animation retained for older hero markup; the current hero uses the fixed visual-story edge above. */
@keyframes heroOrganicPulse {
  0%, 100% {
    clip-path: polygon(0% 0%, 100% 0%, 90% 68%, 30% 80%, 10% 75%);
  }
  25% {
    clip-path: polygon(0% 0%, 100% 0%, 92% 64%, 28% 76%, 8% 70%);
  }
  50% {
    clip-path: polygon(0% 0%, 100% 0%, 88% 72%, 32% 84%, 12% 80%);
  }
  75% {
    clip-path: polygon(0% 0%, 100% 0%, 90% 66%, 30% 78%, 10% 72%);
  }
}
/*ENDE******************* Hero Section*/

/* Text + Bild Sektion mit Maske */
.text-image-mask-section {
  background: #ffffff;
  padding: 4% 0% 4% 0%;
  overflow: visible;
}

.text-image-mask-columns {
  display: flex;
  align-items: center;
  gap: 40px;
}

.text-image-mask-copy {
  flex: 0 1 calc(52% - 20px);
  padding-left: 0;
}

.text-image-mask-copy h1,
.text-image-mask-copy h2 {
  font-family: var(--wp--preset--font-family--waldorfschrift);
  color: #0F2435;
  line-height: 1.3;
  letter-spacing: -0.06em;
  transform: none;
  display: block;
  max-width: 100%;
}

.text-image-mask-copy h1 {
  font-size: 4.2rem;
}

.text-image-mask-copy h2 {
  font-size: 5rem;

}

.text-image-mask-copy h3 {
  font-size: 3rem;
  line-height: 1.5;
}

.text-image-mask-copy p {
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  line-height: 1.5;
  color: #0F2435;
  margin: 0 0 1.5em;
}

.text-image-mask-media-col {
  display: flex;
  flex: 0 1 calc(48% - 20px);
  justify-content: center;
  align-items: center;
}

.text-image-mask-media-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  min-height: 430px;
  background: transparent;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: url(#hero-round-corners);
}

.text-image-mask-image {
  position: relative;
  width: 100%;
  width: 600px;
  height: 600px;
  margin: 0;
  clip-path: polygon(20% 0%, 67% 0%, 100% 24%, 98% 67%, 94% 87%, 67% 100%, 33% 100%, 0% 78%, 3% 31%);
  overflow: hidden;
  border-radius: 0;
  background: #d9e1e7;
  filter: url(#hero-round-corners);
}

.text-image-mask-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
}

/*ENDE******************* Text + Bild Sektion mit Maske*/

/* Ganzheitliche Bildung mit organischem Hintergrund */
.organic-warm-background {
  position: relative;
  isolation: isolate;
  background: #FFFBF1;
  clip-path: polygon(0% 1%, 14% 0.5%, 31% 1%, 51% 0%, 72% 1%, 87% 0.5%, 100% 1%, 100% 99%, 84% 99.5%, 66% 99%, 47% 100%, 27% 99%, 11% 99.5%, 0% 99%);
}

.education-intro-section {
  padding: 8% 0% 4% 0%;
}

.education-intro-section > .education-intro-columns {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  gap: 0;
}

.education-intro-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.education-intro-copy {
  box-sizing: border-box;
  padding: 40px 60px 40px 3%;
}

.education-intro-section--image-left .education-intro-copy {
  padding: 40px 3% 40px 60px;
}

.education-intro-eyebrow {
  margin: 0 0 8px;
  color: #FBBA00;
  font-family: var(--wp--preset--font-family--brush-up);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.education-intro-copy h1,
.education-intro-copy h6 {
  margin: 0;
  color: #0F2435;
  line-height: 1.3;
}
.education-intro-copy h3{
 line-height: 1.5
}
.education-intro-copy .education-intro-eyebrow {
  color: #FBBA00;
}

.education-intro-copy h1 {
  max-width: 580px;
  font-size: clamp(2.8rem, 5vw, 5rem);
}

.education-intro-copy h3 {
  margin-top: 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
}

.education-intro-copy > p:not(.education-intro-eyebrow) {
  margin: 12px 0 14px;
}

.arrow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 20px 15px;
  margin: 20px 0px;
  padding: 0;
  list-style: none;
}

.arrow-list li {
  display: flex;
  align-items: center;
  min-height: 20px;
  margin: 0px;
  padding: 0;
  font-weight: 400;
}

.arrow-list li::before {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 11px;
  margin-right: 9px;
  background: url("assets/img/arrow-right.svg") center / contain no-repeat;
}

.arrow-list a {
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  text-decoration: none;
}

.arrow-list a:hover,
.arrow-list a:focus-visible {
  color: #0F2435 !important;
  background-image: none !important;
}

.education-intro-media-col {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
}

.education-intro-section:not(.education-intro-section--image-left) .education-intro-copy {
  order: 1;
  flex: 0 0 52%;
}

.education-intro-section:not(.education-intro-section--image-left) .education-intro-media-col {
  order: 2;
  flex: 0 0 48%;
}

.education-intro-section--image-left .education-intro-media-col {
  order: 1;
  flex: 0 0 48%;
}

.education-intro-section--image-left .education-intro-copy {
  order: 2;
  flex: 0 0 52%;
}

.education-intro-image {
  width: 100%;
  max-width: none;
  height: 690px;
  margin: 0;
  filter: url(#hero-round-corners);
}

.education-intro-image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  clip-path: polygon(31% 0, 18% 7%, 0 53%, 10% 84%, 44% 100%, 100% 100%, 100% 0);
}

.education-intro-section--image-left .education-intro-image img {
  clip-path: polygon(69% 0, 84% 10%, 100% 60%, 83% 91%, 65% 98%, 0 100%, 0 0);
}

/*ENDE******************* Ganzheitliche Bildung mit organischem Hintergrund*/

/* SVG Anker Reihe */
.svg-anchor-row-section {
  background: #ffffff;
  padding: 32px 0;
}

.svg-anchor-row {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
}

.svg-anchor-item {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 0.6s ease;
  box-shadow: none;
  background: transparent;
}

.svg-anchor-item--sand,
.svg-anchor-item--sandlight,
.svg-anchor-item--green {
  background: transparent;
  color: #0F2435;
}

.svg-anchor-item:hover,
.svg-anchor-item:focus-within {
  transform: translateY(-2px);
  box-shadow: none;
}

.svg-anchor-link {
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
  gap: 10px;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.svg-anchor-link:hover,
.svg-anchor-link:focus,
.svg-anchor-link:active {
  color: #0F2435 !important;
  background-image: none !important;
  transform: translateY(-1px);
}

.svg-anchor-link:hover .svg-anchor-label,
.svg-anchor-link:focus .svg-anchor-label,
.svg-anchor-link:active .svg-anchor-label {
  color: #0F2435 !important;
}

.svg-anchor-link img,
.svg-anchor-link svg {
  width: clamp(140px, 15vw, 190px);
  height: clamp(140px, 15vw, 190px);
  display: block;
  color: inherit;
  object-fit: contain;
  transition: transform 2s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.svg-anchor-link:hover img,
.svg-anchor-link:hover svg,
.svg-anchor-link:focus-visible img,
.svg-anchor-link:focus-visible svg {
  transform: rotate(25deg) !important;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) !important;
}

.svg-anchor-label {
  display: block;
  font-family: var(--wp--preset--font-family--brush-up);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  color: #0F2435;
  transform: rotate(-5deg);
}

/*ENDE******************* SVG Anker Reihe*/

/* Zwei-Spalten-Story mit ausgefranstem Bildrand */
.media-text-edge {
  width: 100%;
  background: transparent;
  padding: 2% 0;
  margin: 0;
  box-sizing: border-box;
}

.media-text-edge__columns {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
}

.media-text-edge__media,
.media-text-edge__content {
  margin: 0;
  box-sizing: border-box;
}

.media-text-edge__media {
  flex: 0 1 52%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(360px, 42vw, 720px);
  max-width: 100%;
  overflow: visible;
  filter: url(#hero-round-corners);
}

.media-text-edge__media .wp-block-image,
.media-text-edge__image {
  margin: 0 !important;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: visible;
}

.media-text-edge__image img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.media-text-edge--image-left .media-text-edge__image {
  clip-path: polygon(69% 0, 84% 10%, 100% 60%, 83% 91%, 65% 98%, 0 100%, 0 0);
  transform: none;
  margin-left: 0;
}

.media-text-edge--image-right .media-text-edge__image {
  clip-path: polygon(31% 0, 18% 7%, 0 53%, 10% 84%, 44% 100%, 100% 100%, 100% 0);
  transform: none;
  margin-right: 0;
}

.media-text-edge__content {
  flex: 0 1 48%;
  align-self: center;
  padding: 40px 60px 40px 60px;
}

.media-text-edge--image-left .media-text-edge__content {
  padding-left: 40px;
}

.media-text-edge--image-right .media-text-edge__content {
  padding-right: 40px;
}

/*ENDE******************* Zwei-Spalten-Story mit ausgefranstem Bildrand*/


/*Contact Form 7*/
.wpcf7 form {
  max-width: 100%;
  font-family: var(--wp--preset--font-family--montserrat);
  color: #0F2435;
}

.wpcf7 form p {
  margin: 0;
}

/* Zeilen-Layout: .cf7-grid = zwei Spalten, .cf7-full = volle Breite */
.wpcf7 .cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.wpcf7 .cf7-full {
  margin-bottom: 18px;
}

.wpcf7 .cf7-field {
  display: block;
  min-width: 0;
}

.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

.wpcf7 label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #0F2435;
}

/* Eingabefelder */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55em 1.1em;
  border: 2px solid #FBBA00;
  border-radius: 999px;
  background-color: #FFFBF1;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.wpcf7 textarea {
  min-height: 240px;
  padding: 1em 1.2em;
  border-radius: 24px;
  resize: vertical;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: #0F2435;
  opacity: 0.75;
  font-family: var(--wp--preset--font-family--montserrat);
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 input[type="number"]:focus,
.wpcf7 input[type="date"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(251, 186, 0, 0.3);
}

/* Auswahlfeld mit gelbem Dreieck */
.wpcf7 select {
  width: auto;
  min-width: 190px;
  padding-right: 2.8em;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M1 3h18L10 18z' fill='%23FBBA00'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 16px 16px;
  cursor: pointer;
}

/* Bild-/Datei-Upload */
.wpcf7 input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.4em 0.5em;
  border: 2px dashed #FBBA00;
  border-radius: 999px;
  background-color: #FFFBF1;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.95rem;
  cursor: pointer;
}

.wpcf7 input[type="file"]::file-selector-button {
  margin-right: 1em;
  padding: 0.5em 1.3em;
  border: 2px solid #FBBA00;
  border-radius: 999px;
  background-color: #FBBA00;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="file"]:hover::file-selector-button,
.wpcf7 input[type="file"]:focus::file-selector-button {
  background-color: #FEE7A6;
  border-color: #d3d3d3;
  box-shadow: 2px 2px 0 #d3d3d3;
}

/* Checkbox / Akzeptieren */
.wpcf7 .wpcf7-acceptance,
.wpcf7 .wpcf7-checkbox,
.wpcf7 .wpcf7-radio {
  font-size: 0.9rem;
  line-height: 1.4;
}

.wpcf7 input[type="checkbox"],
.wpcf7 input[type="radio"] {
  accent-color: #FBBA00;
  margin-right: 0.5em;
}

.wpcf7 .wpcf7-list-item {
  margin: 0 1em 0 0;
}

/* Absenden-Button: 1:1 wie .wp-block-button__link */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  background-color: #FEE7A6;
  color: #0F2435;
  border: 4px solid #FBBA00;
  border-radius: 20px 80px 20px 50px;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 1.1875rem;
  font-weight: 400;
  padding: 0.6em 1.6em;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus,
.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus {
  background-color: #FEE7A6;
  color: #0F2435;
  border-color: #FBBA00;
  box-shadow: 3px 3px 0 #d3d3d3;
  outline: none;
}

.wpcf7 .wpcf7-spinner {
  margin-left: 12px;
}

/* Rückmeldungen und Validierung */
.wpcf7 .wpcf7-not-valid {
  border-color: #c0392b;
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  padding-left: 1.1em;
  color: #c0392b;
  font-size: 0.85rem;
}

.wpcf7 form .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 0.8em 1.2em;
  border: 2px solid #FBBA00;
  border-radius: 20px;
  background-color: #FFFBF1;
  color: #0F2435;
  font-size: 0.95rem;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output {
  border-color: #c0392b;
}

/* Abschnitte in langen Formularen */
.wpcf7 .cf7-section {
  margin: 40px 0 18px;
  padding-top: 18px;
  border-top: 2px solid #FBBA00;
  color: #0F2435;
  font-family: var(--wp--preset--font-family--waldorfschrift);
  font-size: 1.4rem;
  line-height: 1.3;
}

.wpcf7 .cf7-subsection {
  margin: 26px 0 12px;
  color: #0F2435;
  font-size: 1.05rem;
  font-weight: 400;
}

.wpcf7 .cf7-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Schmalere Felder (Anschrift, E-Mail) */
.wpcf7 .cf7-medium {
  max-width: 60%;
  margin-bottom: 18px;
}

.wpcf7 .cf7-note {
  margin: 0 0 8px;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Gruppen-Beschriftung für Radio-Felder (kein <label>, damit die Optionen einzeln klickbar bleiben) */
.wpcf7 .cf7-label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 400;
  color: #0F2435;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item label,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label,
.wpcf7 .wpcf7-acceptance .wpcf7-list-item label {
  display: inline;
  margin: 0;
  font-weight: 400;
}

.wpcf7 .wpcf7-radio .wpcf7-list-item {
  display: inline-block;
  margin: 0 1.6em 8px 0;
}

.wpcf7 .cf7-sign {
  margin-top: 18px;
}

/* Kleiner Text, z. B. für rechtliche Hinweise unter dem Formular */
.p-mini,
.wpcf7 .p-mini,
.wpcf7 .contactsmall {
  margin: 14px 0 0;
  background: transparent;
  color: #495057;
  font-family: var(--wp--preset--font-family--montserrat);
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Bezeichnungen direkt über ihrem Feld; automatische <br> von CF7 ausblenden */
.wpcf7 form br {
  display: none;
}

.wpcf7 label.form1 {
  margin: 22px 0 6px;
  padding-left: 1.1em;
}

.wpcf7 .contactformrep2 > label.form1:first-of-type {
  margin-top: 8px;
}

/* Luft nach dem Formular und über dem Button */
.wpcf7 .contactformrep2,
.wpcf7 .cf7-form {
  padding-bottom: 48px;
}

.wpcf7 .wpcf7-submit {
  display: inline-block;
  margin-top: 28px;
}

.p-mini a {
  color: #0F2435;
  text-decoration: underline;
}

/*ENDE******************* Contact Form 7*/

/* Kein horizontales Scrollen durch Einblend-Animationen oder 100vw-Elemente */
html,
body {
  overflow-x: clip;
}

 /*MediaQuerie  4k Monitor*/
 @media screen and (min-width: 1950px) {
  /* Skalierung: --k vergrößert Schriften (rem) und alle festen Pixelmaße; Stufen folgen unten */
  html {
    --k: 1;
    font-size: calc(var(--k) * 100%);
  }

  /* Header und Navigation: bleiben an den Bildschirmrändern, aber proportional vergrößert */
  .site-header__logo-area {
    left: calc(-50px * var(--k));
    width: calc(840px * var(--k));
    height: calc(180px * var(--k));
    padding: calc(18px * var(--k)) calc(48px * var(--k)) calc(34px * var(--k)) calc(24px * var(--k));
  }

  .site-header__logo-area .wp-block-site-logo { left: calc(-75px * var(--k)); }

  .site-header__logo-area .wp-block-site-logo img { width: calc(400px * var(--k)) !important; max-width: calc(400px * var(--k)); }

  .site-header__menu-area {
    width: calc(150px * var(--k));
    height: calc(150px * var(--k));
  }

  .site-header__menu-area .wp-block-navigation { right: calc(-50px * var(--k)); }

  .site-header .wp-block-navigation__responsive-container-open,
  .site-header .wp-block-navigation__responsive-container-close {
    width: calc(50px * var(--k));
    height: calc(28px * var(--k));
  }

  .site-header .wp-block-navigation__responsive-container-close {
    top: calc(61px * var(--k));
    right: calc(50px * var(--k));
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: min(70vw, calc(1260px * var(--k)));
    min-height: max(90vh, calc(640px * var(--k)));
    padding-top: calc(130px * var(--k));
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: calc(40px * var(--k)) calc(56px * var(--k));
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-submenu > .wp-block-navigation-item__content { font-size: 1.4rem; }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { margin-top: calc(14px * var(--k)); }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    font-size: 1.05rem;
    padding: calc(4px * var(--k)) 0;
  }

  /* Tabellen: Schrift und Abstände mitskalieren */
  .wp-block-table caption { font-size: 1.75rem; margin-bottom: calc(12px * var(--k)); }
  .wp-block-table th { font-size: 1.45rem !important; padding-bottom: calc(9px * var(--k)); }
  .wp-block-table td { font-size: 0.95rem !important; padding: calc(12px * var(--k)) 0; }

  .hero-content { top: calc(-155px * var(--k)); }

  .hero-button .wp-block-button__link {
    width: calc(110px * var(--k));
    height: calc(90px * var(--k));
  }

  .hero-scroll-arrow {
    width: calc(58px * var(--k));
    height: calc(30px * var(--k));
  }

  .hero-button .wp-block-button__link::before {
    width: calc(68px * var(--k));
    height: calc(68px * var(--k));
    margin: calc(-34px * var(--k)) 0 0 calc(-34px * var(--k));
  }

  .text-image-mask-media-frame {
    max-width: calc(560px * var(--k));
    min-height: calc(430px * var(--k));
  }

  .text-image-mask-image {
    width: calc(600px * var(--k));
    height: calc(600px * var(--k));
  }

  .education-intro-image { height: calc(690px * var(--k)); }

  .student-cta-columns { min-height: calc(760px * var(--k)); }

  .media-text-edge__media { height: clamp(360px, 42vw, calc(720px * var(--k))); }

  .svg-anchor-row { width: calc(1000px * var(--k)); }

  .svg-anchor-link img,
  .svg-anchor-link svg {
    width: calc(190px * var(--k));
    height: calc(190px * var(--k));
  }

  .site-footer,
  .site-footer__columns { min-height: calc(850px * var(--k)); }

  .site-footer__right { min-height: calc(1200px * var(--k)); }

  .logo-footer { max-width: calc(450px * var(--k)); }

 }

 /*MediaQuerie 4K Monitor groß (WQHD+ / 2560 px und breiter): Inhalt begrenzen, Hintergründe laufen weiter*/
 @media screen and (min-width: 2560px) {
  html { --k: 1.3; }
 }

 /*MediaQuerie 4K Monitor (3200 px und breiter, z. B. 3840×2160)*/
 @media screen and (min-width: 3200px) {
  html { --k: 1.65; }
 }

 /*MediaQuerie 4K Monitor (3600 px und breiter)*/
 @media screen and (min-width: 3600px) {
  html { --k: 1.9; }
 }

 /*MediaQuerie Ultrawide / Curved (21:9 und 32:9): Skalierung nach Höhe, Inhalt auf 16:9-Breite begrenzt*/
 @media screen and (min-width: 2400px) and (min-aspect-ratio: 21/10) {
  html {
    --k: 1;
    --cap: calc(100vh * 16 / 9);
  }

  body {
    --wp--style--global--content-size: calc(var(--cap) * 0.8);
    --wp--style--global--wide-size: calc(var(--cap) * 0.9);
  }

  .hero-image-container,
  .media-text-edge__columns,
  .education-intro-section > .education-intro-columns,
  .student-cta-columns {
    max-width: var(--cap);
    margin-inline: auto;
  }

  .site-footer__columns {
    width: 100% !important;
    max-width: var(--cap) !important;
    margin-inline: auto !important;
  }

  .site-footer__right { overflow: visible; }

  /* Hintergrundbild nur in Spaltenbreite (wie am normalen Desktop); rechts endet es mit einer Kante zu Weiß */
  .site-footer__right::before { right: 0; }

  .wp-block-gallery.horizontal-gallery {
    width: var(--cap);
    max-width: var(--cap);
    margin-left: calc(50% - var(--cap) / 2);
    margin-right: calc(50% - var(--cap) / 2);
  }
 }

 @media screen and (min-width: 2400px) and (min-aspect-ratio: 21/10) and (min-height: 1200px) {
  html { --k: 1.3; }
 }

 @media screen and (min-width: 2400px) and (min-aspect-ratio: 21/10) and (min-height: 1500px) {
  html { --k: 1.6; }
 }

 /*MediaQuerie  Laptop (bis 1440 px; zwischen 1441 und 1949 px nur bei niedrigem Viewport, z. B. 15-Zoll-Laptop mit Full-HD)*/
 @media screen and (min-width: 1112px) and (max-width: 1440px),
        screen and (min-width: 1441px) and (max-width: 1949px) and (max-height: 919px) {
  h1 { font-size: 5rem; }
  h2 { font-size: 3.4rem; }
  h3,
  h4,
  p.big { font-size: 2.1rem; }

  h1,
  h2,
  h3,
  h4 {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .hero-title { -webkit-hyphens: manual; hyphens: manual; }

  .hero-subtitle { font-size: 2rem; }

  /* Header und Navigations-Fläche verkleinert (ca. 75 %) */
  .site-header__logo-area {
    left: -38px;
    width: 525px;
    height: 112px;
    padding: 14px 36px 26px 18px;
  }

  .site-header__logo-area .wp-block-site-logo { left: -56px; }

  .site-header__logo-area .wp-block-site-logo img { max-width: 225px; }

  .site-header__menu-area {
    width: 112px;
    height: 112px;
  }

  .site-header__menu-area .wp-block-navigation { right: -38px; }

  .site-header .wp-block-navigation__responsive-container-open,
  .site-header .wp-block-navigation__responsive-container-close {
    width: 38px;
    height: 21px;
  }

  .site-header .wp-block-navigation__responsive-container-close {
    top: 45px;
    right: 36px;
  }

  .text-image-mask-copy h1,
  .text-image-mask-copy h2,
  .text-image-mask-copy h3 { display: block; }

  .text-image-mask-copy h1 { font-size: 3rem; }
  .text-image-mask-copy h2 { font-size: 3.4rem; }
  .text-image-mask-copy h3 { font-size: 2.1rem; }

  .text-image-mask-columns { gap: 32px; }

  .text-image-mask-media-frame {
    max-width: 520px;
    min-height: 0;
  }

  .text-image-mask-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .education-intro-image { height: 560px; }

  .media-text-edge__content { padding: 40px; }

  .student-cta-columns { min-height: 640px; }
  .student-cta-copy { padding: 56px 40px 56px 0; }
  .student-cta-copy p { font-size: 1.6rem; }

  .admission-section-intro { font-size: 1.6rem; }

  .education-intro-copy h1 { font-size: clamp(2.4rem, 4.2vw, 4rem); }
  .education-intro-copy h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); }

  .site-footer,
  .site-footer__columns { min-height: 700px; }

  .site-footer__left {
    justify-content: flex-start;
    padding: 14% 40px 32px 6%;
  }

  .site-footer__logo { margin-bottom: 10%; }
  .logo-footer { max-width: 340px; }
  .site-footer__address p {
    margin-bottom: 18px;
    font-size: 1.15em;
  }
  .site-footer__legal-links {
    margin-top: 24px;
    padding-top: 0;
  }
  .site-footer__right {
    gap: 32px;
    min-height: 0;
    padding: 22% 0 48px 14%;
  }

 }

 /*MediaQuerie Tablet upright + Mobile (gemeinsame Basis: einspaltiges Layout, Bild zuerst)*/
 @media screen and (max-width: 833px) {
  body {
    --wp--style--global--content-size: 86%;
    --wp--style--global--wide-size: 92%;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  summary,
  th,
  td {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .hero-title { -webkit-hyphens: manual; hyphens: manual; }

  /* Header: Logo und Menü-Fläche verkleinert (ca. 60 %) */
  .site-header__logo-area {
    left: -30px;
    width: 420px;
    height: 90px;
    padding: 10px 28px 20px 14px;
  }

  .site-header__logo-area .wp-block-site-logo { left: -45px; }

  .site-header__logo-area .wp-block-site-logo img { max-width: 180px; }

  .site-header__menu-area {
    width: 90px;
    height: 90px;
  }

  .site-header__menu-area .wp-block-navigation { right: -30px; }

  .site-header .wp-block-navigation__responsive-container-open,
  .site-header .wp-block-navigation__responsive-container-close {
    width: 34px;
    height: 20px;
  }

  /* Schließen-Icon exakt über dem Burger-Icon */
  .site-header .wp-block-navigation__responsive-container-close {
    top: 35px;
    right: 26px;
  }

  /* Navigations-Overlay: ganzer Bildschirm. Die weiße Fläche liegt auf dem Inhalt, damit sie beim Scrollen mitwächst. */
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content::before {
    display: none;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100vw;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 100px 40px 48px;
    background: #ffffff;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 28px 32px;
  }

  /* Hero */
  .hero-section {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-image-container {
    height: 60vh;
    flex: 0 0 60vh;
  }

  .hero-content {
    flex: 1 1 auto;
    padding: 16px 20px;
  }

  .hero-subtitle {
    max-width: 100%;
    margin-bottom: 1em;
  }

  /* Text + Bild mit Maske: Bild zuerst */
  .text-image-mask-section { padding: 72px 0; }

  .text-image-mask-copy h1,
  .text-image-mask-copy h2,
  .text-image-mask-copy h3 {
    display: block;
    margin-bottom: 0.35em;
  }

  .text-image-mask-copy p { margin-bottom: 1.6em; }

  .text-image-mask-columns {
    flex-direction: column;
    gap: 44px;
  }

  .text-image-mask-copy,
  .text-image-mask-media-col {
    width: 100%;
    flex: 0 0 auto;
  }

  .text-image-mask-media-col { order: -1; }

  .text-image-mask-media-frame {
    max-width: 420px;
    min-height: 0;
  }

  .text-image-mask-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* Ganzheitliche Bildung: Bild zuerst, Bild bis zum Bildschirmrand */
  .education-intro-section { padding: 72px 0; }

  .education-intro-columns { flex-direction: column; }

  .education-intro-section > .education-intro-columns {
    width: 100%;
    max-width: 100%;
    gap: 44px;
  }

  .education-intro-copy,
  .education-intro-media-col {
    flex: 0 0 auto !important;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .education-intro-section:not(.education-intro-section--image-left) .education-intro-media-col { order: 1; }

  .education-intro-section:not(.education-intro-section--image-left) .education-intro-copy { order: 2; }

  .education-intro-copy,
  .education-intro-section--image-left .education-intro-copy { padding: 0 7%; }

  .education-intro-copy > p:not(.education-intro-eyebrow) { margin: 18px 0 20px; }

  /* Bild/Text mit ausgefranstem Rand: Bild zuerst */
  .media-text-edge { padding: 40px 0; }

  .media-text-edge__columns { flex-direction: column; }

  .media-text-edge__media,
  .media-text-edge__content {
    width: 100%;
    flex-basis: auto;
  }

  .media-text-edge--image-right .media-text-edge__media { order: -1; }

  .media-text-edge__media { height: clamp(260px, 70vw, 480px); }

  .media-text-edge__content,
  .media-text-edge--image-left .media-text-edge__content,
  .media-text-edge--image-right .media-text-edge__content { padding: 44px 7% 56px; }

  /* Schüler-CTA: Bild zuerst */
  .student-cta-columns {
    min-height: 0;
    flex-direction: column;
  }

  .student-cta-copy,
  .student-cta-media {
    flex: 0 0 auto;
    width: 100%;
  }

  .student-cta-media {
    order: -1;
    max-width: 560px;
    min-height: 0;
    margin-inline: auto;
    aspect-ratio: 980 / 1033;
  }

  .student-cta-copy { padding: 44px 7% 72px; }

  /* Anker-Icons */
  .svg-anchor-row-section { padding: 40px 0; }

  .svg-anchor-row-section .svg-anchor-row {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
    justify-items: center;
  }

  .svg-anchor-link img,
  .svg-anchor-link svg {
    width: clamp(104px, 34vw, 150px);
    height: clamp(104px, 34vw, 150px);
  }

  .svg-anchor-label { font-size: 1.25rem; }

  /* Raster, Karten, Galerie */
  .qualification-grid-section { padding: 0; }

  .qualification-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  .admission-section-inner { padding: 48px 20px; }

  .admission-cards {
    grid-template-columns: 1fr !important;
    max-width: 520px;
    margin-inline: auto;
  }

  .admission-card { min-height: 280px; }

  .contact-section,
  .waldi-cont { padding: 40px 0; }

  .wp-block-gallery.horizontal-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .wp-block-gallery.horizontal-gallery > .wp-block-image:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .textwdth { width: 100%; }

  .wpcf7 .cf7-medium { max-width: 100%; }

  .wpcf7 select { width: 100%; }

  /* Footer: untereinander, gelbe Fläche füllt Navigation und Kontakt komplett */
  .site-footer,
  .site-footer__columns { min-height: 0; }

  .site-footer__columns {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .site-footer__left,
  .site-footer__right {
    flex-basis: auto;
    width: 100%;
  }

  .site-footer__left {
    justify-content: flex-start;
    padding: 15% 7% 40px;
  }

  .site-footer__logo { margin-bottom: 40px; }

  .logo-footer { max-width: 300px; }

  .site-footer__address p { font-size: 1.15rem; }

  .site-footer__right::before {
    background: #FFB92D;
    clip-path: polygon(0 36px, 5% 30.4px, 10% 24.9px, 15% 19.7px, 20% 14.8px, 25% 10.5px, 30% 6.9px, 35% 3.9px, 40% 1.8px, 45% 0.4px, 50% 0, 55% 0.4px, 60% 1.8px, 65% 3.9px, 70% 6.9px, 75% 10.5px, 80% 14.8px, 85% 19.7px, 90% 24.9px, 95% 30.4px, 100% 36px, 100% 100%, 0 100%);
  }

  .site-footer__right {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    padding: 96px 7% 72px;
  }

  .site-footer__legal-links {
    flex-wrap: wrap;
    gap: 10px 24px;
    margin-top: 16px;
    padding-top: 0;
  }
 }

 /*MediaQuerie Tablet upright*/
 @media screen and (min-width: 445px) and (max-width: 833px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.75rem; }
  h3,
  h4,
  p.big { font-size: 1.85rem; }
  h5,
  h6 { font-size: 1.4rem; }
  .small,
  ul,
  ol,
  li { font-size: 1.5rem; }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 110px 64px 48px; }

  .hero-content { top: -110px; }
  .hero-subtitle { font-size: 1.75rem; }

  .text-image-mask-copy h1 { font-size: 2.6rem; }
  .text-image-mask-copy h2 { font-size: 2.75rem; }
  .text-image-mask-copy h3 { font-size: 1.85rem; }

  .education-intro-copy h1 { font-size: clamp(2.4rem, 7vw, 3.5rem); }
  .education-intro-copy h3 { font-size: 1.75rem; }
  .education-intro-image { height: 420px; }

  .student-cta-copy p { font-size: 1.5rem; }
  .admission-section-intro { font-size: 1.5rem; }

  .svg-anchor-link img,
  .svg-anchor-link svg {
    width: clamp(130px, 22vw, 170px);
    height: clamp(130px, 22vw, 170px);
  }

  .wpcf7 .cf7-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .site-footer__right {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    min-height: 0;
    padding: 110px 7% 80px;
  }
  .site-footer__address p { font-size: 1.25rem; }

  /* Mehr Luft zwischen den Inhalten */
  .hero-subtitle { margin-bottom: 1.4em; }
  .text-image-mask-section { padding: 96px 0; }
  .text-image-mask-columns { gap: 56px; }
  .education-intro-section { padding: 96px 0; }
  .education-intro-section > .education-intro-columns { gap: 56px; }
  .media-text-edge { padding: 56px 0; }
  .media-text-edge__content,
  .media-text-edge--image-left .media-text-edge__content,
  .media-text-edge--image-right .media-text-edge__content { padding: 56px 8% 72px; }
  .education-intro-copy,
  .education-intro-section--image-left .education-intro-copy { padding: 0 8%; }
  .student-cta-copy { padding: 56px 8% 88px; }
  .svg-anchor-row-section { padding: 64px 0; }
  .qualification-grid { gap: 48px; padding: 64px 0; }
  .admission-section-inner { padding: 72px 8%; }
  .admission-cards { gap: 40px; }
  .contact-section,
  .waldi-cont { padding: 64px 0; }
 
 }
  /*MediaQuerie Tablet landscape*/
 @media screen and (min-width: 834px) and (max-width: 1111px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
  h3,
  h4,
  p.big { font-size: 2rem; }
  h5,
  h6 { font-size: 1.4rem; }

  h1,
  h2,
  h3,
  h4,
  p,
  li {
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .hero-title { -webkit-hyphens: manual; hyphens: manual; }

  .hero-subtitle {
    max-width: 85%;
    font-size: 1.8rem;
  }

  /* Header und Navigations-Fläche verkleinert (ca. 65 %) */
  .site-header__logo-area {
    left: -32px;
    width: 455px;
    height: 98px;
    padding: 12px 30px 22px 16px;
  }

  .site-header__logo-area .wp-block-site-logo { left: -48px; }

  .site-header__logo-area .wp-block-site-logo img { max-width: 195px; }

  .site-header__menu-area {
    width: 98px;
    height: 98px;
  }

  .site-header__menu-area .wp-block-navigation { right: -33px; }

  .site-header .wp-block-navigation__responsive-container-open,
  .site-header .wp-block-navigation__responsive-container-close {
    width: 34px;
    height: 20px;
  }

  .site-header .wp-block-navigation__responsive-container-close {
    top: 39px;
    right: 31px;
  }

  /* Navigations-Overlay etwas breiter, damit die zwei Spalten Platz haben */
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 80vw;
    padding: 120px 5% 40px 10%;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: 32px;
  }

  .text-image-mask-columns { gap: 24px; }
  .text-image-mask-copy { flex-basis: 54%; }
  .text-image-mask-copy h1,
  .text-image-mask-copy h2,
  .text-image-mask-copy h3 { display: block; }

  .text-image-mask-copy h1 { font-size: 2.7rem; }
  .text-image-mask-copy h2 { font-size: 3rem; }
  .text-image-mask-copy h3 { font-size: 1.9rem; }

  .text-image-mask-media-frame {
    max-width: 420px;
    min-height: 0;
  }

  .text-image-mask-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .education-intro-copy { padding: 40px 40px 40px 3%; }
  .education-intro-section--image-left .education-intro-copy { padding: 40px 3% 40px 40px; }
  .education-intro-image { height: 500px; }
  .arrow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .media-text-edge__media { height: clamp(320px, 44vw, 520px); }
  .media-text-edge__content { padding: 30px 36px; }

  .student-cta-columns { min-height: 560px; }
  .student-cta-copy {
    flex-basis: 50%;
    padding: 48px 32px 48px 0;
  }
  .student-cta-media { flex-basis: 50%; }
  .student-cta-copy p { font-size: 1.5rem; }

  .admission-section-intro { font-size: 1.5rem; }
  .admission-card { padding: 32px 16px 80px; }

  .svg-anchor-row {
    width: 100%;
    max-width: 760px;
    justify-content: center;
    gap: 20px;
  }
  .svg-anchor-link img,
  .svg-anchor-link svg {
    width: clamp(110px, 14vw, 150px);
    height: clamp(110px, 14vw, 150px);
  }
  .svg-anchor-label { font-size: 1.25rem; }

  .qualification-grid {
    gap: 36px 8%;
    padding: 56px 0;
  }

  .wpcf7 .cf7-medium { max-width: 80%; }

  .site-footer,
  .site-footer__columns { min-height: 700px; }

  .site-footer__left {
    flex-basis: 44%;
    justify-content: flex-start;
    padding: 14% 28px 32px 5%;
  }
  .site-footer__logo { margin-bottom: 10%; }
  .logo-footer { max-width: 300px; }
  .site-footer__address p {
    margin-bottom: 18px;
    font-size: 1.1em;
  }
  .site-footer__legal-links {
    margin-top: 24px;
    padding-top: 0;
  }
  .site-footer__right {
    flex-basis: 56%;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    min-height: 0;
    padding: 18% 5% 48px 8%;
  }

}
  /*MediaQuerie Mobile*/
 @media screen and (max-width: 444px){
  /* Größenverhältnis im Goldenen Schnitt (1,618): h3 20px → h2/h1 32px */
  h1,
  h2 { font-size: 2rem; }
  h3,
  h4,
  p.big { font-size: 1.25rem; }
  h5,
  h6 { font-size: 1rem; }
  .qualification-grid__item h3 { font-size: 1.25rem !important; }
  p,
  .small,
  ul,
  ol,
  li { font-size: 1rem; }

  /* Überschriften: Trennung nur bei zu langen Wörtern (mind. 4 Zeichen je Teil), damit nichts abgeschnitten wird */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 10 4 4;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .hero-title {
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  p,
  li,
  summary,
  th,
  td {
    -webkit-hyphens: auto;
    hyphens: auto;
    hyphenate-limit-chars: 7 3 3;
    -webkit-hyphenate-limit-before: 3;
    -webkit-hyphenate-limit-after: 3;
  }

  .hero-subtitle {
    -webkit-hyphens: manual;
    hyphens: manual;
  }

  /* Mehr Luft zwischen den Inhalten */
  .text-image-mask-section { padding: 72px 0; }
  .text-image-mask-columns { gap: 48px; }
  .education-intro-section { padding: 80px 0; }
  .education-intro-section > .education-intro-columns { gap: 48px; }
  .media-text-edge { padding: 48px 0; }
  .media-text-edge__content,
  .media-text-edge--image-left .media-text-edge__content,
  .media-text-edge--image-right .media-text-edge__content { padding: 48px 7% 64px; }
  .student-cta-copy { padding: 48px 7% 80px; }
  .svg-anchor-row-section { padding: 56px 0; }
  .svg-anchor-row-section .svg-anchor-row { gap: 48px 16px; }
  .qualification-grid { gap: 44px; padding: 56px 0; }
  .admission-section-inner { padding: 64px 7%; }
  .admission-cards { gap: 36px; }
  .contact-section,
  .waldi-cont { padding: 56px 0; }
  .site-footer__right { padding: 96px 7% 72px; }
  .site-footer__left { padding: 18% 7% 40px; }

  .wp-block-button__link,
  .wp-element-button,
  .wpcf7 input[type="submit"],
  .wpcf7 .wpcf7-submit {
    border-width: 3px;
    font-size: 1.05rem;
    padding: 0.55em 1.3em;
  }

  .wpcf7 .wpcf7-submit { width: 100%; }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 88px 28px 48px; }

  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content { top: -90px; }
  .hero-subtitle { font-size: 1.15rem; }

  /* Hero-Maske: untere Punkte näher an die Ränder, damit mehr vom Bild sichtbar ist */
  .hero-background { animation-name: heroOrganicPulseMobile; }

  @keyframes heroOrganicPulseMobile {
    0%, 100% { clip-path: polygon(0% 0%, 100% 0%, 98% 70%, 36% 82%, 2% 77%); }
    25% { clip-path: polygon(0% 0%, 100% 0%, 99% 66%, 34% 78%, 1% 73%); }
    50% { clip-path: polygon(0% 0%, 100% 0%, 97% 74%, 38% 86%, 3% 82%); }
    75% { clip-path: polygon(0% 0%, 100% 0%, 98% 68%, 36% 80%, 2% 74%); }
  }

  .hero-title { font-size: clamp(1.4rem, 6.6vw, 2.25rem); }

  .text-image-mask-copy h1,
  .text-image-mask-copy h2 { font-size: 2rem; }
  .text-image-mask-copy h3 { font-size: 1.25rem; }

  .education-intro-copy h1 { font-size: 2rem; }
  .education-intro-copy h3 { font-size: 1.25rem; }
  .education-intro-copy h6 { font-size: 1rem; }
  .education-intro-image { height: 300px; }
  .arrow-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .student-cta-copy p { font-size: 1.05rem; }
  .admission-section-intro { font-size: 1.1rem; }

  .wp-block-details > summary {
    padding-right: 36px;
    font-size: 1rem;
  }
  .sum21 { padding: 32px 0; }

  .wp-block-table caption { font-size: 1.25rem; }
  .wp-block-table th { font-size: 1rem !important; }
  .wp-block-table td { font-size: 0.8rem !important; }

  /* Schmale Phones: Logo-Fläche passt sich der Bildschirmbreite an */
  .site-header__logo-area {
    left: -22px;
    width: 350px;
    height: 80px;
    padding: 8px 22px 16px 12px;
  }

  .site-header__logo-area .wp-block-site-logo { left: -36px; }

  .site-header__logo-area .wp-block-site-logo img { max-width: 180px; }

  .wp-block-gallery.horizontal-gallery { grid-template-columns: 1fr; }

  .wpcf7 .cf7-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .wpcf7 .cf7-grid--3 { grid-template-columns: 1fr; }
  .wpcf7 textarea { min-height: 180px; }
  .wpcf7 .cf7-section { font-size: 1.2rem; }


 }
  /*MediaQuerie Apple-Background-Att.*/
 @supports(-webkit-touch-callout: none) {
  html { -webkit-text-size-adjust: 100%; }

  .hero-background,
  .admission-section-cover,
  .wp-block-cover.has-parallax {
    background-attachment: scroll;
  }

 }
/* Scroll-Reveal-Klassen für Gutenberg-Blöcke */
.fade-in-left,
.fade-in-right {
  opacity: 1;
  translate: 0 0;
  transition: opacity 0.9s ease 0.4s, translate 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s;
}

.has-scroll-reveal .fade-in-left:not(.is-visible) {
  opacity: 0;
  translate: -36px 0;
}

.has-scroll-reveal .fade-in-right:not(.is-visible) {
  opacity: 0;
  translate: 36px 0;
}

/* Läuft beim Laden der Seite; .has-scroll-reveal wird nur im Frontend gesetzt */
.has-scroll-reveal .hero-title-reveal {
  animation: hero-title-reveal 1.6s cubic-bezier(0.22, 0.61, 0.36, 1) 0.8s both;
}

@keyframes hero-title-reveal {
  from { opacity: 0; translate: 0 28px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-left,
  .fade-in-right,
  .hero-title-reveal {
    opacity: 1 !important;
    translate: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Barrierefreiheit: sichtbarer Tastaturfokus (WCAG 2.4.7), Kontrast ca. 12:1 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item__content:focus-visible,
.wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation__responsive-container-close:focus-visible,
.hero-button .wp-block-button__link:focus-visible,
.svg-anchor-link:focus-visible,
.site-footer__social-link:focus-visible,
.wpcf7 input:focus-visible,
.wpcf7 select:focus-visible,
.wpcf7 textarea:focus-visible,
.wpcf7 .wpcf7-submit:focus-visible {
  outline: 3px solid #0F2435 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px #FFFFFF !important;
}

/* Navigations-Overlay: Fokus innerhalb des weißen Panels, Rahmen nicht abschneiden */
.site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible {
  border-radius: 4px;
}

/* Barrierefreiheit: Bewegung reduzieren, wenn das System es verlangt */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .site-header .wp-block-navigation__responsive-container.is-menu-open::before,
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .hero-scroll-arrow,
  .hero-button .wp-block-button__link::before,
  .text-image-mask-frame,
  .text-image-mask-image,
  .hero-section {
    animation: none !important;
  }
}

/* Einheitliche Textgrößen über alle Bildschirmgrößen */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

h3,
h3[class],
.qualification-grid__item h3 {
  font-size: 1.8125rem !important;
}

tr,
td,
.wp-block-table td,
.wp-block-details > summary,
.wp-block-list,
.wp-block-list li,
.site-footer__legal-links p,
.site-footer__legal-links a,
.wp-block-navigation-item__label,
.site-footer__right .site-footer__social-title {
  font-size: 1rem !important;
}

strong,
b {
  font-weight: inherit;
}

.wpcf7 label,
.wpcf7 legend,
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea,
.wpcf7 button,
.wpcf7 .cf7-label,
.wpcf7 .cf7-subsection {
  font-weight: 400;
}

@media screen and (min-width: 445px) and (max-width: 1111px) {
  h3,
  h3[class],
  .qualification-grid__item h3 {
    font-size: 1.4rem !important;
  }
}

@media screen and (max-width: 444px) {
  h3,
  h3[class],
  .qualification-grid__item h3 {
    font-size: 1rem !important;
  }
}
