/* ============================================
   Trend Reinigung e.U. — Corporate Clean Theme
   Primary: #1E3A5F | Accent: #2ECC71
   Fonts: Outfit (Headlines), Inter (Body)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #1E3A5F;
  --primary-light: #2a4f7f;
  --primary-dark: #142842;
  --accent: #2ECC71;
  --accent-dark: #27ae60;
  --accent-light: #a3f0c2;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FC;
  --bg-card: #FFFFFF;
  --text: #1a1a2e;
  --text-light: #555;
  --text-muted: #888;
  --border: #e0e4ea;
  --shadow: 0 2px 16px rgba(30,58,95,0.07);
  --shadow-hover: 0 8px 32px rgba(30,58,95,0.13);
  --radius: 12px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

[data-theme="dark"] {
  --bg: #0f1923;
  --bg-alt: #162332;
  --bg-card: #1a2d40;
  --text: #e8ecf1;
  --text-light: #b0bec5;
  --text-muted: #78909c;
  --border: #263849;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.4);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  transition: background var(--transition), color var(--transition);
}
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--primary); line-height: 1.2; }
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4 { color: #e8ecf1; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

/* --- Header / Nav --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), border var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
[data-theme="dark"] .nav-logo { color: var(--accent); }
.nav-logo svg { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--accent); }

/* Dark Mode Toggle */
.theme-toggle {
  background: none;
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text);
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Nav Actions (theme toggle + hamburger) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}
.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); }

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 6rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46,204,113,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero p { font-size: 1.15rem; max-width: 650px; margin: 0 auto 2rem; opacity: 0.92; line-height: 1.8; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(46,204,113,0.15);
  color: var(--accent-light);
  border: 1px solid rgba(46,204,113,0.3);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(46,204,113,0.3); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; color: #fff; transform: translateY(-2px); }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.service-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.service-card p { color: var(--text-light); font-size: 0.88rem; margin-bottom: 0; line-height: 1.55; }

/* --- About / Welcome --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-text .lead { font-size: 1.1rem; color: var(--text-light); margin-bottom: 1.5rem; }
.about-features { display: grid; gap: 1rem; margin-top: 1.5rem; }
.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.about-feature-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(46,204,113,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
}
.about-image {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
  position: relative;
}
.about-image-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  color: #fff;
  text-align: center;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.85rem; opacity: 0.85; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: all var(--transition);
}
.contact-info-card:hover { box-shadow: var(--shadow); }
.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(46,204,113,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-info-text h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.contact-info-text p { margin: 0; color: var(--text-light); font-size: 0.93rem; }
.contact-info-text a { color: var(--accent-dark); }
.contact-info-text a:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-message {
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  display: none;
  font-size: 0.93rem;
}
.form-message.success { display: block; background: rgba(46,204,113,0.1); color: var(--accent-dark); border: 1px solid rgba(46,204,113,0.3); }
.form-message.error { display: block; background: rgba(231,76,60,0.1); color: #c0392b; border: 1px solid rgba(231,76,60,0.3); }

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 2.5rem; font-size: 1.5rem; }
.legal-content h3 { margin-top: 1.5rem; font-size: 1.2rem; color: var(--text); }
.legal-content p { color: var(--text-light); }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content ul li { color: var(--text-light); margin-bottom: 0.5rem; list-style: disc; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; }

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.9rem; line-height: 1.7; margin-top: 0.75rem; }
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  padding: 0.3rem 0;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-contact p {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-contact a { color: rgba(255,255,255,0.8); }
.footer-contact a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* --- Cookie Consent --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.9rem; color: var(--text-light); margin: 0; flex: 1; }
.cookie-inner a { color: var(--accent-dark); text-decoration: underline; }
.cookie-buttons { display: flex; gap: 0.75rem; }
.cookie-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
}
.cookie-accept { background: var(--accent); color: #fff; }
.cookie-accept:hover { background: var(--accent-dark); }
.cookie-decline { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.cookie-decline:hover { border-color: var(--text-light); color: var(--text); }

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 3rem;
}
.section-header p { color: var(--text-light); }
.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Page Hero (Subpages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { opacity: 0.85; font-size: 1.05rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border);
    min-height: 44px;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 10px;
  }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card-img { height: 160px; }
  .about-content { grid-template-columns: 1fr; gap: 2rem; }
  .about-image { min-height: 220px; padding: 2rem; }
  .stat-number { font-size: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { justify-content: center; }
  .cookie-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .cookie-buttons { justify-content: center; }
  .page-hero { padding: 3rem 0 2rem; }
  .page-hero h1 { font-size: 1.5rem; }
  .nav-logo { font-size: 1.2rem; }
  .nav-logo svg { width: 28px; height: 28px; }
  .container { padding: 0 1rem; }
  .footer { padding: 2rem 0 1rem; }
}

/* Small phones */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.35rem; }
  .nav-logo { font-size: 1.05rem; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.9rem; }
}

/* --- Service Cards with Images --- */
.service-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card:hover .service-card-img {
  transform: scale(1.05);
}
.service-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  height: 36px;
  transition: border-color var(--transition);
}
.lang-switch:hover { border-color: var(--accent); }
.lang-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  height: 100%;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--accent); }
.lang-switch a.active-lang {
  background: var(--accent);
  color: #fff;
}
.lang-switch a.active-lang:hover { color: #fff; }
.lang-switch span {
  width: 1px;
  height: 60%;
  background: var(--border);
}

@media (max-width: 768px) {
  .lang-switch { height: 34px; }
  .lang-switch a { font-size: 0.75rem; padding: 0 0.5rem; }
}
