/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-primary: #4A9ECC;
  --color-primary-dark: #2E7FAA;
  --color-primary-light: #E8F4FB;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7FAFC;
  --color-text: #1A1A2E;
  --color-text-muted: #6B7280;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;
  --color-footer-bg: #1A1A2E;
  --color-linkedin: #0077B5;

  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.7;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-full: 9999px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 6px 24px rgba(0, 0, 0, 0.13);
  --shadow-header: 0 2px 16px rgba(0, 0, 0, 0.08);

  --nav-height: 72px;
}

/* =============================================
   GLOBAL RESET & BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
  min-height: 100vh;
}

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

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hidden {
  display: none !important;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-padding {
  padding: var(--space-3xl) 0;
}

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

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

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section-intro {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  max-width: 640px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header .section-intro {
  margin: 0 auto;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 6px 20px rgba(74, 158, 204, 0.4);
  color: var(--color-white);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.btn-linkedin {
  background-color: var(--color-linkedin);
  color: var(--color-white);
  border-color: var(--color-linkedin);
  margin-top: var(--space-md);
}

.btn-linkedin:hover {
  background-color: #005f91;
  border-color: #005f91;
  box-shadow: 0 6px 20px rgba(0, 119, 181, 0.4);
  color: var(--color-white);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

#header.scrolled {
  box-shadow: var(--shadow-header);
  border-bottom-color: var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  width: 100%;
  flex-wrap: nowrap;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  list-style: none;
  margin: 0;
  flex: 1;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: nowrap;
  padding: 0 var(--space-lg);
  gap: 0;
}

.nav-links li a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Language Switcher */
.lang-switcher {
  display: none;
  gap: 0.4rem;
  align-items: center;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-btn:hover {
  color: var(--color-text);
  opacity: 0.85;
}

.lang-btn.active {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.lang-btn img {
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav Open State */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-md);
  gap: var(--space-sm);
  box-shadow: var(--shadow-header);
}

.nav-links.open li a {
  font-size: 1rem;
  padding: var(--space-xs) 0;
  display: block;
  border-bottom: none;
}

/* Mobile Lang Switcher inside open nav */
.lang-switcher.open {
  display: flex;
  position: absolute;
  top: calc(var(--nav-height) + 330px);
  left: 0;
  right: 0;
  background-color: var(--color-white);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-header);
  justify-content: flex-start;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--color-white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-sm);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.hero-subtitle-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 300;
}

.hero-availability {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-subtitle {
  margin-bottom: var(--space-sm);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
  background-color: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.headshot {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  box-shadow: var(--shadow-card-hover);
}

.about-content p {
  color: var(--color-text);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

.credentials-list {
  list-style: none;
  padding: 0 0 0 var(--space-lg);
  margin: 0 0 var(--space-2xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  border-left: 3px solid var(--color-primary);
  max-width: 680px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.5;
}

.credential-check {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* =============================================
   ABOUT — CERTIFICATIONS
   ============================================= */
.about-certifications {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.about-certifications h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

/* =============================================
   LOGO KARUSSELL (Referenzen)
   ============================================= */
.logo-carousel-wrapper {
  margin-top: var(--space-2xl);
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  padding: var(--space-lg) 0;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.logo-carousel {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: carousel-scroll 36s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.logo-carousel:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0%   { transform: translateX(0) translateZ(0); }
  100% { transform: translateX(-25%) translateZ(0); }
}

.logo-item {
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateZ(0);
}

.logo-item:hover {
  opacity: 0.75;
  transform: scale(1.05);
}

.logo-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  transform: translateZ(0);
}

.logo-tooltip {
  position: fixed;
  background: var(--color-text);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 260px;
  z-index: 500;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.logo-tooltip[hidden] { display: none; }

.logo-tooltip p { margin: 0; }

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
  background-color: var(--color-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.service-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* =============================================
   BACKGROUND / TIMELINE SECTION
   ============================================= */
.background {
  background-color: var(--color-bg-alt);
}

.timeline {
  position: relative;
  padding-left: var(--space-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-lg) + 1px);
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
  border: 2px solid var(--color-white);
  box-shadow: 0 0 0 2px var(--color-border);
}

.timeline-item--highlight .timeline-marker {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-item--current .timeline-marker {
  background-color: var(--color-primary);
  border-color: var(--color-white);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline-date {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

.timeline-company {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: 0.5rem;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background-color: var(--color-bg-alt);
}

.contact-form-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 158, 204, 0.15);
}

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

.form-actions {
  margin-top: var(--space-md);
}

.form-group + .form-group,
.form-row + .form-row,
.form-row + .form-group,
.form-group + .form-row {
  margin-top: var(--space-md);
}

.contact-alt {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  justify-content: center;
}

.contact-alt-divider {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: lowercase;
  flex-shrink: 0;
}

.contact-alt-btn {
  color: var(--color-text);
  border-color: var(--color-border);
}

.contact-alt-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-email-btn::before {
  content: "✉";
  font-size: 1rem;
}

/* =============================================
   IMPRESSUM / LEGAL
   ============================================= */
.impressum {
  background-color: var(--color-bg-alt);
}

.impressum .section-title {
  font-size: 1.75rem;
}

.legal-block {
  margin-bottom: var(--space-lg);
}

.legal-block p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.legal-block p a {
  color: var(--color-primary);
}

.legal-block strong {
  color: var(--color-text);
}

.legal-subheading {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  margin-top: var(--space-lg);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-2xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-xl);
}

.footer-logo {
  height: 80px;
  width: auto;
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-brand-tagline {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-xs);
}

.footer-links h3,
.footer-contact-col h3 {
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: var(--space-sm) 0;
}

.footer-contact-icons {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.25rem;
}

.footer-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  flex-shrink: 0;
}

.footer-icon-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0A66C2;
  color: var(--color-white);
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.footer-linkedin-btn:hover {
  background-color: #004182;
  transform: translateY(-2px);
  color: var(--color-white);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
}

/* Footer Contact Column */

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-contact-item:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.footer-contact-list .footer-linkedin-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.footer-bottom {
  background-color: #111827;
  padding: var(--space-sm) 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.footer-credit {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.footer-credit-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit-link:hover {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* =============================================
   MODAL
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.modal[hidden] {
  display: none;
}

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

.modal-box {
  position: relative;
  background: var(--color-white);
  border-radius: 12px;
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--color-text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-text);
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  padding-right: var(--space-lg);
}

.modal-content h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
  margin: var(--space-md) 0 var(--space-xs);
}

.modal-content p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.modal-content a {
  color: var(--color-primary);
  word-break: break-all;
}

@media (max-width: 1024px) {
  .logo-img { height: 58px; }
}

@media (max-width: 768px) {
  .logo-img { height: 52px; }
  .footer-logo { height: 64px; }
}

/* =============================================
   NAV BREAKPOINT — 1025px
   ============================================= */
@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-links.open {
    flex-direction: row;
    position: static;
    border: none;
    padding: 0 var(--space-lg);
    box-shadow: none;
  }

  .lang-switcher {
    display: flex;
  }

  .lang-switcher.open {
    display: flex;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
  }
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 240px 1fr;
  }

  .headshot {
    width: 240px;
    max-width: none;
  }

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

  .timeline {
    padding-left: var(--space-xl);
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-marker {
    left: calc(-1 * var(--space-xl) + 3px);
    width: 16px;
    height: 16px;
  }
}

/* Footer responsive */
@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr;
  }
}

/* Modal responsive */
@media (max-width: 768px) {
  .modal-box {
    padding: var(--space-lg);
    max-height: 90vh;
  }
}

/* =============================================
   DESKTOP BREAKPOINT — 1024px
   ============================================= */
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: var(--space-3xl);
  }

  .headshot {
    width: 280px;
    max-width: none;
  }

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

  .contact-grid {
    grid-template-columns: 1fr 1.3fr;
    align-items: start;
  }

  .contact-info {
    padding-top: var(--space-sm);
  }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  #header,
  .hero-cta,
  .lang-switcher,
  .hamburger,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background-image: none;
    background-color: var(--color-bg-alt);
    color: var(--color-text);
  }

  .hero-overlay {
    display: none;
  }

  .hero-title,
  .hero-subtitle-heading,
  .hero-label,
  .hero-subtitle {
    color: var(--color-text);
  }
}

/* =============================================
   HERO — LOGO CAROUSEL (Trusted by)
   ============================================= */
.hero-logos {
  margin: var(--space-xl) 0 var(--space-lg);
  overflow: hidden;
  position: relative;
  will-change: auto;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.hero-logos-label {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: var(--space-sm);
  text-align: center;
  display: block;
  position: static;
  will-change: auto;
}

.hero-logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: max-content;
  animation: hero-scroll 14s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

@keyframes hero-scroll {
  0%   { transform: translateX(0) translateZ(0); }
  100% { transform: translateX(-25%) translateZ(0); }
}

.hero-logo-track img {
  height: 28px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1) opacity(0.65);
  image-rendering: auto;
  transform: translateZ(0);
}

.hero-logo-track img:hover {
  filter: brightness(0) invert(1) opacity(1);
  transition: filter 0.2s ease;
}

/* =============================================
   HERO — BUTTONS
   ============================================= */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Outline-Button für Hero: transparent mit weißem Rahmen */
.btn-outline-white {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--color-white);
}

/* =============================================
   WHY ANDREAS (#why-andreas)
   ============================================= */
#why-andreas {
  background-color: #F1F4F8;
  color: var(--color-text);
}

#why-andreas .section-title {
  color: var(--color-text);
}

#why-andreas .section-intro {
  color: var(--color-text-muted);
}

#why-andreas .credentials-list {
  color: var(--color-text);
}

#why-andreas .credential-item {
  color: var(--color-text-muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.why-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: var(--space-xl);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.why-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .why-grid .why-card:nth-child(4) {
    grid-column: 1 / 2;
  }

  .why-grid .why-card:nth-child(5) {
    grid-column: 2 / 3;
  }
}

/* =============================================
   FAQ SECTION (#faq)
   ============================================= */
.faq {
  background-color: var(--color-bg-alt);
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  font-family: inherit;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question[aria-expanded="true"] {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 var(--space-lg);
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 720px;
}

/* =============================================
   SECTION BACKGROUND COLOURS
   ============================================= */
#about {
  background-color: #F7FAFC;
}

#references {
  background-color: var(--color-white);
}

#experience {
  background-color: var(--color-white);
}

/* Services — dunkler Hintergrund */
#services {
  background-color: #1A1A2E;
  color: rgba(255, 255, 255, 0.85);
}

#services .section-title {
  color: var(--color-white);
}

#services .section-intro {
  color: rgba(255, 255, 255, 0.6);
}

#services .service-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

#services .service-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: none;
}

#services .service-title {
  color: var(--color-white);
}

#services .service-desc {
  color: rgba(255, 255, 255, 0.65);
}
