/* ===== AM Medienproduktion – Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: hsl(218,55%,18%);
  --primary-dark: hsl(218,55%,12%);
  --primary-light: hsl(218,55%,24%);
  --accent: hsl(199,89%,48%);
  --accent-light: hsl(199,89%,58%);
  --text-dark: hsl(218,33%,16%);
  --text-muted: hsl(218,15%,46%);
  --text-light: hsl(218,15%,35%);
  --bg-light: hsl(210,20%,97%);
  --border: hsl(214,20%,90%);
  --white: #ffffff;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.03), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.05);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.font-display { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}
.logo img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: all 0.2s;
}
.nav a.light { color: rgba(255,255,255,0.8); }
.nav a.light:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav a.dark { color: var(--text-light); }
.nav a.dark:hover { color: var(--primary); background: var(--bg-light); }
.nav-cta {
  margin-left: 16px; padding: 10px 20px !important; border-radius: 8px;
  font-weight: 600 !important; display: inline-flex; align-items: center; gap: 8px;
}
.nav-cta.light { background: var(--white); color: var(--primary) !important; }
.nav-cta.dark { background: var(--primary); color: var(--white) !important; }
.nav-cta.dark:hover { background: var(--primary-light) !important; }

/* Mobile menu */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu { display: none; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, 
    hsla(218,55%,12%,0.95), 
    hsla(218,55%,12%,0.80), 
    hsla(218,55%,12%,0.60));
}
.hero-content {
  position: relative; z-index: 10;
  padding: 128px 0 64px;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 9999px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 24px;
}
.hero-badge svg { color: var(--accent-light); }
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent-light); }
.hero p.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7); line-height: 1.7;
  margin-bottom: 32px; max-width: 560px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 16px; font-weight: 600;
  transition: all 0.2s; border: none; cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: var(--white); color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: rgba(255,255,255,0.9); }
.btn-outline { border: 1px solid rgba(255,255,255,0.25); color: var(--white); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: hsl(199,89%,42%); }
.btn-white-dark { background: var(--white); color: var(--primary); box-shadow: var(--shadow-lg); }
.btn-white-dark:hover { opacity: 0.9; }
.btn-lg { padding: 16px 32px; font-size: 18px; }

/* ===== TRUST BAR ===== */
.trust-bar { background: hsl(218,55%,15%); padding: 32px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.trust-item { text-align: center; }
.trust-number { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 700; color: var(--white); margin-bottom: 4px; }
.trust-label { color: rgba(255,255,255,0.5); font-size: 14px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-lg { padding: 112px 0; }
.bg-white { background: var(--white); }
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--primary-dark); color: var(--white); }
.bg-primary { background: var(--primary); color: var(--white); }

.section-header { text-align: center; margin-bottom: 64px; }
.section-label {
  color: var(--accent); font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 16px; line-height: 1.2;
}
.section-title.white { color: var(--white); }
.section-subtitle {
  color: var(--text-muted); max-width: 640px; margin: 0 auto;
  font-size: 16px; line-height: 1.7;
}
.section-subtitle.white { color: rgba(255,255,255,0.8); }

/* ===== CARDS ===== */
.card {
  padding: 32px; border-radius: 12px;
  transition: all 0.3s; background: var(--white);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-light { background: var(--bg-light); }
.card-light:hover { box-shadow: var(--shadow-md); }
.card-dark { background: var(--primary-dark); color: var(--white); }

.icon-box {
  width: 48px; height: 48px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-box.accent { background: rgba(56,189,248,0.1); color: var(--accent); }
.icon-box.primary { background: rgba(28,48,84,0.1); color: var(--primary); }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5-3 { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; }
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ===== IMAGE CONTAINERS ===== */
.img-container {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-light);
}
.img-container img { width: 100%; height: 100%; object-fit: cover; }

/* ===== KI SECTION ===== */
.ki-feature { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ki-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(56,189,248,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.ki-icon svg { width: 16px; height: 16px; color: var(--accent-light); }
.ki-feature p { color: rgba(255,255,255,0.75); }

/* ===== TESTIMONIALS ===== */
.testimonial { padding: 32px; border-radius: 12px; }
.stars { display: flex; gap: 4px; margin-bottom: 16px; }
.stars svg { width: 16px; height: 16px; color: var(--accent); }
.testimonial-text { font-style: italic; color: var(--text-dark); line-height: 1.7; margin-bottom: 24px; }
.testimonial-author { font-weight: 600; font-size: 14px; color: var(--text-dark); }
.testimonial-company { font-size: 14px; color: var(--text-muted); }

/* ===== CTA SECTION ===== */
.cta-section { padding: 80px 0; text-align: center; }

/* ===== FOOTER ===== */
.footer { background: var(--primary-dark); color: var(--white); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-heading {
  font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.1em; color: rgba(255,255,255,0.4); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-contact p { color: rgba(255,255,255,0.7); font-size: 14px; margin-bottom: 8px; }
.footer-contact a.cta-link { color: var(--accent-light); font-weight: 500; font-size: 14px; }
.footer-contact a.cta-link:hover { color: hsl(199,89%,68%); }
.footer-bottom {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 12px; }

/* ===== SUBPAGE HEROES ===== */
.page-hero { padding: 128px 0 80px; background: var(--primary-dark); color: var(--white); }
.page-hero .section-label { color: var(--accent-light); }
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  line-height: 1.15; margin-bottom: 24px; letter-spacing: -0.02em;
  max-width: 768px;
}
.page-hero p { color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.7; max-width: 768px; }

/* ===== SERVICE DETAIL ===== */
.service-section .grid-2-col:nth-child(even) { direction: rtl; }
.service-section .grid-2-col:nth-child(even) > * { direction: ltr; }
.service-meta h3 { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.service-meta h3 svg { width: 16px; height: 16px; }
.service-meta p { color: var(--text-muted); line-height: 1.7; }
.result-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.result-item svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.result-item span { color: var(--text-light); }
.packages-box {
  padding: 20px; border-radius: 12px;
  background: rgba(28,48,84,0.05); margin-bottom: 24px;
}
.packages-box h4 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.package-item { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.package-item svg { width: 14px; height: 14px; color: var(--accent); }
.package-item span { font-size: 14px; color: var(--text-light); }

/* ===== TIMELINE ===== */
.timeline-item { display: flex; gap: 24px; margin-bottom: 32px; }
.timeline-dot {
  display: flex; flex-direction: column; align-items: center;
}
.timeline-circle {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.timeline-line { width: 2px; flex: 1; background: var(--border); margin-top: 8px; }
.timeline-content { padding-bottom: 32px; }
.timeline-content h3 { font-weight: 600; font-size: 18px; margin-bottom: 4px; }
.timeline-content p { color: var(--text-muted); }

/* ===== CASE STUDY ===== */
.case-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 9999px;
  background: rgba(56,189,248,0.1); color: var(--accent);
  font-size: 14px; font-weight: 500; margin-bottom: 32px;
}
.case-badge svg { width: 14px; height: 14px; }
.metric-card {
  padding: 24px; border-radius: 12px; text-align: center;
  background: var(--primary-dark); color: var(--white);
}
.metric-value { font-size: 1.875rem; font-weight: 700; color: var(--accent-light); margin-bottom: 8px; }
.metric-label { color: rgba(255,255,255,0.8); font-size: 14px; }
.testimonial-box {
  margin-top: 32px; padding: 24px; border-radius: 12px;
  background: rgba(28,48,84,0.05); border-left: 4px solid var(--accent);
}
.testimonial-box p { font-style: italic; color: var(--text-dark); }
.testimonial-box .source { font-style: normal; font-size: 14px; color: var(--text-muted); margin-top: 8px; }

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--white);
  font-size: 16px; font-family: inherit; color: var(--text-dark);
  transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(28,48,84,0.1);
}
.form-textarea { resize: none; min-height: 120px; }
.form-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; }

.sidebar-card { padding: 24px; border-radius: 12px; margin-bottom: 24px; }
.sidebar-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.sidebar-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(56,189,248,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-icon svg { width: 16px; height: 16px; color: var(--accent); }
.sidebar-item span { font-size: 14px; color: var(--text-light); }

/* ===== REFERENCE CARDS ===== */
.ref-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 24px; border-radius: 12px; background: var(--white);
  transition: all 0.3s;
}
.ref-card:hover { box-shadow: var(--shadow-md); }
.ref-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(28,48,84,0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ref-icon svg { width: 20px; height: 20px; color: var(--primary); }

/* ===== COMPETENCE CARDS ===== */
.comp-card {
  padding: 24px; border-radius: 12px; text-align: center;
  background: var(--white); transition: all 0.3s;
}
.comp-card:hover { box-shadow: var(--shadow-lg); }
.comp-icon {
  width: 48px; height: 48px; border-radius: 8px;
  background: rgba(56,189,248,0.1); margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.comp-icon svg { width: 24px; height: 24px; color: var(--accent); }
.comp-card h3 { font-weight: 600; margin-bottom: 8px; }
.comp-card p { font-size: 14px; color: var(--text-muted); }

/* ===== SCROLL ANIMATION ===== */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav { display: none; }
  .mobile-toggle { display: block; }
  .grid-2-col { grid-template-columns: 1fr; }
  .service-section .grid-2-col:nth-child(even) { direction: ltr; }
  .grid-5-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 100px 0 48px; }
  .section { padding: 60px 0; }
  .section-lg { padding: 80px 0; }
  .page-hero { padding: 100px 0 60px; }
  .mobile-menu.open { display: block; }
}

.mobile-menu {
  position: fixed; top: 80px; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg); z-index: 49; padding: 24px;
}
.mobile-menu a {
  display: block; padding: 12px 16px; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: var(--text-light);
  margin-bottom: 4px;
}
.mobile-menu a:hover { background: var(--bg-light); color: var(--primary); }
.mobile-menu .btn { width: 100%; margin-top: 8px; justify-content: center; }

/* Success message */
.success-box {
  padding: 48px; border-radius: 12px; background: var(--bg-light);
  text-align: center; display: none;
}
.success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #dcfce7; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.success-icon svg { width: 32px; height: 32px; color: #16a34a; }
