/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Garantit une hauteur minimale pour occuper tout l'écran */
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f2f2f2;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1; /* Permet au conteneur principal de prendre tout l'espace disponible */
}

h1 {
    color: black;
    margin: 0;
}

p {
    text-align: center;
    color: #666;
    font-size: 18px;
}

form {
    margin-top: 30px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="submit"],
select {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="submit"] {
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #218838;
}

button {
    padding: 15px;
    color: #141414;
    background-color: #e7e7e7;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.4s ease;
}

button:hover {
    background-color: #9b9b9b;
}

button:active {
    background-color: black;
    color: white;
}

/* Navbar */
header.navbar {
    background-color: #a3a3a3;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Espace entre le logo et les liens */
    padding: 10px 20px;
    border-radius: 0 !important; /* Aucune bordure arrondie */
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    max-height: 80px;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 20px; /* Espacement entre les liens */
    align-items: center;
    margin-left: auto; /* Pousse les liens à droite */
}

.nav-links a {
    background-color: white;
    color: black;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.nav-links a:hover {
    background-color: #e0e0e0;
}

/* Spécifique à la page de succès pour éviter les conflits */
body.success-page header.navbar {
    background-color: #a3a3a3; /* Même couleur que les autres pages */
}

body.success-page .nav-links a {
    color: black !important; /* Assure que les liens du menu sont visibles */
    background-color: white !important;
}

/* Spécifique à la page de succès */
body.success-page .logo img {
    max-height: 80px; /* Assure la même taille que sur les autres pages */
    margin: 0; /* Aucun décalage supplémentaire */
}

body.success-page .navbar-container {
    align-items: center;
    justify-content: space-between;
}

/* Style spécifique pour les boutons du partnerprogramm */
.btn-partner {
    display: inline-block;
    margin-left: 10px;
}

/* Footer */
.footer {
    background-color: transparent;
    color: #333;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-top: auto;
}

/* Style des boutons verts pour les formulaires */
.button-green {
    background-color: #28a745; /* Vert */
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.button-green:hover {
    background-color: #218838; /* Vert plus foncé au survol */
}

/* Style des étoiles obligatoires */
.required-label {
    color: red;
    font-weight: bold;
}

#abweichende_lieferadresse {
    filter: brightness(95%);
    background-color: #f0f0f0;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
}

/* Footer Spécial pour AGB */
.footer-agb {
    background-color: transparent; /* Fond spécial */
    text-align: center; /* Centrage du texte */
    padding: 15px 0;
    margin-top: auto; /* Toujours au bas de la page */
    width: 100%;
    display: flex;
    justify-content: center; /* Assure un alignement central */
    align-items: center;
    box-sizing: border-box;
    clear: both; /* Évite tout débordement */
}

/* Styles spécifiques à la page AGB */
body.agb-page .footer-agb {
    background-color: transparent;
    text-align: center;
    justify-content: center;
    margin-top: auto;
}

/* Espacement entre les titres et leurs détails pour la page AGB */
body.agb-page .container h3 {
    display: block; /* Force le titre à s'afficher sur une nouvelle ligne */
    margin-bottom: 20px; /* Ajoute un espace sous chaque titre */
    font-size: 18px; /* Taille de police légèrement augmentée pour les titres */
    color: #444; /* Couleur légèrement plus foncée que le texte */
    font-weight: bold; /* Titre en gras */
    color: #666; /* Couleur standard pour le texte */
}

/* Titres secondaires (1., 2., 3., etc.) */
body.agb-page .container p strong {
    display: block; /* Chaque titre occupe une nouvelle ligne */
    margin-top: 10px; /* Espace au-dessus du titre */
    margin-bottom: 1px; /* Espace sous le titre avant les détails */
    font-size: 18px; /* Taille des titres secondaires */
    font-weight: bold;
    color: #666; /* Même couleur que le titre principal */
}


body.agb-page .container p {
    margin-bottom: 20px; /* Ajoute un espace supplémentaire entre les paragraphes */
    margin-top: 0; /* Aucun espacement supplémentaire au-dessus des paragraphes */
    line-height: 1.2; /* Augmente l'espacement entre les lignes */
}

/* Liens dans le footer */
.footer-links {
    margin-top: 10px;
    text-align: center;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #333;
    text-decoration: underline;
}


.flash-messages {
    margin: 20px 0;
    padding: 10px;
}

.flash {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.flash.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}
