body {
    margin: 0;
    padding: 0;
    font-family: Inter, sans-serif;
    color: #1f2e2e;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url('assets/images/jiri-suchy.jpg');
    background-size: cover; /* Bild wird skaliert, um den gesamten Hintergrund abzudecken */
    background-position: center; /* Bild wird zentriert */
    background-repeat: no-repeat; /* Bild wird nicht wiederholt */
    background-attachment: fixed; /* Bild bleibt beim Scrollen an seinem Platz */
}

/* Leiste */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}


.logo {
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: #b2d1d6;
    font-family: 'Merriweather', serif;

}

nav a {
    text-decoration: none;
    color: #1f2e2e;
    margin-left: 30px;
    font-weight: 500;
    font-size: 14px;
}

nav a:hover, .logo:hover {
    color: #206170;
    text-decoration: none;
}

.button {
    background-color: #206170;
    color: rgb(185, 201, 202);
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 600;
    text-decoration: none;
    
}

.button:hover {
    background-color: #b2d1d6;
    transform: translateY(-2px);
    text-decoration: none;
}


main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 200px;
}

.subtitle {
    color: #206170;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    
}

h1 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px 0;
    
    
}

.description {
    max-width: 600px;
    font-size: 1.1rem;
    color: #384344;
    margin-bottom: 30px;
    line-height: 1.6;
    font-family: Inter, sans-serif;
    font-weight: 200;
    text-align: center;
}

.definition h1 {
    text-align: left;
}

.definition .description {
    text-align: left;
    margin-bottom: 1.4rem;
}

.output-box p,
.chancen-card p,
.fact-card p {
    text-align: left;
    margin-bottom: 1.2rem;
}

.mechanism-section .description {
    text-align: center;
    margin: 0 auto 30px;
    max-width: 900px;
}

.timeline-section .description {
    text-align: center;
    margin: 0 auto 40px;
    max-width: 900px;
}

.buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
    text-decoration: none;
    
}

button, .button-outline, .hero-button {
    font-size: 1rem;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease; 
    border-radius: 30px;
    border: 2px solid #206170;
    text-decoration: none;
}

button,
.hero-button {
    background-color: #206170;
    color: #b2d1d6;
}

button:hover,
.hero-button:hover {
    background-color: transparent;
    color: #206170; 
    transform: translateY(-2px);
}

.button-outline {
    background-color: transparent;
    color: #206170;
}

.button-outline:hover {
    background-color: #206170;
    color: #b2d1d6;
    transform: translateY(-2px);
}

.definition-btn.active {
    background-color: transparent;
    color: #206170;
    transform: translateY(-2px);
}

.arrow-down {
    margin-top: 60px;
    font-size: 2rem;
    color: #206170;
    cursor: pointer;
    margin-bottom: 300px; 
    transition: transform 0.3s ease
}

.arrow-down:active {
    transform: translateY(10px);
}

/* 3. Fakten-Bereich */
.facts-section {
    padding: 80px 0px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px); /* Startposition */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.facts-section.visible {
    opacity: 1;
    transform: translateY(0); /* Wird sichtbar */
}

.facts-intro {
    text-align: center;
    max-width: 1000px;
    margin: 0x auto 200px;
    color: #363f41;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.facts-intro.visible {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-family: 'Merriweather', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1f2e2e;
    
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1100px; /* breiter für Desktop */
    margin: 0 auto;
    align-items: start;
    justify-items: center; /* Karten zentriert in den Spalten */
    margin-bottom: 200px; 
}

/* Zwei-Spalten-Layout: Fakten neben Definitionen */
.section-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.facts-column {
    flex: 1 1 70%; /* mehr Platz für Fakten auf Desktop */
}

.definitions-column {
    flex: 1 1 40%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.definitions-column.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
    .section-row {
        flex-direction: column;
        padding: 20px;
    }
    .facts-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    .definitions-column {
        width: 100%;
    }
    .fact-card, .info-card {
        height: auto; /* flexible Höhe auf kleinen Bildschirmen */
    }
    .info-card {
        width: 100%;
    }
}

/* Kleiner Bildschirm: Header stacken und zentrieren */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 12px 16px;
        gap: 8px;
    }
    .logo {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
        margin: 0;
    }
    nav a {
        margin: 6px 8px;
        font-size: 13px;
    }
    main {
        margin-top: 100px; /* kleinerer Top-Abstand auf Mobil */
        padding: 12px;
    }
    .arrow-down {
        margin-bottom: 80px;
    }
}

/* 4. Faktenkarten*/

.fact-card {
    background:#b2d1d6be; /* Hintergrund der Karte */
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Schatten für Tiefe */
    opacity: 0;
    transform: translateY(20px); /* Startposition */
    transition: opacity 0.6s ease, transform 0.6s ease;
    width: 100%;
    height: 280px; /* einheitliche Höhe */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.fact-number {
    font-size: 3rem;
    font-weight: 700;
    color: #206170; /* Petrol-Farbe für Zahlen */
    margin-bottom: 10px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    
}

.fact-card h3 {
    margin-bottom: 10px;
    color: #1f2e2e; /* Dunkler Text für Überschriften */
    
}

.fact-card p {
    color: #637d7d;
}

/* 5. Definitionskarten (angepasst an dein Design) ===== */
.definition {
    text-align: left;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.definition.visible {
    opacity: 1;
    transform: translateY(0);
}

.mechanism-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mechanism-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    background-color: rgba(245, 245, 245, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: #1f2e2e;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    text-align: left;
}


.button-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}


.output-box {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
    backdrop-filter: blur(5px);
    border-left: 5px solid #b2d1d6;
    min-height: 200px;
    line-height: 1.8;
}

.output-box h3 {
    font-size: 40px;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: #1f2e2e;
}

.output-box p {
    font-family: Inter, sans-serif;
    max-width: 600px;
    font-size: 1.1rem;
    color: #30393a;
    margin-bottom: 30px;
    line-height: 1.6;
    
}

/* 6. Wirkung */



.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #cfe2e542;
    margin-bottom: 200px; 
    box-shadow: 0 20px 50px rgba(31, 46, 46, 0.08);
}

/* Überschrift */
.heading {
    text-align: center;
    color: #1f2e2e;
    margin-bottom: 30px;
    font-size: 4rem;
}

/* Hauptinhalt: Linke und rechte Spalte */
.main-content {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
}

/* Linke Spalte: Fächer */
.fach-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 0 0 280px;
}

.fach {
    background-color: transparent;
    border-radius: 16px;
    padding: 22px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #325253;
}

.fach:hover {
    background-color: #363b812a;
    transform: translateX(5px);
    color: #bbdadac4;
}

.fach.aktiv {
    background-color: #363b81a6;
    color: #b5d1d1;
    box-shadow: none;
    border-color: #363b81a6;
}

.fach i {
    font-size: 1.5rem;
}

/* Rechte Spalte: Textinhalte */
.text-container {
    flex: 2;
    min-width: 0;
}

.text-content {
    display: none;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(31, 46, 46, 0);
    animation: fadeIn 0.5s ease;
    max-width: 400px;
    text-align: justify;

}

.text-content.aktiv {
    display: block;
}

.text-content h2 {
    color: #1f2e2e;
    margin-top: 0;
    background-color: rgba(255, 255, 255, 0.178);
}

.text-content p {
    line-height: 1.8;
    color: #2b3f44;
    margin-bottom: 22px;
}

.text-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.text-content li {
    background-color: #f4fcff;
    border-left: 4px solid #206170;
    padding: 18px 20px;
    border-radius: 14px;
    margin: 0;
    line-height: 1.7;
}

.text-content li strong {
    display: block;
    margin-bottom: 6px;
    color: #124552;
}

/* Timeline Einträge Animation */
.entry {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.entry.visible {
    opacity: 1;
    transform: translateY(0);
}

.chancen-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.chancen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    padding: 80px 20px;
    margin-bottom: 200px;
}

.timeline-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsives Design */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .fach-container {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .fach {
        flex: 1 1 45%;
    }
}

/*7.Ethik*/

.chancen-card {
    background: rgba(178, 209, 214, 0.75); /* Hintergrund der Karte */
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Schatten für Tiefe */
    opacity: 1;
    transform: translateY(20px); /* Startposition */
    transition: opacity 0.6s ease, transform 0.6s ease, max-height 0.4s ease;
    width: 100%;
    max-height: 110px;
    overflow: hidden;
    box-sizing: border-box;
    display: block;
    cursor: pointer;
     
}

.chancen-card.expanded {
    max-height: 1000px;
}

.chancen-card h3 {
    margin-top: 0;
    margin-bottom: 0;
    color: #1f2e2e;
    font-size: 1.5rem;
    text-align: left;
}

.chancen-card p {
    margin: 0;
    line-height: 1.8;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease;
    text-align: justify;
}

.chancen-card.expanded p {
    opacity: 1;
    max-height: 1000px;
    margin-top: 18px;
}

.chancen-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 200px;
}

.chancen-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 8. Timeline */
/* Grundlegendes Layout für die Timeline */


.timeline {
  position: relative;
  width: 80%; /* Anpassbar */
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  margin-bottom: 0px; 
}

.timeline-item {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.timeline-item.left {
  justify-content: flex-end;
}

.timeline-item.right {
  justify-content: flex-start;
}

.circle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #363b81a6;
  border-radius: 50%;
  z-index: 1; /* Punkte vor der Linie */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}


h1 {
    font-size: 4em;
    margin-bottom: 10px;
    color: #1f2e2e;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    text-align: center;
}

/* Vertikale Linie in der Mitte */
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #363b81b9; /* Helles Blau */
  transform: translateX(-50%);
}

/* Punkte auf der Linie */
.circle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: #363b81a6;
  border-radius: 50%;
  z-index: 1; /* Punkte vor der Linie */
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
}

/* Einträge links/rechts */
.entry {
  width: 45%;
  padding: 15px;
  box-sizing: border-box;
  position: relative;
  color: #242424;
  background-color: rgba(255, 255, 255, 0.041);
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

/* Linksbündige Einträge (rechts vom Zeitstrahl) */
.entry.left {
  border-right: 5px solid #cacaca2d;
  text-align: right;
}

/* Rechtsbündige Einträge (links vom Zeitstrahl) */
.entry.right {
  border-left: 5px solid #cacaca2d;
  text-align: left;
}

/* Typografie */
.year {
  font-size: 28px;
  color: #363b81c7;
  margin-bottom: 8px;
  font-weight: 800;
  font-family: 'Merriweather', serif;
}

.name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: 'Merriweather', serif;
}

.desc {
  font-size: 15px;
  color: #364041;
  line-height: 1.5;
  margin-bottom: 20px;
}

footer {
    background-color: #206170b2; /* Dunkle Hintergrundfarbe */
    color: white;
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem; /* Abstand zum vorherigen Inhalt */
    position: relative; /* Optional: Für absolute Kinder-Elemente */
    bottom: 0; /* Optional: Falls position: fixed verwendet wird */
    width: 100%; /* Volle Breite */
    z-index: 100;
}


