/* ==========================================================================
   1. FONTS & BASIC STYLES
   Basis: 1rem = 16px (Browser-Default). Typo & Nav/Filter in rem;
   Layout-Anker (Bildhöhen, Sticky, Borders) bleiben in px.
   ========================================================================== */
@font-face {
  font-family: 'Lato-Regular';
  src: url('/fonts/Lato-Regular.woff2') format('woff2'),
       url('/fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

@font-face {
  font-family: 'Walter Turncoat';
  src: url('/fonts/WalterTurncoat.woff2') format('woff2'),
       url('/fonts/WalterTurncoat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  font-size: 100%; /* 1rem ≈ 16px */
}

body {
  margin: 0;
  color: #777;
  font-family: "Lato-Regular", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

h3 {
  font: 700 1.5625rem/1.3 "Lato-Bold", sans-serif; /* 25px */
  color: #000;
}

.header {
  background-color: #333;
  text-align: center;
}

.setclear {
  clear: both;
}

.header-text {
  margin: 0; /* h1-Standardabstand neutralisieren */
  font-family: "Walter Turncoat", serif;
  font-weight: 500;
  font-style: normal;
  font-size: 9.375rem; /* 150px Desktop */
  line-height: 1.1;
  padding: 2.5rem 1.25rem;
  color: #fff;
  background-color: #333;
  text-align: center;
}
 
/* Das Bildelement bestimmt die feste Höhe */
div.content-image {
  width: 100%;
  height: 450px; 
}
 
div.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* Proportionales Ausfüllen */
     
  /* NEU: Zentriert die X-Achse, fixiert die Y-Achse ganz oben */
  object-position: center top;
}

/* ==========================================================================
   2. NAVIGATION & SUB-NAVIGATION (FIXIERT IN EINEM BLOCK)
   Desktop-Look: horizontal in einer Zeile. em-Skalierung + kompakteres
   Padding auf schmalen Screens, damit alles sichtbar bleibt.
   ========================================================================== */
.navigation-header-container {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #333;
  opacity: 0.75;
  z-index: 99;
  padding-bottom: 0.625em;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Hauptnavigation */
#navbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.3125em 0.5em;
  border-bottom: none;
}

#navbar::-webkit-scrollbar {
  display: none;
}

#navbar a {
  flex: 0 0 auto;
  display: block;
  color: white;
  text-align: left;
  padding: 0.3125em 1.25em;
  text-decoration: none;
  white-space: nowrap;
  font: 400 1.5625em/1.4 "Lato-Regular", sans-serif;
  /* Platz für die Linie reservieren – Text springt nicht nach oben */
  border-bottom: 3px dotted transparent;
  box-sizing: border-box;
  transition: color 0.35s ease, border-bottom-color 0.35s ease;
}

#navbar a:hover,
#navbar a.active {
  color: #f35110;
  border-bottom-color: #f35110;
}

/* Subnavigation */
.subnav-container {
  width: 100%;
}

#subnavbar {
  overflow: hidden;
  padding: 0.3125em 0.5em;
  position: relative;
}

#subnavbar::-webkit-scrollbar {
  display: none;
}

#subnavbar .subnav-page {
  display: none;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

#subnavbar .subnav-page.is-active {
  display: flex;
}

#subnavbar a {
  flex: 0 0 auto;
  display: block;
  color: white;
  text-align: left;
  padding: 0.3125em 1.25em;
  text-decoration: none;
  white-space: nowrap;
  font: 400 1.25em/1.75 "Lato-Regular", sans-serif;
  border-bottom: 3px dotted transparent;
  box-sizing: border-box;
  transition: color 0.35s ease, border-bottom-color 0.35s ease;
}

#subnavbar a:hover,
#subnavbar a.active {
  color: #f35110;
  border-bottom-color: #f35110;
}

/* Punkte nur sichtbar, wenn JS mehr als eine Seite erkennt */
.subnav-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0 0.55rem;
}

.subnav-dots[hidden] {
  display: none !important;
}

.subnav-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.subnav-dot.is-active {
  background: #f35110;
  border-color: #f35110;
}


/* ==========================================================================
   3. GALLERY FILTER BUTTONS
   ========================================================================= */
/* Ohne Nav bleibt der Filter näher am Viewport-Rand.
   Seiten mit .navigation-header-container behalten den JS-/Fallback-Wert. */
body:not(:has(.navigation-header-container)) {
  --filter-sticky-top: max(0.5rem, env(safe-area-inset-top, 0px));
}

.gallery-filter-container {
  position: sticky;
  top: var(--filter-sticky-top, 8rem); /* per JS = Nav-Höhe (mit/ohne Punkte) */
  display: flex !important;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto !important;
  padding: 1.25rem 0.75rem 0.75rem !important;
  width: 100% !important;
  clear: both !important;
  z-index: 100;
  background-color: transparent;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-filter-container::-webkit-scrollbar {
  display: none;
}

.gallery-filter-btn {
  flex: 0 0 auto;
  display: inline-block !important;
  padding: 0.375rem 1rem;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: #333;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  font-family: "Lato-Bold", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.gallery-filter-btn:hover {
  color: #fff;
  border-color: #f35110;
  background-color: #f35110;
}

.gallery-filter-btn.active {
  background-color: #f35110;
  color: #fff;
  border-color: #f35110;
}

/* ==========================================================================
   4. DIA-GALLERY (SAUBER, ORIGINALPROPORTIONEN & ABGERUNDETE ECKEN)
   ========================================================================== */
/* Der umschliessende Bereich */
.div-hg-bilder {
  display: grid;
  /* Flexibles Raster: Mindestens 130px breit für ca. 30% kleinere Vorschaubilder */
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  grid-gap: 15px;          /* Abstand leicht verringert, passend zu kleineren Bildern */
  background-color: #222;  
  padding: 40px 25px;
  clear: both;
  width: 100%;
  box-sizing: border-box;
}

/* Die einzelnen Dia-Kacheln */
.div-hg-bilder .dia {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background-color: #222;  
  aspect-ratio: 1 / 1; 
  border-radius: 5px;      
  overflow: hidden;        
  border: 1px solid #bbb;  
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover-Effekt: Dia hebt sich beim Drüberfahren leicht an */
.div-hg-bilder .dia:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.6);
}

/* Das echte HTML-Bild im Dia */
.div-hg-bilder .dia img {
  width: 100%;
  height: 100%;
  
  /* Zeigt das komplette Bild unskaliert und ohne Zoom an */
  object-fit: contain;       
  
  object-position: center; /* Zentriert das Bild im Dia-Rahmen */
  display: block;
}

/* ==========================================================================
   5. RESPONSIVE DESIGN (TABLET + PHONE)
   ========================================================================== */
@media screen and (max-width: 980px) {
  .navigation-header-container {
    font-size: 1rem;
    padding-bottom: 0.35rem;
  }

  #navbar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }

  #subnavbar {
    overflow: hidden !important;
  }

  #navbar a {
    float: none !important;
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0.35rem 0.75rem !important;
    white-space: nowrap !important;
    font: 400 1.75rem/1.3 "Lato-Regular", sans-serif !important; /* ~doppelt */
  }

  #subnavbar a {
    float: none !important;
    display: block !important;
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 0.3rem 0.65rem !important;
    white-space: nowrap !important;
    font: 400 1.15rem/1.3 "Lato-Regular", sans-serif !important;
  }

  .gallery-filter-container {
    top: var(--filter-sticky-top, calc(7.25rem - 2px));
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0.3rem;
    padding: 0.75rem 0.5rem !important;
    overflow-x: auto !important;
    background-color: transparent;
  }

  .gallery-filter-btn {
    flex: 0 0 auto !important;
    font-size: 0.7rem !important;
    padding: 0.28rem 0.55rem !important;
    margin: 0 !important;
    white-space: nowrap !important;
  }

  .header-text {
    font-size: clamp(3.2rem, 11vw, 5.5rem) !important; /* ~doppelt */
    padding: 0.85rem 0.75rem !important;
  }

  /* Hero bg1: flacher, proportional zur Breite */
  div.content-image {
    height: clamp(160px, 36vw, 280px) !important;
  }

  /* Overlay-Text auf schmalen Screens scrollbar */
  div.content-text.expanded {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  div.content-text.expanded .inner-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Mehr Dias nebeneinander */
  .div-hg-bilder {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)) !important;
    gap: 0.5rem !important;
    padding: 1.25rem 0.75rem !important;
  }
}

/* iPhone inkl. Pro Max (~430px) und ähnliche Phones */
@media screen and (max-width: 600px) {
  .navigation-header-container {
    padding-bottom: 0.3rem;
  }

  #navbar a {
    font: 400 1.3rem/1.25 "Lato-Regular", sans-serif !important; /* ~doppelt zu 0.7 */
    padding: 0.3rem 0.55rem !important;
  }

  #subnavbar a {
    font: 400 1rem/1.25 "Lato-Regular", sans-serif !important;
    padding: 0.25rem 0.5rem !important;
  }

  .gallery-filter-container {
    top: var(--filter-sticky-top, calc(6rem - 2px));
    justify-content: center !important;
    padding: 0.65rem 0.4rem !important;
    background-color: transparent;
  }

  .gallery-filter-btn {
    font-size: 0.62rem !important;
    padding: 0.22rem 0.45rem !important;
  }

  .header-text {
    font-size: 3.2rem !important; /* doppelt zu 1.6 */
    padding: 0.7rem 0.5rem !important;
  }

  div.content-image {
    height: clamp(130px, 34vw, 180px) !important;
  }

  /* Ziel: ca. 6 Vorschaubilder nebeneinander */
  .div-hg-bilder {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
    padding: 0.75rem 0.35rem !important;
  }

  .div-hg-bilder .dia {
    border-radius: 3px;
    border-width: 1px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  }

  div.content-text.expanded {
    padding: 1rem !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  div.content-text.expanded .close-trigger {
    z-index: 2;
  }

  div.content-text h2 {
    font: 400 1rem/1.3 "Lato-Regular", sans-serif !important;
  }

  div.content-text .inner-content {
    font: 400 0.85rem/1.45 "Lato-Regular", sans-serif !important;
  }

  /* Längerer Beschreibungstext scrollbar innerhalb des Panels */
  div.content-text.expanded .inner-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-right: 0.35rem;
    padding-top: 0.25rem;
  }
}

/* Full-Bleed behalten */
@media (max-width: 768px) {
  body, .main-container, .wrapper, #content {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
  }
}

/* ==========================================================================
   6. TEXTELEMENT & WRAPPER (EXAKTE DECKUNG ÜBER DEM BILD)
   ========================================================================== */
/* Der umschliessende Rahmen um Bild und Text */
.image-text-wrapper {
  position: relative; /* Wichtig für die absolute Positionierung des Textes */
  width: 100%;
  clear: both;
}

/* Das Bildelement bestimmt die feste Höhe (Desktop; Mobile überschreibt mit !important) */
div.content-image {
  width: 100%;
  height: 450px;
}

div.content-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Das Text-Element legt sich exakt über das Bild */
div.content-text {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%; /* Zwingt das Element auf exakt die gleiche Bildhöhe */
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.95); /* Leicht transparent */
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding 0.5s ease;
  overflow: hidden; /* BEIBEHALTEN: Schneidet überstehenden Text sauber ab */
  z-index: 10;
  font-family: "Lato-Regular", sans-serif;
}

/* Formatierung der Texte im Element */
div.content-text h2 {
  font: 400 1.5625rem/1.4 "Lato-Regular", sans-serif; /* 25px */
  color: #000;
  margin-top: 0;
  margin-bottom: 0.9375rem; /* 15px */
}

/* KORREKTUR: Spricht den nackten Text direkt im inner-content-Container an */
div.content-text .inner-content {
  color: #000;
  font: 400 1.25rem/1.75 "Lato-Regular", sans-serif; /* 20px / ~35px */
}

/* Zustand 1: Geschlossen (Schmaler Streifen ganz links auf dem Bild) */
div.content-text.collapsed {
  width: 60px;
  cursor: pointer;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.2);
}

/* WICHTIG: Inhalt im geschlossenen Zustand unsichtbar, aber PFEIL SICHTBAR */
div.content-text.collapsed .inner-content,
div.content-text.collapsed .close-trigger {
  opacity: 0;
  visibility: hidden;
  display: none; 
}

div.content-text.collapsed .expand-trigger {
  display: block !important;
}

/* Zustand 2: Expandiert (Legt sich komplett über das Bild) */
div.content-text.expanded {
  width: 100%;
  height: 100%;
  padding: 2.5rem 3.125rem; /* 40px 50px */
  cursor: default;
  background-color: rgba(255, 255, 255, 0.95);
}

/* Blendet den Inhalt weich ein, sobald offen */
div.content-text.expanded .inner-content {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease 0.2s;
}

div.content-text.expanded .close-trigger {
  display: block !important;
  opacity: 1;
  visibility: visible !important;
  
  position: absolute !important;
  top: 1.5625rem !important;
  right: 1.875rem !important;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;

  /* HTML-&times; ausblenden – X wird geometrisch gezeichnet */
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;

  transform-origin: 50% 50%;
  animation: x-vierteldrehung 8s ease-in-out infinite;
}

/* Zwei Balken durch die exakte Mitte → echtes X */
div.content-text.expanded .close-trigger::before,
div.content-text.expanded .close-trigger::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.14rem;
  height: 70%;
  background-color: #f35110;
  border-radius: 1px;
  transform: translate(-50%, -50%) rotate(45deg);
}

div.content-text.expanded .close-trigger::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Mobile: Position NACH der Desktop-Regel, sonst gewinnt Desktop wegen !important */
@media screen and (max-width: 600px) {
  div.content-text.expanded .close-trigger {
    top: 0.35rem !important;
    right: 0.45rem !important;
    width: 2.1rem;
    height: 2.1rem;
  }
}

div.content-text.expanded .expand-trigger {
  display: none !important; 
}

/* Der feine, pulsierende Pfeil (Zustand: Geschlossen) */
.expand-trigger {
  display: inline-block !important;      
  cursor: pointer;
  width: 25px;
  height: 25px;                          
  border-right: 2px solid #f35110 !important; 
  border-bottom: 2px solid #f35110 !important; 
  box-sizing: border-box;
  
  position: absolute !important;
  top: 50% !important;
  left: 14px !important;
  transform-origin: center center;
  
  font-size: 0 !important;
  color: transparent !important;
  
  /* Klassisches transform in Keyframes (scale/rotate-Properties funktionieren hier nicht) */
  animation: feiner-pfeil-pulsieren 2.8s ease-in-out infinite;
}


/* ==========================================================================
   7. INTERACTIVE ANIMATIONS (KEYFRAMES)
   ========================================================================== */
@keyframes feiner-pfeil-pulsieren {
  0%, 100% {
    transform: translateY(-50%) rotate(-45deg) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-50%) rotate(-45deg) scale(1.2);
    opacity: 1;
  }
}

@keyframes x-vierteldrehung {
  /* Quadrat dreht um 50%/50% – geometrisches X eiert nicht */
  0% { transform: rotate(0deg); }
  8% { transform: rotate(90deg); }
  25% { transform: rotate(90deg); }
  33% { transform: rotate(180deg); }
  50% { transform: rotate(180deg); }
  58% { transform: rotate(270deg); }
  75% { transform: rotate(270deg); }
  83% { transform: rotate(360deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   8. STARTSEITE - FIXE BANNER (LOGOBEREICH 1.5X SOWEIT WIE BILDER)
   ========================================================================== */

/* NEU: Trennung zwischen Smartphone (Standard) und Desktop (ab 1024px) */
   
   /* 1. STANDARD-EINSTELLUNG: Gilt für Smartphones (und Tablets) */
   html:has(body.home-page), 
   body.home-page {
     height: 100%;
     margin: 0;
     padding: 0;
     overflow: hidden;         /* Verhindert das Scrollen auf dem Smartphone */
     background-color: #333333; 
   }
   
   body.home-page {
     display: flex;
     flex-direction: column;
     height: 100vh; 
   }
   
   
   /* 2. ERWEITERUNG: Gilt NUR für Desktop-Bildschirme (ab 1024px Breite) */
   @media screen and (min-width: 1024px) {
     html:has(body.home-page) {
       overflow-y: auto;       /* Erlaubt vertikales Scrollen auf dem Desktop, falls nötig */
     }
     
     body.home-page {
       min-height: 1500px;     /* Erzwingt die gewünschte Mindesthöhe von 1500px */
       height: auto;           /* Löst die starre Bindung an die 100% Bildschirmhöhe auf */
       overflow-y: visible;    /* Macht den überstehenden Inhalt sichtbar und scrollbar */
     }
   }


/* 1. Logobereich (Hintergrundfarbe #333) - JETZT COMPAKTER */
body.home-page .home-header,
body.is-missing .home-header {
  background-color: #333333; 
  text-align: center;
  display: flex;
  align-items: center;     
  justify-content: center; 
  flex: 0.4 0 auto; /* Reduziert von 1.5 auf 0.8, um ca. 100px zu sparen */
  padding: 5px 0;   /* Padding verringert für zusätzliche Höhenreduktion */
  box-sizing: border-box;
}

body.home-page .home-logo,
body.is-missing .home-logo {
    display: block;
    width: 500px;    /* Vergrössertes SVG-Logo */
    max-width: 85%;  /* Schützt die Optik auf schmalen Displays */
    height: auto;
    padding-top: 20px;
}

body.is-missing a.home-header {
  text-decoration: none;
  color: inherit;
}

/* Umschliesser für alle Sektionen - NIMMT DEN GEWONNENEN PLATZ AUF */
body.home-page .home-banner-wrapper {
  display: flex;
  flex-direction: column;
  flex: 5.7 0 auto; /* Erhöht von 5 auf 5.7, fängt den Platz des Headers perfekt ab */
}

/* Die 5 Banner-Elemente (Alle exakt gleich hoch) */
body.home-page .home-banner {
  position: relative;
  flex: 1 0 auto; 
  background-size: cover;
  
  /* ANPASSUNG: Bilder oben fixieren statt mittig */
  background-position: center top; 
  
  overflow: hidden;
  text-decoration: none; 
  display: block;
}

/* Dezentes Overlay für die Lesbarkeit */
body.home-page .banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25); 
  transition: background 0.3s ease;
  z-index: 1;
}

/* Text-Zentrierung im Banner */
body.home-page .banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  z-index: 2;
}

/* Titel standardmässig WEISS */
body.home-page .banner-content h2 {
  font-family: 'Lato-Bold', sans-serif;
  font-size: 2.5rem; /* 40px */
  color: #ffffff; 
  margin: 0;
  letter-spacing: 0.0625rem; /* 1px */
  text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.3s ease, transform 0.3s ease;
}

/* HOVER-EFFEKT: Titel wird ORANGE beim Drüberfahren */
body.home-page .home-banner:hover .banner-content h2 {
  color: #f35110; 
  transform: scale(1.05); 
}

body.home-page .home-banner:hover .banner-overlay {
  background: rgba(0, 0, 0, 0.15); 
}

/* 2. Fusszeile / Über mich (Hintergrund ebenfalls #333) */
body.home-page .home-footer-section {
  text-align: center;
  padding: 1.25rem; /* 20px */
  background-color: #333333; 
  flex-shrink: 0;
}

/* Über mich Link standardmässig WEISS */
body.home-page .ueber-mich-link {
  display: inline-block;
  color: #ffffff; 
  font-size: 1.25rem; /* 20px */
  text-align: center;
  text-decoration: none;
  font-family: 'Lato-Bold', sans-serif;
  transition: color 0.3s ease;
  margin-top: 1.5625rem; /* 25px */
}

/* HOVER-EFFEKT FÜR ÜBER MICH: Schrift wird ORANGE */
body.home-page .ueber-mich-link:hover {
  color: #f35110; 
}

/* Entfernt jegliche verbleibenden CSS-Pfeile */
body.home-page .ueber-mich-link::after {
  content: "" !important;
  display: none !important;
}

/* Responsive Anpassung für Smartphones */
@media screen and (max-height: 700px) {
  html:has(body.home-page), 
  body.home-page {
    overflow: auto; 
  }
  body.home-page .home-banner {
    height: 120px; 
  }
}

/* ==========================================================================
 9. STYLING BEREICH FÜR ZWEITE BILD-GALERIE
 ========================================================================== */
 
.zweiter-galerie-block {
    background-color: #222;
    padding: 40px 0;
    margin-top: 0;
    border: none;
    clear: both;
    overflow: hidden;
}

/* Verhindert Lücken beim Hintergrundbild */
.zweiter-galerie-block .content-image {
    margin-top: 0;
    padding-top: 0;
}

.zweiter-galerie-block .content-image img {
    display: block;
    margin-top: 0;
    width: 100%; /* Sorgt dafür, dass das Hintergrundbild vollflächig bleibt */
}

/* Stellt sicher, dass Boxen nicht über den Bildschirmrand hinausragen */
* {
  box-sizing: border-box;
}

/* Container, der die volle Breite einnimmt */
.quote-container-full {
    width: 100%;
    background-color: #222; /* Hintergrundfarbe 222 */
    padding: 40px 0; /* Symmetrischer Abstand oben und unten */
    box-sizing: border-box;
}

/* Das Zitat im Container */
.quote-text-orange {
    color: #f35110;
    font-family: "Lato-Regular", sans-serif;
    font-size: clamp(1.25rem, 4.2vw, 2.6rem); /* kleiner auf schmalen Screens */
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    max-width: min(48rem, 88%);
    margin: 0 auto 2.5rem auto;
    text-wrap: balance;
}

@media (min-width: 1200px) {
    .quote-text-orange {
        max-width: min(58rem, 74%);
    }
}

@media (min-width: 1600px) {
    .quote-text-orange {
        max-width: min(66rem, 68%);
    }
}

/* NEU: Feine weisse horizontale Linie */
.fine-line {
    border: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    max-width: 600px;
    width: 80%;
    margin: 0 auto 2.5rem auto;
}

@media screen and (max-width: 600px) {
  .fine-line {
    width: 70%;
    max-width: 12rem;
  }
}

/* Der Beschreibungstext im Container */
.description-text-white {
    color: #ffffff; /* Textfarbe beschreibung weiss */
    font-family: "Lato-Regular", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: left; /* Angenehm lesbarer Fliesstext */
    max-width: 750px; 
    margin: 0 auto; 
    padding: 0 1.25rem; /* 20px */
}

.gallery-further {
  margin: 2rem auto 3rem;
  padding: 0 1.5rem;
  text-align: center;
  color: #f4efe6;
  font-size: 1rem;
}

.gallery-further a {
  color: #f35110;
  text-decoration: none;
}

.gallery-further a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   404
   ========================================================================== */
body.is-missing {
  background-color: #333;
  color: #f4efe6;
  min-height: 100svh;
}

.missing {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 8px 0 96px;
  text-align: center;
}

.missing-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
  line-height: 1;
  user-select: none;
}

.missing-code span {
  color: #fff;
  font: 700 clamp(180px, 33vw, 420px)/1 "Lato-Bold", sans-serif;
  letter-spacing: -0.04em;
}

.missing-code span:last-child {
  margin-left: calc(-8px - 0.034em);
}

.missing-code img {
  width: clamp(198px, 36vw, 420px);
  height: auto;
}

.missing h1 {
  margin: 0 0 12px;
  color: #fff;
  font: 700 2.5rem/1.1 "Lato-Bold", sans-serif;
}

.missing p {
  margin: 0;
}

.missing-text {
  color: #fff;
  font-size: min(1.375rem, calc((100vw - 64px) / 30.5));
  font-weight: 700;
  font-family: "Lato-Bold", sans-serif;
  line-height: 1.4;
  white-space: nowrap;
}

.missing-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px 32px;
  border: 0;
  background: #f35110;
  color: #fff;
  font: 700 1rem/1 "Lato-Bold", sans-serif;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.15s ease;
}

.missing-home:hover,
.missing-home:focus-visible {
  background: #ff6a2a;
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-4px);
}

.missing-home:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .missing-home {
    transition: none;
  }
  .missing-home:hover,
  .missing-home:focus-visible {
    transform: none;
  }
}

@media (max-width: 700px) {
  .missing-text {
    white-space: normal;
  }
}


