/* ----------------------
   basis / variablen
----------------------- */

:root {
  --bg-page: #f5f1e8;
  --text-main: #111111;
  --text-muted: #4f4f4f;
  --accent: #111111;
  --accent-hover: #333333;
  --page-padding-x: 40px;
  --max-width: 1320px; /* größer -> größere bilder auf laptop */
  --radius-soft: 26px;
}

/* reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
}

/* layout grundstruktur */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-padding-x);
}

/* ----------------------
   header
----------------------- */

.site-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--page-padding-x) 10px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.header-right {
  position: absolute;
  top: 58px;
  right: 20px;
  left: 20px;
  padding: 12px 16px;
  border-radius: 22px;
  background-color: #fdf9f1;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: none; /* standard: zu */
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  z-index: 100;
}

/* wenn burger geklickt wurde */

.site-header.is-open .header-right {
  display: flex;
}

/* burger-button: mobile + tablet standard */

.menu-toggle {
  width: 28px;
  height: 22px;
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;              /* dicker */
  border-radius: 999px;      /* schön rund */
  background-color: var(--text-main);
}

/* logo mit buchstaben-animation */

.logo-wordmark {
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  cursor: default;
}

.logo-wordmark span {
  display: inline-block;
  transition: transform 0.25s ease;
}

/* jeder buchstabe springt leicht nach unten beim hover */

.logo-wordmark:hover span {
  transform: translateY(0.18em);
}

/* leichte verzögerung für mini-wellen-effekt */

.logo-wordmark span:nth-child(1) { transition-delay: 0s; }
.logo-wordmark span:nth-child(2) { transition-delay: 0.02s; }
.logo-wordmark span:nth-child(3) { transition-delay: 0.04s; }
.logo-wordmark span:nth-child(4) { transition-delay: 0.06s; }
.logo-wordmark span:nth-child(5) { transition-delay: 0.08s; }
.logo-wordmark span:nth-child(6) { transition-delay: 0.10s; }
.logo-wordmark span:nth-child(7) { transition-delay: 0.12s; }
.logo-wordmark span:nth-child(8) { transition-delay: 0.14s; }
.logo-wordmark span:nth-child(9) { transition-delay: 0.16s; }

/* nav-inhalt im overlay */

.top-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.top-nav .nav-link {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.75rem;
  text-transform: lowercase;
}

.top-nav .nav-link:hover {
  opacity: 0.7;
}

/* sprach-switch */

.language-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
}

.language-switch .lang {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-main);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, opacity 0.2s ease;
}

.language-switch .lang--active {
  background-color: var(--accent);
  color: #faf7f0;
  border-color: var(--accent);
}

.language-switch .lang:hover {
  opacity: 0.7;
}

/* ----------------------
   hero
----------------------- */

.hero {
  padding: 80px 0 40px; /* unten kürzer -> näher an bilder */
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* headline – zweizeilig */

.hero-headline {
  font-weight: 500;
  font-size: clamp(2.6rem, 3.3vw, 3.4rem);
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: lowercase;
  line-height: 1.1;
}

.hero-headline-second {
  display: block;
}

/* subline – typewriter */

.hero-subline {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 28px;
  line-height: 1.6;
  text-transform: lowercase;
}

.hero-break-mobile {
  display: none;
}

.no-break {
  white-space: normal;
}

/* ----------------------
   newsletter form + meldung
----------------------- */

.newsletter-form {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* input + placeholder typewriter */

.newsletter-form input[type="email"] {
  min-width: 220px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--text-muted);
  font-size: 0.9rem;
  background-color: #faf7f0;
  color: var(--text-main);
  font-family: "Courier New", Courier, monospace;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
  font-family: "Courier New", Courier, monospace;
}

/* button in typewriter */

.btn-primary {
  display: inline-block;
  padding: 11px 32px;
  border-radius: 999px;
  background-color: var(--accent);
  color: #faf7f0;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: none;
  cursor: pointer;
  border: none;
  font-family: "Courier New", Courier, monospace;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

/* meldung – standard: unter button (alle devices <1025px) */

.form-message {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: lowercase;
  font-family: "Courier New", Courier, monospace;
  width: 100%;
}

.form-message--error {
  color: #b00020;
}

/* ----------------------
   image grid
----------------------- */

.image-section {
  padding: 24px 0 80px; /* oben näher am hero */
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.image-item {
  margin: 0;
}

/* bilder – hochformat, hover/active auf allen devices */

.image-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-soft);
  object-fit: cover;
  aspect-ratio: 3 / 4;
  transition: transform 0.35s ease, box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* hover/touch-effekt */

.image-item:hover img,
.image-item:active img,
.image-item:focus-within img {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  opacity: 0.97;
}

/* ----------------------
   footer
----------------------- */

.site-footer {
  padding: 24px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-mark {
  height: 24px;
  width: auto;
  display: block;
}

/* ----------------------
   mobile layout (<=768px)
----------------------- */

@media (max-width: 768px) {
  :root {
    --page-padding-x: 20px;
  }

  .hero-break-mobile {
    display: block;
  }

  .no-break {
    white-space: nowrap;
  }

  .hero-inner {
    padding: 0 24px;
  }

  /* deutsch etwas kleiner */
  html[lang="de"] .hero-headline {
    font-size: 2.2rem;
  }

  html[lang="de"] .hero-subline {
    font-size: 0.95rem;
  }

  /* abstand hero -> bilder kleiner */
  .hero {
    padding-bottom: 24px;
  }

  .image-section {
    padding-top: 12px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: center;
  }
}

/* ----------------------
   tablet-layout (769px–1024px)
----------------------- */

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --page-padding-x: 30px;
  }

  .hero-inner {
    max-width: 620px;
  }

  .hero-headline {
    font-size: 2.4rem;
  }

  html[lang="de"] .hero-headline {
    font-size: 2.2rem;
  }

  .hero-subline {
    font-size: 1rem;
  }

  html[lang="de"] .hero-subline {
    font-size: 0.95rem;
  }

  /* default: tablet eher wie mobile, einspaltig */
  .image-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* optional: iPad quer etwas breiteres grid */

@media (min-width: 900px) and (max-width: 1024px) and (orientation: landscape) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}

/* ----------------------
   desktop (ab 1025px): fehlermeldung rechts neben button
   + header wie in deiner alten desktop-version
----------------------- */

@media (min-width: 1025px) {
  .newsletter-form {
    flex-wrap: nowrap;
  }

  .form-message {
    width: auto;
    margin-top: 0;
    margin-left: 10px;
    white-space: nowrap;
    align-self: center;
    text-align: left;
  }

  /* burger auf desktop ausblenden */
  .header-left {
    display: none;
  }

  .menu-toggle {
    display: none;
  }

  /* header-right als normale leiste oben rechts */
  .header-right {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    margin-left: auto;
    padding: 0;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .top-nav {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
}
/* ----------------------
   FIX: Burger auf iPad (769–1024px) immer sichtbar
----------------------- */
@media (min-width: 769px) and (max-width: 1024px) {
  .header-left {
    display: flex !important;      /* Burger-Container anzeigen */
    align-items: center;
    z-index: 300;                  /* über allem */
  }

  .menu-toggle {
    display: flex !important;      /* Button anzeigen */
    width: 28px;
    height: 22px;
  }

  .menu-toggle span {
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background-color: #111111 !important;  /* schwarz, egal was oben steht */
  }
}
/* iPad hochkant: footer zentriert wie auf dem Handy */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: portrait) {
  .footer-inner {
    justify-content: center;
  }
}

