/* ==============================================================
   LANGGRÜN — langgrün.css (Editorial, organisch)
   Großzügiger Raum, ruhige Typografie, aber weiche, runde Formen
   statt strikter Linien und Raster. Farbwerte bleiben nah am
   Original (Grün-Töne, Schwarz/Weiß).
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@400;500;600&display=swap');

/* ============================== ROOT / VARIABLEN ============================== */
:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-green: #309430d4;
  --color-brown: #379837;
  --color-accent: #4a8e47;
  --color-transparent: #5d9545;

  --color-special: rgba(199, 160, 19, 0.918);

  --color-border: rgba(0, 0, 0, 0.12);
  --color-border-strong: rgba(0, 0, 0, 0.28);
  --color-text-soft: rgba(17, 17, 17, 0.6);

  --small-text: 1rem;
  --medium-text: 1.5rem;
  --huge-text: 2rem;

  --border-radius: 22px;
  --border-radius-organic: 30px 12px 30px 12px;

  --logo: url("Logo_Jahrfeier_black_mit_Augen.png");

  --box-shadow-event-card-hover: rgba(0, 0, 0, 0.1);
  --box-shadow-info: rgba(0, 0, 0, 0.08);
  --box-shadow-info-hover: rgba(0, 0, 0, 0.14);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  color-scheme: light;
}

.whitemode {
  --color-bg: #000000;
  --color-text: #f5f5f5;
  --color-green: #366f36;
  --color-brown: #3a7e3a;
  --color-accent: #3d7b45;
  --color-transparent: #3a6627;

  --color-special: rgb(202, 161, 12);

  --color-border: rgba(255, 255, 255, 0.14);
  --color-border-strong: rgba(255, 255, 255, 0.3);
  --color-text-soft: rgba(245, 245, 245, 0.62);

  --logo: url("Logo_Jahrfeier_white_mit_Augen.png");

  --box-shadow-event-card-hover: rgba(0, 0, 0, 0.45);
  --box-shadow-info: rgba(0, 0, 0, 0.4);
  --box-shadow-info-hover: rgba(0, 0, 0, 0.55);

  color-scheme: dark;
}


/* ============================== GLOBAL RESET & BODY ============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  scrollbar-width: none;
  transition: background-color 0.6s ease, color 0.4s ease;
}

body::-webkit-scrollbar {
  display: none;
}

html {
  scrollbar-width: none;
}

html::-webkit-scrollbar {
  display: none;
}

h1, h2, h3, .site-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
}


/* ============================== HEADER STRUKTUR ============================== */

header {
  min-height: 18.5vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
}

.header-top {
  flex: 1;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.6rem 0.6rem 0.6rem;
}

/* Weiche, freistehende Module statt Raster mit Trennlinien */
.logo-title-container,
.intro-container,
.countdown-container,
.weather-container,
.theme-container {
  background-color: var(--color-green);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: background-color 0.35s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.4, 1), border-color 0.3s ease;
}

.whitemode .logo-title-container,
.whitemode .intro-container,
.whitemode .countdown-container,
.whitemode .weather-container,
.whitemode .theme-container {
  background-color: var(--color-green);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: background-color 0.35s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.4, 1), border-color 0.3s ease;
}

.logo-title-container:hover,
.intro-container:hover,
.countdown-container:hover,
.weather-container:hover {
  background-color: rgba(82, 140, 82, 0.06);
  border-color: rgba(82, 140, 82, 0.35);
  transform: translateY(-2px);
}

.whitemode .logo-title-container:hover,
.whitemode .intro-container:hover,
.whitemode .countdown-container:hover,
.whitemode .weather-container:hover {
  background-color: rgba(255, 255, 255, 0.05);
}


/* ============================== LOGO + TITEL ============================== */

.logo-title-container {
  flex: 1 1 220px;
  min-height: 80px;
  height: 10vh;
  margin: 0;
  border-radius: var(--border-radius-organic);

  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 0 1.5rem;
}

.logo {
  width: 56px;
  height: 56px;

  background-image: var(--logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.site-title {
  font-size: var(--huge-text);
  letter-spacing: 0.01em;
}


/* ============================== INTRO TEXT ============================== */

.intro-container {
  flex: 1 1 220px;
  min-height: 80px;
  height: 10vh;
  margin: 0;

  padding: 1rem 1.5rem;
  font-size: var(--small-text);
  line-height: 1.4;
  color: var(--color-text-soft);

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.intro-container strong {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text);
  display: block;
  margin-bottom: -1rem;
}


/* ============================== COUNTDOWN ============================== */

.countdown-container {
  flex: 1 1 220px;
  min-height: 80px;
  height: 10vh;
  padding: 1rem 1.5rem;
  margin: 0;

  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.countdown-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  margin-bottom: 0.35rem;
}

.countdown-time {
  font-family: var(--font-display);
  font-size: var(--medium-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}


/* ============================== WEATHER ============================== */

.weather-container {
  flex: 1 1 220px;
  min-height: 80px;
  height: 10vh;
  margin: 0;
  padding: 0.75rem 1.5rem;

  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.weather-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.weather-temp {
  font-family: var(--font-display);
  font-size: var(--medium-text);
  font-weight: 500;
}

.weather-desc {
  font-size: var(--small-text);
  color: var(--color-text-soft);
}


/* ============================== THEME SWITCH ============================== */

.theme-container {
  flex: 0 0 80px;
  min-height: 80px;
  height: 10vh;
  margin: 0;

  display: flex;
  justify-content: center;
  align-items: center;
}

#theme-switch {
  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background-color: transparent;

  display: flex;
  justify-content: center;
  align-items: center;

  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

#theme-switch:hover {
  border-color: var(--color-green);
  background-color: rgba(82, 140, 82, 0.08);
}

#theme-switch svg {
  width: 20px;
  height: 20px;
  fill: var(--color-text);
}

#theme-switch svg:last-child {
  display: none;
}

.whitemode #theme-switch svg:first-child {
  display: none;
}

.whitemode #theme-switch svg:last-child {
  display: block;
}

#theme-switch-mobile {
  display: none;
}


/* ============================== NAVIGATION ============================== */

nav {
  background-color: var(--color-bg);
  display: flex;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.6s ease;
}

nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  width: 100%;
  gap: 0.2rem;
  padding: 0.4rem 0.6rem;
}

nav a {
  position: relative;
  display: block;
  padding: 0.85rem 1.2rem;

  color: var(--color-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.3s cubic-bezier(0.25, 0.8, 0.4, 1);
}

nav a:hover {
  color: var(--color-text);
  background-color: var(--color-green);
}

.whitemode nav a:hover {
  background-color: var(--color-green);
}


/* ============================== FONTSIZE ============================== */

.font-size-controls {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
  margin-right: 1rem;
  align-items: center;
}

.font-size-controls button {
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--border-radius);
  background-color: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.font-size-controls button:hover {
  border-color: var(--color-green);
  color: var(--color-green);
}

#font-buttons {
  display: flex;
  gap: 0.4rem;
}


/* ============================== TABLET ============================== */

@media (max-width: 1100px) {

  :root {
    --small-text: 0.95rem;
    --medium-text: 1.3rem;
    --huge-text: 1.6rem;
  }

  nav a {
    padding: 0.85rem 1rem;
  }

  #theme-switch {
    width: 40px;
    height: 40px;
  }

  .intro-container {
    font-size: 0.8rem;
  }
}


/* ============================== HANDY ============================== */

@media (max-width: 700px) {

  .header-top {
    flex-wrap: wrap;
  }

  .logo-title-container,
  .intro-container,
  .countdown-container,
  .weather-container {
    flex: 1 1 calc(50% - 1vw);
    height: auto;
    min-height: 80px;
  }

  .theme-container {
    display: none;
  }

  nav {
    flex-direction: column;
  }

  nav ul {
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
  }

  nav ul::-webkit-scrollbar {
    display: none;
  }

  nav a {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
  }

  .font-size-controls {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0.6rem 0.9rem;
    margin: 0;
    border-top: 1px solid var(--color-border);
  }

  #theme-switch-mobile {
    display: flex;
    width: 38px;
    height: 38px;

    border-radius: 50%;
    border: 1px solid var(--color-border-strong);

    background-color: transparent;
    color: var(--color-text);

    justify-content: center;
    align-items: center;

    cursor: pointer;
  }

  #theme-switch-mobile svg {
    width: 18px;
    height: 18px;
    fill: var(--color-text);
  }
}

/* Sehr schmale Handys: Header-Boxen ganz stapeln statt eng nebeneinander.
   WICHTIG: Regeln hier zielen bewusst auf #font-buttons button, NICHT auf
   .font-size-controls button, damit der mobile Darkmode-Kreis-Button
   (#theme-switch-mobile, ebenfalls ein <button> in .font-size-controls)
   nicht mit zusätzlichem Padding zerdrückt wird. */
@media (max-width: 480px) {

  .logo-title-container,
  .intro-container,
  .countdown-container,
  .weather-container {
    flex: 1 1 100%;
  }

  .logo-title-container {
    min-height: 64px;
    height: auto;
    padding: 0.75rem 1.25rem;
  }

  .intro-container,
  .countdown-container,
  .weather-container {
    min-height: auto;
    height: auto;
    padding: 0.9rem 1.25rem;
  }

  .logo {
    width: 46px;
    height: 46px;
  }

  :root {
    --huge-text: 1.4rem;
    --medium-text: 1.15rem;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.75rem 0.85rem;
  }

  #font-buttons button {
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
  }

  #theme-switch-mobile {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  #theme-switch-mobile svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================== BUTTONS ============================== */

.info-btn, .hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.9rem 2.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.4, 1.15);
  text-decoration: none;
}

.info-btn:hover, .hero-btn:hover {
  background-color: var(--color-green);
  border-color: var(--color-green);
  color: #ffffff;
  transform: translateY(-2px);
}

.whitemode .info-btn,
.whitemode .hero-btn {
  border-color: var(--color-text);
}


/* ============================== FOOTER ============================== */

.footer {
  position: relative;
  width: 100%;
  background-color: var(--color-bg);
  padding: 3.5rem 0 2.5rem;
  transition: background-color 0.6s ease;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-strong) 30%, var(--color-border-strong) 70%, transparent);
}

.footer-content {
  max-width: 1200px;
  margin: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;

  color: var(--color-text);
  text-align: center;
  font-size: var(--small-text);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-green);
}

.footer-socials {
  display: flex;
  gap: 1.25rem;
  font-size: 1.2rem;
}

.footer-socials a i {
  color: var(--color-text-soft);
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-socials i:hover {
  color: var(--color-green);
}