/*
Theme Name: Hessennews TV Medienportal
Author: Hessennews TV
Version: 1.2
Description: Theme mit Submenüs und Home-Link
*/

body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
}
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}
header {
    background: #B29146;
    color: white;
    padding: 20px 0;
    background-image: url('header-bg.jpg');
    background-size: cover;
    background-position: center;
}
header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
header h1 {
    margin: 0;
    font-size: 28px;
}
nav {
    background: #000;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
nav li {
    position: relative;
}
nav li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 180px;
    z-index: 1000;
    flex-direction: column;
}
nav li:hover ul {
    display: block;
}
nav li ul li {
    width: 100%;
}
nav a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    white-space: nowrap;
}
nav a:hover {
    background: #c40000;
}
a {
    color: #c40000;
}
a:hover {
    text-decoration: underline;
}
footer {
    background: #B29146;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}


/* Mobile Menü */
@media (max-width: 768px) {
  nav .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 26px;
    color: white;
    padding: 4px 20px;
    margin: 0;
  }

  nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #000;
    margin: 0;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    width: 100%;
  }

  nav a {
    width: 100%;
    padding: 10px 16px;
    border-top: 1px solid #111;
  }

  nav .menu-toggle.open::before {
    content: '\2715'; /* X */
  }

  nav .menu-toggle::before {
    content: '\2630'; /* ☰ */
  }

  header .top-bar {
    flex-direction: column;
    align-items: center;
  }

  header .top-bar .datetime {
    margin-top: 5px;
    font-size: 14px;
  }
}
