/*-------------------------------------------------
GLOBAL STYLES
-------------------------------------------------*/
* {margin:0; padding:0; box-sizing:border-box;}
body {
    font-family: 'Droid Serif', serif;
    font-size: 14px;
    color: #333;
    background: #ebebeb;
}
img {border:none; max-width:100%;}
h1,h2,h3,h4 {margin-bottom:10px;}
h1 {font-family: 'Roboto', sans-serif; font-size:26px; font-weight:normal; color:#000;}
h2 {font-family: 'Droid Serif', serif; font-size:18px; color:#000;}
h3 {font-family: 'Droid Serif', serif; font-size:16px; color:#555;}
a {text-decoration:none; color:#000;}
a:hover {color:#333;}

/*-------------------------------------------------
MENU
-------------------------------------------------*/
.menu-wrap { overflow:hidden; background:#1a1a1a; padding:10px 0;}
.language {text-align:right; margin-bottom:5px;}
.language img {margin-left:10px; width:24px; height:auto;}
.menu {background:#000; text-align:center;}
.menu ul {list-style:none; display:flex; justify-content:center; flex-wrap:wrap;}
.menu ul li {margin:0;}
.menu ul li a {
    display:block;
    padding:15px 25px;
    color:#fff;
    font-family:'Roboto', sans-serif;
    text-transform:uppercase;
}
.menu ul li a.active, .menu ul li a:hover {background:#fff; color:#000;}

/*-------------------------------------------------
HEADER
-------------------------------------------------*/
.header {
    width:100%;
    padding:20px 30px;
    background:#fff;
    display:flex;
    align-items:center;
    box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.logo h1 {font-size:28px; color:#000;}

.banner {
    width: 100%;
    max-width: 1200px;
    height: 600px;
    margin: 0 auto 30px auto;
    background: url('../images/pic_heftrich1.JPEG') no-repeat center top;
    background-size: auto 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    overflow: hidden;
}

.banner h1 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.6);
    padding: 10px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

/*-------------------------------------------------
PAGE CONTENT & SIDEBAR
-------------------------------------------------*/
.page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.primary-col, .side-bar {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Abstand zwischen den Panels */
}

.primary-col {
    flex: 1 1 65%; /* Linke Spalte für Research & Teaching */
}

.side-bar {
    flex: 1 1 30%; /* Rechte Spalte für Sidebar */
}

/* Panels allgemein */
.panel {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.panel .title h1, .panel .title h2 {
    margin-bottom: 15px;
}
/* Nur für Project-Panels */
.project-grid .panel .title {
    background-color: #000;   /* schwarzer Balken */
    color: #fff;              /* weiße Schrift */
    padding: 10px 15px;
    border-radius: 8px 8px 0 0; /* abgerundete obere Ecken */
}

.project-grid .panel .title h2 {
    margin: 0;
    font-size: 18px;
    color: #fff;  /* explizit weiße Schriftfarbe */
}
/* Container für die Links */
.title h1 {
    display: flex;
    gap: 15px;               /* Abstand zwischen den Tabs */
    flex-wrap: wrap;          /* Umbruch bei kleinen Bildschirmen */
    font-size: 18px;
    font-weight: normal;
}

/* Alle Links als Tabs */
.title a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;      /* abgerundete „Pillen“ */
    text-decoration: none;
    color: #333;
    background-color: #f0f0f0;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover */
.title a:hover {
    background-color: #ddd;
    color: #000;
}

/* Aktiver Tab */
.title a.active {
    background-color: #000;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-weight: 600;
    transform: translateY(-1px);
}

/* Sidebar Panels */
.side-bar .panel {
    background: #f4f4f4;
}
.side-bar .content ul li {
    list-style:none;
    padding:10px 0;
    border-bottom:1px solid #ddd;
}
.side-bar .content ul li a {
    color:#000;
}
.side-bar .content ul li a:hover { color:#333; }

/*-------------------------------------------------
IMAGE PANEL (Bild-Box)
-------------------------------------------------*/
.image-panel {
    max-width: 360px;
    margin: 25px auto;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.18);
}
.image-panel .title {
    padding: 15px;
    background: #fff;
    text-align: center;
}
.image-box {
    padding: 0;
    text-align: center;
}
.top-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 14px 14px;
    transition: transform 0.25s ease-in-out;
}
.top-image:hover {
    transform: scale(1.03);
}
/*-------------------------------------------------
PROJECT BOXES
-------------------------------------------------*/
/*-------------------------------------------------
PROJECT BOXES – einheitliche Höhe & Bildgrößen
-------------------------------------------------*/
.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.project-grid .panel {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-grid .panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.project-grid .panel .title {
    background-color: #000;
    color: #fff;
    padding: 12px 20px;
}

.project-grid .panel .title h2 {
    margin: 0;
    font-size: 18px;
}

.project-grid .panel .content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* sorgt dafür, dass alle Panels gleiche Höhe haben */
}

.project-grid .panel .content img {
    width: 100%;
    height: 180px; /* feste Höhe für alle Bilder */
    object-fit: cover; /* Bild skaliert und bleibt proportional */
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-grid .panel .content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-top: auto; /* Text schiebt sich nach unten, um gleichmäßige Höhe zu unterstützen */
}

/* Responsive */
@media (max-width:1024px) {
    .project-grid {
        gap: 20px;
    }
}

@media (max-width:768px) {
    .project-grid {
        flex-direction: column;
    }

    .project-grid .panel .content img {
        height: auto; /* auf Mobile volle Breite, Höhe automatisch */
    }
}



/*-------------------------------------------------
FOOTER
-------------------------------------------------*/
.footer-wrap {
    display:flex;
    justify-content:space-between;
    background:#1a1a1a;
    color:#ccc;
    padding:50px 30px;
    flex-wrap:wrap;
     text-align:center;
}
.footer .panel {flex:1 1 45%; margin-bottom:20px;}
.footer .content ul li {list-style:none; margin-bottom:10px;}
.footer .content ul li a {
    color:#ccc;
    text-decoration:none;
}
.footer .content ul li a:hover {color:#eee;}

.banner-footer-homepage {
    background-color: #1a1a1a; /* sehr dunkles Grau */
    color: #ffffff; /* weiße Schrift für Kontrast */
    padding: 15px 10px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 2px solid #333333; /* etwas hellerer Rahmen */
}

.banner-footer-homepage a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 5px;
    transition: color 0.3s ease;
}

.banner-footer-homepage a:hover {
    color: #fca311; /* dezenter Akzent beim Hover */
}

.footer-separator {
    margin: 0 5px;
    color: #ffffff99; /* halbtransparente Trennstriche */
}

/* Responsive Design für kleine Bildschirme */
@media screen and (max-width: 600px) {
    .banner-footer-content {
        display: flex;
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .footer-separator {
        display: none; /* keine Trennstriche auf kleinen Screens */
    }
}


.copyright-wrap {
    background:#000;
    text-align:center;
    padding:20px 0;
    color:#ccc;
}
.copyright-wrap a {
    color:#ccc;
}
.copyright-wrap a:hover {
    color:#eee;
}
.page .grid-panels .panel {
    flex: 1 1 100%;
}
/* Supervision-Seite Panels wie Homepage */
.supervision-panels {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* optional, wie auf Homepage */
}

.supervision-panels .panel {
    flex: 1 1 100%; /* volle Breite */
    max-width: 1200px; /* gleiche Maximalbreite wie Homepage */
    margin: 0 auto 20px auto; /* zentriert */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* wie auf Homepage */
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}
.language {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.language img {
    width: 30px;
    cursor: pointer;
}

/*-------------------------------------------------
RESPONSIVE
-------------------------------------------------*/
@media (max-width:1024px) {
    .page {flex-direction:column;}
    .primary-col, .side-bar {flex:1 1 100%;}
    .banner {height:300px; padding:15px;}
    .banner h1 {font-size:28px; padding:8px 16px;}
}
@media (max-width:768px) {
    .banner {height:250px;}
    .banner h1 {font-size:24px; padding:8px 12px;}
}
@media (max-width:480px) {
    .banner {height:200px;}
    .banner h1 {font-size:22px; padding:6px 10px;}
}
