/* Ahauser Zimmerei, Variante: wenige Hilfsregeln fuer die Unterseiten.
   Wird nach styles.css eingebunden und aendert dort nichts. */

/* Gleichmaessiger Abstand innerhalb eines Abschnitts */
.stapel > * + * { margin-top: clamp(14px, 1.6vw, 22px); }
.stapel > .titelzeile + * { margin-top: 0; }

/* Seitenkopf: etwas breitere Textspalte */
.titel .lauftext { max-width: 46rem; }
.titel .lauftext + .lauftext { margin-top: .8em; }

/* Echte Fotos: drei je Zeile, nie ueber Originalbreite (705 px) */
.galerie--echt > li { min-width: 0; display: flex; }
@media (max-width: 560px) { .galerie--echt { grid-auto-rows: auto; } }
.galerie--echt figcaption { max-width: none; margin-top: 8px; }
.galerie--echt figcaption strong { display: block; font-size: 15px; font-weight: 700; color: var(--tinte); }

/* Karten in Reihe (Kontaktwege, Hinweise) */
.kartenreihe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 14px; align-items: stretch; }
.kartenreihe .kasten { display: flex; flex-direction: column; height: 100%; }
.kartenreihe .kasten > :last-child { margin-bottom: 0; }
@media (max-width: 900px) { .kartenreihe { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kartenreihe { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.kasten small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--gedaempft); }
.kasten p + p { margin-top: .7em; }
.gross-link { font-family: var(--display); font-size: clamp(23px, 2.2vw, 29px); font-weight: 700; letter-spacing: -.02em; text-decoration: none; }

/* Team-Textkarten (Portraets von Falko und Yuniss fehlen) */
.team li span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--gedaempft); }

/* Kundenstimmen */
.stimmen li p { margin: 0; }

/* Instagram-Hinweis */
.kasten a { overflow-wrap: anywhere; }
.insta-link { font-weight: 600; }
.insta { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.insta img { width: 26px; height: 26px; flex: none; }

/* Rechtstexte */
.anschrift { font-weight: 700; }
.textspalte .merkliste { margin-top: 1em; }

/* Bild neben Text mittig ausrichten; jede zweite Leistung mit Bild links.
   Im HTML steht immer zuerst der Text, damit die Lesereihenfolge stimmt. */
.leistung .zweispaltig { align-items: center; }
.leistung figure { margin: 0; }
@media (min-width: 1001px) {
  .leistung--gedreht .zweispaltig > :first-child { order: 2; }
  .leistung--gedreht .zweispaltig > :last-child { order: 1; }
}

/* Instagram-Hinweis nicht ueber die volle Breite ziehen */
.kasten--schmal { max-width: 34rem; }
