/* =========================
   FONT FACE
========================= */
@font-face {
  font-family: "TransitPro";
  src: url("/fonts/TransitPro.woff2") format("woff2"),
       url("/fonts/TransitPro.woff") format("woff");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "TransitPro";
  src: url("/fonts/TransitPro-Bold.woff2") format("woff2"),
       url("/fonts/TransitPro-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
}

/* =========================
   GENERAL
========================= */
body, html {
    margin: 0;
    padding: 0;
    font-family: "TransitPro", sans-serif;
}

h2 {
	text-align: center;
}

/* =========================
   HEADER
========================= */
header {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.nav-container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
}

.logo {
    height: 60px;
}

/* =========================
   MENU
========================= */
.menu {
    list-style: none;
    display: flex;
    gap: 25px;
    font-size: 18px;
    padding: 0;
    margin: 0;
}

.menu li a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
}

/* Dropdown */
.has-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
    padding: 5px 0;
    margin-top: 5px;
    min-width: 160px;
}

.has-dropdown .dropdown-menu li a {
    display: block;
    padding: 8px 15px;
}

.has-dropdown.open .dropdown-menu {
    display: block;
}

/* Burger */
.burger {
    display: none;
    font-size: 32px;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

@media(max-width:768px){
    .hero-img { height:250px; }
}

/* =========================
   KURSE
========================= */
.kurse {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
    margin: 50px auto;
    flex-wrap: nowrap;
}

.kurs-box {
    width: 300px;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
}

.kurs-box h3 {
    font-weight: 700;
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    background: #b20000;
    color: #fff;
    text-decoration: none;
    margin-top: 10px;
}

/* =========================
   VIDEO
========================= */
.video-section {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
	background: #fafafa;
}

.video-wrapper {
    display: flex;
    max-width: 1000px;
    width: 100%;
    gap: 40px;
    align-items: center;
}

.video-text {
    flex: 1;
	padding: 0px 20px 0px 20px;
}

.video-text h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.video-text p {
    font-size: 16px;
    line-height: 1.5;
}

.video-container {
    flex: 1;
}

.video-container iframe {
    width: 100%;
    height: 315px;
    max-width: 560px;
}

/* RESPONSIVE: mobile */
@media(max-width:768px){
    .video-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .video-text h2 {
        font-size: 24px;
    }
    
    .video-text p {
        font-size: 15px;
    }
}

/* =========================
   FAQ
========================= */
.faq-section {
    margin-bottom: 75px;
	padding: 20px 20px 20px 20px;
}

.faq-item {
    max-width: 700px;
    margin: 10px auto;
    border-bottom: 1px solid #ddd;
}

.faq-question {
    cursor: pointer;
    padding: 15px;
    margin: 0;
    font-size: 18px;
    background: #f8f8f8;
    position: relative;
}

.faq-question::after {
    content: '▾';
    position: absolute;
    right: 20px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 15px 15px 15px;
    font-size: 16px;
}



/* =========================
   FEEDBACK
========================= */
.feedback-section {
    background: #fafafa;
    padding: 50px 20px;
}

.feedback-section h2 {
    text-align: center;
}

.feedback-wrapper {
    max-width: 900px;
    margin: auto;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
    padding-bottom: 50px;
}

.feedback-text {
    flex: 1;
}

.feedback-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feedback-form input,
.feedback-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    width: 100%;
}

.feedback-form button {
    padding: 12px;
    background: #b20000;
    color: #fff;
    border: none;
    cursor: pointer;
}

/* =========================
   BACK TO TOP BUTTON
========================= */
#toTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #b20000;
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media(max-width:900px){
    .desktop-menu { display:none; }
    .burger { display:block; }

    #mobileOverlay.mobile-list {
        display: none;
        position: fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:#fff;
        z-index:1000;
        overflow-y:auto;
        padding:40px 20px;
    }

    #mobileOverlay.open { display:block; }
    .mobile-sub { display:none; }

    #mobileOverlay.mobile-list ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #mobileOverlay.mobile-list li a,
    #mobileOverlay.mobile-list .collapse-btn {
        font-size: 20px;
        padding: 12px 10px;
        display: block;
    }

    .mobile-contact-title {
        padding-top: 30px;
        padding-bottom: 20px;
        font-size: 22px;
    }

    .mobile-contact {
        padding-bottom: 10px;
        font-size: 18px;
    }

    .kurse {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .feedback-wrapper {
        flex-direction: column;
        gap: 20px;
    }
}

/* Mobile Anpassung: volle Breite, Links verteilt */
@media(max-width:768px){
    .footer-overlay {
        width: calc(100% - 40px); /* fast volle Breite */
        left: 10px;
        transform: none;
        padding: 10px;
        gap: 5px;
    }

    .footer-overlay a {
        flex: 1 1 auto; /* Links gleichmäßig verteilen */
        text-align: center;
        font-size: 16px;
    }
}

/* =========================
   KURS1 SEITE (iframe + footer overlay)
========================= */
iframe.fullscreen {
    width: 100vw;
    height: 100vh;
    border: 0;
}

.footer-overlay {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer-overlay a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
	font-size: 16px;
}

/* Desktop: Burger ausblenden auf Kursseiten */
@media(min-width:901px){
    .burger { display: none; }
    #mobileOverlay.mobile-list { display: none !important; }
}
