/* ==========================================================================
   SPF Perspektive – Design Tokens
   Farben sind aus dem Wix-Original abgeleitet (creme/beige + sehr
   dunkles Grün-Anthrazit). Schriftarten sind moderner und ruhiger.
   ========================================================================== */
:root {
  --c-bg: #fbfbf3;            /* Original-Cremeton */
  --c-bg-soft: #f2eddb;        /* Etwas dunkleres Beige */
  --c-bg-card: #ffffff;
  --c-ink: #2b2716;            /* Dunkles Anthrazit-Braun aus Original */
  --c-ink-soft: #4a4633;
  --c-muted: #918866;          /* Goldbraun für Subtext */
  --c-line: #d6cdac;           /* Warmes Beige-Linie */
  --c-accent: #093f1f;         /* Dunkles Tannengrün aus Original */
  --c-accent-soft: rgba(9, 63, 31, 0.08);
  --c-overlay: rgba(43, 39, 22, 0.55);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(43, 39, 22, 0.06);
  --shadow-md: 0 12px 30px -16px rgba(43, 39, 22, 0.25);
  --shadow-lg: 0 30px 80px -32px rgba(43, 39, 22, 0.35);

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1200px;
}

/* ==========================================================================
   Base & resets
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink-soft);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--c-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--c-accent);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  margin: 0 0 0.6em;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--c-ink);
}

p {
  margin: 0 0 1em;
}

p strong {
  color: var(--c-ink);
}

.container {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--c-ink-soft);
  max-width: 60ch;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --bg: var(--c-ink);
  --fg: var(--c-bg);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--bg);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease,
    background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  --bg: var(--c-accent);
  --fg: var(--c-bg);
  border-color: var(--c-accent);
  color: var(--fg);
}

.btn-ghost {
  --bg: transparent;
  --fg: var(--c-ink);
  border-color: var(--c-line);
  box-shadow: none;
}

.btn-ghost:hover {
  --bg: #fff;
  --fg: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-ink);
}

.btn-icon {
  width: 47px;
  height: 47px;
  border-radius: 999px;
  background: var(--c-ink);
  color: var(--c-bg);
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--c-bg);
  transition: transform 0.15s ease, background 0.2s ease;
  cursor: pointer;
}

.btn-icon:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  transform: translateY(-1px);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 251, 243, 0.92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--c-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--c-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--c-bg-soft);
  background-image: url('/images/blume-beton.jpg');
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(43, 39, 22, 0.15),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  display: block;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 4px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Phone-Hover: die Nummer schwebt links neben dem Telefon-Button und
   nimmt im Layout keinen Platz ein. */
.contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.contact-pill .pill-button {
  position: absolute;
  right: calc(100% + 0.4rem);
  top: 50%;
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  color: var(--c-ink);
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease,
    visibility 0.2s ease;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.contact-pill:hover .pill-button,
.contact-pill:focus-within .pill-button {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 720px) {
  .brand {
    font-size: 1.15rem;
  }
  .brand-text small {
    display: none;
  }
  .brand-logo {
    width: 44px;
    height: 44px;
  }
  .contact-pill .pill-button {
    display: none;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--c-bg-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

.hero-content {
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.hero-name-tag {
  display: inline-block;
  background: rgba(43, 39, 22, 0.55);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.7rem 1.6rem;
  margin-bottom: 1.4rem;
  font-size: 0.92rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  color: var(--c-ink);
  margin-bottom: 1.6rem;
  letter-spacing: -0.01em;
}

.qualifications {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  display: grid;
  gap: 0.55rem;
  font-size: 0.97rem;
  color: var(--c-ink-soft);
}

.qualifications li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.55;
}

.qualifications li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-image {
  position: relative;
  background-color: #c2c8cb;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 420px;
}

@media (max-width: 900px) {
  .hero-image {
    min-height: 300px;
    height: clamp(300px, 55vw, 380px);
    background-position: center center;
  }
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(195, 200, 200, 0) 60%,
    rgba(43, 39, 22, 0.05) 100%
  );
  pointer-events: none;
}

/* ==========================================================================
   Mission / Quote section
   ========================================================================== */
.mission {
  background: var(--c-bg);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.mission-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
}

.mission-rule {
  width: 3px;
  align-self: stretch;
  background: var(--c-ink);
  border-radius: 2px;
}

.mission p {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0;
}

@media (max-width: 700px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
  .mission-rule {
    width: 60px;
    height: 3px;
    margin-bottom: 1rem;
  }
}

/* ==========================================================================
   Ziele section (image background + 3 cards)
   ========================================================================== */
.ziele {
  position: relative;
  background-color: #b0bcc2;
  background-size: cover;
  background-position: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  color: var(--c-bg);
  isolation: isolate;
}

.ziele::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(43, 39, 22, 0.35),
    rgba(43, 39, 22, 0.55)
  );
  z-index: -1;
}

.ziele-tag {
  display: inline-block;
  background: rgba(43, 39, 22, 0.5);
  color: var(--c-bg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  padding: 0.8rem 2.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.ziele .container {
  text-align: center;
}

.ziele-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.ziel-card {
  position: relative;
  background: var(--c-bg);
  color: var(--c-ink);
  padding: 3.5rem 1.6rem 1.8rem;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ziel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ziel-card .dot {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcd7c7;
  box-shadow: 0 4px 14px rgba(43, 39, 22, 0.18);
}

.ziel-card p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--c-ink);
}

/* ==========================================================================
   Outro / Contact
   ========================================================================== */
.outro {
  background: rgba(242, 237, 219, 0.85);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}

.outro-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--c-ink);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

.outro hr {
  width: clamp(280px, 60%, 700px);
  border: none;
  border-top: 3px solid var(--c-ink);
  margin: 2.5rem auto;
}

.outro-text {
  max-width: 640px;
  margin-inline: auto;
  font-size: 1.05rem;
  color: var(--c-ink);
}

.outro-contact {
  display: grid;
  gap: 0.4rem;
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: var(--c-ink);
}

.outro-contact a {
  color: var(--c-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.outro-contact a:hover {
  color: var(--c-accent);
}

.outro-cta {
  display: inline-flex;
  margin-top: 2.5rem;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-ink);
  color: #cfc6a8;
  padding: 2.4rem 0 1.8rem;
}

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

.site-footer a {
  color: var(--c-bg);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-right: 2rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer small {
  color: #968c6e;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Sub-pages (Impressum / Datenschutz)
   ========================================================================== */
.page-header {
  padding-block: clamp(3.5rem, 7vw, 5.5rem) clamp(1.5rem, 4vw, 2.5rem);
  background: var(--c-bg-soft);
}

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 4rem);
}

.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin-top: 2rem;
  font-size: 1.05rem;
}

.prose p,
.prose li {
  color: var(--c-ink-soft);
}

.prose ul {
  padding-left: 1.2rem;
  margin: 1rem 0;
  display: grid;
  gap: 0.4rem;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Mobile-Optimierungen
   ========================================================================== */

/* Tablets / kleine Screens */
@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .container {
    padding-inline: 1.25rem;
  }

  /* Hero – auf Mobile zuerst Bild, dann Text wirkt natürlicher,
     aber Text-zuerst ist hier besser für SEO/Above-the-fold. */
  .hero-grid {
    min-height: auto;
  }

  .hero-content {
    padding: 2.5rem 1.5rem 2.8rem;
    text-align: center;
    align-items: center;
  }

  .hero-name-tag,
  .hero h1,
  .hero-actions {
    align-self: center;
  }

  .hero-image {
    min-height: 320px;
    background-position: center center;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 6vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .hero-name-tag {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.18em;
  }

  .qualifications {
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    text-align: left;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .btn {
    justify-content: center;
    min-width: 0;
    flex: 0 1 auto;
  }
}

/* Phones */
@media (max-width: 640px) {
  /* Header kompakter */
  .nav {
    padding-block: 0.7rem;
    gap: 0.6rem;
  }

  .brand {
    font-size: 1rem;
    gap: 0.55rem;
    letter-spacing: 0.03em;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-text small {
    display: none;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .btn-icon {
    width: 44px;
    height: 44px;
  }

  .btn-icon svg {
    width: 20px;
    height: 20px;
  }

  /* Pill auf Mobile ausblenden – Hover gibt's nicht, das Phone-Icon
     ruft per Tap direkt an. */
  .contact-pill .pill-button {
    display: none;
  }

  /* Mission */
  .mission {
    padding-block: 3rem;
  }

  .mission-grid {
    gap: 1rem;
  }

  .mission-rule {
    width: 48px;
    height: 3px;
    margin: 0 auto 0.5rem;
  }

  .mission p {
    font-size: 1.3rem;
    text-align: center;
  }

  /* Ziele */
  .ziele {
    padding-block: 3.5rem;
  }

  .ziele-tag {
    font-size: 1.6rem;
    padding: 0.6rem 1.8rem;
    letter-spacing: 0.16em;
    margin-bottom: 2.5rem;
  }

  .ziele-grid {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .ziel-card {
    padding: 3rem 1.4rem 1.6rem;
    max-width: 360px;
    margin-inline: auto;
  }

  .ziel-card .dot {
    width: 56px;
    height: 56px;
    top: -28px;
  }

  .ziel-card p {
    font-size: 0.97rem;
  }

  /* Outro */
  .outro {
    padding-block: 3.5rem;
  }

  .outro-headline {
    font-size: 1.35rem;
  }

  .outro hr {
    margin: 2rem auto;
    width: 70%;
  }

  .outro-text {
    font-size: 1rem;
  }

  .outro-contact {
    font-size: 1rem;
    margin-top: 2rem;
  }

  .outro-cta {
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
  }

  .outro-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Footer */
  .site-footer {
    padding: 1.8rem 0 1.4rem;
  }

  .site-footer .container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .site-footer a {
    margin: 0 0.7rem;
  }

  .site-footer small {
    font-size: 0.78rem;
    line-height: 1.5;
  }

  /* Sub-pages */
  .page-header {
    padding-block: 2.5rem 1.5rem;
  }

  .prose {
    padding-block: 2rem 3rem;
  }

  .prose h2 {
    font-size: 1.3rem;
  }
}

/* Sehr schmale Geräte (alte iPhone SE etc.) */
@media (max-width: 380px) {
  .hero-content {
    padding: 2rem 1.1rem;
  }

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

  .hero-actions .btn {
    flex-basis: 100%;
  }

  .ziele-tag {
    font-size: 1.4rem;
    padding: 0.55rem 1.4rem;
  }
}
