/*
Theme Name: WAIGUM ELECTRONIC
Theme URI: https://waigum.de
Author: WAIGUM ELECTRONIC
Description: Custom theme for WAIGUM ELECTRONIC - Ihr Partner für professionelle Elektrotechnik
Version: 1.0
Text Domain: waigum
*/

/* === Reset & Base === */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  --color-primary: #003d5c;
  --color-accent: #e91c22;
  --color-white: #ffffff;
  --color-muted: #f3f5f7;
  --color-border: #e0e6eb;
  --color-text: #003d5c;
  --color-text-light: #5a7a8a;
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

h1 {
  font-size: 48px;
  font-weight: 700;
}

h2 {
  font-size: 36px;
  font-weight: 600;
}

h3 {
  font-size: 24px;
  font-weight: 600;
}

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

/* === Header === */
.site-header {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 18px;
}

.site-logo svg {
  width: 32px;
  height: 32px;
}

.main-nav {
  display: flex;
  gap: 24px;
}

.main-nav a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius);
  transition: background 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
}

/* === Hero Section === */
.hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary), rgba(0, 61, 92, 0.9));
  color: var(--color-white);
  padding: 80px 0 128px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(233, 28, 34, 0.08);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  padding-left: 60px;
}

.hero-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-logo svg {
  width: 48px;
  height: 48px;
}

.hero h1 {
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.hero .description {
  font-size: 16px;
  opacity: 0.8;
  margin-bottom: 32px;
  max-width: 560px;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--font-family);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: #c71820;
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-muted);
}

.btn svg,
.btn img {
  width: 16px;
  height: 16px;
}

/* === About Section === */
.about-section {
  padding: 80px 0;
  background: var(--color-white);
  text-align: center;
}

.about-section h2 {
  margin-bottom: 24px;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--color-text-light);
}

/* === Services Section === */
.services-section {
  padding: 80px 0;
  background: rgba(243, 245, 247, 0.3);
}

.services-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-section .section-header p {
  color: var(--color-text-light);
  margin-top: 12px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-body {
  padding: 20px;
}

.service-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.service-card-title .icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
}

.service-card-title span {
  font-weight: 600;
  font-size: 18px;
}

.service-card-text {
  color: var(--color-text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.service-card-link:hover {
  color: var(--color-accent);
}

.service-card-link svg {
  width: 16px;
  height: 16px;
}

.services-cta {
  text-align: center;
}

/* === Stats Section === */
.stats-section {
  padding: 60px 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.stats-section h2 {
  text-align: center;
  color: var(--color-white);
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
}

.stat-label {
  font-size: 14px;
  opacity: 0.8;
}

/* === Contact Section === */
.contact-section {
  padding: 80px 0;
  background: var(--color-white);
}

.contact-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-section .section-header p {
  color: var(--color-text-light);
  margin-top: 12px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 12px;
  padding: 32px;
}

.contact-info h3 {
  margin-bottom: 8px;
}

.contact-info > p {
  opacity: 0.8;
  font-size: 14px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: rgba(233, 28, 34, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent);
}

.contact-item-label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

.contact-item-value {
  font-size: 14px;
  opacity: 0.8;
}

.contact-item-value a {
  color: var(--color-white);
}

.contact-item-value a:hover {
  text-decoration: underline;
}

/* === Contact Form === */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 32px;
}

.contact-form-wrapper h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-form-wrapper > p {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

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

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

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #a0b0bc;
}

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

/* === Page Hero === */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary), rgba(0, 61, 92, 0.9));
  color: var(--color-white);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: 42px;
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.8;
  max-width: 600px;
}

/* === Dienstleistungen Page === */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 60px 0;
}

.service-page-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.service-page-card .service-card-image {
  height: 220px;
}

.service-page-card .service-card-body {
  padding: 24px;
}

.service-page-card .service-card-text {
  font-size: 15px;
}

/* === Footer === */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand svg {
  width: 24px;
  height: 24px;
}

.footer-tagline {
  opacity: 0.7;
  font-size: 14px;
}

.footer-title {
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  opacity: 0.7;
}

.footer-nav a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  opacity: 0.8;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  color: var(--color-accent);
}

.footer-contact-item a {
  color: var(--color-white);
}

.footer-contact-item a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  opacity: 0.6;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* === Legal Pages (Impressum, Datenschutz) === */
.legal-page {
  padding: 60px 0;
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent);
}

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

.legal-content ul {
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 6px;
}

/* === Responsive === */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }

  .hero { padding: 60px 0 80px; }
  .hero .container { padding-left: 20px; }

  .services-grid,
  .services-page-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-primary);
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-toggle {
    display: block;
  }
}
