/* =========================================================
   Basis
   ========================================================= */

:root {
  --heading-color-1: #7abcce;
  --heading-color-2: #a6ccd6;
  --heading-color-3: #ffffff;
  --navigation-color: #32363f;
  --page-background-color: #32363f;
  --text-container-color: #ffffff;
  --heading-color-h2: #47707b;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;

  line-height: 1.6;
  color: #222;
  background-color: #ffffff;
}

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

a {
  color: #0057b8;
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

/* =========================================================
   Layout-Helfer
   ========================================================= */

.container {
  max-width: 1100px;
  padding: 1.5rem;
  margin: 0 auto;
}

.section {
  padding: 3rem 0;
}

.section-alt {
  background-color: #f5f7f9;
}

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

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 100;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000;
}

.logo img {
  height: 3em;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.main-nav a {
  font-weight: 600;
  font-size: 1.1em;
  white-space: nowrap;
  color: var(--navigation-color)
}

/* =========================================================
   About
   ========================================================= */

.about {
  background-color: var(--page-background-color);
  color: var(--text-container-color);
}

.two_col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.about .huge {
  font-size: 1.5em;
}

.about .huge span {
  color: var(--heading-color-1);
}

.caps {
  text-transform: uppercase;
}

.about .container p:not(:last-of-type) {
  border-bottom: var(--heading-color-1);
  border-bottom-width: 5px;
  border-bottom-style: solid;
  padding-bottom: 2em;
}

.contact_button {
  background: var(--heading-color-1);
  color: var(--heading-color-3);
  padding: 5px;
  border-radius: 5px;
  font-size: initial;
}

.contact_button:hover {
  text-decoration: none;
  background: var(--heading-color-2);
}

em {
  font-style: normal;
  font-weight: bold;
}

section.story h2, section.story h3 {
  color: var(--heading-color-h2);
}

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

.hero {
  background-image: linear-gradient(rgba(50, 54, 63, 0.7), rgba(50, 54, 63, 0.7)), url("images/hero-background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-attachment: scroll;
  height: 30em;
  display: flex;
  align-items: center;
}

.responsive-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-text h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--heading-color-2)
}

.hero-text h1 span {
  color: var(--heading-color-1)
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-top: 0.5rem;
}

.hero-image {
  border-radius: 0.5rem;
}

/* =========================================================
   Typografie
   ========================================================= */

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  text-transform: uppercase;
}

h2 {
  margin-top: 0;
  font-size: 1.8rem;
  word-wrap: break-word;
}

h3 {
  margin-top: 2rem;
  font-size: 1.3rem;
}

h4 {
  margin-bottom: 0.3rem;
}

/* =========================================================
   Media / Karten
   ========================================================= */

.media-block {
  padding: 2rem;
  border-width: 1px;
  border-style: solid;
  border-radius: 5px;
  border-color: #d0d0d0;
}

.media-block h3 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* =========================================================
   Use Cases
   ========================================================= */

.use-cases {
  background-color: var(--page-background-color);
  color: var(--text-container-color);
}

.use-cases h2 {
  color: var(--heading-color-1);
}

.use-cases-intro {
  color: var(--heading-color-2);
  margin-bottom: 2.5rem;
}

.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.4s ease;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  /* leave a gutter clear of the prev/next buttons on both sides */
  padding: 0 3.5rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  transition: background 0.2s;
  /* keep buttons clear of the dots row */
  margin-top: -1.5rem;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.slider-prev { left:  0.5rem; }
.slider-next { right: 0.5rem; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding-top: 1.5rem;
}

.dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active,
.dot:hover {
  background: var(--heading-color-1);
}

.slide-visual {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #47707b;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.75rem;
  box-sizing: border-box;
}

.slide-icon {
  width: 55%;
  height: auto;
  color: #ffffff;
  filter: drop-shadow(0 0 12px rgba(122, 188, 206, 0.6));
}

.slide-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--heading-color-1);
  margin-bottom: 0.25rem;
}

.slide-text h3 {
  color: var(--heading-color-2);
  margin-top: 0.25rem;
}

.slide-text p {
  color: var(--text-container-color);
}

/* =========================================================
   Services
   ========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.panel {
  background: #f5f7f9;
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.service-list {
  margin: 0.75rem 0 0;
}

.service-list dt {
  font-weight: 700;
  margin-top: 1rem;
}

.service-list dd {
  margin: 0.2rem 0 0;
  color: #555;
}

/* =========================================================
   Team
   ========================================================= */

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 0.75rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.team-photo-wrap {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

.team-photo-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(40, 136, 63, 0.2);
  pointer-events: none;
}

.team-photo {
  display: block;
  width: 100%;
  height: auto;
}

/* =========================================================
   Kontakt
   ========================================================= */

.contact-mail {
  font-size: 1.3rem;
  font-weight: 600;
}

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

.footer-visual {
  padding: 2rem 0;
}

.footer-visual img {
  width: 100%;
}

.site-footer {
  border-top: 1px solid #e0e0e0;
  background: #fafafa;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #444;
}

/* =========================================================
   Responsive (Desktop)
   ========================================================= */

@media (max-width: 767px) {
  .two_col {
    grid-template-columns: 1fr;
  }

  .slide {
    grid-template-columns: 1fr;
  }

  .header-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .logo img {
    height: 2.2em;
  }

  .main-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    margin-top: 0.4rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {

  .hero-inner {
    flex-direction: row;
    align-items: center;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 1;
  }

  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}