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

:root {
  --navy: #1b2a4a;
  --navy-light: #2c3e6b;
  --blue-accent: #3a5a8c;
  --gold: #c9a84c;
  --white: #ffffff;
  --off-white: #f5f6f8;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --text: #1f2937;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

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

ul {
  list-style: none;
}

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

/* === Header / Navigation === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  z-index: 1000;
}

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

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-menu a {
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover {
  background: var(--navy);
  color: var(--white);
}

.nav-menu a.active:not(.btn-nav) {
  background: var(--navy);
  color: var(--white);
}

.nav-menu .btn-nav {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.nav-menu .btn-nav:hover {
  background: var(--navy-light);
}

/* === Hero === */
.hero {
  margin-top: 80px;
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 520px;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 500px;
}

.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 4px;
  border: 2px solid var(--white);
  transition: background 0.2s, color 0.2s;
}

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

.hero-image {
  border-radius: 8px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Section Defaults === */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}

/* === Leistungen (Services) === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

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

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

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

/* === Ueber uns === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text .label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--blue-accent);
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about-image {
  border-radius: 8px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
}

/* === Kunden (Clients) === */
.clients-marquee {
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.clients-marquee-inner {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.clients-marquee-inner span {
  display: inline-block;
  padding: 0 3rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients-content {
  text-align: center;
}

.clients-content p {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* === Kontakt (Contact) === */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  margin-bottom: 2rem;
}

.contact-info h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact-info a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  color: var(--white);
  transition: border 0.2s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.5);
}

.contact-form select option {
  color: var(--text);
  background: var(--white);
}

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

.btn-submit {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.btn-submit:hover {
  opacity: 0.9;
}

.form-message {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

/* === Footer === */
.footer {
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  padding: 2rem 0;
}

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

.footer-copy {
  font-size: 0.85rem;
  color: var(--gray);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color 0.2s;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .hero .container {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-content h1 {
    font-size: 1.85rem;
  }

  .hero-image {
    order: -1;
  }

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

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

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

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

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

/* === Legal / Impressum Page === */
.legal-page {
  margin-top: 80px;
  padding: 4rem 0;
  min-height: calc(100vh - 80px - 73px);
}

.legal-page h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--gray);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-page ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* === WP Admin Bar Fix === */
body.admin-bar .header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header {
    top: 46px;
  }
}
