/* Deaktivieren */
html {
    display: none !important;
}

/* 1. Schriftart & Variablen
----------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #B41E50;
    --primary-bg-hover: #ddd;
    --primary-bg-current: #fff;
    --primary-bg: rgb(180, 30, 80);
    --primary-dark: rgb(50, 50, 50);
    --primary-light: #f0fdfa;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f3f4f6;
    --bg-white: #ffffff;
    --bg-grey: #dcdcdc;
    --radius-card: 16px;
    --radius-btn: 8px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg-body);
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a { color: var(--primary); text-decoration: none; transition: all 0.2s; }
a:hover { color: var(--primary-dark); }

/* 2. Layout Container
----------------------------------------------- */
#container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    background: var(--bg-grey);
   
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: block; 
}

/* 3. Header & Horizontale Navigation
----------------------------------------------- */
#header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 40px;
    
    display: flex;
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    gap: 20px;
}

#logo img {
    max-width: 120px;
}

#header h1 {
    font-family: 'Raleway','Inter', sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-dark); /* BBW Teal */
    margin: 0;
    white-space: nowrap; /* Kein Umbruch im Logo */
}

#navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center; 
    background:  var(--primary-bg); 

}

ul.mainNav1 {
    display: flex; /* Horizontal nebeneinander */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0px; /* Abstand zwischen den Buttons */
    flex-wrap: wrap; /* Umbruch auf kleinen Screens erlauben */
    justify-content: center;
}

ul.mainNav1 > li {
    margin: 0;
    display: inline-block;

}

ul.mainNav1 li a {
    display: block;
    padding: 10px 45px;
    color: #fff;
    font-weight: 500;
    font-size: 19px;
    line-height:50px;
    text-decoration:none;
    font-family: 'Raleway';
    font-weight: bold;
    
}

ul.mainNav1 li a:hover,
ul.mainNav1 a.current {
    color: var(--primary-dark);
    background-color: var(--primary-bg-hover);
    transition: background-color 0.3s ease;

}
ul.mainNav1 a.current {
    background-color: var(--primary-bg-current);
}

/* Sub-Menüs verstecken oder stylen (optional) */
ul.mainNav2 { display: none; } /* Zweite Ebene erst mal ausblenden für cleanen Look */


/* 4. Content & Sidebar
----------------------------------------------- */
#content {
    padding: 30px 50px;
    min-height: 400px;
    margin-top:-5px;
}

/* Home Section Styling */
.home-section {
    margin-top: -30px;
    padding: 100px 0 ;
    background: url(https://u.jimcdn.com/cms/o/s97010f7af1db5c20/userlayout/img/bbw.png?t=1771941788);
  background-position: center 40%; 
  background-repeat: no-repeat;
  background-size: cover; 
  width: calc(100% + 110px);
  margin-left: -55px; 
    display: block;
}

.home-content {
    padding: 20px;
    border-radius: var(--radius-card);
    color: var(--primary-dark)
    text-align: center;
    border: 1px solid rgba(20, 184, 166, 0.1);
    max-width: 800px;
    margin: 40px auto;
    background-color: rgba(255, 255, 255, 0.7);
}

.home-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: white;
    border: 1px solid var(--primary);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.home-section h1 {
    font-size: clamp(32px, 5vw, 48px); /* Dynamische Größe */
    line-height: 1.1;
    color: #111827;
    margin-bottom: 20px;
    font-weight: 800;
}

.home-section .highlight {
    color: var(--primary);
    text-shadow: 1px 1px #000;
}

.home-subline {
    font-size: 18px;
    color: var(--primary-dark)
    max-width: 600px;
    margin: 0 auto;
}

/* Anpassung für Mobile */
@media (max-width: 640px) {
    .home-section {
        padding: 40px 15px;
    }
}

/* Fachbereiche Sektion */
.expertise {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.sub-badge {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 32px;
    margin-top: 10px;
    border-bottom: none;
    color: var(--primary-dark);
}

/* Grid Layout */
.expertises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* Cards */
.expertise-card {
    background: #ffffff;
    padding: 30px;
    border-radius: var(--radius-btn);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.expertise-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.expertise-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-main);
}

.expertise-card p {
    font-size: 14px;
    color: var(--text-muted);
    flex-grow: 1; /* Schiebt den Link immer nach unten */
    margin-bottom: 20px;
}

.expertise-link {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.expertise-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 640px) {
    .expertises-grid {
        grid-template-columns: 1fr;
    }
}

/* Aktuelle Kurse Sektion */
.event-section {
    padding: 60px 0;
    border-top: 1px solid #f3f4f6;
}

.section-title-wrap {
    margin-bottom: 40px;
}

.label-tiny {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-main {
    font-size: 28px;
    margin: 5px 0;
}

/* Kurs-Feed */
.course-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.event-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: border-color 0.2s;
}

.event-item:hover {
    border-color: var(--primary);
}

/* Datums-Box */
.event-date {
    background: var(--primary-light);
    color: var(--primary-dark);
    min-width: 65px;
    height: 65px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.event-date .day { font-size: 20px; line-height: 1; }
.event-date .month { font-size: 12px; text-transform: uppercase; }

/* Info-Bereich */
.event-info { flex-grow: 1; }

.category-tag {
    font-size: 11px;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--text-muted);
}

.event-title {
    margin: 5px 0;
    font-size: 16px;
    color: var(--text-main);
}

.event-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Button-Styling */
.btn-minimal {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 6px;
}

.btn-minimal:hover {
    background: var(--primary);
    color: #fff !important;
    border-color: var(--primary);
}

.btn-outline {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 25px;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

.center-footer { text-align: center; }

/* Mobile */
@media (max-width: 500px) {
    .course-feed { grid-template-columns: 1fr; }
    .event-item { flex-direction: column; align-items: flex-start; }
    .event-date { width: 100%; height: auto; padding: 10px; flex-direction: row; gap: 10px; }
}

#sidebar {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    color: var(--text-muted);
    font-size: 0.9em;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

/* 5. Footer
----------------------------------------------- */
#footer {
    background-color: var(--primary-dark);
    color: white;
    margin-top: auto;
}

#footer .gutter {
    padding: 30px 40px;
    text-align: center;
}

#footer a { color: rgba(255,255,255,0.8); }
#footer a:hover { color: white; }

/* 6. Mobile Anpassung
----------------------------------------------- */
@media screen and (max-width: 800px) {
    #header {
        flex-direction: column; /* Untereinander auf Handys */
        padding: 20px;
        text-align: center;
    }
    
    #navigation {
        width: 100%;
        margin-top: 15px;
    }
    
    ul.mainNav1 {
        justify-content: center;
    }
    
    #content { padding: 30px 20px; }
}