/* THP Seiten - Custom CSS */
/* Basiert auf Bootstrap 5.3 mit grüner Farbwelt */

:root {
  /* Farbvariablen */
  --ttg-green: #2E7D32;
  --ttg-green-light: #66BB6A;
  --ttg-green-lighter: #A5D6A7;
  --ttg-text: #0F172A;
  --ttg-text-muted: #475569;
  --ttg-bg: #F8FAFC;
  --ttg-border: #E2E8F0;
  
  /* Schatten */
  --ttg-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --ttg-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --ttg-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --ttg-radius: 1rem;
  --ttg-radius-lg: 1.5rem;
}

/* Body & Base Styles */
body {
  color: var(--ttg-text);
  background: var(--ttg-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
}

/* Typography */
.lead {
  font-weight: 400;
  color: var(--ttg-text-muted);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--ttg-text);
  font-weight: 600;
}

.text-primary {
  color: var(--ttg-green) !important;
}

.text-muted {
  color: var(--ttg-text-muted) !important;
}

/* Buttons */
.btn-primary {
  background: var(--ttg-green);
  border-color: var(--ttg-green);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--ttg-green-light);
  border-color: var(--ttg-green-light);
  transform: translateY(-1px);
  box-shadow: var(--ttg-shadow-lg);
}

.btn-outline-primary {
  color: var(--ttg-green);
  border-color: var(--ttg-green);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--ttg-green);
  border-color: var(--ttg-green);
  transform: translateY(-1px);
  box-shadow: var(--ttg-shadow-lg);
}

.btn-outline-light {
  border-width: 2px;
  font-weight: 500;
  border-radius: 0.75rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 0.875rem;
}

/* Navigation */
.navbar {
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.nav-link {
  color: var(--ttg-text-muted);
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--ttg-green);
}

/* Hero Section */
.hero {
  position: relative;
}

.hero .carousel-item {
  position: relative;
}

.hero .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.3) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.hero .carousel-caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(15, 23, 42, 0.25);
  backdrop-filter: saturate(140%) blur(8px);
  border-radius: var(--ttg-radius);
  padding: 2rem;
  margin: 0 1rem;
  text-align: left !important;
}

.hero .carousel-caption h1,
.hero .carousel-caption h2 {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 1rem;
}

.hero .carousel-caption p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 5%;
  opacity: 0.8;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 1;
}

.hero .carousel-indicators {
  bottom: 2rem;
}

.hero .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 4px;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--ttg-radius);
  box-shadow: var(--ttg-shadow-sm);
  transition: all 0.3s ease-in-out;
  background: white;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ttg-shadow-lg);
}

.card-body {
  padding: 1.5rem;
}

.rounded-4 {
  border-radius: var(--ttg-radius) !important;
}

/* Icon Circles */
.bg-primary {
  background: var(--ttg-green) !important;
}

/* Badges */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
}

.badge.bg-light {
  background: var(--ttg-bg) !important;
  color: var(--ttg-text) !important;
  border: 1px solid var(--ttg-border) !important;
}

/* Accordion */
.accordion-item {
  border: none;
  margin-bottom: 1rem;
}

.accordion-button {
  background: white;
  border: none;
  border-radius: var(--ttg-radius) !important;
  box-shadow: var(--ttg-shadow-sm);
  font-weight: 500;
  color: var(--ttg-text);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--ttg-green);
  color: white;
  box-shadow: var(--ttg-shadow);
}

.accordion-button:focus {
  box-shadow: var(--ttg-shadow);
  border-color: transparent;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}

.accordion-body {
  background: white;
  border-radius: 0 0 var(--ttg-radius) var(--ttg-radius);
  padding: 1.5rem;
  color: var(--ttg-text-muted);
  line-height: 1.6;
}

/* Sections */
section {
  scroll-margin-top: 80px;
}

.border-top {
  border-color: var(--ttg-border) !important;
}

/* Footer */
footer {
  background: white !important;
  border-color: var(--ttg-border) !important;
}

footer a {
  color: var(--ttg-text-muted);
  transition: color 0.2s ease-in-out;
}

footer a:hover {
  color: var(--ttg-green);
}

/* Utilities */
.shadow-sm {
  box-shadow: var(--ttg-shadow-sm) !important;
}

.shadow {
  box-shadow: var(--ttg-shadow) !important;
}

.shadow-lg {
  box-shadow: var(--ttg-shadow-lg) !important;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .hero .carousel-caption {
    padding: 1.5rem;
    margin: 0 0.5rem;
  }
  
  .hero .carousel-caption h1 {
    font-size: 2rem;
  }
  
  .hero .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 576px) {
  .hero .carousel-caption {
    padding: 1rem;
    margin: 0 0.25rem;
  }
  
  .hero .carousel-caption h1 {
    font-size: 1.75rem;
  }
  
  .hero .carousel-caption .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .hero .carousel-caption .btn:last-child {
    margin-bottom: 0;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles für Barrierefreiheit */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
  outline: 2px solid var(--ttg-green);
  outline-offset: 2px;
}

/* Animation für Fade-ins */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Print Styles */
@media print {
  .navbar,
  .hero,
  footer {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
  
  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}



/* ========================================
   VOLLBREITER, RESPONSIVER HERO-SLIDER
   ======================================== */

/* Vollbreiter Hero-Slider */
.tt-hero { 
  margin: 0; 
  padding: 0;
}

.tt-hero .carousel,
.tt-hero .carousel-inner,
.tt-hero .carousel-item { 
  height: clamp(340px, 48vh, 720px); 
}

.tt-hero .carousel-item > img {
  width: 100%; 
  height: 100%;
  object-fit: cover; 
  object-position: center;
  display: block;
}

.tt-hero .container, 
.tt-hero .container-lg, 
.tt-hero .container-fluid {
  max-width: 100%; 
  padding-left: 0; 
  padding-right: 0;
}

.tt-hero .carousel-caption { 
  left: 0; 
  right: 0; 
  bottom: 1.5rem; 
  text-align: left;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

/* Responsive Anpassungen für Hero */
@media (max-width: 768px) {
  .tt-hero .carousel,
  .tt-hero .carousel-inner,
  .tt-hero .carousel-item { 
    height: clamp(280px, 40vh, 500px); 
  }
  
  .tt-hero .carousel-caption {
    bottom: 1rem;
    padding: 0 1rem;
  }
  
  .tt-hero .carousel-caption h1,
  .tt-hero .carousel-caption h2 {
    font-size: 1.75rem;
  }
  
  .tt-hero .carousel-caption .lead {
    font-size: 1rem;
  }
  
  .tt-hero .carousel-caption .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 576px) {
  .tt-hero .carousel,
  .tt-hero .carousel-inner,
  .tt-hero .carousel-item { 
    height: clamp(250px, 35vh, 400px); 
  }
  
  .tt-hero .carousel-caption h1,
  .tt-hero .carousel-caption h2 {
    font-size: 1.5rem;
    line-height: 1.2;
  }
  
  .tt-hero .carousel-caption .lead {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .tt-hero .carousel-caption .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .tt-hero .carousel-caption .btn:last-child {
    margin-bottom: 0;
  }
}

