/* ── Reset & Variables ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --color-primary: #102A43;
  --color-accent: #C8A44D;
  --color-bg: #F6F2EA;
  --color-muted: #5F6B7A;
  --font-heading: 'Montserrat', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-h: 80px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { font-size: 1.05rem; color: var(--color-muted); }

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--color-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  box-shadow: 0 2px 20px rgba(16,42,67,.25);
}
.site-header .logo img,
.site-header .logo svg {
  height: 40px;
  width: auto;
}
.burger {
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer;
  display: flex; flex-direction: column;
  justify-content: center; gap: 6px;
  padding: 4px;
  z-index: 1100;
}
.burger span {
  display: block;
  width: 100%; height: 2.5px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: .35s ease;
  transform-origin: center;
}
.burger.active span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ── Mobile Menu ── */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(380px, 85vw);
  height: 100vh;
  background: var(--color-primary);
  z-index: 1050;
  transition: right .4s cubic-bezier(.4,0,.2,1);
  padding: calc(var(--header-h) + 2rem) 2rem 2rem;
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  display: block;
  padding: .9rem 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--color-accent); }
.mobile-nav .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.mobile-nav .dropdown-toggle .chevron {
  width: 20px; height: 20px;
  transition: transform .3s;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-nav .dropdown-toggle.active .chevron { transform: rotate(180deg); }
.mobile-nav .dropdown-sub {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.mobile-nav .dropdown-sub a {
  padding-left: 1.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
}
.mobile-nav .dropdown-sub a:hover { color: var(--color-accent); }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16,42,67,.6);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: .35s ease;
}
.overlay.show { opacity: 1; visibility: visible; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 span { color: var(--color-accent); }
.hero p { color: rgba(255,255,255,.8); font-size: 1.2rem; margin-bottom: 2rem; }
.hero .hero-icon {
  width: 80px; height: 80px;
  margin: 0 auto 2rem;
  opacity: .8;
}
.hero .hero-logo {
  width: clamp(260px, 40vw, 480px);
  height: auto;
  margin: 0 auto 2.5rem;
  opacity: .95;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  border-radius: 4px;
  transition: all .3s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
}
.btn-primary:hover { background: #b8943f; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,164,77,.35); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--color-accent);
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-primary); }

/* ── Sections ── */
.section {
  padding: 6rem clamp(1rem, 5vw, 3rem);
}
.section-dark { background: var(--color-primary); }
.section-dark h2, .section-dark h3, .section-dark p { color: #fff; }
.section-dark p { color: rgba(255,255,255,.7); }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: .8rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { max-width: 620px; margin-bottom: 3rem; }

/* ── Service Cards (Home) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: #fff;
  border-radius: 8px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 4px 24px rgba(16,42,67,.07);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(16,42,67,.12); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .card-icon {
  width: 52px; height: 52px;
  margin-bottom: 1.2rem;
}
.service-card h3 { margin-bottom: .6rem; font-size: 1.2rem; }
.service-card p { font-size: .95rem; }
.service-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.2rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--color-accent);
  transition: gap .3s;
}
.service-card .card-link:hover { gap: 10px; }

/* ── About / Stats ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  max-height: 400px;
}
.about-image canvas,
.about-image .placeholder-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}
.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-accent);
}
.stat-item .stat-label {
  font-size: .9rem;
  color: var(--color-muted);
  margin-top: .3rem;
}

/* ── CTA Banner ── */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a3a56 100%);
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ── Leistung Page Hero ── */
.leistung-hero {
  position: relative;
  height: 55vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: var(--header-h);
}
.leistung-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.leistung-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16,42,67,.65);
}
.leistung-hero h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  padding: 0 2rem;
}
.leistung-hero h1::after {
  content: '';
  display: block;
  width: 60px; height: 3px;
  background: var(--color-accent);
  margin: 1rem auto 0;
}

/* ── Leistung Content ── */
.leistung-content {
  padding: 5rem clamp(1rem, 5vw, 3rem);
}
.leistung-content .container { max-width: 1100px; margin: 0 auto; }
.leistung-intro { margin-bottom: 3rem; }
.leistung-intro h2 { margin-bottom: 1rem; }
.leistung-intro p { font-size: 1.1rem; max-width: 700px; }

.leistung-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.leistung-block.reverse { direction: rtl; }
.leistung-block.reverse > * { direction: ltr; }
.leistung-block-text h3 {
  margin-bottom: .8rem;
  color: var(--color-primary);
}
.leistung-block-text p { margin-bottom: .6rem; }
.leistung-block-text ul {
  margin-top: .8rem;
  list-style: none;
}
.leistung-block-text ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .5rem;
  font-size: 1rem;
  color: var(--color-muted);
}
.leistung-block-text ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .55rem;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
}
.leistung-block-image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.leistung-block-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ── Kontakt ── */
.kontakt-section {
  margin-top: var(--header-h);
  padding: 5rem clamp(1rem, 5vw, 3rem);
}
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.kontakt-info h2 { margin-bottom: 1rem; }
.kontakt-info > p { margin-bottom: 1.5rem; font-size: 1.05rem; }
.kontakt-details {
  margin-top: 2rem;
}
.kontakt-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.kontakt-detail .detail-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.kontakt-detail .detail-icon svg {
  width: 20px; height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.kontakt-detail .detail-label {
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-muted);
  margin-bottom: .2rem;
}
.kontakt-detail .detail-value {
  color: var(--color-primary);
  font-size: 1rem;
}

/* ── Contact Form ── */
.kontakt-form-wrap {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(16,42,67,.08);
}
.kontakt-form-wrap h3 { margin-bottom: 1.5rem; }
.form-group {
  margin-bottom: 1.4rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .4rem;
  color: var(--color-primary);
}
.form-group label .optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: .85rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 2px solid #e2ddd5;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  background: var(--color-bg);
  transition: border-color .3s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group input.error,
.form-group textarea.error { border-color: #c0392b; }
.form-error {
  font-size: .82rem;
  color: #c0392b;
  margin-top: .3rem;
  display: none;
}
.form-success {
  display: none;
  background: var(--color-primary);
  color: #fff;
  padding: 1.2rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
}
.form-success.show { display: block; }

/* ── Footer ── */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.6);
  padding: 3rem clamp(1rem, 5vw, 3rem) 1.5rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-brand .logo img,
.footer-brand .logo svg {
  height: 32px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-brand p {
  color: rgba(255,255,255,.5);
  font-size: .9rem;
  max-width: 300px;
}
.footer-links h4 {
  color: #fff;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: .8rem;
}
.footer-links a {
  display: block;
  padding: .3rem 0;
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: .85rem;
}
.footer-legal a {
  margin-left: 1.5rem;
  color: rgba(255,255,255,.55);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--color-accent); }

/* ── Scroll Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid,
  .leistung-block,
  .leistung-block.reverse,
  .kontakt-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .leistung-block.reverse { direction: ltr; }
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
}
