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

:root {
  --primary: #1a5276;
  --primary-light: #2e86c1;
  --accent: #3498db;
  --accent-light: #d6eaf8;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --text: #2c3e50;
  --text-muted: #6c7a8a;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--primary-light); text-decoration: none; }
a:hover { color: var(--primary); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* === HEADER === */
.header {
  position: sticky;
  top: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

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

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}
.logo:hover { opacity: 0.85; }

.nav {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: var(--primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 700px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 28px;
}

.hero .btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: var(--primary);
}

/* === SECTIONS === */
.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

/* === CARDS GRID === */
.grid-3,
.grid-4 {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--primary);
}

.card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === CTA BANNER === */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}

.cta-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.cta-banner .btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
  border-radius: 50px;
  font-size: 1rem;
  transition: transform 0.2s;
}
.cta-banner .btn:hover {
  transform: translateY(-2px);
  color: var(--primary);
}

/* === ABOUT PAGE === */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.values-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

.value-item {
  text-align: center;
  padding: 24px 16px;
}

.value-item .card-icon {
  font-size: 2rem;
}

/* === SERVICES PAGE === */
.service-card {
  text-align: left;
  display: flex;
  gap: 20px;
  padding: 28px;
}

.service-card .card-icon {
  flex-shrink: 0;
  font-size: 2rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-bottom: 0;
}

.service-card h3 {
  text-align: left;
}

.service-card p {
  text-align: left;
}

/* === GALLERY === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,82,118,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--white);
  font-weight: 600;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* === CONTACT PAGE === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

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

.btn-submit {
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.contact-info-item .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-light);
  border-radius: 50%;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: none;
}

.form-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* === PAGE HEADER === */
.page-header {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  opacity: 0.85;
  margin-top: 8px;
  font-size: 1.05rem;
}

/* === FOOTER === */
.footer {
  background: #1a1f2e;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 32px;
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer p,
.footer a {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer a {
  color: rgba(255,255,255,0.6);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .grid-3, .grid-4, .values-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .hero h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 16px 20px;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .grid-3, .grid-4, .values-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero { min-height: 400px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 1rem; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.4rem; }

  .page-header h1 { font-size: 1.5rem; }

  .service-card {
    flex-direction: column;
    text-align: center;
  }
  .service-card h3,
  .service-card p { text-align: center; }
  .service-card .card-icon { margin: 0 auto; }
}

@media (max-width: 440px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* === WIZARD INTEGRATION === */

.angebot-cta {
  text-align: center;
  padding: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  margin-top: 24px;
}

.angebot-cta h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.angebot-cta p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.btn-angebot {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, background 0.2s;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.btn-angebot:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
