/* ============================================================
   1. GRUNDKONFIGURATION & STICKY FOOTER
   ============================================================ */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', serif;
    display: flex;
    flex-direction: column;
    color: #000;
    line-height: 1.6;
    background-color: #fff; /* Hier kannst du später Hintergrundbilder/Farben setzen */
    overflow-x: hidden;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   2. HEADER & NAVIGATION
   ============================================================ */
header {
    border-bottom: 2px solid #000;
    padding: 15px 0;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-container {
    display: flex;
    align-items: center; /* Vertikal zentrieren */
    justify-content: flex-start; /* Alles nach links ausrichten */
    padding: 10px 2.5%; /* Gleicher Rand wie das Padlet (95% Breite) */
    gap: 30px; /* Abstand zwischen Startseite und LearningSystems */
}

.menu-item {
    text-decoration: none;
    color: #007bff; /* Klassisches Blau oder deine Wunschfarbe */
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.2s;
}

.menu-item:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Falls das Padlet noch nicht zentriert ist */
.padlet-fullsize {
    display: block;
    margin: 20px auto;
}

.brand {
	font-family: 'Palatino Linotype', serif;
	font-weight: 400; /* Extra Bold für mehr Wumms */
	font-size: 2.2rem;
}

.dafits-fancy {
    font-family: 'Palatino Linotype', serif;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: bold;
    cursor: help;
    position: relative;
}

.tooltip-container { position: relative; display: inline-block; }
.tooltip-box {
    visibility: hidden; opacity: 0; position: absolute; top: 130%; left: 0;
    background: #333; color: #fff; padding: 12px; border-radius: 6px;
    font-size: 0.9rem; transition: 0.3s; width: 180px; z-index: 100;
}
.tooltip-container:hover .tooltip-box { visibility: visible; opacity: 1; }

nav { display: flex; align-items: center; gap: 25px; }
nav a { text-decoration: none; color: #000; font-weight: bold; font-size: 1rem; }

.social-icons {
    display: flex;
    gap: 15px;
    border-left: 2px solid #000;
    padding-left: 20px;
    align-items: center;
}

.social-icons a { font-size: 1.3rem; color: #000; transition: transform 0.2s; text-decoration: none; }
.social-icons a:hover { transform: scale(1.2); }

/* Padlet-Icon spezifisch */
.padlet-link i { margin-right: 5px; }
.padlet-link:hover i { color: #ff4500; }

/* ============================================================
   3. LOGO-SEKTION & MENU-BAR (INDEX)
   ============================================================ */
.logo-section {
    padding: 60px 0 20px 0;
    text-align: center;
    width: 100%;
}

.logo-img { height: 180px; width: auto; }

.menu-bar {
    background-color: #d1d1d1;
    padding: 25px 0;
    width: 100%;
    text-align: center;
    margin-bottom: 0; 
    display: flex;
    justify-content: center;
    gap: 25px;
}

.menu-btn {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transition: all 0.2s ease;
}

.menu-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.2); }
.highlight { text-decoration: underline; }

/* ============================================================
   4. GRID & CARDS (INDEX & UNTERSEITEN)
   ============================================================ */
.block-white { padding: 80px 0; background: #fff; width: 100%; }
.block-grey { padding: 25px 0 80px 0; background: #f2f2f2; width: 100%; }

/* Flex-Grid für gleiche Spaltenhöhen */
.main-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Spalten strecken sich auf gleiche Höhe */
}

.category-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: 0.5s;
    opacity: 0.2;
    filter: grayscale(100%);
}

.active-focus { opacity: 1; filter: grayscale(0); transform: scale(1.03); }

.column-title {
    font-size: 1.8rem;
    font-weight: bold;
    border-bottom: 3px solid #000;
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 5px;
}

/* Card Styling mit vertikaler Zentrierung */
.card {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    
    /* Inhalt zentrieren */
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
    text-align: center;
    
    /* Cards innerhalb der Spalte gleichmäßig verteilen */
    flex: 1; 
    min-height: 160px;
}

.card h3 { margin: 0; font-size: 1.2rem; }
.card p { margin-top: 10px; margin-bottom: 0; font-size: 0.95rem; color: #444; }

/* Verlinkte Cards (Prüfungsvorbereitung / Coaching) */
.card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.card-link .card { margin-bottom: 0; height: 100%; }
.card-link:hover .card { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

/* ============================================================
   5. UNTERSEITEN (AKTUELLES / SPECIALS / PRÜFUNG)
   ============================================================ */
.full-viewport-center, .specials-container, .pruefung-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 60px;
    width: 100%;
}

.spotlight-img {
    max-width: 900px;
    width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.specials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    width: 100%;
}

/* ============================================================
   6. ÜBER MICH & KONTAKT
   ============================================================ */
.about-flex {
    display: flex;
    align-items: center;
    gap: 60px;
    justify-content: center;
}

.profil-img { width: 280px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); }
.about-text { max-width: 600px; }

.contact-card-container { width: 100%; display: flex; justify-content: center; }
.contact-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
}
.contact-name { font-size: 1.5rem; font-weight: bold; display: block; margin-bottom: 10px; }

/* ============================================================
   7. FOOTER (30PX)
   ============================================================ */
footer {
    height: 30px;
    border-top: 1px solid #000;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    width: 100%;
}

/* ============================================================
   8. MOBILE ANPASSUNG
   ============================================================ */
@media (max-width: 900px) {
    .header-content { flex-direction: column; gap: 15px; }
    .main-grid, .about-flex, .specials-grid { 
        flex-direction: column; 
        align-items: center; 
        display: flex; /* Wechsel zu Flex-Column für Mobile */
    }
    .category-column { opacity: 1; filter: none; width: 100%; margin-bottom: 40px; }
    .menu-bar { flex-direction: column; align-items: center; gap: 10px; }
    .menu-btn { width: 80%; }
    .card { flex: none; width: 100%; margin-bottom: 15px; }
}