:root {
  --font-main: 'Montserrat', sans-serif;
  --color-bg: #F4F5F0;
  --color-white: #ffffff;
  --color-grey: #F4F5F0;
  --color-black: #000000;
  --color-primary-lighter: #aaa;
  --color-primary: #2e473a;
  --color-secondary: #C7DEB9;
  --color-darkgreen: #2e473a;
  --color-accent: #C7DEB9;
  --color-highlight: rgba(92, 123, 100, 0.8);
  --color-hover: #7a9e7e;
  --color-cta: #C7DEB9;
  --color-hellgruen: #C7DEB9;
  --transition-fast: 0.3s ease;
  --transition: all 0.5s ease;
  --farbe-hintergrund-button: #333;
  --farbe-text-button: #F4F5F0;
  --farbe-grenze-input: #F4F5F0;
  --farbe-input-hintergrund: #fff;
  --rounded:16px;
  
  --medium-rounded:12px;
  --fieldbuttonrounded:50px;
}

/* === Variablen === */

html {
  font-optical-sizing: none;        /* falls VF mit opsz-Achse */
  font-synthesis-weight: none;      /* kein künstliches Bold */
  -webkit-font-smoothing: antialiased;
}

/* BASIS */
body {
	margin: 0;
	font-family: var(--font-main);
	background-color: var(--color-bg);
	font-weight: 500;
}

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

/* === RESTLICHES CSS AUS ORIGINALDATEI === */


/* === BASIS === */

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: var(--color-bg);
  font-weight: 400;
  font-size: 18px;
  line-height:1.4em;
  letter-spacing:normal;
}

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

a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid black !important;
  outline-offset: 3px;
}

[tabindex]:focus,
[role="button"]:focus {
  outline: 2px solid black !important;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}


.skip-link {
  position: absolute;
  top: 20px;
  left: 20px;

  background: #000;
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: -1;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  color: #000;
  padding: .5rem 1rem;
  z-index: 9000;
}

/* Sichtbar beim Tastatur-Fokus */
.skip-link:focus,
.skip-link:focus-visible {

}


a {
  text-decoration: none;
  color: var(--color-black);
}

section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-black);
  margin-top: .5rem;
  margin-bottom: 1rem;

} 


section h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-black);
  line-height: 1.3;
  margin-top: 0em;
  margin-top: 0.5rem;
}

section h3 {
  font-size: 1.25em;
  font-weight: 700;
  line-height: 1.4em;
  margin-bottom: 0rem;
  margin-top: 1.2;
}

section p {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}


section .inhalt2spalten h3 {
  color: var(--color-black);
}

/*
section h1::before, section h2::before {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary), green);
  margin-bottom: 1.5rem;
margin-top: 1.5rem;
}
*/
header {
  color: var(--color-primary);
  z-index: 1001;
  height: 150px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color:var(--color-bg);
}

body.scrolled header {

  height: 150px;
}


.header-inner {
  width: 80%;
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding: .5rem 0rem;
  z-index:200;
  }

.logo-container {
  display: flex;
  align-items: center;
  position: relative;
  text-align: center;
  padding-left: 0px;
  transition: 0.5s;
}

header.scrolled .logo-container {
  padding-left: 0px;
  transition: 0.5s;
}

.logo-container svg {
  height: 110px;
  transition: 0.5s;
}

.logo-container svg .svgcolor {
  fill: var(--color-black);
}

header.scrolled .logo-container svg {
  height: 80px;
  transition: 0.5s;
}

.headerinner-right {
  display: flex;
  flex-direction: column;
	height:100px;
  width: 82%;
  padding-top: .1rem;
  position: relative;
  transition: 0.5s;
  align-items: end;
  align-content: end;
  justify-content: space-between;
}

.scrolled .headerinner-right {
height:70px;
}

.school-name {
  text-align: right;
  transition: 0.5s;
  padding-top: 1.0rem;
  height: 24px;
  opacity: 1;
  display:inline-block;
}

.scrolled .school-name {
  opacity: 0;
  height: 0;
  overflow: hidden;
    display:inline-block;
    padding:0;
}

.school-name h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-black);
}

.school-name span {
  font-weight: 300;
}

/* === Gleichmäßige Ausrichtung der Service-Icons === */
div.servicelinks {
  background-color: var(--color-hellgruen);
}

.service-inner {
  display: flex;
  align-items: center;        /* vertikal zentrieren */
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem); /* gleichmäßiger horizontaler Abstand */
}

.servicelinks a,
.servicelinks form {
  display: flex;
  align-items: center;        /* Icon & Text vertikal zentrieren */
  justify-content: center;    /* Inhalt in der Mitte */
  text-decoration: none;
  color: var(--color-black);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  padding: 0.4rem 0.6rem;
  line-height: 1;
}

.servicelinks i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;               /* gleiche Breite für alle Icons */
  height: 1.4em;
  font-size: 1.1em;
  line-height: 1;
}

/* Variante: bei Links mit Text (Telefonnummer) etwas Abstand */
.servicelinks a.telefon i {
  margin-right: 0.4em;
}

/* Formularbutton optisch angleichen */
.service-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-black);
  font-size: 1.1em;
  padding: 0.4rem;
  cursor: pointer;
}

/* Für optisch perfekte Zentrierung bei kleinerer Schrift */
@media (max-width: 900px) {
  .service-inner {
    gap: 1.5rem;
    justify-content: center;
  }
}


.service-search button {
  padding: 4px 8px;
  border: none;
  border-radius: var(--fieldbuttonrounded);
  background-color: transparent;
  color: var(--color-primary);
  cursor: pointer;
	font-size:.9em;
}

.service-search button i {
  margin: 0;
}

.service-search input[type="text"] {
  padding: 8px;
  border-radius: var(--fieldbuttonrounded);
  border: 0px solid var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
  flex: 1;
  font-size: 14px;
  opacity: 0;
  width: 0;
  transition: opacity 0.5s ease, width 0.5s ease, gap 0.5s ease;
  font-family: Montserrat, sans-serif;
  padding-left:1rem;
  padding-right:1rem;
  outline:0;
}

.service-search input[type="text"].active {
  opacity: 1;
  width: 200px;
}

.service-search button.submittable {
  font-weight: bold;
  /* optional: Designänderung bei aktivem Submit */;
}

.service-inner {
  width: 80%;
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding: .3rem 0rem;
}

.servicelinks a {
  background-color: transparent;
  border-radius: var(--rounded);
  color: var(--color-black);
  padding: 0.5rem 0rem;
  display: inline-block;
  font-size: 1.1rem;
}
.servicelinks a span {
font-weight:bolder;
}
table {


}

/* NAVIGATION */
@media screen and (min-width:1001px) {
nav {
  display: inline-flex;
  justify-content: flex-end;
  z-index: 1200;
  position:relative;
  height:42px;
}
.mobile-back-button {
display:none;
}
nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
  padding: 0;
  margin: 0; 
  height:42px;
}
nav.pagination {
  display: flex;
  justify-content: flex-start;
  flex-grow: 1;
  z-index: 1200;
  position:relative;
}
nav.pagination ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  position: relative;
  z-index: 1201;
}

nav ul > li > a {
  display: inline-block;
  position: relative;

  text-align: center;
  height: auto;
  text-decoration: none;
  color: inherit;
  color: var(--color-black);
  	background-color: var(--color-hellgruen);
  	padding:.5rem 1rem .5rem 1rem;
  	border-radius: var(--fieldbuttonrounded);
  	
}

/* Hover/Active Styles */
nav > ul > li > a:hover,
nav > ul > li > a.rex-active,
nav > ul > li > a.rex-current {
	color: var(--color-bg);
  	background-color: var(--color-darkgreen);
  	padding:.5rem 1rem .5rem 1rem;
  	border-radius: var(--fieldbuttonrounded);
}


.pagination a.active {
	color: var(--color-bg);
  	background-color: var(--color-darkgreen);
  	padding:.5rem 1rem .5rem 1rem;
  	border-radius: var(--fieldbuttonrounded);

}



/* Dropdown Menü (2. Ebene) */
nav li ul {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  flex-direction: column;
  background: transparent;
  padding: 0.0rem  0em;
  box-shadow: 0 0px 0px rgba(0,0,0,0.1);
  z-index: 1500;
  gap:0;
  border-radius:var(--medium-rounded);
  background-color: var(--color-bg);
}

nav li:hover > ul {
  display: block;
  z-index: 1500;
  display:flex;
  gap:0px;
  
background-color: var(--color-bg);
  background-color:#fff;
}

nav li ul li {
  padding: 0;
  margin: 0;
  min-width: 180px;
  border-bottom:1px solid rgb(169, 202, 175);
}
nav li ul li:last-child {
  border-bottom:0px solid var(--color-darkgreen);
}
/* Basis-Style für alle Dropdown-Links */
nav ul li ul li a {
  display: block;
  position: relative;
  text-align: left;
  height: auto;
  text-decoration: none;
  color: var(--color-darkgreen);
  background-color: var(--color-hellgruen);
  padding: .5rem 1rem;
  border-radius: 0; /* standard: keine Rundung */
}

/* Hover/Active Zustand */
nav ul li ul li a:hover,
nav ul li ul li a.rex-active,
nav ul li ul li a.rex-current {
  color: var(--color-bg);
  background-color: var(--color-darkgreen);
}

/* Erster Eintrag – oben abgerundet */
nav ul li ul li:first-child a {
  border-radius: var(--medium-rounded) var(--medium-rounded) 0 0;
}

/* Letzter Eintrag – unten abgerundet */
nav ul li ul li:last-child a {
  border-radius: 0 0 var(--medium-rounded) var(--medium-rounded);
}

/* Wenn erster Eintrag aktiv/hover ist → Rundungen bleiben */
nav ul li ul li:first-child a:hover,
nav ul li ul li:first-child a.rex-active,
nav ul li ul li:first-child a.rex-current {
  border-radius: var(--medium-rounded) var(--medium-rounded) 0 0;
}

/* Wenn letzter Eintrag aktiv/hover ist → Rundungen bleiben */
nav ul li ul li:last-child a:hover,
nav ul li ul li:last-child a.rex-active,
nav ul li ul li:last-child a.rex-current {
  border-radius: 0 0 var(--medium-rounded) var(--medium-rounded);
}

body:not(#article1) main {
padding-top:150px;

}
body:not(#article1) .hero + main {
  padding-top: 50px;
}



body#article16 main {
padding-top:150px;

}


}

.burger {
  display: none;             
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-top: .5em;
  z-index: 1000;
	border:0; 
	appearance: none;    
  -webkit-appearance: none;
  -moz-appearance: none;
	
}  
.burger span {
  display: block;
  height: 2px;
  width: 40px;
  background-color: var(--color-primary);
  border-radius: 0;
  margin: 5px 0;

}

/* Mobile: zeigen */
@media (max-width: 1000px) {
  .burger { display: block; }
  body.scrolled .burger { display: block; margin-top: 0.9rem; }
}

/* Desktop: verstecken (saubere Grenze, kein Overlap) */
@media (min-width: 1001px) {
  .burger { display: none; }
}


/* === HERO SECTION === */
section {
  z-index: 1;
}
@media screen and (min-width:1000px) {
section.hero {
  position: relative;
  margin-top: 155px;
  height: 45vw;
  z-index: 999;
  
}
}


@media screen and (min-width:1470px) {
  section.hero {
   position: relative;
  margin-top: 160px;
  height: 30vw;
  z-index: 999;
}

}

@media screen and (min-width:2000px) {
  section.hero {
   position: relative;
  margin-top: 170px;
  height: 30vw;
  z-index: 999;
}
}

@media screen and (min-width:1000px) {
#article1 section.hero {
  position: relative;
  margin-top: 120px;
  height: 45vw;
  z-index: 999;
}
}


@media screen and (min-width:1470px) {
#article1 section.hero {
   position: relative;
  margin-top: 160px;
  height: 35vw;
  z-index: 999;
}
section.hero .textrahmen {
  background-color: rgba(0,0,0,.4);
  border-radius: 0;
  padding: .5rem 1.5rem 1rem 7rem;
  width: 55%;
  position: absolute;
  bottom: 0rem;
  left: 0;
  z-index: 1000;
	color:var(--color-white);
	font-size:2.0rem;
	line-height:normal;
	text-shadow:1px 1px 6px #000;
	font-weight:600;
	hyphens:none;
	max-width:750px;
	border-radius: 0 var(--rounded) 0 0;
}
}

@media screen and (min-width:2000px) {
#article1 section.hero {
   position: relative;
  margin-top: 160px;
  height: 35vw;
  z-index: 999;
}

}


section.hero .textrahmen {
  background-color: rgba(0,0,0,.4);
  border-radius: 0;
  padding: .5rem 1.5rem 1rem 3rem;
  width: 55%;
  position: absolute;
  bottom: 0rem;
  left: 0;
  z-index: 1000;
	color:var(--color-white);
	font-size:2.0rem;
	line-height:normal;
	text-shadow:1px 1px 6px #000;
	font-weight:600;
	hyphens:none;
	max-width:750px;
		border-radius: 0 var(--rounded) 0 0;
}



section.hero .textrahmen .button {
text-shadow:none;
display: inline-block;
padding: .3rem 0.5rem .5rem 1.5rem;
margin-top:20px;
}


section.hero .textrahmen .button::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: relative;
display:inline-block;
top: 10%;
right: 0;
transform: translateY(-50%);
width: 2.0rem;
height: 2.0rem;
border-radius: 50%;
background-color: var(--color-darkgreen);
color: var(--color-white);
text-align: center;
line-height: 2.0rem;
font-size: 1.0rem;
text-shadow: none;
margin-top: 0.3rem;
margin-left:.8em;
transform: rotate(-45deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}
section.hero .textrahmen .button:hover::after {

color: var(--color-darkgreen);
background-color: var(--color-white);
}

body:not(#article1) section.hero .textrahmen {
  background-color: #fff;
  border-radius: var(--rounded);
  padding: 1rem 1.5rem 1rem 1.5rem;
  width: 45%;
  position: absolute;
  bottom: -1rem;
  left: 7rem;
  z-index: 1000;
}

body:not(#article1) section.hero {

}

main section.textrahmen {
background-color: var(--color-grey);
padding: 4rem 7rem 3rem 7rem;
z-index: 5;
position: relative;
max-width:1900px;
}

@media (max-width:1600px) {
	
	main section.textrahmen {
		padding: 3rem 3rem 0em 3rem;
	}
}

.grid section.textrahmen {
padding:0;
}

.grid figure {
margin:0;

}
.grid img {
max-width:100%;
height:auto;
border-radius:var(--rounded);
}


main {
background-color:var(--color-bg);
}
main > section {
max-width:2000px;
margin-left:auto;
margin-right:auto;
}

.textrahmen-inner {
width:100%;
margin-left:auto;
margin-right:auto;
max-width:1800px;
}

.green {
background-color:var(--color-hellgruen);
border-radius: var(--rounded);
padding:1rem 0;
}


.slideshow {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide {
}

.herobuttons {
  flex: 2;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.herobuttons a {
  padding: 0.5rem 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: var(--rounded);
}

.herosocial {
  flex: 0.4;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.herosocial a {
  padding: 0.3rem 0.4rem;,
  background-color: rgba(255, 255, 255, 0.9);
  aspect-ratio: 1 / 1;
  width: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--rounded);
}

/* === NEWS SECTION === */
main .inhalt2spalten {
transform: translateZ(0); /* erzwingt GPU-Rendering / Neuaufbau */
  backface-visibility: hidden;
}
main .inhalt2spalten .spalte {
  width: 46%;
  flex: 1;
  max-width:850px;
  flex-direction:column;
  justify-content:center;
  align-content:center;
}
main .inhalt2spalten .spalte img {
	border-radius:var(--rounded);
}

/* Basis: immer nur unten etwas Abstand */
section.inhalt2spalten {
  display: flex;
  justify-content: center;
  gap: 6rem;
  flex-wrap: wrap;
  padding-left: 7rem;
  padding-right: 7rem;
  padding-bottom: 4rem;  /* Standard unten */
  max-width: none;
}

section.inhalt2spalten:nth-child(1) {
  padding-top: 3rem; /* nur die erste bekommt oben Luft */
}

main section.inhalt2spalten:first-of-type {
  padding-top: 4rem;
}
/* Ausnahme: wenn eine bg-green Sektion kommt, 
   soll sie den Abstand nach oben übernehmen */
section.inhalt2spalten.bg-green {
  padding-top: 4rem;     /* Abstand vor grünem Block */
  padding-bottom: 4rem;  /* unten normal */
}

/* Extra für das letzte Element vor Footer */
main section.inhalt2spalten:last-of-type {
  padding-bottom: 3rem;
}

section.inhalt2spalten.bg-green {
background-color:var(--color-hellgruen);
}

/* Basis-Link-Dekoration für Fließtext-Links */
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3),
main section.news a:not(.btn):not(.button):not(.glightbox3) {
  color: #000;                 /* dunkles Grau statt Schwarz */
  text-decoration: none;          /* kein Unterstrich */
  border-bottom: 0px dotted #444;/* feine Punktlinie */
  padding-bottom: 0px;            /* optischer Abstand zur Punktlinie */
  transition: color .2s ease, border-color .2s ease;
}

/* Aufwärtspfeil (↗) als dezentes Icon */
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3)::after,
main section.news a:not(.btn):not(.button):not(.glightbox3)::after {
  font-family: "Font Awesome 6 Free";
  content: "\f35d"; /* fa-arrow-up-right */
  font-weight: 900; /* solid */
  font-size: .7em;
  margin-left: .5em;
  margin-bottom: 0em;
  opacity: .8;
  color: #000;
	vertical-align:middle;

  display:inline-block;
}

/* Hover/Focus */
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3):hover,
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3):focus,
main section.news a:not(.btn):not(.button):not(.glightbox3):hover,
main section.news a:not(.btn):not(.button):not(.glightbox3):focus {
  color: #000; 
  border-color: #000;
}




main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3):hover::after,
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3):focus::after,
main section.news a:not(.btn):not(.button):not(.glightbox3):hover::after,
main section.news a:not(.btn):not(.button):not(.glightbox3):focus::after {
  opacity: 1;

}




/* Tastatur-Accessibility */
main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3):focus-visible,
main section.news a:not(.btn):not(.button):not(.glightbox3):focus-visible {
  outline: 2px solid rgba(0,71,171,.25);
  outline-offset: 2px;
}

main a.telefon::after, 
main a.email::after,
main a.pdf::after {
display:none!important;
}



/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3),
  main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3)::after,
  main section.news a:not(.btn):not(.button):not(.glightbox3),
  main section.news a:not(.btn):not(.button):not(.glightbox3)::after {
    transition: none;
  }
}

/* Druckbild neutral */
@media print {
  main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3),
  main section.news a:not(.btn):not(.button):not(.glightbox3) {
    color: #333 !important;
    border-bottom: 0.5pt dotted #666;
    text-decoration: none !important;
  }
  main section.inhalt2spalten a:not(.btn):not(.button):not(.glightbox3)::after,
  main section.news a:not(.btn):not(.button):not(.glightbox3)::after {
    content: "";
  }
}



@media (min-width:1600px) {

	main .inhalt2spalten .spalte img {
		border-radius:var(--rounded);
	}
	section.inhalt2spalten {
		  gap: 6rem;
	}
}

@media (max-width:1600px) {

section.inhalt2spalten {
  padding-left: 3rem;
  padding-right: 3rem;
    gap: 3rem;
}

}

.news-wrapper {
  background-color: var(--color-grey);
  padding: 6rem 7rem 8rem 7rem;
  z-index: 5;
  position: relative;
}


@media (max-width:1600px) {

.news-wrapper {
  padding-left: 3rem;
  padding-right: 3rem;
    gap: 3rem;
}

}


section.news-wrapper-before {
  position: relative;
  width: 100%;
  height: 55px;
  z-index: 14;
  overflow: hidden;
  margin-top: -53px;
  padding: 0;
}

section.news-wrapper-before .news-wave {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 14;
}

section.news-wrapper-before path {
  fill: var(--color-grey);
}




.news-section {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(250px, auto);
  gap: 1.5rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
    max-width: 1800px;
    margin-left:auto;
    margin-right:auto;
}
.news-outro,
.news-intro {
    max-width: 1800px;
	margin-left:auto;
    margin-right:auto;
}


/* Standard-News-Karte */
.news-card {
  position: relative;
  border-radius: var(--rounded);
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  line-height:0;
  background-size: cover;
  border:0px solid transparent;
  transition:0.5s;
}

/* Hover-Effekt */
.news-card:hover {
  transform: translateY(0px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
 border: 0px solid var(--color-hellgruen);
}

.news-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* späteres Layout */
  gap: 1.5rem;
}



/* Bild */
.news-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: filter 0.3s;
  visibility:hidden;
}

/* Höheres Bild für erste Karte */

/* Bild-Hover */
.news-card {

}
/* Bild-Hover */
.news-card:hover {
  filter: brightness(1.2);
}

/* Inhalt */
.news-card .news-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1rem 1.5rem 2.0rem 1.5rem;
  background: linear-gradient(to top, rgba(199, 222, 185,0.9) 0%, rgba(199, 222, 185,0.9) 100px, transparent 100px, transparent 100%);
  color: var(--color-black);
  box-sizing: border-box;
    transition:0.5s;
    -webkit-transition:0.5s;

	display:flex;
	flex-direction:column;
	justify-content: flex-end;
}

.news-card:hover .news-content {
  background: linear-gradient(to top, rgba(44, 61, 48,1) 0%, rgba(44, 61, 48,1) 100px, transparent 100px, transparent 100%);
      transition:background 0.5s;
      color: var(--color-white);
}

#article1 .news-card:first-child .news-card .news-content {
	background: linear-gradient(to top, rgba(44, 61, 48,0.9) 0%, rgba(44, 61, 48,0.9) 100px, transparent 100px, transparent 100%);
}

.news-card h3.news-title {
margin-bottom:14px;
margin-top:0;
}

.news-card .news-title {
	font-size:1.5rem;
	line-height:1.1em;
}

/* Datum */
.news-date {
  font-size: 18px;
  opacity: 1;
}

/* Beschreibung ausblenden */
.news-content p {
  display: none;
}

.shortcuts-wrapper {
  position: relative;
  max-width: 1800px;    /* Inhalt begrenzen */
  margin: 0 auto;       /* zentrieren */
  padding: 6rem 7rem 9rem 7rem;
  z-index: 1;
}

/* Vollbreiter Hintergrund */
.shortcuts-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;                  /* füllt das Element komplett */
  background: var(--color-cta);
  z-index: -1;               /* hinter dem Content */
  width: 100vw;              /* volle Fensterbreite */
  left: 50%;
  transform: translateX(-50%); /* zentriert über den Viewport */
}

@media (max-width:1600px) {
.shortcuts-wrapper {
  background-color: var(--color-cta);
  padding: 4rem 3rem 4rem 3rem;
  position: relative;
  z-index: 1;
}
}

.shortcuts-wrapper-before,
.shortcuts-wrapper-after {
  position: relative;
  height: 50px;
  overflow: hidden;
  background-color:#fff;
}

.shortcuts-wave,
.shortcutsa-wave {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-cta);
}

.gridinfo {
  max-width: 1800px;
  padding: 0rem 0 0.5rem 0;
  font-size: 1.2rem;
  line-height: 1.6;
}


/* Grid */
.shortcuts-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
  gap: 30px;
  max-width: 1800px;
  margin: 2rem auto;
  position: relative;
}

.shortcuts-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-primary);            /* Text: dunkelgrün/schwarz */
  border-radius: var(--rounded);
  overflow: hidden;
  background-color: #fff;                 /* Hintergrund: weiß */
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* === Texte im Normalzustand dunkelgrün === */
.shortcuts-title h2,
.shortcuts-title p, {
  color: var(--color-primary);
  transition: color 0.3s ease;
}




.shortcuts-title h2 {
  font-size: 1.5em;
  margin-bottom: 0rem;
  margin-top:5px;
}

.shortcuts-title p {
  margin-top: 0rem;
  padding-top: 0.3rem;
  width:86%;
}


/* === Hover Zustand === */
.shortcuts-card:hover {
 transform: translateY(0px);
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
border: 0px solid var(--color-hellgruen);
  background-color: var(--color-primary); /* Hintergrund: dunkelgrün */
  color: #fff;                            /* Text: weiß */
}

/* === Texte im Hover-Zustand weiß färben === */
.shortcuts-card:hover .shortcuts-title,
.shortcuts-card:hover .shortcuts-title h2,
.shortcuts-card:hover .shortcuts-title p,
.shortcuts-card:hover .shortcuts-title li,
.shortcuts-card:hover .shortcuts-title span {
  color: #fff;
}

.shortcuts-title h2::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
top: 24%;
right: 3%;
transform: translateY(-50%);
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background-color: var(--color-darkgreen);
color: var(--color-white);
text-align: center;
line-height: 2.5rem;
font-size: 1.5rem;
text-shadow: none;
margin-top: 0.3rem;
transform: rotate(-45deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}
.shortcuts-card:hover .shortcuts-title h2::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
top: 24%;
right: 4%;
transform: translateY(-50%);
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background-color: var(--color-white);
color: var(--color-darkgreen);
text-align: center;
line-height: 2.5rem;
font-size: 1.5rem;
text-shadow: none;
margin-top: 0.3rem;
transform: rotate(-45deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}


.shortcuts-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 2.9;
  object-fit: cover;
  display: block;
}

.shortcuts-content {
  padding: 1.6rem;
  padding-bottom: 0.3rem;
  padding-top: 0.8rem;
  color: var(--color-primary);
  margin-top: auto;
  position: relative;
  bottom: 0rem;
  left: 0;
}




/* === FOOTER === */

.footer {
  background-color: var(--color-primary);
  background-image: url('/media/footer-back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 1rem 2rem 1rem 2rem;
  margin-top:0px;
  display: flex;
  justify-content: center;
  position:relative;
}

.footer a, .footer h1, .footer h2 {
color: var(--color-bg);
line-height: 1.2em;
}

footer .fa-solid {
line-height:.8;
}

.footer-container {
  background: transparent;
  color: var(--color-bg);
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 1rem;
  border-radius: var(--rounded);
  margin-right: auto;   /* zentriert rechts */
  margin-left: auto;    /* zentriert links */
  width: 100%;
  max-width: 1800px;    /* maximale Breite */
}

div.footer-wrapper-before {
  position: absolute;
  width: 100%;
  height: 35px;
  z-index: 14;
  overflow: hidden;
  margin-top: 0px;
  padding: 0;
  top:0;
  right:0;
}

footer section.inhalt2spalten {

padding-left: 0rem;
padding-right: 0rem;
padding-top: 3rem;
padding-bottom: 1rem;
width:100%;
max-width:1800px;
margin-left:auto;
margin-right:auto;
}

footer section.inhalt2spalten .spalte1 {
width:25%;
flex:1;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

footer section.inhalt2spalten .spalte1 .innerspalte {

  flex-direction: column;
  display:flex;
    justify-content: space-between;
    height:100%;
}

footer section.inhalt2spalten .spalte1 .innerspalte svg {
visibility: hidden;
}

footer section.inhalt2spalten .spalte2 {
width:75%;
flex:3;
display:inline-flex;
flex-direction: column;

}
footer section.inhalt2spalten .spalte2 .innerspalte {
justify-content: space-between;
display:flex;
flex:1;
flex-direction: column;
  align-items: flex-end; 
}
footer section.inhalt2spalten .spalte2 h2 { 

width:100%;
display:block;
text-align:right;
padding-bottom: 2rem;
}

footer section.inhalt2spalten .spalte2 h2 span {
font-weight:normal;
} 


#slider-pagination{
display:flex;
gap:.5rem;
justify-content:center;
margin-top:.75rem;

position: absolute;
right:4%;
bottom:5%;
z-index:200;
width:200px;
text-align:right:
}
  #slider-pagination .dot{
    width:18px;
    height:18px;
    border-radius:50px;
    margin-left:0.75rem;
    background:#bbb;
    background-color: var(--color-hellgruen);
    cursor:pointer;
	display:inline-block;
  }
  
  #slider-pagination .dot.active{background:#fff}

@media screen and (max-width:1470px) {
footer .strich {
display:none;
}
footer .nurm {
display:block;
}
header {
height:170px;
}

/* === Gleichmäßige Ausrichtung der Service-Icons === */
div.servicelinks {
  background-color: var(--color-hellgruen);
}

.service-inner {
  display: flex;
  align-items: center;        /* vertikal zentrieren */
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 3rem); /* gleichmäßiger horizontaler Abstand */
}

.servicelinks a,
.servicelinks form {
  display: flex;
  align-items: center;        /* Icon & Text vertikal zentrieren */
  justify-content: center;    /* Inhalt in der Mitte */
  text-decoration: none;
  color: var(--color-black);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  padding: 0.2rem 0.1rem;
  line-height: 1;
}

.servicelinks i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;               /* gleiche Breite für alle Icons */
  height: 1.4em;
  font-size: 1.1em;
  line-height: 1;
}

/* Variante: bei Links mit Text (Telefonnummer) etwas Abstand */
.servicelinks a.telefon i {
  margin-right: 0.4em;
}

/* Formularbutton optisch angleichen */
.service-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-black);
  font-size: 1.0em;
  padding: 0.1rem;
  cursor: pointer;
}

/* Für optisch perfekte Zentrierung bei kleinerer Schrift */
@media (max-width: 900px) {
  .service-inner {
    gap: 1rem;
    justify-content: center;
  }
}

}

/*1470 Ende */

.header-inner {
width: 90%;

}
.service-inner {
width: 90%;

}

nav ul {
gap:2rem;
}

.school-name {
padding-top: 0.5rem;

}

.footer-logo {
  height: 80px;
}

footer svg {

fill: var(--color-white);
}


.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color:var(--color-bg);
  background-color: transparent;
border-radius:var(--rounded);
padding:0;
width:35%;
margin-top:80px;
margin-bottom:40px;
justify-content:end;
align-content:end;
gap: 1rem;
}
footer .footer-contact a {
  color:var(--color-bg);
}

.footer-row {
  display: flex;
  gap: 1rem;
  font-size: 18px;
  align-items: flex-start;
}

.footer-row i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
  min-width: 1.2rem;
  width:40px;
}

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

.footer a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE (bis 768px) === */


header .curved-header {

}

header.scrolled .curved-header {

}

.nurm {
  display: none;
}

.news-block {
  margin-bottom: 40px;
}

.news-title {
  font-size: 1.5em;

  font-weight: bold;
}

h3.news-title {

hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
    position: relative;
  padding-right: 3rem; /* Platz für den Kreis */
}

h3.news-title::after {
  content: "\f061"; /* FontAwesome Pfeil */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 10%;
  right: 0;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-darkgreen);
  color: var(--color-white); /* Füllung */
  text-align: center;
  line-height: 2.5rem;
  font-size: 1.5rem;
  text-shadow: none;
  margin-top: 0.3rem;
  /* Outline nach innen */
  transform:rotate(-45deg);
  -webkit-text-stroke: 0.3px var(--color-darkgreen);
}

.news-card:hover h3.news-title::after {
  content: "\f061"; /* FontAwesome Pfeil → unicode für fa-arrow-right */
  font-family: "Font Awesome 6 Free"; /* oder "Font Awesome 6 Free" je nach Version */
  font-weight: 900; /* für "solid" Icons */
  position: absolute;
  top: 10%;
  right: 0;
  transform: translateY(-50%);
transform:rotate(-45deg);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: var(--color-white);
  color:var(--color-darkgreen); /* Dunkelgrün */
  text-align: center;
  line-height:2.5rem;
  font-size: 1.5rem;
  text-shadow:none;
}


.news-meta {
  font-size: 1em;
  color: #666;
  margin-bottom: 15px;
}

.news-image-wrapper {
  margin-bottom: 15px;
}

.news-image {
  max-width: 100%;
  height: auto;
}

.news-intro {
  margin-bottom: 10px;
  
}

@media (min-width:1000px) {
.news-intro {
	display:flex;
  justify-content:space-between;
  }

}
.news-intro {
.news-card .news-content {
  line-height: 1.8rem;
  height:100%;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.news-card:hover .news-content {
  line-height: 1.8rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 1);
}

.publishnews,
.news-article-content {
 
}

.news-article img {
max-width:100%;
height:auto;

}

.publishnews a[rel="lightbox"] {
  flex: 0 0 auto;
}
a[rel="lightbox"] {
  display: inline-block;
  margin: 0rem;
  vertical-align: top;
  text-align: center;
}

a[rel="lightbox"] img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* Tablet und kleiner */
@media (max-width: 1600px) {
header {
height: 150px;
}

}

section.hero {
  position: relative;
  margin-top: 140px;
  height: 45vw;
  z-index: 999;
}

body:not(#article1) .hero .textrahmen {
  background-color: #fff;
  border-radius: var(--rounded);
  padding: 1rem 1.5rem 1rem 1.5rem;
  width: 80%;
  position: absolute;
  bottom: -1rem;
  left: 7rem;
  z-index: 1000;
}


main section.textrahmen {
background-color: var(--color-grey);
padding: 3rem 3rem 0rem 3rem;
z-index: 5;
position: relative;
}

.service-search input[type="text"] {
  font-size: 16px;
  padding: 0;
}

.service-search input[type="text"].active {
  opacity: 1;
  width: 180px;
  padding: 8px;
}

body.searchopen div.servicelinks .service-inner > a {
  display: none;
}

body.searchopen div.servicelinks .service-inner > a.telefon {
  display: block;
}



.school-name h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--color-primary);
}

section.hero .textrahmen {
  width: 50%;
  position: absolute;
  bottom: -4rem;
  left: 3rem;
  z-index: 1000;
}

.logo-container svg {
  height: 90px;
}

header.scrolled .logo-container svg {
  height: 80px;
}

header.scrolled .school-name {
  text-align: right;
  transition: 0.5s;
  padding-top: .3rem;
}

.news-wrapper {
  background-color: var(--color-grey);
  padding: 6rem 3rem 7rem 3rem;
  z-index: 5;
  position: relative;
}

body:not(#article1) .news-wrapper {
	padding: 3rem 3rem 3rem 3rem;
}

.headerinner-right {
  gap: 1rem;
}

.shortcuts-wrapper {
  background-color: var(--color-cta);
  padding: 4rem 3rem;
}

.news-title {
font-size: 1.2em;
margin-bottom: 0px;
font-weight: bold;
}
.news-card img {
width: 100%;
aspect-ratio: 4 / 3.2;
object-fit: cover;
display: block;
transition: filter 0.3s;
}



}
.nurm {
display:none;
}
.nurd, .mnicht {
display:block;
}

.search-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    background: #eee;
    border: none;
    border-radius: var(--fieldbuttonrounded);
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.3s ease;
    background-color: var(--color-hellgruen);
    
}

.search-icon:hover {
    background: #ccc;
}

.search-field {
    width: 0;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 0.4rem;
    border: 1px solid #ccc;
    border-radius: var(--fieldbuttonrounded);
    font-size: 1rem;
    outline:0;
    font-size:1.0rem;
    height: 1.8rem;
    	padding-right:0rem;
	padding-left:0rem;
	margin-right:0rem;
}

.search-field.visible {
    width: 200px;
    opacity: 1;
    margin-left: 0.5rem;
     	padding-right:1rem;
	padding-left:1rem;
	margin-right:1rem;
}
.news-filter {
    display: inline-flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: flex-end; /* <--- sorgt für Rechtsbündigkeit */
    justify-self:end;    
    }
.news-filter-wrapper {
  display: flex;
  justify-content: flex-end; /* beide Formulare nach rechts */
  gap: .5rem; /* Abstand zwischen den beiden Forms */
    flex-wrap: wrap;
}
.news-filter {
  display: flex;
  gap: .3rem;
  flex-wrap: wrap;
  margin-bottom:.5rem;
}
.news-filter button {
    background: #eee;
    border: none;
    border-radius: var(--fieldbuttonrounded);
    width: auto;
    height: 2.6rem;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.3s ease;
    background-color: var(--color-hellgruen);
  padding: 0.8rem .8em !important;
	line-height: 1.4em;
    letter-spacing: .02em;
    font-weight:400;
}

.news-filter button:hover {
    background-color: var(--color-darkgreen);
    
    color:var(--color-grey);
}

.custom-select {
  position: relative;
  width: 160px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
}

.custom-select .selected {
  padding: 10px 12px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 5px;
}

.custom-select .options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  display: none;
  max-height: 200px;
  overflow-y: auto;
}

.custom-select .options div {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
}

.custom-select .options div:hover,
.custom-select .options .active {
  background-color: #f0f0f0;
}

.custom-select.open .options {
  display: block;
}

.news {
  padding: clamp(1rem, 2vw, 2rem) 0;
  margin-bottom:50px;
}
.news__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.news__title {
  margin: 0 0 1rem;

  line-height: 1.1;
}

.news__lead {
  display: grid;
  grid-template-columns: minmax(280px,1fr) 2fr;
  gap: clamp(1rem,3vw,2rem);
  align-items: stretch; /* beide Spalten gleich hoch */
  margin: clamp(1rem,3vw,2rem) 0;
}


.news__meta-card {
  background: rgba(199,222,185,.6);
  border-radius: 16px;
  padding: clamp(1rem,2.5vw,2rem);

  display: flex;
  flex-direction: column;
  justify-content: start;   /* Text mittig */
  align-content: start;
}

.news__date {
  margin: 0 0 .75rem;
  font-weight: 400;
}

.news__hero {
  margin: 0;
  height: 100%;              /* gleich hoch wie linke Spalte */
}
.news__hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* Bild passt sich an */
  border-radius: 16px;
}

.news__content {
  margin-top:40px;

}

.news__content .abschnitt {
	column-count: 2;
	column-gap: 3rem; 

}
.news__content .abschnitt p {
	  break-inside: avoid;     /* moderne Syntax */
  page-break-inside: avoid; /* ältere Browser */
  -webkit-column-break-inside: avoid; /* Safari/Chrome alt */
  -moz-column-break-inside: avoid; 
	text-align: justify;
-webkit-hyphenate-before: 3;
-webkit-hyphenate-after: 3;
-webkit-hyphenate-limit-chars: 6;
}
.news__teaser p {
	text-align: justify;
-webkit-hyphenate-before: 3;
-webkit-hyphenate-after: 3;
-webkit-hyphenate-limit-chars: 6;
}
.abschnitt {
  column-count: 2;
  column-gap: 2.4rem;
  /* optional: column-fill: balance; */
}

/* Top-Margins am Spaltenanfang verhindern */
.abschnitt :where(p, ul, ol, blockquote, h2, h3){ margin-block-start: 0; }

/* Ersatzabstand über Container-Padding geben */
.abschnitt { padding-top: 1em; }


p {
hyphens:auto;
}
.news__date {
text-align:right;
}

section.inhalt2spalten h1,
section.inhalt2spalten h2,
section.inhalt2spalten h3 {
  hyphens: none;
  -webkit-hyphens: none;
  word-break: normal;

}

/* 2) Letter-Spacing im Fließtext wieder neutralisieren */
section.inhalt2spalten p { letter-spacing: normal; }

/* Optional: globale Regel entschärfen statt abschalten */
html[lang="de"] p { hyphens: auto; } 
.prose p {  


}
.prose img { max-width: 100%; height: auto; margin-bottom:1rem;}

.news__gallery {
	margin: 0;
  padding: 0;
  margin-top: 3rem;
  display: grid;
 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;

  justify-items: stretch; /* wichtig */
  justify-content: stretch; /* oder */
  justify-content: space-between;
  width:100%;
}

.news__gallery a { display: block; }
.news__gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.news__back {

  margin:3rem 0; 
}

@media (max-width: 1000px) {
  .news__lead { grid-template-columns: 1fr; }
  .news__meta-card, .news__hero { height: auto; }
  .news__content {
  margin-top: clamp(2rem,3vw,2rem);
	column-count: 1;       /* Anzahl der Spalten */
  column-gap: 0rem;      /* Abstand zwischen den Spalten */
}
.news__content .abschnitt {
	column-count: 1;
	column-gap: 3rem; 
	
}

.news__hero {
order:-1;
}

.news__back a {

 display:block;
 margin-bottom:10px;
}

header {
height:152px;
}

}
.button {
  display: inline-block;
  padding: .5rem 1.5rem;
  border-radius: 999px;         /* macht sie pillenförmig */
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
}

/* Variante Hellgrün */
.button {
  background: #cde3bf;          /* Pastellgrün */
  color: #2f4630;               /* dunkle Schrift */
}
.button:hover {
background-color: var(--color-darkgreen);
color: var(--color-bg);
}


@media (max-width: 1000px) {
 body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  font-weight: 500;
  font-size: 16px;
}
.nurm {
display:block;
}
.nurd, .mnicht {
display:none;
}
section.hero .textrahmen p br {
  display: none;
}

.news {
  padding: clamp(1rem, 2vw, 2rem) 0;
  margin-bottom:0px;
}


.news-article-content p br {
  display: block;
}

.open header {
height: auto;
height:1200px;
background-color: var(--color-bg);
}



body.scrolled header {
height: 120px;
background-color: var(--color-bg);
}

body.scrolled .school-name {
padding:0;
}

.service-search input[type="text"] {
  font-size: 16px;
  padding: 0;
}

.service-search input[type="text"].active {
  opacity: 1;
  width: 180px;
  padding: 7px 8px;
}

body.searchopen div.servicelinks .service-inner > a {
  display: none;
}

body.searchopen div.servicelinks .service-inner > a.telefon {
  display: block;
}

section h1, section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-black);
  margin-top: .5rem;
  margin-bottom: .5rem;
  line-height:normal;
}

section p {
  font-size: 1rem;
  margin-top: .5rem;
  margin-bottom: .5rem;
}

div br {

}

footer div br {
  display: block;
}

div.news-article-content br {
  display: block;
}

section.hero div br {
  display: block;
}

span.strich {
  display: none;
}

.nurm {
  display: block;
}

iframe {
max-width:100%;
}

/* HEADER bleibt nebeneinander */
  .header-inner {
  flex-direction: row;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  text-align: left;
  width: 92%;
  padding: .5em 0rem .5rem 0rem;
}

.logo-container {
  flex: 0 0 auto;
  align-items: center;
  position: absolute;
  z-index:5;
}

header.scrolled .logo-container {
  padding-left: 0;
}

.logo-container svg {
  width: 90px;
  height: 90px;
}

header.scrolled .logo-container svg {
  width: 60px;
  height: 60px;
}

.headerinner-right {
  flex: 1;
  align-items: flex-end;
  text-align: right;
  gap: .3rem;
  padding-top: 0;
}


.servicelinks a.instagram {
background-color: transparent;
border-radius: var(--rounded);
color: var(--color-black);
padding: 0.6rem 0rem  0.4rem 0rem;
display: inline-block;
font-size: .9rem;
}

}
@media (max-width:1000px) {
.headerinner-right {
display: flex;
flex-direction: column;
height: 100px;
height:auto;
}
header.scrolled .headerinner-right {
  gap: .3rem;
}

body.scrolled.open header {
height: 120px;
height:100vh;
background-color: var(--color-bg);
align-content: start;
align-items: flex-start;

}

body.scrolled.open header .headerinner-right {
height: 120px;
height:100vh;
background-color: var(--color-bg);
align-content: start;
align-items: flex-start;
justify-content:start;
}

.school-name {
  text-align: right;
  transition: 0.5s;
  padding-top: .2rem;
}

.scrolled .school-name {
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.school-name h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-primary);
}


.school-name span {
  font-weight: 300;
}

/* === Basis-Navigation === */
nav {
  display: flex;
  flex-direction: column;
  width: 100%;

  max-height: 0;
  overflow: hidden;
  gap: 0;
  position: relative;
  transition: max-height 0.5s ease;
}

nav.open {
  max-height: 700px; /* Je nach Anzahl der Links anpassen */
  margin-top: 30px;
  height:700px;
}

.scrolled nav.open {
  max-height: 500px; /* Je nach Anzahl der Links anpassen */
  margin-top: 30px;
  height:700px;
  z-index:200;
}

/* === Burger-Button === */
.burger {
  display: block;
  margin-top: 1.2rem;
  margin-right: 0;
}

body.scrolled .burger {
display: block;
margin-top: .8rem;
margin-right: 0;
}
body.scrolled.open .burger {
display: block;
margin-top: 1.3rem;
margin-right: 0;
}
/* === Navigationselemente === */
nav ul {
  display: block;
  width: 84%;
  margin: .5rem auto 0 auto;
  padding: 0;
  list-style: none;
}

nav ul li {
  display: block;
  margin-bottom: .0rem;
  text-align: left;
}

nav li a {
  display: block;
  padding: 1rem 1rem 0.3rem 1rem;
  border-bottom: 1px solid var(--color-primary-lighter);
  font-size: 1.1rem;
  text-align: left;
	font-weight:700;
}

nav a.active,
nav a:hover {
  border-bottom: 1px solid var(--color-primary);
  background-color: var(--color-cta);
}
nav li a.rex-active {

background-color: var(--color-cta);

}
nav li a.rex-current {

background-color: var(--color-cta);

}
nav a:last-child {
  border-bottom: 1px solid var(--color-primary-lighter);
}

/* === Submenü-Pfeil (optisch) === */
nav li:has(ul) > a::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
display:inline-block;
right: 15%;
transform: translateY(-50%);
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
background-color: var(--color-darkgreen);
color: var(--color-white);
text-align: center;
line-height: 1.6rem;
font-size: 1.0rem;
text-shadow: none;
margin-top: -0.1rem;
transform: rotate(-45deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}




/* === Back-Button für Submenü === */
nav .mobile-back-button {
  display: none;
  position: absolute;
  top: 0;
  left: 1rem;
  width: 80%;
  padding: 1rem;
  padding-bottom:.5rem;
  padding-top:.5rem;
  font-size: 1rem;
  background: transparent;;
  border: 0px solid var(--color-white);
  border-radius: 10px;
  z-index: 1600;
  cursor: pointer;
  text-align: left;
  	font-weight:700;
}

nav.submenu-active .mobile-back-button {
  display: block;
}


.mobile-back-button::before {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: relative;
display:inline-block;
left: 0%;
transform: translateY(-50%);
width: 1.5rem;
height: 1.5rem;
border-radius: 50%;
background-color: var(--color-darkgreen);
color: var(--color-white);
text-align: center;
line-height: 1.6rem;
font-size: 1.0rem;
text-shadow: none;
margin-top: -0.1rem;
margin-right: 0.3rem;
transform: rotate(135deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}
/* === Hauptmenü bei Submenü unsichtbar === */
nav.submenu-active ul.rex-navi1 {
  transform: translateX(-120%);
  opacity: 1;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Submenü (ausgeblendet) === */
nav ul.rex-navi2 {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  top: 30px; /* Abstand nach unten vom Hauptmenü */
  left: 0;
  width: 100%;
  background-color: var(--color-bg, white);
  z-index: 2000;
  padding-left: 1rem;
}

/* === Submenü aktiv === */
nav.submenu-active ul.rex-navi2.nav-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(103%);
  z-index:2000;
  background-color:#fff;
  border-radius:10px;
  padding-top:.5rem;
  padding-bottom:.9rem;
  padding-right:1rem;
}




div.servicelinks {
  text-align: right;
  padding: 0 0rem 0 0;
  background-color: var(--color-cta);
  display: block;
}

.service-inner {
  width: 90%;
  max-width: 1800px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  padding: .3rem 0rem;
}

section.inhalt2spalten {
  display: block;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
  padding-left: 1em;
  padding-right: 1rem;
  padding: 1rem;

}

.inhalt2spalten .spalte {
  width: 100%;
  flex: 1;
	padding-top: .5em;     /* Abstand vor grünem Block */
  padding-bottom: .5rem;
}

section.inhalt2spalten {
  padding-top: 1rem;     /* Abstand vor grünem Block */
  padding-bottom: 1rem;  /* unten normal */
}

section.inhalt2spalten.bg-green {
  padding-top: 1rem;     /* Abstand vor grünem Block */
  padding-bottom: 1rem;  /* unten normal */
}
main section.textrahmen {
background-color: var(--color-grey);
padding: 1.0rem 1.0rem 0rem 1.0rem;
z-index: 5;
position: relative;
}

section.hero {
  margin-top: 128px;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  padding: 0rem 0rem 0rem 0em;
  background-color: var(--color-bg);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.0);
  position: relative;
  z-index: 999;
  height: 320px;
}

body:not(#article1) section.hero {
  height: 320px;
}

body:not(#article1) section.hero {
height:200px;
overflow:hidden;
}

.slideshow {
  width: 100vw;

}

.slide {
  width: 100vw;
  height: 320px;
  /* oder: height: 40vh;  */
    background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.slide.active {
  display: block;
}

section.hero .textrahmen {
width: 85%;
  left:0;
  bottom: 0rem;
  
  padding: 1rem 1.0rem 1rem 1.0rem;
  font-size: 0.95rem;
  text-align: left;
  position: relative;
  left: 1rem;
}

section.hero .textrahmen .textrahmen-inner {
	width:100%;
}
body:not(#article1) section.hero .textrahmen {
background-color: #fff;
border-radius: var(--rounded);
padding: 1rem 1.5rem 1rem 1.5rem;
width: 80%;
position: absolute;
bottom: 3rem;
left: 1rem;
z-index: 1000;
}


@media (max-width:1000px) {

section.hero .textrahmen {
  background-color: rgba(0,0,0,.4);
  border-radius: 0;
  padding: .3rem 3% .3rem 3%;
  width: 94%;
  position: relative;
  bottom: 0rem;
  left: 0rem;
  z-index: 1000;
	color:var(--color-white);
	font-size:4rem;
	line-height:normal;
	text-shadow:1px 1px 6px #000;
	font-weight:600;
}

section.hero .textrahmen p {
	font-size:1.0rem;

}

section.hero .textrahmen .button {
text-shadow:none;
display: block;
padding: .15rem 0.5rem .10rem 1rem;
font-size:1.0em;
margin-left:0px;
margin-top:4px;
width:180px;
}


section.hero .textrahmen .button::after {
content: "\f061";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: relative;
display:inline-block;
top: 10%;
right: 0;
transform: translateY(-50%);
width: 1.8rem;
height: 1.8rem;
border-radius: 50%;
background-color: var(--color-darkgreen);
color: var(--color-white);
text-align: center;
line-height:1.8rem;
font-size: .9rem;
text-shadow: none;
margin-top: 0.2rem;
margin-bottom: 0.2rem;
margin-left:.8em;
transform: rotate(-45deg);
-webkit-text-stroke: 0.3px var(--color-darkgreen);
}
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.news-wrapper {
  padding: 2rem 1rem 2rem 1rem;
}

.news-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
	margin-bottom: 1rem;
}

section.news-wrapper-before {
  content: "";
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  /* Höhe der Welle */
  background-size: 102% 35px;
  display: block;
  z-index: 14;
  margin-top: -35px;
}

section.shortcuts-wrapper-before {
  content: "";
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;
  /* Höhe der Welle */
  background-size: 115% 35px;
  display: block;
  z-index: 14;
  margin-top: -35px;
}

section.shortcuts-wrapper-after {
  content: "";
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  /* Höhe der Welle */
  background-size: 100% 60px;
  background-position: top;
  display: block;
  z-index: 14;
  margin-top: 0px;
}

.shortcuts-wrapper {
  padding: 1rem 1.0em 2rem 1.0rem;
}

.gridinfo {
  max-width: 1800px;
  width:100%;
  padding: 0rem 0 0rem 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

.shortcuts-wrapper {
display:flex;
    flex-direction: column;
    align-items: center;
  }

.shortcuts-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2em 1rem;
}

.shortcuts-section {
display: grid;
grid-template-columns: 1fr;
gap: 30px;
max-width: 100%;
margin: 2rem 0;
position: relative;
}

.shortcuts-card {
width:100%;
}

.news-card {
  width: 100%;
}



.shortcut-tile:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Optional: Footer weiter angepasst */
  .footer {
  padding: 1rem 1rem 1rem 1rem;
  justify-content: center;
  background-position: 0px;
}

.footer-container {
  width: 100%;
  max-width: 96%;
  padding: 2rem 0rem;
  padding-left:0;
  padding-right:0;
  margin: 0 0;
}

.footer-logo {
  height: 120px;
}

.footer-logo-section {
  flex-direction: column;
  align-items: flex-start;
}

footer section.inhalt2spalten .spalte1 {
width: 100%;
flex: 1;
}
footer section.inhalt2spalten .spalte2 {
width: 100%;
flex: 1;
display: inline-flex;
flex-direction: column;
margin-top:.5rem;
}
footer section.inhalt2spalten .spalte2 .innerspalte {
justify-content: space-between;
display: flex;
flex: 1;
flex-direction: column;
align-items: flex-start;
}

footer section.inhalt2spalten .spalte2 h2 {
width: 100%;
display: block;
text-align: left;
font-size: 23px;
padding-bottom: 1.5rem;
}

footer .impressum {
padding-top:1.0rem;
}

.footer-contact {
display: flex;
flex-direction: column;
gap: 1rem;
color: var(--color-bg);
background-color: transparent;
border-radius: var(--rounded);
padding: 1rem 1rem 1rem 0rem;
width: 96%;
}

.footer-contact {
margin-top:2rem;
}
body:not(#article1) main {
padding-top:10px;

}
body:not(#article1):not(:has(.hero)) main {
  padding-top: 140px;
}
div.servicelinks a.email i {


}

body:not(#article1):has(.hero) main {
  padding-top: 10px;
}
.grid .row .col {
width:100%;
}
.col {
flex: none;
}

main .inhalt2spalten .spalte {
width:100%;
}
main .inhalt2spalten .spalte img {
max-width:100%;
height:auto;
position:relative;
}

.grid .textrahmen-inner {
width: 90%;
margin-left: 0;
margin-right: 0;
}
.row > * {
padding-left:0;
padding-right:0;
}
}

body:not(#article1) section.hero .textrahmen {
  display: none;
}

body.altpressed nav a:focus {

  border-radius:0px;
}


body.altpressed a:focus, 
body.altpressed button:focus, 
body.altpressed input:focus, 
body.altpressed select:focus, 
body.altpressed i:focus, 
body.altpressed .klappgruppe h3.klapp:focus, 
.zumachen:focus, 
.grid .elem a:focus {
  outline: 2px solid #ff0000!important;
  outline-offset: 2px!important ;
}

body.altpressed .grid .elem a:focus,
body.altpressed .slideshow a:focus {
  border: 2px solid #ff0000!important;
  outline-offset: 2px!important;
  
}

iframe select:focus {
	outline: 2px solid #000!important; /* oder deine Wunschfarbe */
	outline-offset: 2px!important;


}


/* === Listen im Inhaltsbereich (nur main/article) === */
main ul,
main ol,
article ul,
article ol {
  margin: 1.2em 0;
  margin-top: 0.5em;                 
  padding-left: 1.2em;           /* Platz für Marker */
  list-style-position: outside;  /* sorgt dafür, dass Umbrüche unter dem Text starten */
}

/* === Listenelemente === */
main ul li,
main ol li,
article ul li,
article ol li {
  margin: 0.35em 0;              /* Abstand zwischen Punkten */
}

/* === Marker Styling === */
main ul li::marker,
main ol li::marker,
article ul li::marker,
article ol li::marker {
  margin-right: 0.4em;           /* optischer Abstand Marker → Text */
}



/* === Grundlegendes Tabellen-Styling === */
table {
  width: 100%;
  border-collapse: collapse;   /* sorgt für gemeinsame Linien */
  margin: 1.5rem 0;
  line-height: 1.4;
  border: none;
}

/* === Tabellenzellen === */
table th,
table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top !important; /* Inhalte immer oben */
  border: 1px solid #000;         /* schwarze Linien */
}

/* === Nur innere Linien, keine äußeren === */
table tr:first-child th,
table tr:first-child td {
  border-top: none;        /* ganz oben keine Linie */
}
table tr:last-child th,
table tr:last-child td {
  border-bottom: none;     /* ganz unten keine Linie */
}
table th:first-child,
table td:first-child {
  border-left: none;       /* links keine Linie */
}
table th:last-child,
table td:last-child {
  border-right: none;      /* rechts keine Linie */
}


/* === Block-Elemente in Tabellenzellen normalisieren === */
table td p,
table td ul,
table td ol,
table td h1,
table td h2,
table td h3,
table td h4,
table td h5,
table td h6 {
  margin-top: 0;
  margin-bottom: 0;   /* verhindert Extra-Abstand unten */
}

/* === Bilder in Tabellenzellen === */
table td img,
table th img {
  display: block;    /* verhindert Baseline-Versatz */
  max-width: 100%;
  height: auto;
}

/* === Responsive Anpassung === */

@media (min-width: 1600px) {
section.hero .textrahmen {
background-color: rgba(0,0,0,.4);
border-radius: 0;
padding: 1rem 1.5rem 1.5rem 7rem;
width: 55%;
position: absolute;
bottom: 0rem;
left: 0;
z-index: 1000;
color: var(--color-white);
font-size: 2.0rem;
line-height: normal;
text-shadow: 1px 1px 6px #000;
font-weight: 600;
hyphens: none;
max-width: 750px;
border-radius:0 var(--rounded) 0 0;
}
}

@media (max-width: 768px) {
  table {
    font-size: 0.9rem;
  }
  table th,
  table td {
    padding: 0.5rem;
  }
}

@media (max-width:420px) {
.school-name h2 {
  margin: 0;
  font-size: .85rem;
  font-weight: bold;
  color: var(--color-primary);
  line-height: 1.3em;
}
.logo-container svg {
width: 80px;
height: 80px;
}

section.hero {
margin-top: 120px;

}
header {
height: 142px;
}

.burger {
display: block;
margin-top:1.2rem;
margin-right: 0;
}
.header-inner {
flex-direction: row;
align-items: start;
justify-content: space-between;
flex-wrap: wrap;
text-align: left;
width: 96%;
padding: .5em 0rem .5rem 0rem;
}
body.searchopen div.servicelinks .service-inner > a.telefon {
display: none;
}
body.searchopen div.servicelinks .service-inner {
justify-content: end;
}

}


@media (max-width:390px) {

header .servicelinks .telefon span {
display:none;

}
.servicelinks a.telefon i {
margin-right: 0.0em;
}
}