/* ====== Allgemeines Layout ====== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #000; /* schwarz */
    color: #fff; /* weißer Text */
}

h1, h2 {
    margin: 0;
    padding: 0;
    color: #fff;
}

p {
    margin-bottom: 1rem;
}

/* ====== Header ====== */
header {
    background-color: #FF0000; /* Vollrot */
    color: #fff;
    padding: 0.1rem 0;
    text-align: center;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.7);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

/* ====== Sprachumschaltung ====== */
.language-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.language-switch a {
    display: inline-block;
    text-decoration: none;
}

.language-switch img.flag {
    width: 32px;
    height: auto;
    border: 1px solid #fff;
    border-radius: 3px;
}

/* ====== Hauptbereich ====== */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 2.5rem;
}

ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.highlight {
    font-weight: bold;
    color: red;
}

/* ====== Universeller Button-Stil ====== */
.button {
    display: inline-block;
    background-color: #FF0000;
    color: #fff;
    padding: 1em 1.5em;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 8px;
    border: 2px solid #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 400px;
    max-width: 90%;
    line-height: 1.2;
    margin: 0.5rem;
	margin-bottom: 1.2rem; /* entspricht dem margin-bottom der h2 */
    box-sizing: border-box;
    text-decoration: none;
    text-align: center;
}

.button:hover {
    background-color: #cc0000;
	color: #fff; /* Schriftfarbe weiß erzwingen */
    transform: scale(1.1);
    text-decoration: none;
}

/* ====== Suchformular ====== */
main h2,
.search-box {
    text-align: center;
}

.search-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.search-box input[type="text"],
.search-box button.button {
    width: 400px !important;
    max-width: 90% !important;
    padding: 1em 1.2em;
    font-size: 1.2rem;
    border-radius: 8px;
    border: 2px solid #fff;
    box-sizing: border-box;
    text-align: center;
    margin-bottom: 1rem;
}

.search-box input[type="text"] {
    background-color: #fff;
    color: #000;
    transition: all 0.3s ease;
}

.search-box input[type="text"]:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 8px rgba(255,0,0,0.7);
}

.search-box button.button {
    background-color: #FF0000;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.search-box button.button:hover {
    background-color: #cc0000;
	color: #fff; /* Schriftfarbe weiß erzwingen */
    transform: scale(1.1);
}

/* ====== Tabelle für Suchergebnisse ====== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    background-color: #111;
    color: #fff;
    overflow-x: auto;
}

table th,
table td {
    border: 3px solid #ff0000;
    padding: 0.6em 0.8em;
    text-align: center;
}

table th {
    background-color: #222;
    color: #ff0000;
}

table tr:nth-child(even) {
    background-color: #1a1a1a;
}

table a {
    color: #ff0000;
    text-decoration: none;
}

table a:hover {
    color: #fff;
}

/* ====== ZIP-Download-Button ====== */
.button-container {
    text-align: center;
    margin-top: 2rem;
}

.button-container form {
    margin-top: 2rem;
}

/* ====== Fehler- und Info-Bereiche ====== */
.error-container,
.container {
    text-align: center;
    margin-top: 2rem;
}

.error-container h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #fff;
}

.startno {
    color: #ff0000;
    font-weight: bold;
}

.back-link {
    margin-top: 1.5rem;
}

main h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 1rem;
}

/* ====== Impressum ====== */
address {
    font-style: normal;
    line-height: 1.5;
    color: #ddd;
}

/* ====== Footer ====== */
footer {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

footer a {
    color: #FF0000;
    text-decoration: none;
}

footer a:hover {
    color: #cc0000;
    text-decoration: underline;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* ====== Allgemeine Links ====== */
a {
    color: #FF0000;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* ====== Mailto-Links ====== */
a[href^="mailto:"] {
    color: #FF0000;
    text-decoration: none;
}

a[href^="mailto:"]:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* ====== Responsive Design ====== */
@media (max-width: 600px) {
    .logo {
        max-width: 100px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    main {
        padding: 0 0.75rem;
    }

    .button,
    .search-box input[type="text"],
    .search-box button.button {
        font-size: 0.95rem;
        padding: 0.8em 1em;
        width: 90% !important;
    }
}
/* ====== Back to Top Button (eckig) ====== */
#backToTop {
    display: none; /* versteckt, bis gescrollt wird */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    width: 50px;
    height: 50px;
    background-color: #FF0000; /* rot passend zum Design */
    color: #fff;
    border: 2px solid #fff;
    border-radius: 4px; /* eckig statt rund */
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
    text-align: center;
    line-height: 46px; /* vertikale Zentrierung des Pfeils */
}

#backToTop:hover {
    background-color: #cc0000; /* dunkleres Rot beim Hover */
    transform: scale(1.1);
    color: #fff;
}
.info-hint { 
width: 100%; 
max-width: 360px; /* gleiche max-width wie die Input-Box */ 
padding: 1em 1.2em; 
margin: 1.5rem auto 0 auto; 
box-sizing: border-box; 
background-color: #222; 
border-left: 4px solid #FF0000; 
color: #fff; 
font-size: 1.15rem; 
line-height: 1.6; 
text-align: center; 
border-radius: 6px; 
box-shadow: 0 0 16px rgba(153, 0, 0, 0.75);
}


@media (max-width: 600px) {
    .info-hint {
        width: 100%;
        max-width: 90%; /* gleiche Logik wie Input-Feld */
        padding: 1em 1.2em;
        margin: 1rem auto 0 auto;
        box-sizing: border-box;
    }
}

.search-container {
    width: 100%;
    max-width: 400px; /* gleiche wie Input-Feld */
    margin: 0 auto;
}


.search-container input,
.search-container .info-hint {
    width: 100%;
}


