/* Zenvio Solutions – modernes, klares Design */
:root {
  --color-bg: #f8fafc;
  --color-bg-card: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-primary: #0d9488;
  --color-primary-light: #14b8a6;
  --color-primary-dark: #0f766e;
  --color-secondary: #0ea5e9;
  --color-accent: #10b981;
  --color-border: #e2e8f0;
  --color-shadow: rgba(15, 23, 42, 0.06);
  --color-shadow-hover: rgba(15, 23, 42, 0.12);
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

.container.narrow {
  max-width: 720px;
}

/* Header – dunkel, Logo mit schwarzem Hintergrund wirkt hier sauber */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0f1419;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  padding: 0.25rem 0;
}

.logo {
  height: 52px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.header .nav-toggle span {
  background: rgba(255, 255, 255, 0.9);
}

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

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

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

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover {
  color: var(--color-primary);
  background: rgba(13, 148, 136, 0.08);
}

/* Desktop: Nav im dunklen Header → helle Links */
@media (min-width: 901px) {
  .header .nav a {
    color: rgba(255, 255, 255, 0.9);
  }
  .header .nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }
  .header .nav a.active {
    color: var(--color-primary-light);
    font-weight: 600;
  }
}

.nav a.active {
  color: var(--color-primary);
  font-weight: 600;
}

.lang-switch {
  margin-left: 0.5rem;
  color: var(--color-primary-light) !important;
  font-size: 0.875rem !important;
}

/* Hero */
.hero {
  padding: 4.5rem 0 5.5rem;
  text-align: center;
  background: linear-gradient(165deg, #f0fdfa 0%, #ecfeff 35%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(13, 148, 136, 0.08), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
  max-width: 640px;
}

/* About */
.about-text {
  font-size: 1.125rem;
  color: var(--color-text);
  max-width: 800px;
  line-height: 1.85;
}

.about-text + .about-text {
  margin-top: 1.25rem;
}

.about-highlight {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(20, 184, 166, 0.04));
  border-left: 4px solid var(--color-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 1.5rem;
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.75;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--color-bg-card);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 24px var(--color-shadow);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-hover);
  border-color: rgba(13, 148, 136, 0.15);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px var(--color-shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--color-shadow-hover);
}

.project-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f0fdfa, #e0f2fe);
  overflow: hidden;
  flex-shrink: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-year {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
  color: var(--color-text);
}

.project-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  font-family: var(--font);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white !important;
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: white !important;
}

/* Contact Form */
.contact-form {
  max-width: 560px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.form-message.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* Project Detail */
.project-detail .back-link {
  display: inline-block;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 2rem;
  font-weight: 500;
  transition: color 0.2s;
}

.project-detail .back-link:hover {
  color: var(--color-primary-light);
}

.project-detail-content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.project-detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px var(--color-shadow);
}

.project-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.project-lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.project-body {
  margin-bottom: 1.5rem;
  color: var(--color-text);
  line-height: 1.8;
}

.project-external-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: rgba(13, 148, 136, 0.1);
  color: var(--color-primary);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Legal */
.legal h1 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.legal h3 {
  font-size: 1rem;
  margin: 1rem 0 0.5rem;
  color: var(--color-text-muted);
}

.legal p {
  margin-bottom: 1rem;
  color: var(--color-text);
}

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

.legal a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  opacity: 0.9;
}

.footer-slogan {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0;
  z-index: 1000;
  box-shadow: 0 -4px 20px var(--color-shadow);
  display: none;
}

.cookie-banner.visible {
  display: block;
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--color-bg-card);
    flex-direction: column;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 3rem 0 4rem;
  }

  .section {
    padding: 3rem 0;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
    text-align: center;
  }
}
