* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}
.top-header {
    background: #666;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-name {
    color: white;
    font-size: 3rem;
    font-weight: bolder;
}
.site-name a {
    color: white;
    text-decoration: none;
}
.top-nav a {
    background: #ff6600;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    margin: 0 0.5rem;
    border-radius: 5px;
}


/**** HEADER ******/
.header-wrapper {
    background: #444;
    padding: 1rem 250px;
}

.header-container {
    display: flex;
    max-width: 100%;
}
.header-content {
    flex: 2;
    background: #ddd;
    padding: 1rem;
    min-height: 250px;
    text-align: center;
}

.header-column.header-content {
  padding: 20px;
  background-color: #ff6600;
  font-family: Arial, sans-serif;
}

.header-searchbox {
    flex: 1;
    padding: 1rem;
    display: grid;
    place-items: center;
    max-width: 450px;
}

@media (max-width: 1024px) {
    .header-wrapper {
        padding: 0;
    }
    .header-container {
        flex-direction: column;
    }
    .header-searchbox {
        max-width: 1024px;
    }
}


/* Ensure search form takes full width of header-navigation */
.search-form {
    width: 100%;
    max-width: 250px; /* Matches navigation width */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search input styling */
.search-form input[type="text"] {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

/* Search button styling */
.search-form button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
}

/***********************************/

.wrapper {
    background: #fff;
    padding: 1rem 250px;
}

.container {
    display: flex;
    max-width: 100%;
}
.content {
    flex: 2;
    background: #ddd;
    padding: 1rem;
}

.column.content {
  padding: 20px;
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
}

.navigation {
    flex: 1;
    background: #e9ecef;
    padding: 1rem;
    max-width: 450px;
}
footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .wrapper {
        padding: 0;
    }
    .container {
        flex-direction: column;
    }
    .navigation {
        max-width: 1024px;
    }
}

.button {
    background-color: #ff6600;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin-top: 2rem;
    cursor: pointer;
    border-radius: 4px; /* Abgerundete Ecken */
    transition: background-color 0.3s ease;
}
.button:hover {
    background-color: #e65c00 ; /* Etwas dunkler beim Hover */
}
h2 {
    position: relative;
    padding-left: 20px; /* Platz für den Strich */
    margin-bottom: 14px;
    margin-top: 14px;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;          
    height: 100%;       
    background-color: #ff6600; /* Farbe des Strichs */
}
h3 {
    position: relative;
    padding-left: 20px; /* Platz für den Strich */
    margin-bottom: 14px;
    margin-top: 14px;
}
h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;          
    height: 100%;       
    background-color: #ff6600; /* Farbe des Strichs */
}
ul {
    margin-left: 2rem;
}

.button-block {
    margin-left: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.nachricht {
    padding: 2rem;
    background: #ff6600;
    color: #FFFFFF;
}


.footer-nav a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}


/* Navigationsleiste */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ff6600;
    padding: 10px 20px;
    position: relative;
}

/* Menü-Icon (Hamburger) */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    background-color: white;
    height: 4px;
    width: 30px;
    margin: 4px 0;
    transition: 0.4s;
}

/* Navigation verstecken auf Mobilgeräten */
.nav-links {
    list-style: none;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: #666;
    padding: 10px;
    border-radius: 5px;
    /*width: 250px; /* Breiter machen */
    width: auto;
    min-width: 200px; /* Mindestbreite setzen */
    white-space: nowrap; /* Verhindert Umbruch */
    pointer-events: auto;
}

/* Sichtbar machen, wenn aktiv */
.nav-links.active {
    display: flex;
    z-index: 1000;
}

/* Navigationselemente */
.nav-links li {
    margin: 5px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px;
    display: block;
}

.nav-links a:hover {
    background-color: #ff6600;;
    border-radius: 5px;
}

/* Animation für das Menü-Symbol */
.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/** Hamburger Menu for Bundeslaender **/
.menu-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between icon and text */
}

/* Style the text */
.menu-text {
    color: white; /* Match the menu */
    font-size: 18px;
    font-weight: bold;
}



/* --- Override Global Headline Styles for Card Headlines --- */
.card h2, .card h3, .card h4 {
  margin: 0 0 10px 0; /* Adjust margin as desired */
  border: none;       /* Remove any inherited borders */
  padding: 0;
}

.card h2::before,
.card h3::before {
  content: none;
  display: none;
  padding: 0;
}

/* --- Card Container Styling --- */
.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* --- Bundesland Header Styling --- */
.bundesland > h2 {
  border-bottom: 2px solid #ff6600; /* Updated color */
  padding-bottom: 8px;
  margin-bottom: 15px;
}

/* --- Header Links Styling and Hover Effect --- */
.card h2 a,
.card h3 a,
.card h4 a {
  text-decoration: none;  /* Remove underline */
  color: inherit;         /* Inherit the header's color */
  transition: color 0.3s ease;
}

.card h2 a:hover,
.card h3 a:hover,
.card h4 a:hover {
  color: #ff6600;         /* Change to #ff6600 on hover */
}

/* --- Landkreis and Ort Styling --- */
.landkreis {
  background-color: #e9ecef;
  margin: 15px 0;
}
.landkreis > h3 {
  margin-top: 0;
}

.ort {
  background-color: #fff;
  border: 1px solid #ccc;
  margin: 10px 0;
  padding: 10px;
}
.ort > h4 {
  margin-top: 0;
}

/* --- Ortsteil Badge Styling --- */
.ortsteil {
  background-color: #ff6600; /* Base background */
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  margin: 5px 5px 0 0;
  font-size: 0.9em;
  display: inline-block;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

/* Remove default link styling inside badges */
.ortsteil a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* --- Hover Effect for Ortsteil Badges --- */
.ortsteil:hover,
.ortsteil a:hover {
  background-color: #e65c00; /* Darker shade on hover */
}

.ItemListBox {
    
}

.ItemList {
  background-color: #ff6600; /* Base background */
  color: #fff;
  padding: 5px 10px;
  border-radius: 3px;
  margin: 5px 5px 0 0;
  font-size: 0.9em;
  display: inline-block;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}

.ItemList a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.ItemList:hover,
.ItemList a:hover {
  background-color: #e65c00; /* Darker shade on hover */
}

/* Remove default list styles */
.BundeslandList {
 
}

/* Ensure list items are displayed as blocks */
.BundeslandList li {
    
}

/* Updated box styling */
.BundeslandListItem {
  
}

.BundeslandListItem a {
  
}

.BundeslandListItem:hover,
.ItemList a:hover {
  
}

.error {
    color: red;
    font-size: 2em;
}