/* ==========================================================================
   Sommerlinde Holding
   Farbwelt abgeleitet aus dem Logo: tiefes Marineblau + warmes Cremeweiss,
   gedecktes Messing als einziger Akzent.
   Schriften: ausschliesslich Systemschriften (keine externen Requests, DSGVO).
   ========================================================================== */

:root {
  /* Kernfarben aus dem Logo */
  --navy: #33485e;
  --navy-deep: #26374a;
  --navy-ink: #1d2b3a;
  --cream: #f1ede3;
  --cream-page: #faf8f2;
  --white: #ffffff;

  /* Akzent */
  --brass: #b3985f;
  --brass-light: #c9b183;

  /* Text & Linien */
  --text: #2c3742;
  --text-muted: #5d6b78;
  --rule: #ddd6c8;
  --rule-on-navy: rgba(241, 237, 227, 0.22);

  /* Schriftfamilien */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
           Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* verhindert, dass der klebende Header Ankerziele verdeckt */
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream-page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.005em;
}

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

img, svg {
  max-width: 100%;
}

/* Kleines, gesperrtes Label — wiederkehrendes Stilmittel */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 40px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--rule-on-navy);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--cream);
}

.logo svg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  stroke-width: 1.3;
  opacity: 0.92;
}

.logo-text {
  line-height: 1.15;
}

.logo-text .brand-name {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.logo-text .brand-sub {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  opacity: 0.8;
  margin-top: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding: 130px 40px 270px;
  text-align: center;
}

.hero-content {
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.24;
  font-weight: 500;
  margin: 0 0 30px;
}

.hero p {
  font-size: 19px;
  line-height: 1.75;
  margin: 0 auto 46px;
  max-width: 720px;
  opacity: 0.86;
}

.btn {
  display: inline-block;
  background: var(--brass);
  color: var(--navy-ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 19px 40px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--brass-light);
  transform: translateY(-2px);
}

.hero-skyline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 330px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ---------- Sections ---------- */
section {
  padding: 110px 40px;
}

.section-narrow {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.about h2,
.criteria h2,
.process h2 {
  color: var(--navy-ink);
  font-size: 33px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 28px;
}

/* Feine Messinglinie unter den Abschnittsueberschriften */
.criteria h2::after,
.process h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--brass);
  margin: 30px auto 0;
}

.about p,
.process > .section-narrow > p {
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.85;
  margin: 0 0 20px;
}

.about {
  background: var(--cream-page);
}

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

.criteria h2 {
  margin-bottom: 56px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  background: var(--cream-page);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 44px 32px;
  text-align: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.card .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 24px;
  color: var(--brass);
  stroke-width: 1.2;
}

.card h3 {
  color: var(--navy-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 20px;
}

.card ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.card ul li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}

.process {
  background: var(--cream-page);
}

.process .section-narrow {
  max-width: 780px;
  margin-bottom: 56px;
}

.process .card-grid .card {
  background: var(--white);
}

.card .step-desc {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

/* ---------- Kontakt ---------- */
.contact {
  background: var(--navy);
  color: var(--cream);
  padding-bottom: 120px;
}

.contact h2 {
  text-align: center;
  font-size: 33px;
  font-weight: 500;
  margin: 0 0 14px;
}

.contact .subtitle {
  text-align: center;
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 50px;
  max-width: 580px;
  opacity: 0.82;
}

.contact-card {
  background: var(--cream-page);
  color: var(--text);
  max-width: 660px;
  margin: 0 auto;
  padding: 52px 48px;
  border-radius: 3px;
  box-shadow: 0 24px 60px rgba(29, 43, 58, 0.3);
  text-align: center;
}

.contact-intro {
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 36px;
  color: var(--text);
}

.contact-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 30px 18px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--white);
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.contact-method svg {
  width: 26px;
  height: 26px;
  color: var(--brass);
  margin-bottom: 6px;
}

.contact-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.contact-value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-ink);
  word-break: break-word;
}

.contact-note {
  margin: 34px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 32px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.site-footer span {
  opacity: 0.72;
}

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

.site-footer .footer-links a {
  opacity: 0.86;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: var(--brass-light);
  opacity: 1;
}

/* ---------- Rechtstexte ---------- */
.legal-page {
  background: var(--white);
}

.legal-page main {
  max-width: 800px;
  margin: 0 auto;
  padding: 90px 40px 110px;
}

.legal-page h1 {
  color: var(--navy-ink);
  font-size: 40px;
  font-weight: 500;
  margin: 0 0 12px;
}

.legal-page h1 + p {
  color: var(--text-muted);
  font-size: 15px;
}

.legal-page h2 {
  color: var(--navy-ink);
  font-size: 21px;
  font-weight: 600;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}

.legal-page h3 {
  color: var(--navy-ink);
  font-size: 17px;
  font-weight: 600;
  margin-top: 30px;
}

.legal-page p,
.legal-page li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.legal-page a.inline-link {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--brass);
}

.legal-page a.inline-link:hover {
  color: var(--brass);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 17px;
  }

  .about h2,
  .criteria h2,
  .process h2,
  .contact h2 {
    font-size: 26px;
  }

  section {
    padding: 72px 24px;
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 20px 20px;
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  .logo-text .brand-name {
    font-size: 17px;
  }

  .logo-text .brand-sub {
    font-size: 10px;
    letter-spacing: 0.28em;
  }

  .hero {
    padding: 80px 20px 220px;
  }

  .contact-card {
    padding: 32px 22px;
  }

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

  .legal-page main {
    padding: 56px 24px 72px;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    padding: 28px 24px;
  }
}
