/* ===============================================================
   GRUPPE 0 ------ GLOBAL RESET + BASISLAYOUT
=============================================================== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: #fff;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
  color: var(--schriftfarbe);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

*, *::before, *::after {
  box-sizing: inherit;
}

main {
  flex: 1;
}

p {
  color: var(--schriftfarbe);
}

/* ===============================================================
   GRUPPE 1 ----- ZENTRALE VARIABLEN & TYPOGRAFIE
=============================================================== */
:root {
  /* ===============================================================
     FARBEN
  =============================================================== */
  --hauptfarbe: #226688;       /* Blau für Kacheln / Akzente */
  --hoverfarbe: #44a6c6;       /* Hover-Akzent */
  --schriftfarbe: #666666;     /* Standardtext */
  --headlinefarbe: #fff;       /* Hero-Überschriften (weiß) */
  --footerfarbe_1: #f0f0f0;
  --footerfarbe_2: #e0e0e0;

  /* ===============================================================
     HERO / ÜBERSCHRIFTEN
  =============================================================== */
  --hero-schriftgroesse: 2.3rem;

  /* Überschriftenfarben (zentrale Steuerung) */
  --h1-farbe: var(--headlinefarbe);
  --h2-farbe: var(--schriftfarbe);
  --h3-farbe: var(--headlinefarbe);
  --h4-farbe: var(--headlinefarbe);

  /* Überschriftengrößen */
  --h1-groesse: 3rem;
  --h2-groesse: 2rem;
  --h3-groesse: 2rem;
  --h4-groesse: 1.3rem;

  /* Letter-Spacing (Buchstabenabstand) */
  --h1-spacing: 2px;
  --h2-spacing: 1.5px;
  --h3-spacing: 1px;
  --h4-spacing: 0.5px;

  /* ===============================================================
     SONSTIGES
  =============================================================== */
  --bildbreite: 420px;          /* Bildbreite für Hoffnung-Section + Home-Seite */

  /* ===============================================================
     ABSTANDS-VARIABLEN
  =============================================================== */
  --abstand-xs: 5px;            /* sehr kleiner Abstand */
  --abstand-s: 10px;            /* klein */
  --abstand-m: 20px;            /* mittel */
  --abstand-l: 40px;            /* groß */
  --abstand-xl: 80px;           /* sehr groß */
  
  /* Einheitlicher Abstand zwischen Sammlung-Sections */
  --sammlungs-abstand: 60px;
}

/* ===============================================================
   GRUPPE 2 ----- ZENTRALE ÜBERSCHRIFTENSTEUERUNG (h1 bis h4)
=============================================================== */
h1 {
  color: var(--h1-farbe);
  font-size: var(--h1-groesse);
  letter-spacing: var(--h1-spacing);
  line-height: 1.2;
}

h2 {
  color: var(--h2-farbe);
  font-size: var(--h2-groesse);
  letter-spacing: var(--h2-spacing);
  line-height: 1.3;
}

h3 {
  color: var(--h3-farbe);
  font-size: var(--h3-groesse);
  letter-spacing: var(--h3-spacing);
  line-height: 1.3;
}

h4 {
  color: var(--h4-farbe);
  font-size: var(--h4-groesse);
  letter-spacing: var(--h4-spacing);
  line-height: 1.4;
}



/* ===============================================================
   GRUPPE 3 ----- HEADER + NAVIGATION
=============================================================== */

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 15px 25px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  margin-left: 83px;
  margin-top: 5px;
}

.logo img {
  width: 131px;
  height: auto;
  display: block;
}

/* Zentrale Navigation */
nav#main-nav {
  position: relative;
  right: 50px;   /* Abstand der Steuerung von rechts */
}

nav#main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav#main-nav ul li a {
  text-decoration: none;
  color: var(--schriftfarbe);
  font-weight: 500;
  font-size: 1.1em;
  transition: color .3s;
}

nav#main-nav ul li a:hover {
  color: var(--hoverfarbe);
}

nav#main-nav ul li a.active {
  color: var(--hauptfarbe);
    /* font-weight: 600; */
}

/* ===============================================================
   GRUPPE 4 ----- HERO-BEREICH
=============================================================== */

/* Container & Struktur */
.hero-fullwidth {
  width: 100%;
  background-color: var(--hauptfarbe);
  overflow: hidden;
}

.hero-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  height: auto; /* automatisch, nicht fix */
}

.hero-image {
  flex: 1 1 50%;
  background: url("https://lostgen.art/fotos/banner.webp") center center / cover no-repeat;
  height: 330px;
}

.hero-text {
  flex: 1 1 50%;
  background-color: var(--hauptfarbe);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 40px 70px;
  box-sizing: border-box;
}

/* Textgestaltung im Hero */
.hero-text h3 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  color: #e0e0e0;
  margin-bottom: 12px;
  opacity: 0.95;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #f8f8f8;
  margin-bottom: 50px;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Hero-Button Standardzustand */
.hero-button {
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  background-color: transparent !important;
  text-decoration: none !important;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.hero-button:visited,
.hero-button:active,
.hero-button:focus {
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  background-color: transparent !important;
  text-decoration: none !important;
  outline: none !important;
}

.hero-button:hover {
  background-color: rgba(255, 255, 255, 0.85) !important;
  color: #226688 !important;
  border: 1px solid #226688 !important;
  text-decoration: none !important;
}

/* ===============================================================
   HERO - Responsive Breakpoints
=============================================================== */

/* iPad & Tablets (700-1024px) */
@media (min-width: 700px) and (max-width: 1024px) {
  .hero-text { padding: 35px 50px; }
  .hero-text h1 { font-size: var(--hero-schriftgroesse, 1.5rem); margin-bottom: 40px; }
  .hero-text h3 { font-size: 1rem; }
  .hero-button { padding: 10px 20px; font-size: 0.95em; }
}

/* Smartphones & kleine Geräte (bis 699px) */
@media (max-width: 699px) {
  .hero-row { flex-direction: column; height: auto; }
  .hero-image { height: 220px; }
  .hero-text {
    padding: 30px 25px;
    text-align: center;
    align-items: center;
  }
  .hero-text h1 { font-size: var(--hero-schriftgroesse, 1.5rem); margin-bottom: 30px; }
  .hero-text h3 { font-size: 1rem; }
  .hero-button { padding: 9px 18px; font-size: 0.9em; }
}

/* Ultra-kleine Geräte (unter 400px) */
@media (max-width: 400px) {
  .hero-text h1 { font-size: 1.3rem; }
  .hero-text h3 { font-size: 0.9rem; }
}

/* Mobile & Tablet Farbkorrektur H1 */
@media (max-width: 1024px) {
  .hero-text h1 {
    color: var(--headlinefarbe) !important;
    -webkit-text-fill-color: var(--headlinefarbe) !important;
  }
}

/* Bildhöhe iPad (feinjustiert) */
@media (max-width: 820px) {
  .hero-image { min-height: 280px; }
}

/* iPhone Portrait (max 480px) */
@media (max-width: 480px) {
  .hero-row { flex-direction: column; height: auto; }
  .hero-image, .hero-text { flex: 1 1 100%; width: 100%; height: auto; }
  .hero-text { text-align: center; align-items: center; padding: 30px 20px; }
  .Sammlungscontainer_f { flex-direction: column; align-items: center; gap: 25px; }
  .hoffnung-container { flex-direction: column; align-items: center; gap: 20px; }

  /* Dynamische Anpassung H1 & H3 */
  .hero-text h1 {
    font-size: calc(var(--h1-groesse) * 0.80);
    line-height: 1.1;
    letter-spacing: calc(var(--h1-spacing) * 0.8);
  }
  .hero-text h3 {
    font-size: calc(var(--h3-groesse) * 0.9);
    line-height: 1.2;
    letter-spacing: calc(var(--h3-spacing) * 0.9);
  }
}

/* iPhone Landscape (481-700px) */
@media (min-width: 481px) and (max-width: 700px) {
  .hero-text h1 {
    font-size: calc(var(--h1-groesse) * 0.7);
    line-height: 1.15;
    letter-spacing: calc(var(--h1-spacing) * 0.9);
  }
  .hero-text h3 {
    font-size: calc(var(--h3-groesse) * 1.0);
    line-height: 1.25;
    letter-spacing: calc(var(--h3-spacing) * 1.0);
  }
}

/* ===============================================================
   HERO - iPad Portrait (701-1024px)
   Ursprüngliche Größen + Korrektur für Text & Bild
=============================================================== */
@media (min-width: 701px) and (max-width: 1024px) {

  /* Bildhöhe anpassen, damit Text nicht darüber hinausragt */
  .hero-image {
    min-height: 360px; /* größer als vorher 280px, harmonisch mit Text */
  }

  /* H1 Überschrift */
  .hero-text h1 {
    font-size: calc(var(--h1-groesse) * 0.85);
    line-height: 1.25;             /* korrigierte Zeilenhöhe */
    letter-spacing: calc(var(--h1-spacing) * 1.1);
  }

  /* H3 Unterüberschrift */
  .hero-text h3 {
    font-size: calc(var(--h3-groesse) * 1.05); /* leicht verkleinert */
    line-height: 1.3;
    letter-spacing: calc(var(--h3-spacing) * 1.1);
  }

  /* Hero-Text Padding */
  .hero-text {
    padding: 35px 50px;
  }

  /* Hero-Button Anpassung */
  .hero-button {
    padding: 10px 20px;
    font-size: 0.95em;
  }
}

/* Desktop ab 1025px */
@media (min-width: 1025px) {
  .hero-text h1 {
    font-size: var(--h1-groesse);
    line-height: 1.2;
    letter-spacing: var(--h1-spacing);
  }
  .hero-text h3 {
    font-size: var(--h3-groesse);
    line-height: 1.3;
    letter-spacing: var(--h3-spacing);
  }
}

/* ===============================================================
   BANNER ( für alle Seiten )
=============================================================== */

/* Gemeinsame Banner-Grundstruktur */
.hero-banner,
.hero-banner-imp,
.hero-banner-sam,
.hero-banner-bio {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.hero-banner img,
.hero-banner-imp img,
.hero-banner-sam img,
.hero-banner-bio img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  max-height: 300px;
}

/* ===============================================================
   MOBILE VERSIONEN (bis 600px) – iPhone-sicher
=============================================================== */
@media (max-width: 600px) {

  /* Sammlung – mobil */
  .hero-banner-sam img {
    display: none !important;
  }
  .hero-banner-sam {
    background-image: url("https://lostgen.art/fotos/banner1-m.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    height: 220px !important;
  }

  /* Impressum – mobil */
  .hero-banner-imp img {
    display: none !important;
  }
  .hero-banner-imp {
    background-image: url("https://lostgen.art/fotos/banner3-m.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    height: 220px !important;
  }

  /* Biographie – mobil */
  .hero-banner-bio img {
    display: none !important;
  }
  .hero-banner-bio {
    background-image: url("https://lostgen.art/fotos/banner2-m.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    height: 220px !important;
  }

  /* Home (falls vorhanden) – mobil */
  .hero-banner img {
    display: none !important;
  }
  .hero-banner {
    background-image: url("https://lostgen.art/fotos/banner-m.webp") !important;
    background-size: cover !important;
    background-position: center !important;
    height: 220px !important;
  }
}

/* ===============================================================
   TABLET (601–992px)
=============================================================== */
@media (min-width: 601px) and (max-width: 992px) {
  .hero-banner img,
  .hero-banner-imp img,
  .hero-banner-sam img,
  .hero-banner-bio img {
    max-height: 260px;
  }
}

/* ===============================================================
   HOME – Desktop + Mobil, ohne Variablen
=============================================================== */

/* Desktop */
.hero-image {
  background-image: url("https://lostgen.art/fotos/banner.webp");
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;
}

/* Mobile (bis 600px) – iPhone-sicher */
@media (max-width: 600px) {
  .hero-image {
    background-image: url("https://lostgen.art/fotos/banner-m.webp") !important;
    height: 220px !important;
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 992px) {
  .hero-image {
    height: 260px;
  }
}


/* ===============================================================
   GRUPPE 5 ----- KACHELN + TEXTBEREICHE
=============================================================== */
/* Wrapper & Container */
.kachel-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.Sammlungscontainer_f {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 40px;
  text-align: left;
}

/* Einzelne Kacheln */
.kachel {
  flex: 1 1 30%;
  text-align: left;
  box-sizing: border-box;
}

.kachel-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 35px 30px 30px 30px;
  border-bottom: 1px solid transparent;
  height: 200px;
  width: 100%;
  color: #fff;
  font-size: 1.4em;
  line-height: 1.3;
  font-weight: 500;
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  margin-bottom: 20px !important;
}

.kachel-box p {
  font-size: 1em;
  line-height: 1.3;
  text-align: left;
  hyphens: none;
  margin: 0;
  color: inherit;
}

/* Headlines */
.kachel-headline {
  font-size: 1.6em;
  color: var(--schriftfarbe);
  font-weight: 600;
  margin: 0 0 6px 15px;
  text-align: left;
}

.kachel-subheadline {
  font-size: 1.3em;
  color: var(--schriftfarbe);
  font-weight: 400;
  margin: 0 0 10px 15px;
  line-height: 1.4;
  text-align: left;
}

/* Buttons */
.mehr-button,
.mehr-button:visited,
.mehr-button:active,
.mehr-button:focus {
  background-color: #226688 !important;
  color: #ffffff !important;
  padding: 5px 18px;
  border-radius: 20px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  margin-left: 13px;
  margin-top: 10px;
}

.mehr-button:hover {
  background-color: #1a4f66 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

.mehr-button1,
.mehr-button1:visited,
.mehr-button1:active,
.mehr-button1:focus {
  background-color: #226688 !important;
  color: #ffffff !important;
  padding: 5px 18px;
  border-radius: 20px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: none;
  margin-left: 0;
  margin-top: 10px;
}

.mehr-button1:hover {
  background-color: #1a4f66 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Card Content */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

/* ===============================================================
   RESPONSIVE LAYOUT
=============================================================== */

/* Drei Spalten ab 700px */
@media (min-width: 700px) {
  .Sammlungscontainer_f {
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  .Sammlungscontainer_f .kachel {
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
  }
}

/* Kachel-Abstand kleiner für iPad / kleine Desktops */
@media (max-width: 1000px) {
  .kachel-headline {
    font-size: 1.4em;
  }
}

/* iPad / iPhone Landscape (600–800px) */
@media (max-width: 800px) and (min-width: 600px) {
  .Sammlungscontainer_f {
    gap: 20px;
  }
  .Sammlungscontainer_f .kachel {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
  .kachel-box {
    font-size: 1.2em;
    padding: 25px 20px 15px 20px;
  }
}

/* Mobile Geräte (max 700px) */
@media (max-width: 700px) {
  .kachel-headline {
    font-size: 1.4em;
  }
}



/* ===============================================================
   GRUPPE 6 ------ HOFFNUNG-SEKTIONEN - Grundlayout
=============================================================== */
.hoffnung-section {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px;
  line-height: 1.6;
  box-sizing: border-box;
}

.hoffnung-section + .hoffnung-section {
  margin-top: -10px;
}

.hoffnung-section h2 {
  font-size: 2.5em;
  font-weight: 400; /* FUNKTIONIERT NICHT */
  text-align: left;
  color: var(--schriftfarbe);
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

h2.rechts {
  text-align: right;
}

/* Container: Text + Bild nebeneinander */
.hoffnung-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  min-width: 0;
}

/* Textbereich */
.hoffnung-text {
  flex: 1 1 0%;
  min-width: 0;
  text-align: justify;
  hyphens: auto;
  line-height: 1.5;
  position: relative;
}

.hoffnung-text p {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 300; /* bleibt so */
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Bildbereich */
.hoffnung-bild {
  flex: 0 0 var(--bildbreite);
  max-width: var(--bildbreite);
  text-align: center;
  margin-top: 5px;
  box-sizing: border-box;
}

.hoffnung-bild img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  display: block;
  margin: 0 auto 5px auto;
}

.hoffnung-bildtext {
  margin-top: 4px;
  font-size: 0.9em !important;
  color: #555;
  text-align: center;
  line-height: 1.4;
}

/* ===============================================================
   HOFFNUNG - Responsive Layout
=============================================================== */

/* Smartphones & kleine Geräte */
@media (max-width: 700px) {
  .hoffnung-bild {
    flex: 0 0 auto;
    width: 100%;
    max-width: 90%;
    margin-bottom: 5px;
  }
}

 /* Kleinere Ueberschrift fuer iPad */
@media (max-width: 1024px) {
.hoffnung-section h2 {       font-size: 30px;
               color: #666666;
         font-family: 'arial';
      letter-spacing: 2.0px; 
            }
        }

 /* Kleinere Ueberschrift fuer iPhone */
@media (max-width: 420px) {
.hoffnung-section h2 {       font-size: 24px;
                color: #666666;
         font-family: 'arial';
       letter-spacing: 2.0px; 
            }
        }
/* ===============================================================
   GRUPPE 2: SECTIONS & LAYOUT HOFFNUNG (Impressum + Biographien)
   -> Abstände jetzt zentral über Pixelwerte
=============================================================== */

:root {
    --section-abstand-oben: 40px;    /* funktioniert nicht */
    --section-abstand-unten: 50px;  /* ABSTAND ZWISCHEN DEN SCTIONS - INDEX SEITE */
    --h2-abstand-unten: 40px;           /* ABSTAND ZWISCHEN  ÜBERSCHRIFT UND TEXT - INDEX-SEITE */
}

/* Einheitliche Abstände für die Sections */
.hoffnung-section {
    margin-top: var(--section-abstand-oben);
    margin-bottom: var(--section-abstand-unten);
    padding-top: 0;
    padding-bottom: 0;
}

/* H2-Abstände neutralisieren */
.hoffnung-section h2 {
    margin-top: 0;
    margin-bottom: var(--h2-abstand-unten);
}

/* Bootstrap-Abstände neutralisieren */
.hoffnung-container {
    margin: 0;
    padding: 0;
}

.hoffnung-text,
.hoffnung-bild {
    margin: 0;
    padding: 0;
}

/* Bild-Abstand eliminieren */
.hoffnung-bild img {
    display: block;
    margin: 0;
    padding: 0;
}

/* Abstand zwischen Banner und Überschrift (topfix) */
.hoffnung-section.topfix {
  padding-top: var(--abstand-xl) !important;
  margin-top: 0 !important;
  padding-bottom: calc(var(--abstand-l) / 2) !important;
}

/* Überschriften in Sections */
.hoffnung-section.topfix h2 {
  margin-top: 0;
  padding-bottom: var(--abstand-s);
  margin-bottom: var(--abstand-l);
}      
        
        
        
/* ===============================================================
   iOS / Safari: Absicherung für H2-Farben (ein Block)
   (verhindert, dass Safari alte / falsche Farben rendert)
=============================================================== */
@supports (-webkit-touch-callout: none) {
  /* H2 überall korrekt dunkel anzeigen */
  h2,
  .hoffnung-section h2 {
    color: var(--schriftfarbe) !important;
    -webkit-text-fill-color: var(--schriftfarbe) !important;
    opacity: 0.9999; /* erzwingt Repaint in Safari */
  }

  /* Hero-H1/H3 bleiben weiß (Headlinefarbe) */
  .hero-fullwidth .hero-text h1,
  .hero-fullwidth .hero-text h3 {
    color: var(--headlinefarbe) !important;
    -webkit-text-fill-color: var(--headlinefarbe) !important;
    opacity: 0.9999;
  }
}

/* =======================================================================================================================================
   GRUPPE 1: STRUKTUR UND BANNER
=============================================================== */

body {
  display: block; /* ersetzt das bisherige flex-Layout, das Abstand erzeugt */
}

.header {
  margin: 0;
  margin-bottom: 7px; /* Abstand zwischen Logo und Banner */
  padding: 0;
  background-color: #fff;
}

.nav-container {
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ===============================================================
   HOFFNUNG - DREISPALTIGES LAYOUT ( Biographien )
=============================================================== */
.hoffnung-container.dreispaltig a {
  color: var(--schriftfarbe);
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 300;
  text-decoration: none;
}
.hoffnung-container.dreispaltig a:hover {
  color: var(--hoverfarbe);
  text-decoration: underline;
}

.hinweis {
  margin-top: var(--abstand-l);
  font-size: 1.2em;
  line-height: 1.4;
  font-weight: 300;
  color: var(--schriftfarbe);
  text-align: center;
}

.hoffnung-container.dreispaltig {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: start;
  box-sizing: border-box;
  padding-left: 20px;   /* alte Einrückung links */
  padding-right: 20px;  /* symmetrisch rechts */
}

.hoffnung-container.dreispaltig .hoffnung-text {
  text-align: justify;
  line-height: 1.5;
}

/* Absätze und Listen */
.hoffnung-container.dreispaltig .hoffnung-text ul {
  padding-left: 1em;
  margin: 0;
}

.hoffnung-container.dreispaltig .hoffnung-text li {
  margin-bottom: 0.5em;
}

/* ===============================================================
   RESPONSIVE
=============================================================== */

/* Tablet Landscape / mittlere Geräte: 3 Spalten erhalten */
@media (min-width: 701px) and (max-width: 1000px) {
  .hoffnung-container.dreispaltig {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

/* Tablets / kleine Laptops (zwischen 1001px und 1199px) */
@media (min-width: 1001px) and (max-width: 1199px) {
  .hoffnung-container.dreispaltig {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Smartphones: einspaltig */
@media (max-width: 700px) {
  .hoffnung-container.dreispaltig {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}






/* ===============================================================
   TYPOGRAFIE INNERHALB DER SECTIONS
=============================================================== */
.hoffnung-text h3 {
  font-size: 1.4em;
  color: var(--schriftfarbe);
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===============================================================
   SMARTPHONE (bis 600px): Portrait
=============================================================== */
@media (max-width: 600px) {
  .hoffnung-container .hoffnung-text {
    width: 100%;
    padding-left: 0 !important;
    margin-left: 0 !important;
    text-align: center;
  }
}

/* ===============================================================
   HOFFNUNG - ZWEISPALTIGES LAYOUT (Impressum)
=============================================================== */
.hoffnung-container.zweispaltig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  box-sizing: border-box;
}

.hoffnung-container.zweispaltig .hoffnung-text {
  text-align: justify;
  hyphens: auto;
  line-height: 1.5;
}

/* Linke Spalte bündig unter Überschrift */
.hoffnung-container.zweispaltig .hoffnung-text:first-child {
  text-align: left;
  margin-left: 0;
  padding-left: 0;
}

/* Absätze */
.hoffnung-container.zweispaltig .hoffnung-text p {
  margin: 0 0 1em 0;
  font-size: 1.2em;
}

/* ===============================================================
   RESPONSIVE – TABLET & MOBILE
=============================================================== */

/* Tablets: kleiner Abstand, Schrift leicht kleiner */
@media (min-width: 601px) and (max-width: 1000px) {
  .hoffnung-container.zweispaltig {
    gap: 25px;
  }
  .hoffnung-container.zweispaltig .hoffnung-text p {
    font-size: 1.1em;
  }
}

/* Smartphones: einspaltig, zentriert */
@media (max-width: 600px) {
  .hoffnung-container.zweispaltig {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
  }
  .hoffnung-container.zweispaltig .hoffnung-text {
    text-align: left;
  }
}

/* ===============================================================
   GRUPPE 5: SAMMLUNGSSEITEN – GRUNDLAYOUT & ABSTÄNDE
=============================================================== */
main > .hoffnung-section.sammlung,
main > .hoffnung-section.topfix {
  margin-top: 0px !important;
  ...
}

.hoffnung-section.sammlung + .hoffnung-section.topfix,
.hoffnung-section.topfix + .hoffnung-section.sammlung {
  margin-top: 50px !important;
}

/* =========================================================
   SAMMLUNG GRID – Basislayout (3 Spalten)
========================================================= */
.sammlungs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
  justify-items: center;
}

/* =========================================================
   RESPONSIVE ANPASSUNGEN
========================================================= */

/* Tablet (max. 999px) – exakt 2 Spalten */
@media (max-width: 999px) {
  .sammlungs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Smartphone (max. 600px) – 1 Spalte */
@media (max-width: 600px) {
  .sammlungs-grid {
    grid-template-columns: 1fr;
  }
}

.sammlung-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 300px;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.sammlung-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sammlung-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid #ddd;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.sammlung-card:hover img {
  transform: scale(1.05);
}

.hoffnung-section .sammlung-content h3 {
  font-size: 2.0rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: var(--schriftfarbe) !important;
}

.hoffnung-section .sammlung-content p {
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 1.2rem 0;
  color: var(--schriftfarbe);
}

.hoffnung-section .sammlung-content .werke {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--schriftfarbe) !important;
}

.sammlung-content {
  padding: 1.8rem 1.5rem 1.8rem 2.5rem;
  color: var(--schriftfarbe);
  line-height: 1.5;
}

.sammlungs-grid {
  gap: 36px !important;
}

section.hoffnung-section.sammlung {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

section.hoffnung-section.sammlung + section.hoffnung-section.sammlung {
  margin-top: 36px !important;
}

section.hoffnung-section.sammlung:last-of-type {
  margin-bottom: 36px !important;
}

/* =========================================================
   ?? SAMMLUNGSBEREICH – ENDVERSION (Checkpunkt 3)
   Bereinigt, sortiert, stabil und mit iPhone-Portrait-Regel
   Stand: 13.11.2025
========================================================= */
body.sammlung main > section.hoffnung-section.topfix + section.hoffnung-section.sammlung {
  margin-top: var(--sammlungs-abstand) !important;
}

body.sammlung main > section.hoffnung-section.sammlung + section.hoffnung-section.sammlung {
  margin-top: var(--sammlungs-abstand) !important;
}

body.sammlung main > section.hoffnung-section.sammlung:last-of-type {
  margin-bottom: var(--sammlungs-abstand) !important;
}

body.sammlung main > section.hoffnung-section.topfix {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* =========================================================
   SAMMLUNG GRID – BASISLAYOUT (3 Spalten)
========================================================= */
.sammlungs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.8rem;
  justify-items: center;
  margin: 0 auto;
  max-width: 1200px;
}

.sammlung-card {
  width: 100%;
  max-width: 300px; /* Standardbreite Desktop */
}

/* =========================================================
   RESPONSIVE ANPASSUNGEN – iPhone & iPad
========================================================= */

/* iPhone Portrait – 1 Kachel (bis 600px) */
@media (max-width: 600px) and (orientation: portrait) {
  .sammlungs-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }
  .sammlung-card {
    width: 90%;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* iPhone Landscape – 3 Spalten (600–849px) */
@media (min-width: 600px) and (max-width: 849px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
  }
  .sammlung-card {
    width: 100%;
    max-width: 200px;
  }
}

/* iPad Portrait – 3 Spalten breiter (850–1024px) */
@media (min-width: 850px) and (max-width: 1024px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten behalten */
    gap: 2rem;                             /* Abstand leicht verkleinert */
    justify-items: center;
    max-width: 960px;                       /* Container etwas schmaler */
    margin: 0 auto;
  }
  .sammlung-card {
    width: 100%;
    max-width: 350px;                       /* Stellschraube für breitere Kacheln */
  }
}

/* iPad Landscape / kleine Desktops – 3 Spalten (1025–1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
  .sammlung-card {
    width: 100%;
    max-width: 280px;
  }
}

/* Große Desktops – 3 Spalten (ab 1367px) */
@media (min-width: 1367px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.8rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .sammlung-card {
    width: 100%;
    max-width: 300px;
  }
}


/* =========================================================
   4?? iOS / SAFARI-SPEZIALFIX
   ? behebt abgeschnittene Kacheln im Landscape-Modus
   ? sicher zu behalten (harmlos für andere Geräte)
========================================================= */

@supports (-webkit-touch-callout: none) {
  @media screen and (orientation: landscape) and (max-width: 900px) {
    html, body {
      height: -webkit-fill-available !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
    }

    .sammlungs-grid {
      height: auto !important;
      overflow: visible !important;
      padding-bottom: 0 !important; /* kein zusätzlicher Abstand nötig */
    }
  }
}

/* =========================
   Responsive: Tablet / iPad
   Breakpoints: 1024px & 768px
   ========================= */

/* abwärts von großen Desktop-Breiten */
@media (max-width: 1024px) {

  /* reduzierte Section-Abstände */
  .hoffnung-section {
    margin-top: 30px;    /* weniger Abstand oben */
    margin-bottom: 30px; /* weniger Abstand unten */
    padding: 24px 16px;
  }

  /* Kachel-Layout enger machen */
  .Sammlungscontainer_f {
    gap: 28px;
  }

  .kachel {
    flex: 1 1 45%; /* zwei Spalten, wenn Platz vorhanden */
  }

  .kachel-box {
    padding: 28px 22px 24px 22px;
    height: 190px;
  }

  /* Hoffnungs-Container: erlauben zu umbrechen */
  .hoffnung-container {
    flex-wrap: wrap;
    gap: 22px;
    align-items: stretch;
  }

  .hoffnung-bild {
    flex: 0 0 38%;
    max-width: 38%;
    margin-top: 0;
  }

  .hoffnung-text {
    flex: 1 1 58%;
  }

  /* Button / Pfeil größer an Touch-Geräten */
  .mehr-button,
  .hero-button {
    padding: 10px 16px;
    touch-action: manipulation;
  }
}

/* speziell schmalere Tablets / große Smartphones */
@media (max-width: 768px) {

  .hoffnung-section {
    margin-top: 22px;
    margin-bottom: 22px;
    padding: 18px 14px;
  }

  .hoffnung-section h2 {
    font-size: 1.9em;
    margin-bottom: 14px;
  }

  /* Kacheln untereinander (eine Spalte) */
  .Sammlungscontainer_f {
    gap: 18px;
  }

  .kachel {
    flex: 1 1 100%;
  }

  .kachel-box {
    height: 200px;
    padding: 22px;
  }

  /* Hoffnungs-Container: Bild über/unter dem Text */
  .hoffnung-container {
    flex-direction: column;
    gap: 14px;
  }

  .hoffnung-bild,
  .hoffnung-bild img {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .hoffnung-text {
    flex: 1 1 auto;
  }

  /* Schrift leicht verkleinern für bessere Lesbarkeit */
  .hoffnung-text p,
  .kachel-box p {
    font-size: 1.05em;
    line-height: 1.45;
  }

  /* scroll-to-top Button Position anpassen */
  #scroll-to-top {
    right: 16px;
    bottom: 50px;
  }
}

/* ===============================================================
   GRUPPE 8 ----- MEHR-PFEIL ( auf Homeseite )
=============================================================== */
.arrow-btn {
  --laenge: 5em;
  --dicke: 0.15em;
  --hover-groesse: 1.5em;
  --hover-font: "Arial";
  --hover-weight: bold;
  --pfeil-steilheit: 0.7; /* 1 = normal, <1 = steiler, >1 = flacher */
   float: right;

  position: relative;
  display: inline-block;
  background: white;
  padding: 0.3em 0.6em;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Pfeil */
.arrow-btn svg {
  width: var(--laenge);
  height: calc(var(--dicke) * 12);
  stroke: #666;
  stroke-width: var(--dicke);
  fill: none;
  transition: opacity .2s ease;
  display: block;
}

/* Pfeilspitze skalierbar */
.arrow-btn svg polyline {
  transform-origin: 100% 10px; /* Spitze als Transformationspunkt */
  transform: scaleX(var(--pfeil-steilheit));
}

/* Hover-Text */
.arrow-btn .mehr-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;

  font-size: var(--hover-groesse);
  font-family: var(--hover-font);
  font-weight: var(--hover-weight);
}

/* Hover-Effekt */
.arrow-btn:hover svg {
  opacity: 0;
}
.arrow-btn:hover .mehr-text {
  opacity: 1;
}



/* ===============================================================
   NEUER MEHRPFEIL AUF DER HOME
=============================================================== */
.pfeil {
    /* Ausgangsschriftgröße bleibt klein (damit die Zeilenhöhe nicht beeinflusst wird) */
    font-size: 1em; 
    
    /* Notwendig, damit transform funktioniert */
    display: inline-block; 
    
    /* Beide Transformationen in einer einzigen Zeile kombinieren: */
    /* Skaliert den Pfeil und verschiebt ihn gleichzeitig vertikal um -5px */
    transform: scale(2.5) translateY(-0.23rem); 
        
    /* Zentriert den Pfeil optisch (hilft bei der Grundausrichtung) */
    vertical-align: middle;

    /* Abstand hinzufügen */
    margin-left: 1.5rem; 
    margin-right: 0.5rem; 
}

.kachel-subheadline {
    margin-right: 0; 
    line-height: 1.4;
}

/* 1. Standardfarbe (Ruhezustand) setzen */

/* Wir wählen das A-Tag, das sich im Kachel-Subheadline befindet, aus */
.kachel-subheadline a {
    color: #888; /* Standardfarbe Grau */
    text-decoration: none; /* Entfernt Unterstreichung */
}

/* 2. Hover-Farbe (wenn die Maus über dem Link ist) */
/* Diese Regel wird angewendet, wenn das A-Tag gehovert wird */
.kachel-subheadline a:hover {
    color: #226688; /* Farbe bei Hover (Dunkelblau/Türkis) */
}













/* ===============================================================
   GRUPPE 9 ----- BUTTON FÜR AUSSTLLUNGSFÜHRER  ( thema01.hmtl )
=============================================================== */
.ausstellungsfuehrer-min.kompakt {
  background-color: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 1.6em 1em;
  margin: 2em auto;
  max-width: 580px;
  font-family: "Georgia", "Times New Roman", serif;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ausstellungsfuehrer-min.kompakt h3 {
  color: #2f2f2f;
  font-size: 1.35em;
  margin-bottom: 0.4em;
}

.ausstellungsfuehrer-min.kompakt .beschreibung {
  color: #4a4a4a;
  font-size: 0.95em;
  line-height: 1.5;
  max-width: 500px;
  margin: 0 auto 1.2em;
}

.download-button-min {
  display: inline-block;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 0.6em 1.1em;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.download-button-min:hover {
  background-color: #555;
  transform: translateY(-2px);
}

.lizenztext-min {
  font-size: 0.8em;
  color: #666;
  margin-top: 1.2em;
}

.lizenztext-min a {
  color: #555;
  text-decoration: underline;
}

/* ===============================================================
   GRUPPE 10 ----- BUTTON - ( Hochscrollen - alle Seiten )
=============================================================== */
.dmtop {
    background-color: #226688;
    z-index: 100;
    width: 50px;
    height: 50px;
    line-height: 47px;
    position: fixed;
    bottom: -100px;
    border-radius: 3px;
    right: 50px;
    text-align: center;
    font-size: 28px;
    color: #ffffff !important;
    cursor: pointer;
    -webkit-transition: all .7s ease-in-out;
    -moz-transition: all .7s ease-in-out;
    -o-transition: all .7s ease-in-out;
    -ms-transition: all .7s ease-in-out;
    transition: all .7s ease-in-out;
}
/* Entfernt Unterstrich / Fokus-Rahmen beim Klick auf den rauf-Button */
.dmtop:focus,
.dmtop:active {
    outline: none !important;
    text-decoration: none !important;
}
.dmtop::-moz-focus-inner {
    border: 0 !important;
}

/* Entfernt Hover-/Active-/Focus-Unterstreichungen beim Scroll-Top-Button */
.dmtop,
.dmtop:hover,
.dmtop:focus,
.dmtop:active,
.dmtop:visited,
.dmtop:visited:hover {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}


/* testfeld */

/* =========================================================
   RESPONSIVE ANPASSUNGEN – iPhone & iPad
========================================================= */

/* iPhone Portrait – 1 Kachel (bis 600px) */
@media (max-width: 600px) and (orientation: portrait) {
  .sammlungs-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
  }
  .sammlung-card {
    width: 90%;
    max-width: 380px;
    margin: 0 auto;
  }
}

/* iPhone Landscape – 3 Spalten (600–849px) */
@media (min-width: 600px) and (max-width: 849px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
  }
  .sammlung-card {
    width: 100%;
    max-width: 200px;
  }
}

/* iPad Portrait – 3 Spalten breiter (850–1024px) */
@media (min-width: 850px) and (max-width: 1024px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 Spalten behalten */
    gap: 2rem;                             /* Abstand leicht verkleinert */
    justify-items: center;
    max-width: 960px;                       /* Container etwas schmaler */
    margin: 0 auto;
  }
  .sammlung-card {
    width: 100%;
    max-width: 450px;                       /* Stellschraube für breitere Kacheln */
  }
}

/* iPad Landscape / kleine Desktops – 3 Spalten (1025–1366px) */
@media (min-width: 1025px) and (max-width: 1366px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
  }
  .sammlung-card {
    width: 100%;
    max-width: 280px;
  }
}

/* Große Desktops – 3 Spalten (ab 1367px) */
@media (min-width: 1367px) {
  .sammlungs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.8rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .sammlung-card {
    width: 100%;
    max-width: 300px;
  }
}