/* ============================================================
   Stadt Land Frau – Öffentliche Hauptseite (web/)
   Sektions-Styles der Startseite. Tokens & Basiskomponenten
   (Buttons, Typo) kommen aus shared/design.css.
   Mobile-first; Breakpoints 600 / 768 / 1024.
   ============================================================ */

.slf-section { padding: 3.5rem 0; }
.slf-section--tight { padding: 2.5rem 0; }

.slf-section__head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.slf-section__head h1,
.slf-section__head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.slf-section__head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.02rem;
}

.slf-badge {
  display: inline-block;
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

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

.slf-hero { padding: 3rem 0 3.5rem; }
.slf-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.slf-hero__text { order: 1; }
.slf-hero__media { order: 2; }

.slf-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  color: var(--brand-dark-red);
  margin: 0 0 1rem;
}
.slf-hero__subline {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 1.8rem;
  max-width: 34rem;
}
.slf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.slf-hero__photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .slf-hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 3rem; }
  .slf-hero__text { order: 1; }
  .slf-hero__media { order: 2; }
}

/* ---------- Hero-Variante: Bild als Hintergrund ---------- */

.slf-hero--bg {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 3rem 0;
  overflow: hidden;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: 72% center;
}
/* Heller Verlauf für Lesbarkeit des (links stehenden) Textes */
.slf-hero--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--brand-off-white) 0%,
    rgba(255, 248, 245, 0.88) 34%,
    rgba(255, 248, 245, 0.40) 60%,
    rgba(255, 248, 245, 0) 85%);
}
.slf-hero--bg .slf-hero__inner {
  position: relative;
  z-index: 1;
  display: block;            /* überschreibt das 2-Spalten-Grid */
}
.slf-hero--bg .slf-hero__text { max-width: 34rem; }
.slf-hero--bg .slf-hero__media { display: none; }

@media (max-width: 767px) {
  .slf-hero--bg {
    min-height: 76vh;
    background-position: 66% center;
  }
  /* mobil: gleichmäßigere Aufhellung von oben nach unten */
  .slf-hero--bg::before {
    background: linear-gradient(180deg,
      rgba(255, 248, 245, 0.92) 0%,
      rgba(255, 248, 245, 0.74) 50%,
      rgba(255, 248, 245, 0.55) 100%);
  }
}

/* ---------- Zielgruppen ("Für wen") ---------- */

.slf-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.slf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slf-card__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.slf-card__body { padding: 1.3rem 1.4rem 1.6rem; }
.slf-card__body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.slf-card__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Was dich erwartet ---------- */

.slf-features { background: var(--surface); }
.slf-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem 2rem;
}
.slf-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.slf-feature__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.slf-feature__text h3 {
  font-size: 1.08rem;
  margin: 0 0 0.3rem;
}
.slf-feature__text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* ---------- Zitat / CTA-Band ---------- */

.slf-quoteband { background: var(--brand-pink); }
.slf-quoteband__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.slf-quoteband__illu {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 0 auto;
}
.slf-quoteband__body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 0.6rem;
}
.slf-quoteband__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 1.6rem;
}
.slf-quoteband__body p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1.6rem;
}

@media (min-width: 768px) {
  .slf-quoteband__inner { grid-template-columns: 0.95fr 1.05fr; gap: 3rem; }
}

/* ---------- Blog-Teaser ---------- */

/* Streifenband auf Höhe der Karten (+20px oben/unten), Diagonale gespiegelt (-45°) */
.slf-blog__band {
  padding: 20px 0;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--brand-blue) 0,
    var(--brand-blue) 24px,
    var(--brand-off-white) 24px,
    var(--brand-off-white) 48px
  );
}

.slf-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}
.slf-post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}
.slf-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.slf-post__img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}
.slf-post__body { padding: 1.2rem 1.4rem 1.5rem; }
.slf-post__date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 0.4rem;
}
.slf-post__body h2,
.slf-post__body h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}
.slf-post__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}
.slf-blog__more { text-align: center; margin-top: 2.5rem; }

/* ---------- Kontaktformular ---------- */

/* Kontaktsektion farblich abgesetzt */
.slf-contact { background: var(--accent-soft); }

/* Volle .wrap-Breite wie der Hero – Text und Formular schließen bündig an den Seitenkanten ab */
.slf-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.slf-contact__intro h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.slf-contact__intro p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* Oberster Breakpoint: gleiches 3-Spalten-Raster wie die Blog-Karten
   (gleiche Spaltenbreiten und -abstände). Formular über 2 Karten-Breiten
   (Spalte 1–2), Text auf Position der 3. Karte (Spalte 3) – alles bündig. */
@media (min-width: 1024px) {
  .slf-contact__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
  /* beide in Zeile 1 -> nebeneinander (sonst rutscht das Formular in Zeile 2,
     weil der Text im HTML zuerst steht und in Spalte 3 platziert wird) */
  .slf-contact__formcol { grid-column: 1 / 3; grid-row: 1; }
  .slf-contact__intro   { grid-column: 3 / 4; grid-row: 1; }
}

.slf-contact__form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  display: grid;
  gap: 1.1rem;
}
.slf-field { display: flex; flex-direction: column; }
.slf-field label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.slf-field input,
.slf-field textarea {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface-alt);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  width: 100%;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.slf-field textarea { resize: vertical; min-height: 130px; }
.slf-field input:focus,
.slf-field textarea:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(221, 85, 19, 0.12);
}
/* Honeypot – für Menschen unsichtbar */
.slf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.slf-contact__note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.55;
  margin: 0.2rem 0 0;
}
.slf-contact__actions { margin-top: 0.4rem; }

/* ---------- Einzelartikel ---------- */

.slf-article__wrap { max-width: 760px; margin: 0 auto; }

.slf-article__back { margin: 0 0 1.2rem; font-size: 0.9rem; }
.slf-article__back a { color: var(--ink-soft); }
.slf-article__back a:hover { color: var(--ink); }

.slf-article__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--brand-dark-red);
  margin: 0 0 0.5rem;
}
.slf-article__date {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 1.6rem;
}
.slf-article__hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
}

.slf-article__body { font-size: 1.05rem; line-height: 1.75; color: var(--ink); }
.slf-article__body p { margin: 0 0 1.2rem; }
.slf-article__body h2 {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  margin: 2rem 0 0.8rem;
}
.slf-article__body h3 { font-size: 1.2rem; margin: 1.6rem 0 0.6rem; }
.slf-article__body ul,
.slf-article__body ol { margin: 0 0 1.2rem 1.3rem; padding: 0; }
.slf-article__body li { margin-bottom: 0.5rem; }
.slf-article__body a { color: var(--accent); text-decoration: underline; }
.slf-article__body img { border-radius: var(--radius); margin: 1rem 0; }
.slf-article__body blockquote {
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.2rem;
  border-left: 3px solid var(--brand-blue);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
}
.slf-article__body hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2rem auto;
  width: 40%;
}
.slf-article__more { margin-top: 2.5rem; }

.slf-note {
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.3rem;
  font-size: 0.95rem;
  border-left: 3px solid;
}
.slf-note--ok  { background: #e6f2e4; border-color: var(--good); color: #1a3d18; }
.slf-note--err { background: #fde8ec; border-color: var(--bad); color: #6d0d20; }
