/* ========================================
   Aimend UG – Digital Marketing Agentur
   Color Scheme: Teal #0d9488, Charcoal #1e293b
   ======================================== */

:root {
  --teal: #0d9488;
  --teal-dark: #0a7a70;
  --teal-light: #14b8a6;
  --teal-50: #f0fdfa;
  --charcoal: #1e293b;
  --charcoal-light: #334155;
  --charcoal-dark: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: .3s ease;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--teal-dark); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- HEADER / NAV ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--charcoal);
}
.logo img {
  height: 38px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}
.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: var(--white);
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-content h1 span {
  color: var(--teal-light);
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--gray-300);
  margin-bottom: 36px;
  max-width: 540px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover {
  border-color: var(--teal-light);
  color: var(--teal-light);
}
.btn-dark {
  background: var(--charcoal);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--charcoal-light);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- SECTIONS ---- */
section {
  padding: 100px 0;
}
.section-dark {
  background: var(--charcoal-dark);
  color: var(--white);
}
.section-gray {
  background: var(--gray-50);
}
.section-teal {
  background: var(--teal);
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-header p {
  color: var(--gray-400);
}

.label-tag {
  display: inline-block;
  background: var(--teal-50);
  color: var(--teal);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}
.section-dark .label-tag {
  background: rgba(13,148,136,.15);
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 56px;
  height: 56px;
  background: var(--teal-50);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray-500);
  font-size: .95rem;
  line-height: 1.65;
}

/* ---- STATS ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--teal-light);
  margin-bottom: 8px;
}
.stat-item p {
  font-size: .95rem;
  opacity: .8;
}

/* ---- ABOUT SECTION ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.about-text p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.about-text .features-list {
  list-style: none;
  margin: 24px 0;
}
.about-text .features-list li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gray-600);
}
.about-text .features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

/* ---- CTA BAND ---- */
.cta-band {
  padding: 80px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- TEAM ---- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.team-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--teal-50);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--teal);
  font-weight: 700;
}
.team-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.team-card .role {
  color: var(--teal);
  font-size: .9rem;
  font-weight: 600;
}
.team-card p {
  color: var(--gray-500);
  font-size: .9rem;
  margin-top: 12px;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info-card {
  background: var(--charcoal-dark);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
}
.contact-info-card h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-detail-text p {
  color: var(--gray-400);
  font-size: .85rem;
  margin-bottom: 2px;
}
.contact-detail-text a,
.contact-detail-text span {
  color: var(--white);
  font-weight: 500;
  font-size: .95rem;
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  color: var(--charcoal);
  background: var(--gray-50);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
  background: var(--white);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--charcoal-dark);
  color: var(--white);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.page-hero p {
  color: var(--gray-400);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- LEGAL PAGES ---- */
.legal-content {
  padding: 80px 0;
}
.legal-content .container {
  max-width: 820px;
}
.legal-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--charcoal);
}
.legal-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
}
.legal-content p,
.legal-content li {
  color: var(--gray-600);
  margin-bottom: 12px;
  font-size: .98rem;
}
.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--charcoal-dark);
  color: var(--gray-400);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  margin-top: 12px;
  font-size: .9rem;
  line-height: 1.7;
  max-width: 300px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  color: var(--gray-400);
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-col a:hover {
  color: var(--teal-light);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: .85rem;
}
.footer-bottom a {
  color: var(--gray-400);
  margin-left: 24px;
}
.footer-bottom a:hover {
  color: var(--teal-light);
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--charcoal-dark);
  color: var(--gray-300);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform .4s ease;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-inner p {
  font-size: .9rem;
  flex: 1;
  min-width: 280px;
}
.cookie-inner a {
  color: var(--teal-light);
  text-decoration: underline;
}
.cookie-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-buttons button {
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.btn-cookie-accept {
  background: var(--teal);
  color: var(--white);
}
.btn-cookie-accept:hover {
  background: var(--teal-dark);
}
.btn-cookie-decline {
  background: transparent;
  color: var(--gray-400);
  border: 1px solid var(--gray-500);
}
.btn-cookie-decline:hover {
  border-color: var(--gray-300);
  color: var(--white);
}

/* ---- ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- SERVICE DETAIL (leistungen page) ---- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:last-child {
  border-bottom: none;
}
.service-detail:nth-child(even) {
  direction: rtl;
}
.service-detail:nth-child(even) > * {
  direction: ltr;
}
.service-detail-icon {
  width: 72px;
  height: 72px;
  background: var(--teal-50);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
}
.service-detail-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.service-detail-text p {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 12px;
}
.service-detail-text ul {
  list-style: none;
  margin-top: 16px;
}
.service-detail-text ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--gray-600);
}
.service-detail-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}
.service-detail-visual {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font-size: 4rem;
}

/* ---- TIMELINE ---- */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}
.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}
.timeline-dot {
  width: 42px;
  height: 42px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.timeline-content p {
  color: var(--gray-500);
  font-size: .95rem;
}

/* ---- MAP PLACEHOLDER ---- */
.map-section {
  background: var(--gray-100);
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: 1rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 40px; }
  .service-detail { gap: 40px; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    display: block;
    padding: 14px 24px;
  }
  .hamburger { display: flex; }

  .hero { min-height: 80vh; }
  section { padding: 70px 0; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }

  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-detail:nth-child(even) {
    direction: ltr;
  }
  .service-detail-visual {
    min-height: 200px;
    padding: 40px;
  }

  .contact-form { padding: 32px 24px; }
  .contact-info-card { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .page-hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; font-size: .9rem; }
  .btn-group { flex-direction: column; }
  .cookie-inner { flex-direction: column; text-align: center; }
}
