/* ===========================
   RUF MAXI Morbach – Styles
   =========================== */

:root {
  --navy: #003047;
  --navy-light: #0a3f5c;
  --navy-lighter: #114f6e;
  --gold: #ffde59;
  --gold-dark: #e8c235;
  --white: #ffffff;
  --offwhite: #f6f5f2;
  --text: #1c2230;
  --text-muted: #5b6472;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 63, 0.12);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(224, 178, 60, 0.35);
}

.btn-primary:hover {
  background: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

.logo-img {
  height: 56px;
  width: auto;
}

.footer-brand .logo-img {
  height: 64px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  opacity: 0.9;
}

.main-nav a:hover {
  opacity: 1;
  color: var(--gold);
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700 !important;
}

.nav-call:hover {
  background: var(--gold-dark);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(224, 178, 60, 0.18), transparent 45%),
    linear-gradient(135deg, #101a30 0%, #16233f 45%, #223454 100%);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 70px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 178, 60, 0.14), transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
}

.hero h1 .place {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
}

.hero p.lead {
  max-width: 560px;
  margin: 22px auto 34px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-item .icon {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.trust-item span {
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Intro strip ---------- */

.intro {
  background: var(--offwhite);
  padding: 46px 0;
  text-align: center;
}

.intro p {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Services ---------- */

.services {
  background: var(--white);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--navy);
}

.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background: var(--offwhite);
  border-radius: var(--radius);
  border: 1px solid rgba(22, 35, 63, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  background: var(--white);
}

.service-card .dot {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.service-card span.label {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

/* ---------- Standort ---------- */

.location {
  background: var(--navy);
  color: var(--white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.location h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.location p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 16px;
  font-size: 16px;
}

.location-facts {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.location-facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
}

.location-facts .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid rgba(255, 255, 255, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* ---------- FAQ ---------- */

.faq {
  background: var(--offwhite);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(22, 35, 63, 0.08);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  color: var(--navy);
  font-size: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .chev {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--offwhite);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.faq-item[open] summary .chev {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Über uns ---------- */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about h2 {
  font-size: clamp(28px, 4vw, 38px);
  color: var(--navy);
}

.about p {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 16px;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-fact {
  padding: 24px;
  background: var(--offwhite);
  border-radius: var(--radius);
}

.about-fact strong {
  display: block;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 6px;
}

.about-fact span {
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0f1830;
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-legal-links a {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  margin-bottom: 18px;
}

.contact-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  color: var(--white);
}

.footer-contact .label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 2px;
}

.footer-call {
  display: block;
  text-align: center;
  margin-top: 8px;
  padding: 15px 20px;
  background: var(--offwhite);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 8px;
}

.footer-call:hover {
  background: var(--white);
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 140px 0;
}

.not-found .eyebrow {
  color: var(--gold);
}

.not-found h1 {
  font-size: clamp(30px, 5vw, 46px);
}

@media (max-width: 500px) {
  .not-found {
    padding: 110px 0;
    min-height: 60vh;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 120px 0 80px;
}

.legal h1 {
  color: var(--navy);
  font-size: clamp(26px, 6vw, 32px);
  margin-bottom: 24px;
}

.legal h2 {
  color: var(--navy);
  font-size: 20px;
  margin: 32px 0 10px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.legal ul {
  padding-left: 20px;
  list-style: disc;
}

.legal a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.legal .container {
  max-width: 820px;
}

@media (max-width: 500px) {
  .legal {
    padding: 96px 0 60px;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }

  .main-nav {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-call {
    justify-content: center;
    margin-top: 14px;
  }

  .nav-toggle {
    display: block;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .map-frame iframe {
    height: 280px;
  }

  .footer-col {
    text-align: left;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 90px 0 50px;
  }

  .container {
    padding: 0 18px;
  }

  section {
    padding: 52px 0;
  }

  .btn {
    padding: 14px 22px;
    font-size: 14px;
  }

  .service-card {
    padding: 18px;
  }

  .about-fact {
    padding: 18px;
  }
}
