/* ============================================
   iEB Gummitechnik – Hauptstyles (Mobile First)
   ============================================ */

/* --- CI-Variablen --- */
:root {
  --color-primary: #e41410;
  --color-primary-dark: #da1d20;
  --color-secondary: #363636;
  --color-text: #333333;
  --color-bg: #ffffff;
  --color-bg-alt: #f2f2f2;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-heading: 'Lato', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;

  --header-height: 120px;
  --topbar-height: 40px;
  --transition: 0.3s ease;
}

/* --- Reset / Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-secondary);
}

h1, h2 {
  color: var(--color-primary);
}

h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); margin-bottom: 0.8rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: #f5f5f5;
  color: #7f7f7f;
  font-size: 12px;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-primary);
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.topbar a {
  color: #7f7f7f;
  transition: color var(--transition);
}

.topbar a:hover {
  color: #555;
}

/* Mobil: Kontaktinfos ausblenden */
.topbar-contact {
  display: none;
  gap: 20px;
  align-items: center;
}

.topbar-contact i {
  margin-right: 5px;
}

.topbar-meta {
  display: flex;
  gap: 15px;
}

@media (min-width: 769px) {
  .topbar .container {
    justify-content: space-between;
  }

  .topbar-contact {
    display: flex;
  }
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

/* Home: Navigation transparent über dem Hero-Bild */
body.home .site-header {
  position: absolute;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

body.home .site-header.is-fixed {
  position: fixed;
  top: 0;
  background: var(--color-primary);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.site-logo img {
  height: 45px;
  width: auto;
}

/* Mobile Nav Toggle — sichtbar auf Mobil */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-white);
  cursor: pointer;
  padding: 10px;
}

/* Hauptnavigation — Mobil: versteckt, Dropdown */
.main-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-primary);
  flex-direction: column;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.main-nav.open {
  display: flex;
}

.main-nav a,
.main-nav .active-label {
  display: block;
  padding: 15px 20px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-white);
  text-transform: lowercase;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.main-nav a:hover,
.main-nav .active-label {
  color: var(--color-white);
  border-bottom-color: rgba(237, 237, 237, 1);
}

/* Home-Variante Mobil */
body.home .nav-wrapper {
  height: 80px;
}

body.home .site-logo img {
  height: 60px;
}

body.home .site-header.is-fixed .nav-wrapper {
  height: 60px;
  transition: height 0.4s ease;
}

body.home .site-header.is-fixed .site-logo img {
  height: 45px;
  width: auto;
}

/* Desktop Navigation */
@media (min-width: 769px) {
  .nav-wrapper {
    height: 80px;
  }

  .site-logo img {
    height: 60px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0;
    background: none;
    box-shadow: none;
  }

  .main-nav a,
  .main-nav .active-label {
    padding: 12px 10px;
    border-bottom: 2px solid transparent;
  }

  body.home .nav-wrapper {
    height: 140px;
  }

  body.home .site-logo img {
    height: 100px;
    width: 173px;
  }

  body.home .site-header.is-fixed .nav-wrapper {
    height: 80px;
  }

  body.home .site-header.is-fixed .site-logo img {
    height: 60px;
    width: auto;
  }
}

/* ============================================
   AFTERHEADER / BREADCRUMB
   ============================================ */
.afterheader {
  background: #f9f9f9;
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  line-height: 48px;
  overflow: hidden;
  color: #757575;
}

.afterheader-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1250px;
}

/* Mobil: Pagetitle ausblenden */
.afterheader .pagetitle {
  display: none;
  color: #bfbfbf;
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-heading);
}

.afterheader .breadcrumb ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  font-size: 11px;
}

.afterheader .breadcrumb ul li {
  margin-bottom: 0;
}

.afterheader .breadcrumb ul li + li::before {
  content: ' > ';
  margin: 0 5px;
  color: #757575;
}

.afterheader .breadcrumb a {
  color: #757575;
  text-decoration: none;
}

.afterheader .breadcrumb a:hover {
  text-decoration: underline;
}

.afterheader .breadcrumb .active {
  color: #757575;
}

@media (min-width: 769px) {
  .afterheader .pagetitle {
    display: block;
  }
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  overflow: hidden;
}

.hero-slide {
  position: relative;
  height: 60vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: none;
}

.hero-slide:first-child {
  display: block;
}

.hero-slide.active {
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1250px;
  margin: 0 auto;
  padding: 20px;
}

.hero-overlay.v-center {
  justify-content: center;
}

.hero-overlay.v-bottom {
  justify-content: flex-end;
  padding-bottom: 40px;
}

.hero-content-box {
  width: 100%;
  padding: 20px;
}

.hero-box--light {
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  text-align: center;
}

.hero-box--dark {
  border-top: 2px solid rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid rgba(0, 0, 0, 0.6);
}

.hero-content-box h2 {
  font-size: clamp(1.3rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0;
}

.hero-content-box h2 span.bg-dark {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--color-white);
}

.hero-content-box h2 span.text-red {
  color: var(--color-primary);
}

/* Slider Controls */
.hero-slider .slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.hero-slider .slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.hero-slider .slider-dot.active {
  background: var(--color-white);
}

.hero-slider .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider .slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-slider .slider-prev {
  left: 10px;
}

.hero-slider .slider-next {
  right: 10px;
}

@media (min-width: 769px) {
  .hero-slide {
    height: 75vh;
    min-height: 400px;
  }

  .hero-content-box {
    width: 70%;
    padding: 30px;
  }

  .hero-content-box h2 span.bg-dark {
    padding: 12px 30px;
  }

  .hero-overlay.v-bottom {
    padding-bottom: 60px;
  }

  .hero-slider .slider-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .hero-slider .slider-prev {
    left: 15px;
  }

  .hero-slider .slider-next {
    right: 15px;
  }
}

@media (min-width: 993px) {
  .hero-slide {
    height: 80vh;
  }

  .hero-content-box {
    width: 60%;
  }
}

/* ============================================
   PAGE HEADER (Unterseiten)
   ============================================ */
.page-header {
  position: relative;
  height: 35vh;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}

.page-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

.page-header .container {
  position: relative;
  z-index: 2;
  padding-bottom: 30px;
}

.page-header h1 {
  color: var(--color-white);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-header .teaser {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  max-width: 700px;
}

@media (min-width: 769px) {
  .page-header {
    height: 45vh;
    min-height: 280px;
  }

  .page-header .container {
    padding-bottom: 40px;
  }

  .page-header .teaser {
    font-size: 1.1rem;
  }
}

@media (min-width: 993px) {
  .page-header {
    height: 50vh;
    min-height: 300px;
  }
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section {
  padding: 40px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: var(--color-secondary);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-white);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  margin: 15px auto 0;
}

/* Keine Unterstrich-Linie auf der Startseite */
body.home .section-title::after {
  display: none;
}

@media (min-width: 769px) {
  .section {
    padding: 60px 0;
  }
}

/* --- Contao-style Content Sections --- */
.content-section {
  padding: 30px 0;
}

.ce-headline {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.ce-headline.center {
  text-align: center;
}

/* Content Tables (Nachhaltigkeits-Tabellen etc.) */
.content-table {
  width: 100%;
  border-collapse: collapse;
}

.content-table td {
  padding: 5px;
  vertical-align: top;
}

/* Mobil: Tabellen-Zellen untereinander */
.content-table,
.content-table tbody,
.content-table tr,
.content-table td {
  display: block;
  width: 100%;
}

.content-table td {
  text-align: center !important;
  padding: 10px 0;
}

.content-table td img {
  margin: 0 auto;
}

@media (min-width: 769px) {
  .content-table,
  .content-table tbody,
  .content-table tr,
  .content-table td {
    display: revert;
    width: auto;
  }

  .content-table td {
    text-align: left !important;
    padding: 5px;
  }

  .content-table td img {
    margin: 0;
  }
}

/* --- Divider --- */
.divider-shadow {
  border: none;
  height: 6px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
  margin: 0 auto;
  max-width: 1200px;
}

/* ============================================
   TEXT-IMAGE BLOCKS (Mobile First)
   ============================================ */
.text-image-block {
  overflow: hidden;
}

.text-image-block:last-child {
  margin-bottom: 50px;
}

.divider-shadow + .text-image-block,
.content-section + .text-image-block {
  margin-top: 30px;
}

.text-image-inner {
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobil: Bild oben, Text unten — bei reverse: Text oben, Bild unten */
.text-image-block--reverse .text-image-inner {
  flex-direction: column-reverse;
}

.text-image-block .text-side {
  display: flex;
  align-items: center;
  padding: 30px 20px;
}

.text-image-block .text-cell {
  max-width: 500px;
}

.text-image-block .image-side {
  background-size: cover;
  background-position: center;
  min-height: 250px;
  aspect-ratio: 16 / 10;
}

.text-image-block .subheadline {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 5px;
}

.text-image-block h2 {
  margin-bottom: 15px;
}

/* Dark variant */
.text-image-block--dark .text-image-inner {
  background: #363636;
  color: #fff;
}

.text-image-block--dark h2 {
  color: #fff;
}

.text-image-block--dark .subheadline {
  color: rgba(255, 255, 255, 0.6);
}

/* Reverse (image left, text right) */
.text-image-block--reverse .text-side {
  justify-content: flex-start;
}

/* Desktop: Nebeneinander */
@media (min-width: 769px) {
  .divider-shadow + .text-image-block,
  .content-section + .text-image-block {
    margin-top: 50px;
  }

  .text-image-inner {
    flex-direction: row;
    min-height: 400px;
  }

  .text-image-block--reverse .text-image-inner {
    flex-direction: row;
  }

  .text-image-block .text-side {
    flex: 0 0 50%;
    width: 50%;
    padding: 40px;
  }

  .text-image-block .image-side {
    flex: 0 0 50%;
    width: 50%;
    min-height: 300px;
    aspect-ratio: auto;
  }

  .text-image-block--reverse .text-side {
    justify-content: flex-end;
  }
}

/* ============================================
   FACTS / COUNTER SECTION
   ============================================ */
.facts-section {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  padding: 60px 0;
  margin-top: 30px;
  margin-bottom: 30px;
}

.facts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.facts-section .container {
  position: relative;
  z-index: 2;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  text-align: center;
  color: #fff;
}

.fact-item i {
  font-size: 36px;
  margin-bottom: 15px;
  display: block;
}

.fact-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.fact-suffix {
  font-size: 1rem;
  display: block;
  margin-bottom: 5px;
}

.fact-label {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
}

@media (min-width: 769px) {
  .facts-section {
    padding: 80px 0;
    margin-top: 50px;
    margin-bottom: 50px;
    background-attachment: fixed;
  }

  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }

  .fact-number {
    font-size: 3rem;
  }
}

/* --- Hero Subtext --- */
.hero-subtext {
  margin-top: 10px;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
}

.hero-subtext .bg-dark {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
}

@media (min-width: 769px) {
  .hero-subtext {
    margin-top: 15px;
  }

  .hero-subtext .bg-dark {
    padding: 8px 20px;
  }
}

/* ============================================
   TWO COLUMN LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

.two-col img {
  border-radius: 4px;
}

@media (min-width: 769px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* ============================================
   THREE COLUMN LAYOUT
   ============================================ */
.three-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 600px) {
  .three-col {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }
}

@media (min-width: 993px) {
  .three-col {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* ============================================
   IMAGE GALLERY (Startseite)
   ============================================ */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.image-gallery img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  transition: transform var(--transition), filter var(--transition);
}

.image-gallery img:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

@media (min-width: 600px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .image-gallery img {
    height: 180px;
  }
}

@media (min-width: 993px) {
  .image-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .image-gallery img {
    height: 200px;
  }
}

/* ============================================
   GALLERY SLIDER
   ============================================ */
.gallery-slider {
  position: relative;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 0.8s ease;
}

.gallery-slide {
  flex: 0 0 50%;
  min-width: 50%;
}

.gallery-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  display: block;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  color: var(--color-white);
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.gallery-prev { left: 0; }
.gallery-next { right: 0; }

@media (min-width: 600px) {
  .gallery-slide {
    flex: 0 0 calc(100% / 3);
    min-width: calc(100% / 3);
  }

  .gallery-slide img {
    height: 280px;
  }
}

@media (min-width: 769px) {
  .gallery-slide {
    flex: 0 0 25%;
    min-width: 25%;
  }

  .gallery-slide img {
    height: 300px;
  }

  .gallery-arrow {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .gallery-slide {
    flex: 0 0 calc(100% / 6);
    min-width: calc(100% / 6);
  }

  .gallery-slide img {
    height: 350px;
  }
}

/* ============================================
   MASONRY GALLERY
   ============================================ */
.masonry-gallery {
  column-count: 2;
  column-gap: 5px;
  width: 100%;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 5px;
}

.masonry-item img {
  width: 100%;
  display: block;
  cursor: pointer;
  transition: filter var(--transition);
}

.masonry-item img:hover {
  filter: brightness(1.1);
}

@media (min-width: 600px) {
  .masonry-gallery {
    column-count: 3;
  }
}

@media (min-width: 993px) {
  .masonry-gallery {
    column-count: 4;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--color-white);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-white);
  font-size: 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  padding: 12px;
  cursor: pointer;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (min-width: 769px) {
  .lightbox-close {
    top: 20px;
    right: 20px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 2rem;
    padding: 15px;
  }

  .lightbox-prev { left: 15px; }
  .lightbox-next { right: 15px; }
}

/* ============================================
   CONTACT INFO CARDS
   ============================================ */
.contact-card {
  background: var(--color-white);
  padding: 25px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contact-icon {
  text-align: center;
  margin-bottom: 12px;
}

.contact-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(85, 85, 85, 1);
  border-radius: 50%;
  font-size: 18px;
  color: #555;
  transition: all 0.6s ease;
}

.contact-card:hover .contact-icon i {
  background: var(--color-primary);
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--color-primary);
  color: #fff;
}

.contact-card h3 {
  color: var(--color-primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-bg-alt);
}

.contact-card p {
  margin-bottom: 8px;
}

.contact-card .label {
  font-weight: 600;
  color: var(--color-secondary);
}

@media (min-width: 769px) {
  .contact-card {
    padding: 30px;
  }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #313131;
  color: #ccc;
  padding: 0;
}

.site-footer .container {
  max-width: 1250px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  padding: 40px 0;
}

.footer-col h4 {
  color: #707070;
  font-size: 1.2em;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(112, 112, 112, 0.3);
  margin-bottom: 15px;
}

.footer-company-name {
  font-weight: 700;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ccc;
}

.footer-col p {
  margin-bottom: 0;
}

.footer-contact i {
  width: 20px;
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-bottom {
  background: #f2f2f2;
  color: #333;
  padding: 15px 0;
  font-size: 13px;
  text-align: center;
}

.footer-bottom a {
  color: #333;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom .design-by {
  display: block;
  margin-top: 5px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 50px 0;
  }
}

@media (min-width: 993px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    padding: 70px 0;
  }

  .footer-bottom {
    font-size: 14px;
    padding: 20px 0;
    text-align: left;
  }

  .footer-bottom .design-by {
    float: right;
    display: inline;
    margin-top: 0;
  }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

@media (min-width: 769px) {
  .back-to-top {
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--color-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px; /* verhindert iOS-Zoom */
  transition: border-color var(--transition);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  cursor: pointer;
}

.form-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.4;
}

.form-checkbox input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  -webkit-appearance: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert {
  padding: 15px 20px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ============================================
   JOB LISTINGS (CMS)
   ============================================ */
.job-listing {
  background: var(--color-white);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--color-primary);
}

.job-listing h3 {
  color: var(--color-primary);
  margin-bottom: 10px;
}

.job-listing .job-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

@media (min-width: 769px) {
  .job-listing {
    padding: 30px;
    margin-bottom: 20px;
  }
}

/* ============================================
   NEWS ITEMS (CMS)
   ============================================ */
.news-item {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.news-item .news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 5px;
}

.news-item h3 {
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .news-item {
    flex-direction: row;
  }

  .news-item img {
    width: 200px;
    height: 140px;
    flex-shrink: 0;
  }
}

/* ============================================
   CERTIFICATION BADGES
   ============================================ */
.cert-badge {
  text-align: center;
  padding: 20px;
}

.cert-badge img {
  max-height: 180px;
  margin: 0 auto 15px;
}

/* ============================================
   CONTACT MAP + FORM
   ============================================ */
.contact-map-section {
  position: relative;
}

.contact-map {
  position: relative;
  width: 100%;
  height: 300px;
}

.contact-map iframe,
#contact-map-canvas {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form-overlay {
  position: static;
  width: 100%;
  padding: 20px;
}

.contact-form-box {
  background: #fff;
  padding: 25px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
}

.contact-form-box h3 {
  margin-bottom: 20px;
  color: var(--color-primary);
}

.contact-form-box .form-group {
  margin-bottom: 12px;
}

.contact-form-box .form-group input,
.contact-form-box .form-group textarea,
.contact-form-box .form-group select {
  font-size: 16px;
  padding: 10px 12px;
}

.contact-form-box .form-group label {
  display: none;
}

.contact-form-box .form-radio-group {
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.contact-form-box .form-checkbox {
  font-size: 0.8rem;
}

/* Map Consent Overlay */
.map-consent {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.map-consent-inner {
  max-width: 400px;
  padding: 30px 20px;
}

.map-consent-inner i {
  font-size: 36px;
  color: #999;
  margin-bottom: 15px;
}

.map-consent-inner h3 {
  color: #555;
  margin-bottom: 10px;
}

.map-consent-inner p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 20px;
}

.map-consent-inner p a {
  color: #555;
  text-decoration: underline;
}

@media (min-width: 993px) {
  .contact-map-section {
    padding-bottom: 56.25%;
  }

  .contact-map {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .contact-form-overlay {
    position: absolute;
    top: 100px;
    right: 8%;
    z-index: 10;
    width: 420px;
    padding: 0;
  }

  .contact-form-box {
    padding: 30px;
    max-width: none;
  }

  .map-consent-inner {
    padding: 40px;
  }

  .map-consent-inner i {
    font-size: 48px;
    margin-bottom: 20px;
  }
}

/* ============================================
   COOKIE-HINWEIS
   ============================================ */
#cookie-hinweis {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: #313131;
  color: #ccc;
  font-size: 13px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-hinweis__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 15px;
}

.cookie-hinweis__inner p {
  margin: 0;
}

.cookie-hinweis__inner a {
  color: #fff;
  text-decoration: underline;
}

#cookie-hinweis-ok {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
  transition: background var(--transition);
  -webkit-appearance: none;
}

#cookie-hinweis-ok:hover {
  background: var(--color-primary-dark);
}

@media (min-width: 769px) {
  .cookie-hinweis__inner {
    flex-direction: row;
    text-align: left;
    font-size: 14px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
