:root {
    --primary-color: white;
    --secondary-color: #717171;
    --primary-text-color: #022250;
    --box-border-color: #5454522a;

     /* Oben: kühles, helles Blau/Beige */
    --sky-0: #f3f6f9;   /* sehr hell */
    --sky-1: #dfe7ef;   /* leicht bläulich */

    /* Unten: warmes Peach/Beige */
    --peach-0: #f6e4d6; /* helles Peach */
    --peach-1: #efc9ad; /* mittleres Peach */
    --peach-2: #e2a788; /* wärmerer Abschluss */
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(/webfonts/MaterialIcons/MaterialIcons-Regular.eot); /* For IE6-8 */
    src: local('Material Icons'),
      local('MaterialIcons-Regular'),
      url(/webfonts/MaterialIcons/MaterialIcons-Regular.woff2) format('woff2'),
      url(/webfonts/MaterialIcons/MaterialIcons-Regular.woff) format('woff'),
      url(/webfonts/MaterialIcons/MaterialIcons-Regular.ttf) format('truetype');
}

.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    
    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;
    
    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;
    
    /* Support for IE. */
    -webkit-font-feature-settings: 'liga';
            font-feature-settings: 'liga';
}

/* eb-garamond-500 - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 500;
  src: url('../webfonts/eb-garamond-v32-latin-500.woff2') format('woff2');
}
/* eb-garamond-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 600;
  src: url('../webfonts/eb-garamond-v32-latin-600.woff2') format('woff2');
}

h1, h2, h3, p, li {
  color: #000714;
}

h2{
  font-size: 32px;
}

h3{
  font-size: 28px;
}

p {
  font-size: 18px;
}

li {
  font-size: 18px;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;   /* Körper immer mindestens so hoch wie der Viewport */
}

body {
  width: 100%;
  margin: 0; 
  background: transparent;
  color: white;
  font-family: 'EB Garamond';
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease;
    
}

body.page-loaded {
  opacity: 1;
}

/* Seitenfarben */
body.home {
  background-color: #faf7f2;
}

body.page2 {
  background: linear-gradient(to bottom, var(--sky-0), var(--peach-1));
  background-image:
    radial-gradient(1200px 800px at 50% -12%,
      var(--sky-0) 0%,
      var(--sky-1) 40%,
      transparent 65%),
    linear-gradient(to bottom,
      transparent 0%,
      var(--peach-0) 48%,
      var(--peach-1) 70%,
      var(--peach-2) 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 100% 100%;
}


body.page3,
body.page3_1,
body.page3_2,
body.page3_3 {

background:
    radial-gradient(ellipse farthest-corner at 80% 8%,
    #c78af2 0%,
    #b875ed 28%,
    rgba(191,120,237,.50) 48%,
    rgba(191,120,237,0) 65%
    ),
    radial-gradient(ellipse farthest-side at 10% 20%,
      #6a46b4 0%,
      rgba(106,70,180,.65) 40%,
      rgba(106,70,180,0) 75%
    ),
    linear-gradient(90deg,
    #55339f 0%,
    #6c3db1 25%,
    #8b4fca 55%,
    #a65bdc 75%,
    #ba6aee 100%
  );
  background-repeat: no-repeat;
  min-height: 100%;
}


body.page4 {
  background: linear-gradient(145deg, #d7ede7, #f1d4b8);
  background-image:
    radial-gradient(1200px 900px at 18% 12%,
      #ecf6f3 0%,
      #dff0ea 30%,
      rgba(223, 240, 234, 0.00) 72%
    ),
    radial-gradient(1000px 800px at 40% 38%,
      rgba(164, 207, 195, 0.25) 0%,
      rgba(164, 207, 195, 0.00) 60%
    ),
    radial-gradient(1200px 900px at 85% 88%,
      #f6e2cf 0%,
      #f0cfb3 36%,
      #e8bd9c 60%,
      rgba(232, 189, 156, 0.00) 78%
    ),
    linear-gradient(145deg,
      #d9eee7 0%,
      #d2e9e2 30%,
      #f1ddc6 70%,
      #e8b98f 100%
    );
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

body.page5 {
  background-color: #fdfaf6;
}

body.page5_1 {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(
    to bottom,
    #000714 0%,    
    #000b1e 25%,
    #000d21 50%,   
    #000714 100%   
  );
}

/* Bild zentrieren & begrenzen */
body.page5_1 .header {
    text-align: center;
}

body.page5_2 {
  background-color: #081425;
}

body.page5_3 {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at center,
  #b04b0c 20%,
  #9e3500 45%,
  #9e3500 60%,
  #923000 80%,
  #7a2500 100%);
}

/* Bild zentrieren */
body.page5_3 .header {
    text-align: center;
}

body.page5_4 {
  background-color: #000917;
}

body.page6 {
  background-color: #02132afa;
}

a {
    color: var(--secondary-color);
}

a:hover {
	color: var(--secondary-color);
	text-decoration: underline;
}


.row {
    padding-left: 15px;
    padding-right: 15px;
}

.header {
    margin-bottom: 30px;
    margin-top: 30px;
}

.container {
	max-width: 1140px;
}

.textbox {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  max-width: 800px;
}

.mrgn-top {
  margin-top: 120px;
}

.header-image {
    max-height: 800px;
    max-width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
}

.header-image-fix {
    max-width: 800px;   /* Bild auf 900px begrenzen */
    width: 100%;        /* skaliert auf kleineren Screens mit */
    height: auto;
    display: block;
    margin-left: auto;  /* zentriert horizontal */
    margin-right: auto; /* zentriert horizontal */
    border-radius: 15px;
}


div > .textbox {
  max-width: 900px;
}

.container-fluid{
  padding-left: 30px;
  padding-right: 30px;
}

div .container {
	max-width: 1140px;
    margin-top: 60px;
    margin-bottom: 60px;
}

.slide-nav .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: auto;
    width: 60px;
    height: 60;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,.55);
    color: #b18e55ff;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    transition: transform .12s ease, background .2s ease, opacity .2s ease;
    opacity: .95;
}

/* Bildergalerie page6 */

* { box-sizing: border-box; }

/* Slideshow container – ohne Viewport-Bezug */
.slideshow-container {
  max-width: 900px;
  height: 800px;        /* feste Höhe, bei Bedarf anpassen */
  max-height: 900px;
  position: relative;
  margin: 0 auto;
  margin-top: 60px;
  overflow: hidden;
}

/* Slides füllen den Container */
.mySlides {
  display: none;
  width: 100%;
  height: 100%;
  margin-top: 0;
}

/* Bilder werden zentriert beschnitten (bleibt so) */
.mySlides img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-height: none;
  display: block;
}

.mySlides {
  opacity: 0;
}

.mySlides.slide-fade {
  opacity: 1;
  animation: fadeIn 1.1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to   { opacity: 1; transform: scale(1); }
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 5px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev {
  left: 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}

/* -ENDE- Bildergalerie page6 */




/* Alle Seiten mit Farbverlauf sollen mindestens Viewport-Höhe haben */
body.home,
body.page2,
body.page3,
body.page3_1,
body.page3_2,
body.page3_3,
body.page4,
body.page5,
body.page5_1,
body.page5_2,
body.page5_3,
body.page5_4,
body.page6 {
    min-height: 100vh;
}

/* Header-Bereich als Bezugspunkt für absolute Positionierung */
.hero {
  position: relative;
}

/* Schwebender Scroll-Button (unten mittig über dem Bild) */
.scroll-down {
  position: absolute;
  left: 50%;
  bottom: 20px;                 /* ggf. anpassen, damit es genau auf dem X sitzt */
  transform: translateX(-50%);
  z-index: 5;

  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #8b8886;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  display: grid;
  place-items: center;

  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

body.page3_1 .scroll-down,
body.page3_2 .scroll-down,
body.page3_3 .scroll-down {
  background: #b574e9;
}

.scroll-down:hover {
  transform: translateX(-50%) scale(1.03);
  background: #8b8886;
  box-shadow: 0 14px 38px rgba(0,0,0,.22);
}

body.page3_1 .scroll-down:hover,
body.page3_2 .scroll-down:hover,
body.page3_3 .scroll-down:hover {
  background: #b574e9;
}

.scroll-down:active {
  transform: translateX(-50%) scale(0.98);
}

.scroll-down:focus{
  outline: none;
}

/* Icon-Größe */
.scroll-down .material-icons {
  font-size: 20px;
  color: white;
}





.rechtliches {
  color: #000714;
  text-align: left;
}

footer {
    padding: 0 0;
}

footer .imprint {
    text-align: right;
    color: #022250;
}

footer .copyright {
    text-align: left;
    color: var(--secondary-color);
}

/* ===========================
   Mobile-Optimierung
   =========================== */

/* Tablet + Handy */
@media (max-width: 768px) {

  html, body {
    overflow-x: hidden;
  }

  body {
    font-size: 16px;
  }

    /* Body als Flex-Container nutzen */
  body.home,
  body.page2,
  body.page3,
  body.page3_1,
  body.page3_2,
  body.page3_3,
  body.page4,
  body.page5 {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
  }

  /* Haupt-Content (Header/Container) zur Mitte schieben */
  body.home > .header,
  body.page2 > .header,
  body.page3 > .header,
  body.page3_1 > .header,
  body.page3_2 > .header,
  body.page3_3 > .header,
  body.page4 > .header,
  body.page5 > .header,
  body.home > .container,
  body.page2 > .container,
  body.page3 > .container,
  body.page3_1 > .container,
  body.page3_2 > .container,
  body.page3_3 > .container,
  body.page4 > .container,
  body.page5 > .container {
      flex: 1 0 auto;
      display: flex;
      align-items: center;    /* vertikal mittig */
      justify-content: center;/* horizontal mittig */
      margin-top: 0;
      margin-bottom: 0;
  }

  /* Footer bleibt unten */
  footer {
      flex-shrink: 0;
      margin-top: 24px;
      margin-bottom: 24px;
  }

  .row {
    padding-left: 10px;
    padding-right: 10px;
  }

  .header {
    min-height: 70vh;
    /*display: flex;*/
    justify-content: center;
    align-items: center;
    margin: 0;
  }

  .hero {
    padding: 0px;
  }
  .header-image,
  .header-image-fix {
 /*   max-height: 60vh;    Bildhöhe auf kleineren Geräten begrenzen */
    margin-top: 120px;
  }

  .textbox{
    margin: 0px 10px;
  }

  .container,
  div .container {
    max-width: fit-content;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Slideshow auf mobile anpassen */
  .slideshow-container {
    max-width: 100%;
    height: 60vh;       /* statt fester 800px – passt sich der Höhe des Viewports an */
    max-height: none;
    margin-top: 30px;
    min-height: 70vh;
  }

  .mySlides {
    height: 100%;
  }

  .mySlides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  /* Navigation-Buttons sollen gut erreichbar bleiben */
  .prev,
  .next {
    padding: 10px;
    font-size: 16px;
  }

  /* Dots etwas größer & mit Abstand */
  .dot {
    width: 12px;
    height: 12px;
    margin: 0 4px;
  }

  .scroll-down {
  display: none;

}

  /* Footer: zentrieren auf kleinen Screens */
  footer .imprint,
  footer .copyright {
    text-align: center;
    font-size: 14px;
    margin-bottom: 5px;
  }
}

/* Sehr kleine Handys */
@media (max-width: 480px) {

  .header {
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .slideshow-container {
    height: 50vh;
    margin-top: 20px;
  }

  .prev,
  .next {
    font-size: 14px;
    padding: 8px;
  }
}
