@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,wght@0,300;0,400;0,700;0,900;1,300;1,400;1,700;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Global variables and typography */
:root {
  /* Primary colour palette derived from the EUAIDITOR hero graphic */
  --brand1: #aea27a; /* neon blue for highlights */
  --brand2: #aea27a; /* turquoise secondary accent */
  --brand3: #0b1c29; /* EU stars yellow */
  --bg-dark: #2a4558; /* very dark background */
  --bg-light: #192935; /* card background on dark pages */
  --text-light: #eaf4ff; /* light text colour for dark backgrounds */
  --radius: 8px;
}

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Basis-Korrekturen: korrekter globaler Selector und bessere Basis-Regeln */
html, body {
    font-family: Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--bg-light);
    width: 100%;
    overflow-x: hidden;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Content-Wrapper: zentrieren und auf mobilen Geräten Padding geben */
.container-content {
    box-sizing: border-box;
}
.btn {
  font-family:  Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn--primary {
  font-size: 1.2rem;
  background-image: linear-gradient(45deg, #39697e, #39697e);
  color: #fff;
  font-family:  Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.btn--large {
  font-family:  Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.125rem;
}

.btn--small {
  font-family:  Poppins, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 0.775rem;
  margin-left: 1rem;
}

.flashes {
    list-style-type: none;
    padding: 0;
}


.flashes-error{
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: rgb(247, 151, 151);
    color: white;
}
.flashes-success{
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    background-color: rgb(188, 241, 188);
    color: white;
}
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    color: #fff;
}

.alert.error {
    background-color: #f3afb6; /* Rot */
}

.alert.info {
    background-color: #9ce6f1; /* Blau */
}

/* --- FOOTER STYLES --- */

footer {
    margin-top: 10%;
    width: 100%;
    /* The image shows a dark section at the top, which seems to be part of the footer's main background */
    background-color: #d8d5c970; /* Dark background color */
}

/* --- Top Section: Subscription Block --- */

.footer-top-section {
    position: relative;
    padding-top: 100px; /* Space above the yellow block */
    padding-bottom: 200px; /* Space below the yellow block, needed for the angled cut-off effect */
    display: flex;
    justify-content: center;
}

.subscribe-container {
    background-color: #022d50d2; /* Bright yellow/orange color */
    width: 80%; /* Adjust as needed */
    max-width: 1200px; 
    padding: 60px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute; /* Position it within the dark area */
    top: -50px; /* Move it up slightly to overlap the dark section */
    box-sizing: border-box;
}

.subscribe-content {
    max-width: 50%; /* Limit text width */
    color: #fff; /* Dark text color */
}

.subscribe-title {
    font-size: 2.2rem;
    font-weight: 300; /* Lighter font-weight for the title */
    margin: 0 0 10px 0;
}

.subscribe-text {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.subscribe-form {
    display: flex;
    gap: 10px;
}

.email-input {
    padding: 15px 20px;
    border: none;
    font-size: 1rem;
    flex-grow: 1; /* Allow the input to take up available space */
    min-width: 300px; /* Ensure input is wide enough */
    background-color: #fff; /* Lighter yellow background for the input */
    color: #000;
    outline: none;
}

.email-input::placeholder {
    color: #6a6a6a;
}

.subscribe-button {
    background-color: #232326; /* Dark button background */
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.subscribe-button:hover {
    background-color: #000000;
}

/* --- Bottom Section: Links and Copyright --- */

.footer-bottom-section {
    background-color: #fff; /* White background for the bottom links */
    padding: 40px 0 20px 0;
    width: 100%;
}

.footer-links-and-social,
.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    margin: 0 auto; /* Center the content */
    padding-top: 10px;
}

.footer-links a {
    color: #333;
    text-decoration: none;
    margin-right: 40px;
    font-size: 1rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffc93c;
}

.social-icons a {
    color: #333;
    font-size: 1.7rem;
    margin-left: 20px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--brand2);
}

.footer-copyright {
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #e0e0e0; /* Horizontal line separator */
    font-size: 0.9rem;
    color: #6a6a6a;
}

.legal-links a {
    color: #6a6a6a;
    text-decoration: none;
    margin-left: 30px;
}

.legal-links a:hover {
    text-decoration: underline;
}

/* --- Responsiveness (Basic adjustment) --- */
@media (max-width: 1024px) {
    .subscribe-container {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
    }

    .subscribe-content {
        max-width: 100%;
        margin-bottom: 25px;
    }

    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }

    .email-input, .subscribe-button {
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-links-and-social {
        flex-direction: column;
        gap: 20px;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 10px;
    }

    .footer-links a {
        margin: 5px 15px;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .legal-links a {
        margin: 0 10px;
    }
}

@media only screen and (max-width: 600px) {
      .cover-image-container{
        background-image: url('../images/euai-ditor-mobile.png');
      }
      .hero-text{
        font-size: 20px;
      }
      .hero-text h1{
        font-size: 30px;
      }
      .container .zigzag-timeline__item{
        width: 80%;
      }
      .zigzag-timeline__milestone {
        /* Absolute position */
        position: absolute;
        top: 30%;

        /* Circle it */
        border-radius: 50%;
        height: 1.5rem;

        /* Misc */
        background:var(--bg-dark);
        text-align: center;
        padding: 25px;
        color: var(--brand1);
        line-height: 4px;  
    }

    /* Styles for even items */
    .zigzag-timeline__item:nth-child(2n) {
        border-left: 1px solid var(--brand2);
    }

    .zigzag-timeline__item:nth-child(2n) .zigzag-timeline__milestone {
        left: 0;
        transform: translate(-40%, -40%);
    }

    /* Styles for odd items */
    .zigzag-timeline__item:nth-child(2n + 1) {
        border-right: 1px solid var(--brand2);
    }

    .zigzag-timeline__item:nth-child(2n + 1) .zigzag-timeline__milestone {
        right: 0;
        transform: translate(40%, -40%);
    }
    h3{
    margin-top: 5px;
    color: var(--bg-dark);
    font-weight: bold;
    font-size: 16px;

    }
    p{
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.5;
        font-weight: 300;
    }
  
}

/* Media Query für kleine Bildschirme (z.B. Smartphones und kleine Tablets) */
@media (max-width: 600px) {
    
    /* 1. Haupt-Layout-Fix: Verhindere horizontalen Überlauf */
    /* Setze die Breite des gesamten Inhaltscontainers auf 100% */
    /* Ersetze '.dein-haupt-container' durch die tatsächliche Klasse/ID deines Inhalts-Wrappers */


    /* 2. Anmeldeformular-Fix: Sorge dafür, dass das Formular schmaler wird */
    /* Ersetze '.formular-container' durch die tatsächliche Klasse des Containers, der die Input-Felder enthält */
    .form-container {
        /* Setze die Breite auf 90% oder 100% und zentriere es */
        width: 90%; 
        margin-left: auto;
        margin-right: auto;
    }

    /* 3. Input-Felder-Fix: Sorge dafür, dass Input-Felder die volle Breite nutzen */
    .form-group input[type="text"],
    .form-group input[type="email"], 
    .submit-btn{
        width: 100%;
        box-sizing: border-box; 
    }
    
    /* 4. Footer-Fix: Wenn der Footer auf kleinen Bildschirmen auseinanderfällt (Logos, Links, Social Media Icons) */
    .footer {
        /* Nutze Flexbox, um Elemente vertikal zu stapeln */
        flex-direction: column;
        text-align: center;
    }
    .footer-social {
        margin-top: 20px;
        /* Falls die Icons zu weit rechts sind, zentriere sie */
        justify-content: center; 
    }
}


@media (max-width: 480px) {
    
    /* 1. Haupt-Container & Text zentrieren/optimieren */
    
    /* Wenn der Hauptinhalt in einem Container liegt, der ihn zentriert: */
    .Container, .cover-image-container {
        /* Volle Breite nutzen */
        width: 100%;
        /* Innenabstand hinzufügen, damit der Text nicht direkt am Bildschirmrand klebt */
        padding: 0 20px; 
        /* Bei Bedarf: Box-Modell korrigieren */
        box-sizing: border-box; 
    }
    
    /* Textgröße für bessere Lesbarkeit auf kleinen Displays */
    h1, h2, .newsletter-form {
        font-size: 1.5em; /* Etwas kleiner machen */
        text-align: center;
    }
    
    .newsletter-form {
        font-size: 1em; /* Oder etwas kleiner */
        text-align: center; /* Text zentrieren */
    }
    
    /* 2. Formular-Elemente anpassen (Eingabefelder) */

    /* Macht alle Input-Felder (Vorname, Nachname, E-Mail) 100% breit */
    .form-group input[type="text"],
    .form-group input[type="email"]{
        width: 100%;
        margin-bottom: 15px; /* Etwas Abstand nach unten hinzufügen */
        box-sizing: border-box; 
    }

    /* Den "Jetzt abonnieren" Button auf volle Breite setzen */
    .submit-btn {
        width: 100%;
        box-sizing: border-box; 
    }
    
    /* 3. Feature-Liste (AuditReadiness, KPIs, Reports) anpassen */
    
    /* Da das Layout hier sehr vertikal ist, musst du prüfen, 
       ob die Listen-Elemente (li, div, o.ä.) die volle Breite nutzen und der Textumbruch funktioniert. */
    .container {
        /* Entferne feste Breiten oder Spalten-Layouts */
        width: 100%;
    }
    .zigzag-timeline__item {
        /* Den Abstand zwischen den Items anpassen */
        margin-bottom: 20px;
        /* Text links ausrichten, falls er sonst zu weit nach rechts verschoben ist */
        text-align: left;
    }
    /* Ggf. musst du hier die CSS-Regeln für die senkrechten Linien (@media) entfernen oder vereinfachen, 
       damit sie auf kleinem Display nicht zu viel Platz wegnehmen. */
    
    /* 4. Footer-Anpassungen */
    
    .footer-content {
        /* Verwende Flexbox, um die Elemente vertikal zu stapeln */
        display: flex;
        flex-direction: column; 
        align-items: center; /* Alles horizontal zentrieren */
        padding: 10px 20px;
    }

    /* Die Social Media Icons nach unten verschieben, damit sie nicht überlappen */
    .footer-social {
        margin-top: 15px;
        order: 1; /* Sortierung im Flexbox ändern, falls nötig */
    }
    
    /* Footer-Text (Impressum, Copyright) zentrieren und etwas Abstand geben */
    .footer-links, .footer-copyright {
        text-align: center;
        margin-top: 10px;
    }

}