/*
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code of
 * the TYPO3 source package.
 *
 * The TYPO3 project - inspiring people to share!
 */

/* ===========================================
   Header & Navigation
   =========================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  transition: padding 0.3s ease;
}

.site-header .header-logo img {
  height: 56px;
  width: auto;
  transition: height 0.3s ease;
}

/* Shrink-Effekt beim Scrollen */
.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.site-header.scrolled .header-inner {
  padding: 8px 0;
}

.site-header.scrolled .header-logo img {
  height: 35px;
}

.site-header.scrolled .navbar-nav .nav-link {
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

/* Desktop: Collapse container needs flex to push nav right */
.navbar-collapse {
  display: flex !important;
  flex-basis: auto;
  justify-content: flex-end;
}

.navbar-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #007bff;
}

/* Dropdown */
.navbar-nav .dropdown-menu {
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Mobile Navigation Toggle */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===========================================
   Content Layout
   =========================================== */

.content-container {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Abstand nach Jumbotron reduzieren */
.jumbotron + .content-container {
  margin-top: 0;
}

/* ===========================================
   Content Cards
   =========================================== */

.content-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

/* Frame styling für TYPO3 Content Elemente */
.frame {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 30px;
}

/* Kein Card-Style für bestimmte Elemente */
.frame-type-html,
.frame-layout-0.no-card {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ===========================================
   Main Content Area
   =========================================== */

main {
  padding-top: 30px;
  padding-bottom: 60px;
  min-height: calc(100vh - 300px);
  background-color: #f5f5f5;
}

.content-section {
  margin-bottom: 40px;
}

/* ===========================================
   Jumbotron / Hero
   =========================================== */

.jumbotron {
  margin-bottom: 0;
  border-radius: 0;
}

/* ===========================================
   Footer
   =========================================== */

footer {
  margin-top: auto;
  font-size: 0.85rem;
  line-height: 1.4;
}

footer section {
  padding: 0.75rem 1rem !important;
}

footer .container {
  margin-top: 1.5rem !important;
  margin-bottom: 1rem;
}

footer .row {
  margin-top: 0.5rem !important;
}

footer h6 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem !important;
}

footer p {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
}

footer .text-center.p-4 {
  padding: 0.75rem !important;
  font-size: 0.8rem;
}

/* Footer Navigation - linksbündig */
footer .navbar-nav {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

footer .navbar-nav .nav-item {
  width: 100%;
}

footer .navbar-nav .nav-link {
  padding: 0.15rem 0;
  color: #6c757d;
  font-size: 0.8rem;
}

footer .navbar-nav .nav-link:hover {
  color: #333;
}

/* ===========================================
   Responsive Anpassungen
   =========================================== */

@media (max-width: 991.98px) {
  .site-header .header-inner {
    flex-wrap: wrap;
  }

  .site-header .header-logo {
    margin-bottom: 10px;
  }

  .site-header .header-logo img {
    height: 42px;
  }

  .site-header.scrolled .header-logo img {
    height: 28px;
  }

  .navbar {
    width: 100%;
    justify-content: flex-start;
  }

  .navbar-collapse {
    display: none !important;
    width: 100%;
    flex-direction: column;
  }

  .navbar-collapse.show {
    display: flex !important;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }
}

@media (max-width: 767.98px) {
  .content-card,
  .frame {
    padding: 20px;
    margin-bottom: 20px;
  }

  main {
    padding-top: 20px;
  }
}
