/* --- Grundlayout --- */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: white;
  font-family: Arial, sans-serif;
}

.container {
  display: grid;
  grid-template-columns: 1fr 1.618fr; /* Golden Ratio Columns */
  grid-template-rows: 0.618fr 1fr;    /* Golden Ratio Rows for Left Col - Swapped to make top smaller */
  gap: 10px;
  padding: 20px;
  width: 90vw;
  max-width: 1200px;
  aspect-ratio: 1.618; /* Golden Ratio Aspect for the whole container */
  box-sizing: border-box;
}

/* --- Standard Box --- */
.box {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  text-align: center;
  color: white;
}

/* --- Rote Box oben links --- */
.red {
  background-color: #863424;
  grid-column: 1;
  grid-row: 1;
  position: relative;
  padding: 20px;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.red-text {
  color: white;
  font-size: 28px;
  font-weight: bold;
}

/* --- Grüne Box (Bild) --- */
.green {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================= */
/*   BLAUER KASTEN – VARIANTEN   */
/* ============================= */

/* --- 1) Variante für Startseite (Bild) --- */
.blue-img {
  background-color: rgb(124,153,185);
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* --- 2) Variante für Textseiten (scrollbarer Kasten) --- */
.blue-text {
  background-color: rgb(124,153,185);
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  text-align: left;
  color: white;
  line-height: 1.4;
  font-weight: normal;
}

/* --- Links in Textkasten --- */
.large-text-page .blue-text,
.large-text-page .blue-text p,
.large-text-page .blue-text li,
.large-text-page .blue-text a {
  font-size: 1.35rem; /* Distinctly bigger text for contact and impressum */
  line-height: 1.6;
}

.blue-text a {
  color: white;
  text-decoration: none;
}
.blue-text a:hover {
  text-decoration: underline;
}

/* Ersatznavigation */
.replacement-nav {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 10px;
}

.replacement-nav a {
  color: white !important;
  text-decoration: underline !important;
  margin-right: 15px;
  font-size: 1.1rem;
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  opacity: 0.6;
  text-decoration: none !important;
}

/* Bilder in Kontakt/Impressum */
.blue-text img {
  height: 22px;
  width: auto;
  vertical-align: middle;
  margin-right: 6px;
}

/* --- Menü oben links --- */
.menu-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
}

.menu-btn {
  cursor: pointer;
  width: 35px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-btn span {
  height: 4px;
  background: white;
  border-radius: 2px;
}

/* Dropdown Menü */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: #863424;
  border: 1px solid #8f8971;
  border-radius: 6px;
  padding: 5px 0;
  min-width: 150px;
}

.dropdown-menu a {
  color: white;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
}

.dropdown-menu a:hover {
  background-color: #a64530;
}

/* --- RESPONSIVES SANDWICH-LAYOUT NUR FÜR HANDY --- */
@media screen and (max-width: 768px) {

  body {
    height: auto !important;
    min-height: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Gesamtseite vertikal stapeln */
  .container {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100vh !important;
    aspect-ratio: unset !important;
    padding: 0 !important;
    gap: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    grid-template-columns: unset !important;
    grid-template-rows: unset !important;
    box-sizing: border-box !important;
  }

  /* 1. Red Box (Headbar) - TOP */
  .red {
    order: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 80px;
    padding: 15px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    grid-column: unset !important;
    grid-row: unset !important;
    box-sizing: border-box !important;
  }

  /* Mobile Header Layout: Menu Left, Name Right */
  .menu-wrapper {
    position: static !important; /* Put in flow */
    margin-right: 20px !important;
    width: auto !important;
  }
  
  .dropdown-menu {
    top: 100% !important;
    left: 10px !important;
    z-index: 9999 !important;
    position: absolute !important;
    background: #863424 !important;
    width: 200px !important;
  }

  .red-text {
    font-size: 18px !important; /* Slightly smaller to fit name */
    margin-left: 0 !important;
    color: white !important;
    line-height: 1.2;
    text-align: left !important;
  }

  /* 2. Green Box (Foto) - MIDDLE */
  .green {
    order: 2 !important;
    width: 100% !important;
    height: auto !important;
    max-height: 300px !important; /* Give image a bit more space if needed */
    object-fit: cover !important;
    grid-column: unset !important;
    grid-row: unset !important;
    display: block !important;
  }

  /* 3. Blue Box (Content) - BOTTOM */
  .blue-img, .blue-text {
    order: 3 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 300px !important; /* Ensure enough space */
    padding: 30px 20px !important;
    grid-column: unset !important;
    grid-row: unset !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    background-color: rgb(124,153,185) !important; /* Ensure background persists */
  }
  
  .blue-img img {
      max-width: 90% !important;
      height: auto !important;
  }
}
