/* ==========================================================================
   threedeers.com - Design Tokens & Base Styles
   ========================================================================== */

/* ---------- Self-hosted Inter font ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Custom Properties (Design Tokens) ---------- */
:root {
  /* Backgrounds */
  --bg-primary: #1c1c26;
  --bg-secondary: #252532;
  --bg-card: #2a2a38;
  --bg-elevated: #32323f;
  --bg-kmu: #2d2215;

  /* Accent */
  --color-accent: #ff7200;
  --color-accent-hover: #cc5b00;
  --color-accent-light: #ff8c33;

  /* Text */
  --text-primary: #ffffff;
  --text-body: #c8c8d0;
  --text-secondary: #9ca3af;

  /* Borders */
  --border-default: #363645;
  --border-strong: #3a3a48;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: 5rem;
}

ul,
ol {
  list-style: none;
}

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

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- Section Base Styles ---------- */
section {
  padding: 6rem 1.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  padding: 1rem 0;
}

header.scrolled {
  background-color: var(--bg-primary);
  box-shadow: 0 1px 0 var(--border-default);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li a {
  color: var(--text-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--color-accent);
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav styles are in the consolidated responsive block below */

/* ==========================================================================
   Hero Section
   ========================================================================== */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-primary);
  padding-top: 80px;
}

.hero-content {
  text-align: center;
}

.hero-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-logo-img {
  max-width: 200px;
  width: 100%;
  height: auto;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--text-body);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-accent);
  color: #000;
  border: 1px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #000;
}

/* ==========================================================================
   Section Utilities
   ========================================================================== */
.section-secondary {
  background: var(--bg-secondary);
}

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

.section-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.services-description {
  margin-top: 3rem;
  text-align: left;
}

.services-description p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.services-description p:last-child {
  margin-bottom: 0;
}

.service-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(255, 114, 0, 0.3);
  transform: translateY(-2px);
}

.service-icon {
  color: var(--color-accent);
  margin-bottom: 1.25rem;
  width: 48px;
  height: 48px;
}

.service-icon svg {
  width: 48px;
  height: 48px;
}

.service-card h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==========================================================================
   KMU.DIGITAL Section
   ========================================================================== */
.section-kmu {
  background: #f5f5f5;
}

.kmu-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.kmu-text {
  flex: 1;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, #8ab61d, #3a8a6e, #304c59) 1;
  padding-left: 1.5rem;
}

.kmu-text p {
  color: #304c59;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.section-kmu .section-title {
  color: #304c59;
}

.kmu-badge {
  color: #3a8a6e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.btn-kmu {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  background: linear-gradient(135deg, #8ab61d, #3a8a6e, #304c59);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-kmu:hover {
  opacity: 0.9;
}

.kmu-logo {
  flex-shrink: 0;
}

.kmu-logo img {
  max-width: 200px;
  border-radius: 8px;
}

/* KMU mobile styles are in the consolidated responsive block below */

/* ==========================================================================
   References Section
   ========================================================================== */
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
}

.ref-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s ease;
}

.ref-item img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 3px solid var(--border-default);
  margin-inline: auto;
}

.team-info h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.team-role {
  color: var(--color-accent);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.team-bio {
  color: var(--text-body);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.team-badges {
  margin-bottom: 1rem;
}

.cdc-badge {
  max-width: 80px;
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  margin-inline: auto;
}

.team-email {
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.team-email:hover {
  text-decoration: underline;
}

/* Team mobile styles are in the consolidated responsive block below */

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  text-align: left;
}

.contact-label {
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--text-body);
  font-size: 1.1rem;
}

.contact-value.accent {
  color: var(--color-accent);
}

.contact-cta {
  margin-top: 1rem;
}

/* ==========================================================================
   Footer / Impressum
   ========================================================================== */
footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-default);
  padding: 4rem 1.5rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.8;
}

.footer-col a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.footer-company {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0.75rem;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-logo {
  margin-bottom: 0.5rem;
}

.footer-logo-img {
  height: 48px;
  width: auto;
}

/* Impressum page */
.impressum-content {
  max-width: 800px;
}

.impressum-content h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.impressum-content p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.impressum-content a {
  color: var(--color-accent);
  text-decoration: none;
}

.impressum-content a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--border-default);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive: 768px
   ========================================================================== */
@media (max-width: 768px) {
  /* Nav (hamburger) */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-primary);
    padding: 2rem 0;
    gap: 1.5rem;
  }

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

  .nav-links li a {
    font-size: 1.1rem;
  }

  /* Hero */
  .hero-content h1,
  #hero h1 {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }

  /* Sections */
  section {
    padding: 4rem 1.5rem;
  }

  /* Grids collapse to 1 col */
  .team-grid {
    grid-template-columns: 1fr;
  }

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

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

  /* KMU */
  .kmu-content {
    flex-direction: column;
  }

  .kmu-logo {
    text-align: center;
  }

  .kmu-logo img {
    margin-inline: auto;
  }
}

/* ==========================================================================
   Responsive: 480px
   ========================================================================== */
@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  #hero h1,
  .hero-content h1 {
    font-size: 2rem;
  }

  section {
    padding: 3rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0;
  }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
