/*
 * Stile fuer die responsive Ausstellung-Website
 *
 * Die Gestaltung orientiert sich am gelieferten Plakat. Als Schriftarten
 * kommen Jost (fuer den Titel) sowie Raleway (fuer Datum, Untertitel und
 * Fliesstext) zum Einsatz. Farben und Abstaende wurden so gewaehlt, dass
 * die Gestaltung sowohl auf grossen Monitoren als auch auf mobilen
 * Geraeten harmonisch wirkt.
 */

@font-face {
  font-family: 'Lineal';
  src: url('../fonts/lineal/Lineal-Regular.woff2') format('woff2'),
       url('../fonts/lineal/Lineal-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Lineal';
  src: url('../fonts/lineal/Lineal-Thin.woff2') format('woff2'),
       url('../fonts/lineal/Lineal-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
}

@font-face {
  font-family: 'Rethink';
  src: url('../fonts/Rethink/RethinkSans-Regular.woff2') format('woff2'),
       url('../fonts/Rethink/RethinkSans-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Apoc';
  src: url('../fonts/Apoc/Apoc-Revelations-Trial-HairlineItalic.woff2') format('woff2'),
       url('../fonts/Apoc/Apoc-Revelations-Trial-HairlineItalic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --font-heading: 'Lineal', sans-serif;
  --font-text: 'Rethink', sans-serif;
  --font-numbers: 'Apoc', serif;
  --color-green: #00d86a;
  --color-black: #000000;
  --color-bg: #E7E7E7;

  /* Typografie-Skala (1.25 Ratio - Major Third) */
  --text-xs: 0.8rem;      /* 12.8px */
  --text-sm: 0.9rem;      /* 14.4px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.125rem;    /* 18px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.5rem;      /* 24px */
  --text-2xl: 1.875rem;   /* 30px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 3rem;       /* 48px */
  --text-5xl: 4rem;       /* 64px */
  --text-hero: 6rem;      /* 96px */

  /* Responsive Typografie mit clamp() */
  --heading-1: clamp(2rem, 4vw + 1rem, 3rem);       /* H1: 32px → 48px */
  --heading-2: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); /* H2: 24px → 36px */
  --heading-3: clamp(1.25rem, 2vw + 0.5rem, 1.875rem); /* H3: 20px → 30px */
  --heading-4: clamp(1.125rem, 1.5vw + 0.5rem, 1.5rem); /* H4: 18px → 24px */
  --text-body: clamp(1rem, 0.5vw + 0.9rem, 1.125rem); /* Body: 16px → 18px */
  --text-small: clamp(0.875rem, 0.3vw + 0.8rem, 1rem); /* Small: 14px → 16px */

  /* Hero Typography - Fluid scaling across all breakpoints */
  --hero-date: clamp(2.5rem, 3vw + 1rem, 4.5rem);             /* 40px → 72px (größer als Subtitle) */
  --hero-subtitle: clamp(1.75rem, 2vw + 0.75rem, 3rem);       /* 28px → 48px (größer als H2) */
  --hero-title: clamp(2rem, 4vw + 1rem, 8rem);                /* 32px → 128px */
  --hero-claim: clamp(0.875rem, 1.2vw + 0.5rem, 2.5rem);      /* 14px → 40px */

  /* Spacing-Skala (8px Basis) */
  --space-1: 0.25rem;     /* 4px */
  --space-2: 0.5rem;      /* 8px */
  --space-3: 0.75rem;     /* 12px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.5rem;      /* 24px */
  --space-6: 2rem;        /* 32px */
  --space-7: 2.5rem;      /* 40px */
  --space-8: 3rem;        /* 48px */
  --space-9: 4rem;        /* 64px */
  --space-10: 5rem;       /* 80px */

  /* Container-Padding (responsiv) */
  --container-padding: clamp(1rem, 3vw, 2rem);
}

/* Globales Reset und Grundlayout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Outlines entfernen für aktive/geklickte Elemente */
*:focus,
*:active {
  outline: none;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  font-family: var(--font-text);
  color: var(--color-black);
  background-color: var(--color-bg);
  display: flex;
  overflow-x: hidden; /* Verhindert horizontales Scrollen durch Parallax-Pflanzen */
  flex-direction: column;
  min-height: 100vh;
}

/* Hero-Bereich */
.hero {
  position: relative;
  flex: 1 0 auto;
  height: 100vh;
  min-height: 600px;
  background-color: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1rem;
}

/* Pflanzen-Hintergrund mit Opazitaet */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    url('../bg-assets/Minze.svg'),
    url('../bg-assets/Lavendel.svg'),
    url('../bg-assets/Kamille.svg'),
    url('../bg-assets/Akelei.svg');
  background-size:
    350px auto,  /* Minze - oben links */
    280px auto,  /* Lavendel - oben rechts */
    400px auto,  /* Kamille - unten links */
    450px auto;  /* Akelei - unten rechts */
  background-position:
    left -50px top 50px,      /* Minze - oben links */
    right -30px top 30px,     /* Lavendel - oben rechts */
    left -80px bottom -50px,  /* Kamille - unten links */
    right -80px bottom -50px; /* Akelei - unten rechts */
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Datum links oben */
.info {
  position: fixed;
  z-index: 4;
  color: var(--color-black);
  font-family: var(--font-text);
}

.info-left {
  top: 10rem;
  left: 2rem;
}

.info-right {
  top: 10rem;
  right: 2rem;
  text-align: left;
}

/* Hero typography - uses CSS custom properties for smooth scaling */
.date {
  font-size: var(--hero-date);
  line-height: 1.2;
}

.date-numbers {
  font-family: var(--font-numbers);
  font-weight: normal;
  font-style: normal;
}

.date-month {
  font-family: var(--font-heading);
  font-weight: normal;
  font-style: normal;
  text-transform: uppercase;
}

.date-year {
  font-family: var(--font-numbers);
  font-weight: normal;
  font-style: normal;
}

h1.subtitle {
  font-family: var(--font-heading);
  font-size: var(--hero-subtitle);
  font-weight: 100; /* Thin */
  line-height: 1.2;
  display: inline-block;
  text-transform: uppercase;
  max-width: 400px; /* Begrenzt die Breite fuer beide Sprachen */
  margin: 0;
}

/* Zentraler Inhalt */
.center-wrapper {
  position: relative;
  text-align: center;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Horizontales Logo ersetzt Stern und flora Logo */
.logo-horizontal {
  display: flex;
  width: clamp(240px, 40vw + 100px, 692px);
  height: auto;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.title {
  font-family: var(--font-heading);
  font-size: var(--hero-title);
  font-weight: normal;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}

.claim {
  font-family: var(--font-heading);
  font-size: var(--hero-claim);
  font-weight: normal;
  margin-top: 0.2rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.05rem;
  max-width: 500px; /* Begrenzt die Breite fuer beide Sprachen */
}

.claim-line-left {
  text-align: left;
  white-space: nowrap;
  align-self: flex-start;
  font-size: var(--hero-claim);
}

.claim-line-right {
  text-align: right;
  white-space: nowrap;
  align-self: flex-end;
  font-size: var(--hero-claim);
}

/* Hauptinhalt */
.main-content {
  flex: 1;
  width: 100%;
  max-width: none; /* Ueberschreibt generisches main max-width */
  background-color: var(--color-bg);
  position: relative;
  overflow: clip; /* Schneidet Parallax-Pflanzen ab ohne Scroll zu blockieren */
}

/* Hintergrund-SVG Assets */
.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    url('../bg-assets/Minze.svg'),
    url('../bg-assets/Lavendel.svg'),
    url('../bg-assets/Kamille.svg'),
    url('../bg-assets/Akelei.svg');
  background-size:
    350px auto,  /* Minze - oben links */
    280px auto,  /* Lavendel - oben rechts */
    400px auto,  /* Kamille - unten links */
    450px auto;  /* Akelei - unten rechts */
  background-position:
    left -50px top 50px,      /* Minze - oben links */
    right -30px top 30px,     /* Lavendel - oben rechts */
    left -80px bottom -50px,  /* Kamille - unten links */
    right -80px bottom -50px; /* Akelei - unten rechts */
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

.content-wrapper {
  position: relative;
  z-index: 2;
  width: 95%;
  max-width: clamp(1400px, 85vw, 2400px); /* Skaliert mit Bildschirmbreite */
  margin: 0 auto;
  padding: 0 2rem;
}

/* =====================================================
   Ausstellungsbeschreibung - Gruener Kreis
   ===================================================== */
.exhibition-description {
  width: 834px;
  height: 834px;
  flex-shrink: 0;
  background-color: #C5FD79;
  margin-top: 140px; /* Abstand zum Logo flora */
  margin-left: auto;
  margin-right: auto; /* Zentriert das Element */
  border-radius: 50%; /* Macht es zu einem Kreis */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3; /* Ueber den Pflanzen-Hintergrund */
  background-image: none; /* Keine Pflanzen-SVGs im Kreis */
  text-align: left; /* Text linksbuendig */
  /* Entry animation - starts scaled down */
  transform: scale(0.85);
  opacity: 0.7;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.6s ease;
}

/* Animated state when in view */
.exhibition-description.is-visible {
  transform: scale(1);
  opacity: 1;
}

/* Content fade in with delay */
.exhibition-description .section-title,
.exhibition-description .description-text {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.exhibition-description.is-visible .section-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.exhibition-description.is-visible .description-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--heading-2);
  font-weight: normal;
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 2rem;
  color: var(--color-black);
}

.description-text {
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: 1.8;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 4; /* Ueber dem Kreis-Hintergrund */
}

.description-text p {
  margin-bottom: 1.5rem;
}

/* Standort und Oeffnungszeiten */
.location-hours {
  padding: 3rem 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.location-info, .opening-hours {
  background-color: transparent;
  padding: 2rem;
  text-align: center;
  min-width: 300px;
}

.location-info h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.location-info p {
  font-family: var(--font-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

.opening-hours h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.opening-hours p {
  font-family: var(--font-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Kooperationspartner */
.partners {
  padding: 3rem 0;
  text-align: left;
}

.partners h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--color-black);
}

.partner-logos, .sponsor-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
  width: 100%;
}

/* Divider Line zwischen Partners und Sponsors */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-black);
  margin: 2rem 0;
  opacity: 0.3;
}

/* Text-basierte Partner/Sponsor Fallback */
.partner, .sponsor {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  font-family: var(--font-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-black);
  min-width: 200px;
  text-align: center;
}

/* Logo-basierte Partner/Sponsor Styles */
.partner-logo-link,
.sponsor-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
}

.partner-logo-link:hover,
.sponsor-logo-link:hover {
  opacity: 1;
  transform: scale(1.05);
}

.partner-logo-link:focus,
.sponsor-logo-link:focus {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Pollen particles container */
.pollen-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 10;
}

/* Individual pollen particle */
.pollen {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, #f0e68c 0%, #daa520 50%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  animation: pollenFloat 1.5s ease-out forwards;
}

@keyframes pollenFloat {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(0) scale(0.5);
  }
  20% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-60px) translateX(var(--drift-x, 10px)) scale(1);
  }
}

/* Pollen color variations */
.pollen:nth-child(odd) {
  background: radial-gradient(circle, #98fb98 0%, #729818 50%, transparent 70%);
}

.pollen:nth-child(3n) {
  animation-duration: 1.8s;
  width: 4px;
  height: 4px;
}

.pollen:nth-child(5n) {
  animation-duration: 1.2s;
  width: 8px;
  height: 8px;
}

.partner-logo,
.sponsor-logo {
  height: auto;
  width: 100%;
  max-height: 70px;
  object-fit: contain;
}

/* Parallax Plant Layers */
.parallax-plant {
  will-change: transform;
}

/* Hide CSS background plants when JS parallax is active */
.hero.has-parallax::before,
.main-content.has-parallax::before {
  display: none;
}

.parallax-plant--minze {
  width: 350px;
}

.parallax-plant--lavendel {
  width: 280px;
}

.parallax-plant--kamille {
  width: 400px;
}

.parallax-plant--akelei {
  width: 450px;
}

/* Parallax plants on tablet/mobile - repositioned */
@media (max-width: 900px) {
  .parallax-plant {
    opacity: 1;
  }

  /* Minze - oben links, kleiner */
  .parallax-plant--minze {
    width: 150px !important;
    left: -30px !important;
    top: 20px !important;
  }

  /* Lavendel - oben rechts, kleiner */
  .parallax-plant--lavendel {
    width: 120px !important;
    right: -20px !important;
    top: 80px !important;
  }

  /* Kamille - unten links */
  .parallax-plant--kamille {
    width: 180px !important;
    left: -40px !important;
    bottom: 100px !important;
    top: auto !important;
  }

  /* Akelei - unten rechts */
  .parallax-plant--akelei {
    width: 200px !important;
    right: -50px !important;
    bottom: 50px !important;
    top: auto !important;
  }
}

/* Fusszeile */
.site-footer {
  flex-shrink: 0;
  padding: 1rem 2rem;
  background-color: var(--color-bg);
  text-align: center;
  font-size: 0.9rem;
  position: relative;
  z-index: 3;
}

.site-footer nav a {
  color: var(--color-black);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

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

.site-footer nav a.active {
  font-weight: 600;
  color: var(--color-green);
  text-decoration: underline;
}

.site-footer nav a.active:hover {
  color: var(--color-black);
}

.language-switch {
  font-weight: 600;
  color: var(--color-green);
  text-decoration: none;
}

.language-switch:hover {
  text-decoration: underline;
}

.sep {
  color: var(--color-black);
}

/* Header Logo fuer Unterseiten */
.logo-header {
  padding: 1rem 2rem;
  background-color: var(--color-bg);
  border-bottom: 1px solid #e0e0e0;
}

.logo-header a {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  padding: 0 2rem;
}

.header-logo {
  width: 60px;
  height: auto;
  display: block;
}

.header-logo:hover {
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* Unterseiten */
main {
  flex: 1;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.6;
  font-size: 1rem;
}

main h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1rem;
}

main p {
  margin-bottom: 1.5rem;
}

main h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page {
  padding: 4rem 2rem;
  background-color: var(--color-bg);
}

.legal-page .content-wrapper {
  width: 95%;
  max-width: clamp(1400px, 85vw, 2400px);
  margin: 0 auto;
  background-color: transparent;
  padding: 3rem 2rem;
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: normal;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--color-black);
  text-align: center;
}

.legal-page .text h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: normal;
  text-transform: uppercase;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-black);
}

.legal-page .text h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: normal;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--color-black);
}

.legal-page .text h4 {
  font-family: var(--font-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--color-black);
}

.legal-page .text p {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
  color: var(--color-black);
}

.legal-page .text a {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.legal-page .text a:hover {
  color: var(--color-black);
  text-decoration: underline;
}

.legal-page .text ul,
.legal-page .text ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.legal-page .text li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
}

/* =====================================================
   Responsive - Tablet (900px)
   Hero typography scales smoothly via CSS custom properties
   NO fixed font-size overrides for .date, h1.subtitle, .title, .claim
   ===================================================== */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden;
  }

  /* Main-content bekommt das 16px seitliche Padding */
  .main-content {
    padding: 0 1rem;
  }

  /* Content-wrapper innerhalb main-content - kein extra Padding */
  .main-content .content-wrapper {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Gruener Kreis - kein seitliches Padding (kommt vom Parent) */
  .exhibition-description {
    position: relative;
    width: 100%;
    min-height: 400px;
    margin-top: clamp(30px, 5vh, 60px); /* Reduzierter Abstand */
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    opacity: 0.7;
    transition: opacity 0.6s ease;
  }

  /* Text-Container im Kreis - zentriert, Text links */
  .exhibition-description .section-title,
  .exhibition-description .description-text {
    width: 100%;
    max-width: 500px;
    text-align: left;
    margin: 0 auto; /* Container zentriert */
  }

  /* Kreis als Pseudo-Element */
  .exhibition-description::before {
    content: '';
    position: absolute;
    width: 100vw;  /* Passt zum Viewport */
    height: 100vw;
    background-color: #C5FD79;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .exhibition-description.is-visible {
    opacity: 1;
  }

  .exhibition-description.is-visible::before {
    transform: translate(-50%, -50%) scale(1);
  }

  .hero {
    padding: 0 1rem; /* 16px side padding */
  }

  .hero .info-left {
    top: 6rem;
    left: 1rem;
    text-align: left;
  }

  .hero .info-right {
    top: 6rem;
    right: 1rem;
    text-align: right;
  }

  h1.subtitle {
    display: block;
    /* font-size scales via var(--hero-subtitle) - no override needed */
    line-height: 1.0;
    max-width: 400px;
  }

  .date {
    /* font-size scales via var(--hero-date) - no override needed */
    display: block;
    margin-bottom: 0.5rem;
  }

  /* .title, .claim, .claim-line-left, .claim-line-right
     all scale via CSS custom properties - no fixed overrides */

  /* Logo scales via clamp() - no fixed override needed */

  /* Tablet: Zentriertes horizontales Logo */
  .center-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding-top: 10px;
  }

  /* Section title anpassen */
  .section-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
  }

  .description-text {
    font-size: 1.1rem;
    line-height: 1.7;
  }
}

/* Desktop: Zentriertes horizontales Logo */
@media (min-width: 769px) {
  .center-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 30px;
  }

  /* Desktop: Subtitle right aligned */
  .info-right {
    text-align: right;
  }
}

/* Tablet zu Laptop Uebergang: Dynamische Skalierung zwischen 768px und 1024px */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Logo scales via clamp() - no override needed */

  /* Claim width adjustment - font-size handled by CSS custom property */
  .claim {
    width: min(450px, 40vw); /* Gleiche Breite wie horizontales Logo */
    min-width: 320px;
  }
}

/* Laptop und groessere Bildschirme: Layout-Anpassungen */
@media (min-width: 1024px) {
  h1.subtitle {
    max-width: max(450px, 35vw); /* Skaliert mit der Bildschirmbreite */
  }

  /* Claim width adjustment - font-size handled by CSS custom property */
  .claim {
    width: min(500px, 35vw); /* Gleiche Breite wie das Logo */
    min-width: 350px; /* Gleiche Mindestbreite wie das Logo */
  }

  /* Alignment korrigieren */
  .center-wrapper {
    align-items: center;
  }

  .logo-container {
    align-items: center;
    justify-content: center;
  }
}

/* Ab 1440px: Layout-Anpassungen */
@media (min-width: 1440px) {
  .claim {
    width: 500px; /* Feste Breite ab 1440px */
  }
}

/* 4K und sehr grosse Bildschirme */
@media (min-width: 2560px) {
  h1.subtitle {
    max-width: max(500px, 35vw); /* Noch mehr Platz fuer 4K */
  }
}

/* =====================================================
   Responsive - Mobile (480px)
   Hero typography scales smoothly via CSS custom properties
   ===================================================== */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  .hero .info-left {
    position: static;
    width: 100%;
    text-align: left;
    margin-bottom: 1rem;
    padding: 0;
    box-sizing: border-box;
  }

  .hero .info-right {
    position: static;
    width: 100%;
    text-align: right;
    margin-bottom: 1rem;
    padding: 0;
    box-sizing: border-box;
  }

  .hero .info-right h1.subtitle {
    max-width: none;
    display: block;
  }

  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 5rem; /* Platz fuer Navigation */
    min-height: auto;
    height: auto;
    padding-bottom: 2rem;
  }

  /* Hero Hintergrund auf Mobile reduzieren */
  .hero::before {
    background-size:
      150px auto,
      120px auto,
      180px auto,
      200px auto;
    opacity: 0.5;
  }

  .info-left {
    order: 1;
  }

  .info-right {
    order: 2;
    margin-bottom: 2rem;
  }

  .center-wrapper {
    order: 3;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding-top: 0px;
  }

  /* Mobile styles for new content */
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
  }

  .description-text {
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0;
    text-align: center;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Hero Date und Subtitle - use CSS custom properties, only adjust max-width */
  h1.subtitle {
    max-width: 320px;
  }

  .description-text p {
    margin-bottom: 1rem;
  }

  /* Content-wrapper innerhalb main-content - kein extra Padding */
  .main-content .content-wrapper {
    padding: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Gruener Kreis - kein seitliches Padding (kommt vom Parent) */
  .exhibition-description {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-top: clamp(40px, 8vh, 80px); /* Mehr Abstand - Kreis ragt in Viewport */
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    /* Entry animation */
    opacity: 0.7;
    transition: opacity 0.6s ease;
  }

  /* Kreis als Pseudo-Element */
  .exhibition-description::before {
    content: '';
    position: absolute;
    width: 130vw;  /* Größer für bessere Text-Abdeckung */
    height: 130vw;
    background-color: #C5FD79;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    z-index: -1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .exhibition-description.is-visible {
    opacity: 1;
  }

  .exhibition-description.is-visible::before {
    transform: translate(-50%, -50%) scale(1);
  }

  .location-hours {
    flex-direction: column;
    padding: 2rem 0;
    gap: 1.5rem;
  }

  .location-info, .opening-hours {
    min-width: auto;
    width: 100%;
    margin: 0;
    padding: 1.5rem 1rem;
  }

  .location-info h3 {
    font-size: 1.3rem;
  }

  .location-info p,
  .opening-hours p {
    font-size: 1rem;
  }

  .opening-hours h4 {
    font-size: 1.1rem;
  }

  .partner-logos, .sponsor-logos {
    flex-direction: column;
    gap: 1.5rem;
  }

  .partner, .sponsor {
    min-width: auto;
    width: 100%;
  }

  .partner-logo-link,
  .sponsor-logo-link {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .partner-logo,
  .sponsor-logo {
    max-height: 50px;
  }

  /* Partners section mobile */
  .partners {
    padding: 2rem 0;
    text-align: center;
  }

  .partners h4 {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  /* Legal pages mobile styles */
  .legal-page {
    padding: 2rem 1rem;
  }

  .legal-page .content-wrapper {
    padding: 2rem 1.5rem;
    width: 100%;
  }

  .legal-page h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }

  .legal-page .text h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  .legal-page .text h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
  }

  .legal-page .text ul,
  .legal-page .text ol {
    margin-left: 1.5rem;
  }

  /* Footer mobile */
  .site-footer {
    padding: 1rem;
    font-size: 0.85rem;
  }

  .site-footer nav a {
    margin: 0 0.3rem;
    font-size: 0.85rem;
  }
}

/* =====================================================
   Extra Small Devices (360px and below)
   ===================================================== */
@media (max-width: 360px) {
  .section-title {
    font-size: 1.5rem;
  }

  .description-text {
    font-size: 0.95rem;
  }

  .exhibition-description {
    min-height: 350px;
    padding: 2rem 0;
    margin-top: clamp(30px, 6vh, 60px); /* Scroll-Hinweis */
  }

  .exhibition-description::before {
    width: 140vw;  /* Reduziert von 160vw */
    height: 140vw;
  }

  /* Hero typography continues to scale via CSS custom properties */
  h1.subtitle {
    max-width: 280px;
  }

  .claim {
    max-width: 260px;
  }
}

/* =====================================================
   Landscape Mobile
   ===================================================== */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    height: auto;
    padding: 4rem 1rem 2rem;
  }

  .exhibition-description {
    min-height: 300px;
    margin-top: 40px; /* Scroll-Hinweis */
  }

  .exhibition-description::before {
    width: 100vw;  /* Passt besser zu Landscape */
    height: 100vw;
  }

  .info-left,
  .info-right {
    position: static;
  }
}

/* =====================================================
   Touch Device Optimizations
   ===================================================== */
@media (hover: none) and (pointer: coarse) {
  /* Groessere Touch-Targets */
  .nav-menu__link {
    padding: 0.75rem 1rem;
  }

  .partner-logo-link,
  .sponsor-logo-link {
    padding: 0.5rem;
  }

  /* Keine Hover-Effekte auf Touch-Geraeten */
  .partner-logo-link:hover,
  .sponsor-logo-link:hover {
    transform: none;
  }
}

/* =====================================================
   Reduced Motion
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .exhibition-description,
  .exhibition-description::before,
  .exhibition-description .section-title,
  .exhibition-description .description-text,
  .nav-menu__item {
    transition: none;
    animation: none;
  }

  .exhibition-description {
    opacity: 1;
  }

  .exhibition-description::before {
    transform: translate(-50%, -50%) scale(1);
  }

  .exhibition-description .section-title,
  .exhibition-description .description-text {
    opacity: 1;
    transform: translateY(0);
  }
}
