/* ================================================================
   HESSE-HAUS MUSEUM — Header & Hero Styles
   ================================================================
   Farben:
   --accent:          #69132F  (Hinweise, Ankündigungen)
   --background-soft: #B6DDDB  (Hintergründe)
   --primary:         #1B9B98  (Überschriften, Buttons, Borders)
   --white:           #FFFFFF
   --text-dark:       #1A1A1A
   --text-muted:      #555555
   --marble-1/2/3:    #F8F8F8 / #F0F0F0 / #E8E8E8
   ================================================================ */

:root {
    --accent: #69132F;
    --background-soft: #B6DDDB;
    --primary: #1B9B98;
    --white: #FFFFFF;
    --marble-1: #F8F8F8;
    --marble-2: #F0F0F0;
    --marble-3: #E8E8E8;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
}


/* ================================
   SITE HEADER / NAVIGATION
================================ */

.site-header {
	background-color: #69132f;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}

/* ── Logo / Brand ─────────────────────── */

.site-header__brand {
    flex-shrink: 0;
}

.site-header__logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.site-header__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
}

.site-header__title:hover {
    color: var(--accent);
}

/* ── Navigation ───────────────────────── */

.site-header__nav {
    display: flex;
    align-items: center;
}

.site-header__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
}

.site-header__menu li {
    position: relative;
}

.site-header__menu li a {
    display: block;
    padding: 1.5rem 1.25rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header__menu li a:hover,
.site-header__menu li.current-menu-item > a,
.site-header__menu li.current-menu-ancestor > a {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ── Dropdown (Level 2) ───────────────── */

.site-header__menu li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    border: 1px solid var(--marble-3);
    border-top: 3px solid var(--primary);
    min-width: 240px;
    padding: 0.5rem 0;
    list-style: none;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.site-header__menu li:hover > ul.sub-menu {
    display: block;
}

.site-header__menu li ul.sub-menu li a {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    border-bottom: none;
    margin-bottom: 0;
}

.site-header__menu li ul.sub-menu li a:hover {
    background: var(--background-soft);
    color: var(--primary);
}

/* ── Mobile Toggle ────────────────────── */

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: none;
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: background 0.2s ease;
}

.site-header__toggle:hover {
    background: var(--background-soft);
}

.site-header__toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Toggle active state */
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ================================
   HERO / HEADER IMAGE
================================ */

.site-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Overlay: dunkler Verlauf von unten für Textlesbarkeit */
.site-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            0deg,
            rgba(26, 26, 26, 0.7) 0%,
            rgba(26, 26, 26, 0.3) 40%,
            rgba(26, 26, 26, 0.05) 100%
    );
    z-index: 1;
}

.site-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
}

.site-hero__title {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.site-hero__subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Breadcrumb im Hero */
.site-hero__breadcrumb {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-hero__breadcrumb span,
.site-hero__breadcrumb a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.site-hero__breadcrumb a:hover {
    color: var(--white);
    text-decoration: underline;
}

.site-hero__breadcrumb .breadcrumb_last {
    color: var(--white);
    font-weight: 600;
}


/* ── Variante: Kein Bild ──────────────── */

.site-hero--no-image {
    min-height: auto;
    background: var(--background-soft);
    align-items: center;
    border-bottom: 3px solid var(--primary);
}

.site-hero--no-image .site-hero__content {
    padding: 3rem 2rem;
}

.site-hero--no-image .site-hero__title {
    color: var(--primary);
    text-shadow: none;
    font-size: 2.5rem;
}

.site-hero--no-image .site-hero__subtitle {
    color: var(--text-muted);
    text-shadow: none;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
    .site-header__menu li a {
        padding: 1.5rem 0.875rem;
    }
}

@media (max-width: 768px) {

    .site-header {
        padding: 0 1rem;
    }

    .site-header__inner {
        flex-wrap: wrap;
        min-height: 60px;
    }

    /* Show toggle */
    .site-header__toggle {
        display: flex;
    }

    /* Hide nav by default on mobile */
    .site-header__nav {
        display: none;
        width: 100%;
        border-top: 1px solid var(--marble-3);
    }

    .site-header__nav.is-open {
        display: block;
    }

    .site-header__menu {
        flex-direction: column;
        gap: 0;
    }

    .site-header__menu li a {
        padding: 1rem 0;
        border-bottom: 1px solid var(--marble-3);
        margin-bottom: 0;
    }

    .site-header__menu li:last-child a {
        border-bottom: none;
    }

    /* Dropdown mobile */
    .site-header__menu li ul.sub-menu {
        position: static;
        border: none;
        border-top: none;
        box-shadow: none;
        min-width: auto;
        padding: 0;
    }

    .site-header__menu li ul.sub-menu li a {
        padding-left: 1.5rem;
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    /* Hero mobile */
    .site-hero {
        min-height: 380px;
        max-height: 60vh;
    }

    .site-hero__content {
        padding: 3rem 1.5rem 2rem;
    }

    .site-hero__title {
        font-size: 2rem;
    }

    .site-hero__subtitle {
        font-size: 1.1rem;
    }

    .site-hero--no-image .site-hero__content {
        padding: 2rem 1.5rem;
    }

    .site-hero--no-image .site-hero__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .site-hero {
        min-height: 220px;
    }

    .site-hero__title {
        font-size: 1.6rem;
    }
}


.st-header {
  position: relative;
  min-height: 500px;
	height: 70vh;
  overflow: hidden;
}

/* Bild-Container als Hintergrund */
.st-header > div:first-child {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.st-header > div:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
    object-position: top;
}

/* Overlay mit News */
.st-header-overlay {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.st-header-content {
    display: flex;
    justify-content: flex-start;
}
.st-header-title {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 25px;
}
/* Desktop: News nebeneinander über dem Bild */
.st-news-line {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.st-news-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  flex: 1;
  min-width: 250px;
}

/* Tablet: News unter dem Bild */
@media (max-width: 900px) {
  .st-header {
    display: flex;
    flex-direction: column;
  }
  
  /* Bild wird relativ positioniert */
  .st-header > div:first-child {
    position: relative;
	  height: 70vh;
    min-height: 400px;
  }
  
  .st-header-overlay {
    position: relative;
  }
  
  .st-news-line {
    flex-direction: row;
  }
  
  .st-news-item {
    background: transparent;
	min-width: 380px;

  }
}
/* Mobile: News unter dem Bild */
@media (max-width: 768px) {
  .st-header {
    display: flex;
    flex-direction: column;
      height: auto;
  }
  
  /* Bild wird relativ positioniert */
  .st-header > div:first-child {
    position: relative;
	  height: 70vh;
    min-height: 400px;
  }
  
  .st-header-overlay {
    position: relative;
  }
  
  .st-news-line {
    flex-direction: column;
  }
  
  .st-news-item {
    background: transparent;
  }
}