/*
 * Stile für die responsive Ausstellung‑Website
 *
 * Die Gestaltung orientiert sich am gelieferten Plakat. Als Schriftarten
 * kommen Jost (für den Titel) sowie Raleway (für Datum, Untertitel und
 * Fließtext) zum Einsatz. Farben und Abstände wurden so gewählt, dass
 * die Gestaltung sowohl auf grossen Monitoren als auch auf mobilen
 * Geräten 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: '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: #f1f3f0;
}

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

html, body {
  height: 100%;
}

body {
  font-family: var(--font-text);
  color: var(--color-black);
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero‑Bereich */
.hero {
  position: relative;
  flex: 1 0 auto;
  height: 100vh;
  min-height: 600px;
  background-image: url('background.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  padding: 1rem;
}

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

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

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

.date {
  font-size: 3rem;
  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;
}

.subtitle {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1.2;
  display: inline-block;
  text-transform: uppercase;
  max-width: 300px; /* Begrenzt die Breite für beide Sprachen */
}

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

.star {
  width: 250px;
  height: auto;
}

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

/* Logo – eingebettetes SVG für das Wort “flora” */
.logo {
  width: 400px;
  height: auto;
  display: block;
}

.claim {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  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 für beide Sprachen */
}

.claim-line-left {
  text-align: left;
  white-space: nowrap;
  align-self: flex-start;
  font-size: 2.5rem; /* Feste Größe für beide Sprachen */
}

.claim-line-right {
  text-align: right;
  white-space: nowrap;
  align-self: flex-end;
  font-size: 2.5rem; /* Feste Größe für beide Sprachen */
}

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

.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 für 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-title);
  font-size: 2rem;
  margin-bottom: 1rem;
}

main p {
  margin-bottom: 1.5rem;
}

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

@media (max-width: 768px) {
  .info-left {
    top: 1rem;
    left: 1rem;
    text-align: left;
  }
  .info-right {
    top: 1rem;
    right: 1rem;
    text-align: right;
  }
  .subtitle {
    display: block;
    font-size: 1.5rem;
    line-height: 1.0;
    max-width: 250px; /* Angepasst für mobile Geräte */
  }
  .date {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
  }
  .title {
    font-size: 2.5rem;
  }
  .claim {
    font-size: 1rem;
    max-width: 300px; /* Angepasst für mobile Geräte */
  }
  
  .claim-line-left,
  .claim-line-right {
    font-size: 1rem; /* Angepasst für mobile Geräte */
  }
  
  .star {
    width: 200px;
  }
  
  .logo {
    width: 250px;
  }
  
  /* Tablet: Star and logo side by side like desktop */
  .center-wrapper {
    flex-direction: row;
    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;
  }
  
  .star {
    align-self: center;
  }
}

/* Desktop: Star and logo side by side */
@media (min-width: 769px) {
  .center-wrapper {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  
  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding-top: 60px;
  }
  
  .star {
    align-self: center;
  }
  
  /* Desktop: Subtitle right aligned */
  .info-right {
    text-align: right;
  }
}

/* Tablet zu Laptop Übergang: Dynamische Skalierung zwischen 768px und 1024px */
@media (min-width: 768px) and (max-width: 1023px) {
  .logo {
    width: min(400px, 32vw); /* Skaliert zwischen Tablet und Laptop */
    min-width: 280px;
  }
  
  .star {
    width: min(280px, 22vw); /* Proportional zum Logo */
    min-width: 180px;
  }
  
  .claim {
    font-size: max(1.5rem, 2vw); /* Skaliert mit Viewport */
    width: min(400px, 32vw); /* Gleiche Breite wie Logo */
    min-width: 280px;
  }
  
  .claim-line-left,
  .claim-line-right {
    font-size: max(1.5rem, 2vw); /* Gleiche Skalierung */
  }
}

/* Laptop und größere Bildschirme: Mindestgrößen für Datum und Subtitle */
@media (min-width: 1024px) {
  .date {
    font-size: max(3rem, 3.5vw);
  }
  
  .subtitle {
    font-size: max(1.8rem, 2vw);
    max-width: max(300px, 25vw); /* Skaliert mit der Bildschirmbreite */
  }
  
  .logo {
    max-width: 500px; /* Logo kann etwas größer werden */
    width: min(500px, 35vw); /* Mehr Platz für das Logo */
    min-width: 350px; /* Mindestgröße für das Logo */
  }
  
  .star {
    /* Stern skaliert proportional zum Logo */
    max-width: 350px; /* Proportional zum Logo vergrößert */
    width: min(350px, 25vw); /* Skaliert mit dem Logo mit */
    min-width: 200px; /* Mindestgröße für den Stern */
  }
  
  .claim {
    /* Claim skaliert mit dem Logo */
    font-size: max(2rem, 2.2vw); /* Skaliert mit Viewport */
    width: min(500px, 35vw); /* Gleiche Breite wie das Logo */
    min-width: 350px; /* Gleiche Mindestbreite wie das Logo */
  }
  
  .claim-line-left,
  .claim-line-right {
    /* Claims skalieren mit dem Logo */
    font-size: max(2rem, 2.2vw); /* Gleiche Skalierung wie .claim */
  }
  
  /* Alignment korrigieren */
  .center-wrapper {
    align-items: center;
  }
  
  .logo-container {
    align-items: center;
    justify-content: center;
  }
  
  .star {
    align-self: center;
  }
}

/* Ab 1440px: Maximale Größen erreicht - keine weitere Skalierung */
@media (min-width: 1440px) {
  .logo {
    width: 500px; /* Feste Größe ab 1440px */
  }
  
  .star {
    width: 350px; /* Feste Größe ab 1440px */
  }
  
  .claim {
    font-size: 2.5rem; /* Feste Schriftgröße ab 1440px */
    width: 500px; /* Feste Breite ab 1440px */
  }
  
  .claim-line-left,
  .claim-line-right {
    font-size: 2.5rem; /* Feste Schriftgröße ab 1440px */
  }
}

/* 4K und sehr große Bildschirme */
@media (min-width: 2560px) {
  .subtitle {
    max-width: max(400px, 30vw); /* Noch mehr Platz für 4K */
  }
}

/* Mobile layout for stacked info elements */
@media (max-width: 480px) {
  .info-left,
  .info-right {
    position: static;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
  }
  
  .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;
  }
}