/* merienda-one-regular - latin */
@font-face {
  font-family: 'Merienda One';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/merienda-one-v16-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/merienda-one-v16-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/merienda-one-v16-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/merienda-one-v16-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/merienda-one-v16-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/merienda-one-v16-latin-regular.svg#MeriendaOne') format('svg'); /* Legacy iOS */
}
/* roboto-100 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100;
  src: url('../fonts/roboto-v30-latin-100.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-100.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-100.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-100.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-100.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-100.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-100italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 100;
  src: url('../fonts/roboto-v30-latin-100italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-100italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-100italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-100italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-100italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-100italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-300 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/roboto-v30-latin-300.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-300.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-300.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-300.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-300.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-300italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('../fonts/roboto-v30-latin-300italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-300italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-300italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-300italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-300italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-300italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-regular - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/roboto-v30-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('../fonts/roboto-v30-latin-italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-500 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/roboto-v30-latin-500.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-500.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-500.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-500italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 500;
  src: url('../fonts/roboto-v30-latin-500italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-500italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-500italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-500italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-500italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-500italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/roboto-v30-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-700.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 700;
  src: url('../fonts/roboto-v30-latin-700italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-700italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-700italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-700italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-900 - latin */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 900;
  src: url('../fonts/roboto-v30-latin-900.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-900.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-900.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-900italic - latin */
@font-face {
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 900;
  src: url('../fonts/roboto-v30-latin-900italic.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/roboto-v30-latin-900italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/roboto-v30-latin-900italic.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/roboto-v30-latin-900italic.woff') format('woff'), /* Modern Browsers */
       url('../fonts/roboto-v30-latin-900italic.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/roboto-v30-latin-900italic.svg#Roboto') format('svg'); /* Legacy iOS */
}

/* pacifico-regular - latin */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/pacifico-v22-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/pacifico-v22-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/pacifico-v22-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/pacifico-v22-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/pacifico-v22-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/pacifico-v22-latin-regular.svg#Pacifico') format('svg'); /* Legacy iOS */
}

/* norican-regular - latin */
@font-face {
  font-family: 'Norican';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/norican-v14-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('../fonts/norican-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/norican-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/norican-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/norican-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/norican-v14-latin-regular.svg#Norican') format('svg'); /* Legacy iOS */
}

/*
GANTSCHROSA d2436f
*/


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

:root {
  --primary: #252c3c;
  --primary-dark: #8c342d;
  --green: #4e6458;
  --green-dark: #35483f;
  --text: #383838;
  --text-light: #666666;
  --background: #f7f3f2;
  --page-background: rgba(247, 243, 242, 0.7);
  --white: #ffffff;

  --font-headline: "Roboto", serif;
  --font-body: "Source Sans 3", sans-serif;
}

html,
body {
  font-family: var(--font-body);
  line-height: 1.7;

  color: var(--text);
  background: var(--page-background);
}

h1 {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 600;
  line-height: 1.1;
}

h2 {
    font-family: var(--font-headline);
    font-size: clamp(1.5rem, 2.3vw, 2.3rem);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.2;
}

h3 {
    font-family: var(--font-headline);
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

h4 {
    font-family: var(--font-body);
    font-size: .9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--primary);
}

/* Fließtext */
p,
li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-light);
}

p {
  margin-top: 0;
  margin-bottom: 1.4em;
}

/* Links */
a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease;
}

a:hover,
a:focus {
  color: var(--primary);
}

/* Navigation */
nav,
.mainnav,
.navbar,
.navigation {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn,
.button,
.more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--primary);
  color: var(--white) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  text-decoration: none !important;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.btn:hover,
.button:hover,
.more:hover,
.btn:focus,
.button:focus,
.more:focus {
  background: var(--primary-dark);
  color: var(--white) !important;
}

/* Textauswahl */
::selection {
  background: var(--primary);
  color: var(--white);
}

#pageid1 .kopfbild .frame-inner {
  padding-top: 0px;
}

header .textmedia {gap:0;}

.site-header {
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 99999;
    background: transparent;
    transition:
        background-color .35s ease,
        backdrop-filter .35s ease,
        box-shadow .35s ease;
}


/* Beim Scrollen */
.site-header.scrolled {
    background: rgba(247, 243, 242, 0.8); /* #f7f3f2 mit 80 % Deckkraft */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}


/* mmenu Fix */
.mm-page .site-header,
.mm-wrapper .site-header {
  position: sticky;
  top: 0;
	z-index: 10000;
}


footer p  {    margin-bottom: 0;}





/* =========================================
   Headerbilder (.kopfbild)
   ========================================= */

.kopfbild figure.image {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,.15);
}

.kopfbild figure.image img{
    display:block;
    width:100%;
    height:auto;
    transition:.6s;
}

/* Verlauf */
.kopfbild figure.image::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.75) 0%,
        rgba(0,0,0,.15) 45%,
        transparent 70%
    );
    pointer-events:none;
}

/* Bildbeschriftung */
.kopfbild figure.image figcaption{
    position:absolute;
    left:30px;
    bottom:24px;
    z-index:2;

    color:#fff;
    font-size:1.25rem;
    font-weight:600;
    letter-spacing:.02em;
    text-shadow:0 3px 12px rgba(0,0,0,.7);
}

/* Akzentlinie */
.kopfbild figure.image figcaption::before{
    content:"";
    display:block;
    width:50px;
    height:3px;
    margin-bottom:10px;
    background:#fff;
    border-radius:20px;
}

/* Hover */
.kopfbild figure.image:hover img{
    transform:scale(1.03);
    filter:brightness(.92);
}

/* Mobil */
@media (max-width:768px){

    .kopfbild figure.image figcaption{
        left:18px;
        bottom:18px;
        font-size:1rem;
    }

}

/* TYPO3 Logo Frames neutralisieren */
.site-logo .frame,
.site-logo .frame-group-container,
.site-logo .frame-group-inner,
.site-logo .frame-container,
.site-logo .frame-inner,
.site-logo .textmedia,
.site-logo .textmedia-item,
.site-logo .gallery-row,
.site-logo .gallery-item,
.site-logo figure,
.site-logo picture {
  margin: 0;
  padding: 0;
}

.site-logo img,
.site-logo svg {
  width: 220px;
  height: auto;
  display: block;
}

/* Menü */
.desktop-menu {
  display: flex;
  justify-content: center;
}

.desktop-menu .navilo {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu .navilo > li {
  position: relative;
}

.desktop-menu .navilo > li > a {
  display: flex;
  align-items: center;
  color: #15372b;
  text-decoration: none;
  font-size: 15px;
  white-space: nowrap;
}

/* Mobile */
.mobile-toggle {
  display: none;
}

@media (max-width: 1199.98px) {
  body {
    padding-top: 82px;
  }

  .site-header,
  .site-header .container,
  .header-inner {
    height: 82px;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
  }

  .desktop-menu,
  .amtstafel-btn {
    display: none;
  }

  .site-logo img,
  .site-logo svg {
    width: 180px;
  }

  .mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
  }

  .mobile-toggle span {
    width: 30px;
    height: 2px;
    background: #15372b;
  }
}


.hunderter .megazeil,
.hunderter .ce-outer,
.hunderter .ce-row,
.hunderter .ce-gallery,
.hunderter .ce-textpic,
.hunderter .image { width: 100% !important;}
.hunderter .container {padding: 0 !important;}
.hunderter .frame {width: 100%; height: auto; margin: 0;
padding: 0;}

.hunderter .ce-gallery[data-ce-columns="3"] .ce-column {
    width: 33.33333% !important;}

.hunderter {max-width: 100% !important; padding: 0 !important; z-index: 0;}
.hunderter .ce-gallery img {padding: 0;width: 100%; }
.hunderter .ce-column {padding: 0 !important ;}
.hunderter .textmedia {gap:0;}
.hunderter hr {height: 0; padding: 2% 0; background:none !important;}
.hunderter .frame-container-default {
  max-width: 100%; padding: 0; margin:0;
}

.headerimage {position: relative; width: 100%; overflow: hidden; margin-bottom: 0.5%;}
.headerimage .carousel-image picture {width: 100%;}
.headerimage .carousel .carousel-content-inner,
.headerimage  .frame-container {min-width: 100% !important; max-width: inherit !important; padding: 0; margin:0; }


.headerimage .carousel .carousel-content {  height: inherit;}
.headerimage .carousel-item-type-image .carousel-image img {	width: 100%;}
.headerimage .frame {padding: 0;}
.headerimage .carousel .item {height: auto;}


.headerimage .carousel-image {
  display: block;
	z-index: 1;
  width: 100%;
}

.headerimage .carousel-text p {text-align: center; background-color: rgba(255,255,255,0.55); font-size: 3rem; padding: 1% 0.5%; }

.headerimage  .carousel-image img {
	width: 100%;}


.frame-space-before-extra-small {margin-top:0.5% !important;display: inline-block;}
.frame-space-before-small {margin-top:3% !important;display: inline-block;}
.frame-space-before-medium {margin-top:6% !important;display: inline-block;}
.frame-space-before-large {margin-top:9% !important;display: inline-block;}

.frame-space-after-extra-small {margin-bottom:0.5% !important;display: inline-block;}
.frame-space-after-small {margin-bottom:3%!important;display: inline-block;}
.frame-space-after-medium {margin-bottom:6%!important;display: inline-block; padding-left: 5%;}
.frame-space-after-large {margin-bottom:9%!important; display: inline-block;}

.kopfbild figure.image figcaption  {font-family: 'Norican', cursive;}

main h1   {font-family: 'Norican', cursive;
  text-align: center;
  color: #d2436f;
  padding-bottom: 40px;;
  font-size: 3rem;
	text-align: center;
}

footer .text-primary {
  font-family: 'Norican', cursive;
  text-align: center;
  color: #d2436f !important;
  padding-bottom: 4%;
  font-size: 40px;
}

main h3   {font-family: 'Norican', cursive;
  color: #d2436f;
  padding-bottom: 1%;
  font-size: 40px;
}

main ul li::before {
  font-family: 'FontAwesome';
  content: '\f004';
  margin: 0 5px 0 -23px;

  color: #d2436f;
}



/* frame-custom-11: Bild rund darstellen */
.frame-custom-11 .textmedia-gallery {
  display: flex;
  justify-content: center;
}

.frame-custom-11 figure.image {
  margin: 0;
}

.frame-custom-11 picture {
  display: block;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}

.frame-custom-11 picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


footer * {color:#fff;}
footer {
  background: #252c3c;

}

.todo-stage {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.todo-svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Desktop */
@media (min-width: 992px) {

    .todo-stage {
        max-width: 70%;
        margin: 0 auto;
    }

}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {

    .todo-stage {
        max-width: 85%;
        margin: 0 auto;
    }

}

/* Mobil */
@media (max-width: 767px) {

    .todo-stage {
        max-width: 100%;
    }

}

footer a {color:#fff !important;}

/* =========================================
   Team / Hebammen – Profilbilder
========================================= */

.frame-custom-11 .gallery-item {
    display: flex;
    justify-content: center;
}

.frame-custom-11 .image {
    margin: 0;
}

.frame-custom-11 .image img {
    width: 220px;
    height: 220px;
    object-fit: cover;

    border-radius: 50%;
    border: 8px solid #fff;

    box-shadow:
        0 15px 40px rgba(0,0,0,.12),
        0 4px 12px rgba(0,0,0,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease;
}

.frame-custom-11 .image img:hover {
    transform: translateY(-6px) scale(1.03);

    box-shadow:
        0 25px 50px rgba(0,0,0,.18),
        0 10px 24px rgba(0,0,0,.10);
}

/* Name unter dem Bild */
.frame-custom-11 .textmedia-text {
    text-align: center;
    margin-top: 24px;
}

.frame-custom-11 .textmedia-text a {
    color: #403d3b;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .25s ease;
}

.frame-custom-11 .textmedia-text a:hover {
    color: var(--primary);
}

/* =========================================
   MAIN – moderne Bilder mit Tiefe
========================================= */

main .textmedia-gallery .image {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;

  box-shadow:
    0 22px 50px rgba(64, 52, 48, 0.14),
    0 6px 16px rgba(64, 52, 48, 0.08);

  transform: translateZ(0);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Bild sauber ausfüllen */
main .textmedia-gallery picture {
  display: block;
  width: 100%;
}

main .textmedia-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;

  transition:
    transform 0.55s ease,
    filter 0.35s ease;
}

/* Dezenter plastischer Verlauf */
main .textmedia-gallery .image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.18),
      transparent 35%,
      rgba(40, 30, 26, 0.08)
    );

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Hover-Effekt */
main .textmedia-gallery .image:hover {
  transform: translateY(-7px);

  box-shadow:
    0 32px 65px rgba(64, 52, 48, 0.18),
    0 10px 24px rgba(64, 52, 48, 0.1);
}

main .textmedia-gallery .image:hover img {
  transform: scale(1.035);
}

/* Optional: etwas Abstand zum Text */
main .textmedia-left,
main .textmedia-right {
  gap: clamp(30px, 4vw, 65px);
  align-items: flex-start;
}

/* Mobile etwas zurückhaltender */
@media (max-width: 767px) {
  main .textmedia-gallery .image {
    border-radius: 18px;

    box-shadow:
      0 16px 34px rgba(64, 52, 48, 0.12),
      0 4px 12px rgba(64, 52, 48, 0.07);
  }

  main .textmedia-gallery .image:hover {
    transform: none;
  }

  main .textmedia-gallery .image:hover img {
    transform: none;
  }
}

/* Weniger Animation bei entsprechender Systemeinstellung */
@media (prefers-reduced-motion: reduce) {
  main .textmedia-gallery .image,
  main .textmedia-gallery img {
    transition: none;
  }
}

/* =========================================
   TEXTMEDIA – Bild und Text nebeneinander
========================================= */

main .textmedia-left,
main .textmedia-right {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: clamp(30px, 4vw, 60px);
}

/* Bildspalte */
main .textmedia-left .textmedia-gallery,
main .textmedia-right .textmedia-gallery {
  flex: 0 0 42%;
  width: 42%;
  max-width: 520px;
  min-width: 0;
}

/* Textspalte */
main .textmedia-left .textmedia-text,
main .textmedia-right .textmedia-text {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

/* TYPO3-Galerie darf keine zusätzliche Breite erzeugen */
main .textmedia-gallery .gallery-row,
main .textmedia-gallery .gallery-item,
main .textmedia-gallery figure,
main .textmedia-gallery picture {
  width: 100%;
  max-width: 100%;
}

/* Bild */
main .textmedia-gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bild rechts */
main .textmedia-right .textmedia-text {
  order: 1;
}

main .textmedia-right .textmedia-gallery {
  order: 2;
}

/* Bild links */
main .textmedia-left .textmedia-gallery {
  order: 1;
}

main .textmedia-left .textmedia-text {
  order: 2;
}

/* Smartphone und kleines Tablet */
@media (max-width: 767px) {
  main .textmedia-left,
  main .textmedia-right {
    flex-direction: column;
    gap: 28px;
  }

  main .textmedia-left .textmedia-gallery,
  main .textmedia-right .textmedia-gallery,
  main .textmedia-left .textmedia-text,
  main .textmedia-right .textmedia-text {
    width: 100%;
    max-width: none;
    flex-basis: auto;
    order: initial;
  }
}

html {
  scroll-behavior: smooth;
}


/* =========================================
   SPRUNGMENÜ UNTER DER H1
========================================= */

:root {
  --jump-menu-bg: rgba(247, 243, 242, 0.92);
  --jump-menu-text: #403d3b;
  --jump-menu-border: rgba(64, 61, 59, 0.1);
  --jump-menu-active: #c2433a;
}

/* Abstand bei Ankersprüngen */
html {
  scroll-padding-top: 120px;
}

main .frame {
  scroll-margin-top: 120px;
}

/* Gesamtes Sprungmenü */
.jump-menu {
  position: sticky;
  top: 85px;
  z-index: 100;

  width: min(1280px, calc(100% - 40px));
  margin: 20px auto clamp(50px, 6vw, 85px);
  padding: 10px;

  border: 1px solid var(--jump-menu-border);
  border-radius: 999px;

  background: var(--jump-menu-bg);
  box-shadow:
    0 12px 35px rgba(54, 45, 41, 0.09),
    0 3px 10px rgba(54, 45, 41, 0.05);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Alle Links in einer Reihe */
.jump-menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.jump-menu-inner::-webkit-scrollbar {
  display: none;
}

/* Einzelner Menüpunkt */
.jump-menu-link {
  position: relative;
  flex: 0 0 auto;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 10px 18px;

  border-radius: 999px;

  color: var(--jump-menu-text);
  background: transparent;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;

  transition:
    color 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Hover */
.jump-menu-link:hover,
.jump-menu-link:focus-visible {
  color: var(--jump-menu-active);
  background: rgba(194, 67, 58, 0.08);
  transform: translateY(-1px);
}

/* Aktiver Abschnitt */
.jump-menu-link.is-active,
.jump-menu-link[aria-current="true"] {
  color: #fff;
  background: var(--jump-menu-active);

  box-shadow:
    0 8px 20px rgba(194, 67, 58, 0.22);
}

/* Tastaturfokus */
.jump-menu-link:focus-visible {
  outline: 3px solid rgba(194, 67, 58, 0.22);
  outline-offset: 2px;
}

/* Tablet */
@media (max-width: 1100px) {
  .jump-menu {
    justify-content: flex-start;
    border-radius: 22px;
  }

  .jump-menu-inner {
    justify-content: flex-start;
  }
}

/* Smartphone */
@media (max-width: 767px) {
  html {
    scroll-padding-top: 105px;
  }

  main .frame {
    scroll-margin-top: 105px;
  }

  .jump-menu {
    top: 72px;
    width: calc(100% - 24px);
    margin-bottom: 45px;
    padding: 8px;
    border-radius: 18px;
  }

  .jump-menu-link {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 0.9rem;
  }
}

/* Animationen reduzieren */
@media (prefers-reduced-motion: reduce) {
  .jump-menu-link {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
