/* Allgemeines Layout */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    align-items: center; /* Vertikale Zentrierung */
    justify-content: space-between; /* Logo links, Menü rechts */
    background-color: #fff;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .logo img {
    max-height: 120px; /* Begrenze die Höhe des Logos */
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px; /* Abstand zwischen den Menüelementen */
    margin: 0;
    padding: 0;
    justify-content: flex-start; /* Links ausrichten */
    position: relative;
    left: -220px; /* Verschiebe das Menü weiter nach links */
}

nav ul li {
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #a8150e;
    color: #fff;
}

/* Platz für den Header */
main {
    margin-top: 100px;
    padding: 20px;
}

/* Willkommen-Sektion */
.welcome {
    text-align: center;
    margin-bottom: 20px;
}

.welcome h1 {
    font-size: 2.5rem;
    color: #a8150e;
}

/* Kartenlayout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
    max-width: 800px; /* Maximale Breite für die Karten */
    margin-left: auto;
    margin-right: auto; /* Zentriere die Karten */
}

.card {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    color: #333;
}

.card p {
    margin: 5px 0;
    color: #666;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #a8150e;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.card a:hover {
    background-color: #8c120c;
}

/* Formular Styles */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px auto;
    max-width: 500px;
}

form label {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    text-align: left;
    width: 100%;
}

form input, form select, form button {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

form input:focus, form select:focus {
    border-color: #a8150e;
    outline: none;
    box-shadow: 0 0 5px rgba(168, 21, 14, 0.5);
}

form button {
    background-color: #a8150e;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #8c120c;
}

/* Pagination Styles */
.pagination {
    text-align: center;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a {
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pagination a.active {
    background-color: #a8150e;
    color: #fff;
    border: none;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination span {
    padding: 10px 15px;
    color: #666;
}

/* Zusätzliche Styles für die Detailseite */
.business-card {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.business-card .logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.business-card h1 {
    font-size: 2rem;
    color: #a8150e;
    margin-bottom: 10px;
}

.business-card p {
    margin: 8px 0;
    color: #333;
    font-size: 1rem;
}

.business-card a {
    color: #a8150e;
    text-decoration: none;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn, .download-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 15px;
    background-color: #a8150e;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block; /* Sicherstellen, dass der Text immer sichtbar ist */
}

.btn:hover, .download-btn:hover {
    background-color: #8c120c;
}

.qr-code {
    display: none;
    margin-top: 10px;
}

.back-btn {
    margin-top: 30px; /* Erhöht den oberen Rand für mehr Abstand */
    background-color: #555;
    color: #fff;
}

.back-btn:hover {
    background-color: #444;
}
