@import url("colors.css");

/* ========== Grundlayout & Typografie ========== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Arial", Roboto,
               Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-neutral);
  background: var(--color-bg-light);
  margin: 0;
}
html {
  scroll-padding-top: 80px; /* same as your header height */
}
/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 50vh;
  background: url("/assets/images/hero.webp") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}




/* Sanfter Übergang am unteren Rand des Hero-Banners */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px; /* Höhe des Verlaufs */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.0),      /* oben leicht abgedunkelt */
    var(--color-bg-light2)
  );
  z-index: 2;
}

/* Text container */
.hero-content {
  position: relative;
  max-width: 900px;
  padding: 2rem;
}

/* Header */
.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--color-support);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Subheader */
.hero-subtitle {
  font-size: 2rem;
  font-weight: 600; 
  line-height: 1.6;
  color: var(--color-accent);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* Optional: make it responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
}
/* ========== Footer ========== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--color-support);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}


.site-footer a:hover {
  color: var(--color-accent);
}

/* Footer Grid Layout */
.footer-grid {
  display: flex;
  max-height: 300px;
  width: 70%;
  min-width: 350px;
  margin: 0 auto;
}

.footer-grid__col {
  flex: 0 0 50%;
  max-width: 50%;
}

.footer-grid__col--image img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;  /* keep full image visible, no cropping */
}

.footer-grid__col--text {
  padding: 0 20px;
}

@media (max-width: 500px) {
  .footer-grid {
    flex-direction: column;
    width: 100%;
    min-width: 0;
  }

  .footer-grid__col {
    max-width: 100%;
    flex: 0 0 100%;
  }

  .footer-grid__col--text {
    padding: 10px 20px;
  }

  .footer-grid__col--image img {
    max-height: 120px;
    margin: 0 auto;
    display: block;
  }
}

/* ========== Sections ========== */
.section {
  padding: 2rem 0;
  background: var(--color-bg-light1);
}

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

.section h2 {
  max-width: 800px;
  margin: 0 auto;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: var(--color-primary);
  text-transform: uppercase;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}

/* When screen ≥ 400px, make text column wider */
@media (max-width: 500px) {
  .section p,
  .section h2 {
    max-width: 400px;
    margin: 1rem;
  }
}


/* ========== FEATURE BOX ========== */
/* Container for Feature-Grid */
.section#vision2 .feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 0 1rem;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.feature-grid .feature-box {
  flex: 1 1 300px;
}
/* Feature Box */
.feature-box {
  position: relative; /* 🟢 makes this box the positioning parent */
  background: var(--color-bg-light2);
  border-radius: 16px;
  padding: 2rem 2rem 2rem; /* 🟢 extra top padding for space under icon */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  margin: 4rem auto 2rem; /* 🟢 top margin to prevent overlap between boxes */
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.15);
}

/* Expanded drawer state: make the open box large, centered, and overlapping */
.feature-box:has(.feature-toggle:checked) {
  position: absolute;
  left: 50%;
  top: 0;
  width: 90vw;                 /* 90% of the viewport width */
  max-width: 900px;            /* hard cap for large screens */
  min-height: 500px;
  transform: translate(-50%, -8px);  /* center horizontally, slight lift */
  padding: 3rem 2.5rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  z-index: 600;
  background: var(--color-bg-light2);
  border-radius: 16px;
}

/* Hidden checkbox that controls expand/collapse */
.feature-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Transparent overlay so the whole box is clickable */
.feature-overlay {
  position: absolute;
  inset: 0;
  cursor: pointer;
  z-index: 3;
  background: transparent;
}

/* Details are hidden by default */
.feature-details {
  display: none;
  margin-top: 1rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  color: #333;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* When toggled: hide short text, show details */
.feature-toggle:checked ~ .feature-text {
  display: none;
}

.feature-toggle:checked ~ .feature-details {
  display: block;
}

/* Overlay bleibt immer klickbar (öffnet/schließt Drawer) */
.feature-toggle:checked ~ .feature-overlay {
  pointer-events: auto;
}

/* Icon wrapper (circle) */
.icon-wrapper {
  position: absolute; /* 🟢 allows overlap */
  top: -45px;         /* 🟢 half above the box (adjust as needed) */
  left: 50%;
  transform: translateX(-50%);
  
  background: var(--color-accent);
  border-radius: 50%;
  width: 90px;
  height: 90px;

  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.icon-wrapper img {
  width: 90%;  /* so it fits neatly inside */
  height: 90%;
  object-fit: contain;
  /* border-radius: 50%;    /* falls du transparente PNGs nutzt */
}

/* Überschrift */
.feature-title {
  color: var(--color-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* Fließtext */
.section .feature-text {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 90%;
  text-align: center;
  color: #333;
}

/* ========== Imprint ========== */
.section.imprint {
  background: var(--color-bg-light);
  padding: 4rem 0;
}

.container.narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section.imprint h1, 
.section.imprint h2 {
  color: var(--color-primary);
  text-align: center;
}

.section.imprint h2 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

.section.imprint p {
  line-height: 1.7;
  text-align: center;
  color: black;
}
/* ===== Applications Carousel ===== */
.applications .carousel-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  width: 90%;
  margin: 2rem auto;
  max-width: 1400px;
}

input[name="app"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* left list */
.carousel-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 0 0 150px;
}
.carousel-list label {
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
}
.carousel-list label:hover {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* content area */
.carousel-content {
  position: relative;
  flex: 1;
  min-height: 350px;
}
.carousel-item {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.carousel-item img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}
.carousel-item h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.carousel-item p {
  color: black;
}


/* responsive layout */
@media (max-width: 768px) {
  .applications .carousel-wrapper {
    flex-direction: column;
  }
  .carousel-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex: 0 0 10px;
  }
  .carousel-content {
    min-height: 320px;
  }
}
/* ===== Contact Form ===== */
form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

input,
textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  transition: border-color 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 204, 120, 0.2);
}

/* ========== Utility Buttons ========== */
button,
.cta {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: auto;            /* shrink to fit text */
  align-self: flex-start;  /* align left (optional) */
  padding: 0.75rem 1.5rem; /* balanced padding */
}

button:hover,
.cta:hover {
  background: var(--color-accent);
}

.form-response {
  margin-top: 1rem;
  font-size: 0.95rem;
}
/* Base typography for the Datenschutz/Privacy section */
.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #222;
}

/* Headings */
.prose h2 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
  padding-bottom: 0.1rem;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
  color: #222;
}

/* Paragraphs */
.prose p {
  margin-bottom: 0.2rem;
  color: #333;
  font-size: 1rem;
}

/* Lists */
.prose ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: disc;
}

.prose li {
  margin-bottom: 0.4rem;
}
