/* === SAUBERE 4-BEREICHE STRUKTUR === */

/* === CSS Reset & Basislayout === */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f5f5f5;
  color: #222;
  line-height: 1.6;
}

/* === EINHEITLICHES CONTAINER-SYSTEM === */
.page-container {
  max-width: 90%;
  width: 90%;
  margin: 0 auto;
  box-sizing: border-box;
}

@media screen and (min-width: 1200px) {
  .page-container {
    max-width: 1200px;
  }
}

/* === 1. HEADER-BEREICH === */
.header-area {
  position: relative;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 8px 8px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .header-area {
    margin-bottom: 10px;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 1rem 20px;
}

.logo-container .tb-svg,
.logo-container .logo {
  height: 60px;
  max-width: 100%;
}

/* Mobile: Logos untereinander */
@media (max-width: 767px) {
  .logo-container {
    flex-direction: column;
    gap: 15px;
  }
}

/* === 2. BILD/SLIDER-BEREICH === */
.media-area {
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border 0.4s ease;
}

@media (max-width: 768px) {
  .media-area {
    margin-bottom: 10px;
  }
}

.media-area:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: none;
}

@media (max-width: 768px) {
  .media-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }
}

/* Einzelbild für Unterseiten */
.single-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.media-area:hover .single-image {
  transform: scale(1.015);
  filter: brightness(1.08) contrast(1.1) saturate(1.2);
}

@media (max-width: 768px) {
  .media-area:hover .single-image {
    transform: scale(1.01);
  }
}

/* Slider für Index */
.slider-container {
  width: 100%;
  height: 100%;
  aspect-ratio: 1080 / 500;
  overflow: hidden;
  position: relative;
  clip-path: inset(0);
}

@media (max-width: 768px) {
  .slider-container {
    aspect-ratio: 650 / 301;
  }
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  scroll-snap-type: x mandatory;
  overflow: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  clip-path: inset(0);
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider img {
  width: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  scroll-snap-align: start;
  transition: transform 0.4s ease, filter 0.4s ease;
  transform-origin: center center;
  overflow: hidden;
  position: relative;
}

.slider img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.media-area:hover .slider img {
  filter: brightness(1.08) contrast(1.1) saturate(1.2);
}

@media (max-width: 768px) {
  .media-area:hover .slider img {
    filter: brightness(1.05) contrast(1.05) saturate(1.1);
  }
}

.media-area:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* === 3. CONTENT-BEREICH === */
.content-area {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  padding: 2rem 20px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .content-area {
    padding: 1.5rem 15px;
    margin-bottom: 10px;
  }
}

.content-area h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
}

@media (max-width: 768px) {
  .content-area h1 {
    font-size: 1.5rem;
  }
}

/* === 4. FOOTER-BEREICH === */
.footer-area {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border-top: 3px solid #e20202;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem 20px;
  margin-bottom: 0px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-content span {
  color: #bdc3c7;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-content a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.footer-content a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.footer-content a:hover::before {
  left: 100%;
}

.footer-content a:hover {
  color: #e20202;
  border-color: #e20202;
  background: rgba(226, 2, 2, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 2, 2, 0.3);
}

/* Responsive Design für Footer */
@media (max-width: 768px) {
  .footer-area {
    padding: 1.5rem 15px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .footer-links {
    justify-content: center;
  }
  
  .footer-content a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

/* === DEZENTES OFFCANVAS MENÜ === */
#offcanvas-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 230px;
  height: 100vh;
  background: #ffffff;
  backdrop-filter: blur(10px);
  border-top-left-radius: 24px;
  border-bottom-left-radius: 24px;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, visibility 0.4s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
}

#offcanvas-menu.active {
  visibility: visible;
}

#offcanvas-menu.open {
  transform: translateX(0);
  opacity: 1;
}

#offcanvas-menu.closing {
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
}

#offcanvas-menu nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#offcanvas-menu nav ul li {
  margin: clamp(0.5rem, 1.5vw, 1rem) 0;
  opacity: 0;
  transform: translateX(20px);
}

#offcanvas-menu nav ul li a {
  color: rgba(0, 0, 0, 0.9);
  text-decoration: none;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  font-weight: 500;
  padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

#offcanvas-menu nav ul li a:hover {
  color: #b30000;
  transform: translateX(-4px);
}

#offcanvas-menu.open li {
  animation: slideIn 0.4s forwards;
  animation-fill-mode: forwards;
}

#offcanvas-menu.open li:nth-child(1) { animation-delay: 0.2s; }
#offcanvas-menu.open li:nth-child(2) { animation-delay: 0.3s; }
#offcanvas-menu.open li:nth-child(3) { animation-delay: 0.4s; }
#offcanvas-menu.open li:nth-child(4) { animation-delay: 0.5s; }
#offcanvas-menu.open li:nth-child(5) { animation-delay: 0.6s; }
#offcanvas-menu.open li:nth-child(6) { animation-delay: 0.7s; }
#offcanvas-menu.open li:nth-child(7) { animation-delay: 0.8s; }

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* === HAMBURGER TO X BUTTON === */
.hamburger-btn {
  position: absolute;
  top: 1rem;
  right: 12%; /* <- bezieht sich auf die .header-area - hier ändern und u */
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: transform 0.3s ease;
}

.hamburger-btn:hover {
  transform: scale(1.1);
}

.hamburger-btn span {
  display: block;
  width: 28px;
  height: 4px;
  background-color: #e20202;
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
  background-color: #e20202;
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
  background-color: #e20202;
}

.hamburger-btn.active:hover span:nth-child(1),
.hamburger-btn.active:hover span:nth-child(3) {
  background-color: #b30000;
}

.hamburger-btn:hover span {
  background-color: #b30000;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
  .hamburger-btn {
    right: 5%;
    top: 0.8rem;
  }
  
  #offcanvas-menu {
    width: min(220px, 70vw);
    padding: 1.5rem 0;
  }
  
  #offcanvas-menu nav ul li {
    margin: clamp(0.3rem, 2vw, 0.8rem) 0;
  }
}

@media (min-width: 1200px) {
  .hamburger-btn {
    right: 12%; /* <- bezieht sich auf die .header-area - hier ändern und oben */
  }
  
  #offcanvas-menu nav ul li {
    margin: clamp(0.6rem, 1vw, 1.2rem) 0;
  }
}

#overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
  z-index: 999;
  backdrop-filter: blur(2px);
}

#overlay.show {
  opacity: 1;
  visibility: visible;
}

/* === SLIDER DOTS === */
.slider-dots {
  position: absolute;
  bottom: 4%;  /* 8% vom unteren Rand */
  width: 100%;
  text-align: center;
  z-index: 10;
}

.slider-dots .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin: 0 6px;
  background: #888;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider-dots .dot.active {
  background: #e20202;
}

@media (max-width: 768px) {
  .slider-dots {
    position: relative !important;
    bottom: auto !important;
    margin-top: -10px !important;
    background: transparent !important;
  }
}

/* === EINHEITLICHE BUTTON-STYLES === */
/* Basis-Style für alle Buttons */
.btn-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: #e20202;
  text-decoration: none;
  border: 1px solid #e20202;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-base:hover {
  color: #b30000;
  border-color: #b30000;
  background: rgba(226, 2, 2, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(226, 2, 2, 0.2);
}

.btn-base:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(226, 2, 2, 0.2);
}

.btn-base:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-base:disabled:hover {
  color: #e20202;
  border-color: #e20202;
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* CTA Button (Call-to-Action) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  color: #e20202;
  text-decoration: none;
  border: 1px solid #e20202;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.cta-button:hover {
  color: #b30000;
  border-color: #b30000;
  background: rgba(226, 2, 2, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(226, 2, 2, 0.2);
}

/* Submit Button für Kontaktformular */
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  color: #e20202;
  text-decoration: none;
  border: 1px solid #e20202;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.submit-btn:hover {
  color: #b30000;
  border-color: #b30000;
  background: rgba(226, 2, 2, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(226, 2, 2, 0.2);
}

/* Barrierefreiheits-Button */
.accessibility-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  color: #e20202;
  text-decoration: none;
  border: 1px solid #e20202;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.accessibility-link-icon:hover {
  color: #b30000;
  border-color: #b30000;
  background: rgba(226, 2, 2, 0.1);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(226, 2, 2, 0.2);
}

/* Mobile Anpassungen für Buttons */
@media (max-width: 768px) {
  .btn-base {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
  
  .cta-button,
  .submit-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* === HEADER TEXTBLOCK === */
.header-textblock {
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  font-size: 1rem;
  color: #111;
  letter-spacing: 0.3px;
  line-height: 1.6;
  text-align: left;
}

@media (max-width: 768px) {
  .header-textblock {
    font-size: 0.95rem;
    text-align: center;
  }
}

/* === MODERNER BACK TO TOP BUTTON === */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #e20202 0%, #cc0000 100%);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2000;
  opacity: 0;
  transform: translateY(40px) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(226, 2, 2, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  backdrop-filter: blur(10px);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #b30000 0%, #900000 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(179, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.95);
}

.back-to-top svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  transition: transform 0.2s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

.back-to-top::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(-45deg);
  margin-top: 4px;
  transition: all 0.2s ease;
}

.back-to-top:hover::before {
  transform: rotate(-45deg) translateY(-2px);
  border-width: 4px;
}

.back-to-top.css-arrow svg {
  display: none;
}

@media (max-width: 768px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
    border-radius: 12px;
  }
  
  .back-to-top svg {
    width: 22px;
    height: 22px;
  }
  
  .back-to-top::before {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
  
  .back-to-top:hover::before {
    border-width: 3px;
  }
}

/* === EINFACHER COOKIE BANNER === */
.simple-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ecf0f1;
  padding: 1.5rem 2rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #e20202;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.simple-cookie-banner.show {
  transform: translateY(0);
}

.simple-cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.simple-cookie-text {
  flex: 1;
  min-width: 300px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.simple-cookie-text a {
  color: #e20202;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.simple-cookie-text a:hover {
  color: #b30000;
}

.simple-cookie-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.simple-cookie-btn {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 100px;
}

.simple-cookie-btn.accept {
  background: #e20202;
  color: white;
}

.simple-cookie-btn.accept:hover {
  background: #b30000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(226, 2, 2, 0.3);
}

.simple-cookie-btn.decline {
  background: transparent;
  color: #bdc3c7;
  border: 1px solid #555;
}

.simple-cookie-btn.decline:hover {
  background: #555;
  color: white;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .simple-cookie-banner {
    padding: 1.2rem 1rem;
  }
  
  .simple-cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .simple-cookie-text {
    min-width: auto;
    font-size: 0.85rem;
  }
  
  .simple-cookie-buttons {
    justify-content: center;
    width: 100%;
  }
  
  .simple-cookie-btn {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }
}

/* === KATALOG-CONTAINER === */
.catalog-container {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* === KATALOG-LINKS === */
.catalog-link {
  color: inherit !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s ease;
  border-bottom: 2px solid #e20202;
}

.catalog-link:hover {
  color: inherit !important;
  text-decoration: none !important;
  border-bottom: 3px solid #b30000;
}

/* === KATALOG-BILDER === */
.catalog-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.catalog-link:hover .catalog-image {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(179, 0, 0, 0.3);
}

/* === KATALOG-TITEL === */
.catalog-title {
  margin-top: 10px;
  font-weight: bold;
  color: inherit;
}

/* === ACCESSIBILITY-SEITE: ÜBERSCHREIBUNG FÜR STANDARD-LINKS === */
/* Spezifische Styles für Links auf der Barrierefreiheits-Seite */
.content-area a:not(.btn-base):not(.accessibility-link-icon) {
  color: #e20202 !important;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.content-area a:not(.btn-base):not(.accessibility-link-icon):hover {
  color: #b30000 !important;
  text-decoration: underline;
}

.content-area a:not(.btn-base):not(.accessibility-link-icon):visited {
  color: #cc0033 !important;
}

.content-area a:not(.btn-base):not(.accessibility-link-icon):visited:hover {
  color: #b30000 !important;
}
