/* ===========================================================================
   Annette Sewing — Stylesheet
   ---------------------------------------------------------------------------
   Handgeschrieben, kein Framework. Farben stammen aus dem bisherigen
   Auftritt (#de4528 Akzent, #f5f5f3 Grundton, #6786a1 Sekundaerfarbe).

   Schrift: bewusst eine System-Serifenschrift statt Google Fonts. Das spart
   externe Anfragen, laedt sofort und vermeidet die datenschutzrechtliche
   Problematik eingebundener Google-Fonts (Uebertragung der IP-Adresse in die
   USA ohne Einwilligung).
   =========================================================================== */

/* --- Designtokens -------------------------------------------------------- */
:root {
  --ink:        #32373c;   /* Fliesstext            */
  --ink-soft:   #5d646b;   /* Nebentext             */
  --accent:     #de4528;   /* Akzent, Links, Buttons*/
  --accent-dk:  #b3351c;   /* Akzent bei Hover      */
  --blue:       #6786a1;   /* Sekundaerfarbe        */
  --teal:       #4fbcae;   /* Signetfarbe, Links auf Fotos */
  --teal-dk:    #36958a;
  --sand:       #f5f5f3;   /* Seitenhintergrund     */
  --sand-dk:    #ebe8e3;   /* abgesetzte Flaechen   */
  --line:       #ddd8d1;   /* Trennlinien           */
  --white:      #ffffff;

  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --wrap: 62rem;           /* Inhaltsbreite         */
  --gap:  1.5rem;
  --radius: 4px;
}

/* --- Grundlagen ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}

/* Sichtbarer Fokusrahmen — wichtig fuer Tastaturbedienung */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent-dk); }

/* --- Typografie ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.25; font-weight: 700; margin: 2.2rem 0 .8rem; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); margin-top: 0; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.1vw, 1.9rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
li { margin-bottom: .4rem; }
blockquote {
  margin: 1.6rem 0; padding: .6rem 0 .6rem 1.3rem;
  border-left: 3px solid var(--accent); color: var(--ink-soft); font-style: italic;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* --- Layout -------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: .7rem 1.2rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* --- Kopfbereich --------------------------------------------------------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--gap); padding: .85rem 0;
}
.brand { display: block; text-decoration: none; line-height: 0; }
.brand img { width: clamp(9rem, 16vw, 12rem); height: auto; border-radius: 0; }

/* Navigation: ohne JavaScript, auf schmalen Schirmen als Klapp-Menue */
.nav ul { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-family: var(--sans); font-size: .95rem; text-decoration: none;
  color: var(--ink); padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* Schmale Schirme: Kopfzeile stapelt sich, die Navigation bricht um.
   Bewusst keine Klappmechanik — weniger Technik, nichts das klemmen kann. */
@media (max-width: 54rem) {
  .site-header { position: static; }
  .site-header .wrap { flex-wrap: wrap; justify-content: center; text-align: center; }
  .nav ul { justify-content: center; gap: .2rem .9rem; }
  .nav a { font-size: .92rem; }
}

/* --- Inhaltsbereich ------------------------------------------------------ */
main { padding: 2.5rem 0 3.5rem; }
main > .wrap > :first-child { margin-top: 0; }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Bilder im Fliesstext bekommen Luft */
main p > img, main > .wrap > img { margin: 1.5rem 0; }

/* Zweispaltig ab mittlerer Breite — fuer Text-neben-Bild-Abschnitte */
.cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .cols { grid-template-columns: 1fr 1fr; align-items: start; } }

/* --- Nur fuer Screenreader ------------------------------------------------ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Volle Breite ausbrechen ---------------------------------------------
   Laesst einen Abschnitt aus der zentrierten Inhaltsspalte ueber die ganze
   Fensterbreite laufen, ohne das uebrige Layout umbauen zu muessen. */
.bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
/* 100vw zaehlt den Scrollbalken mit und erzeugt sonst einen waagerechten
   Ueberstand. "clip" schneidet ihn ab, ohne — anders als "hidden" — einen
   eigenen Scrollbereich zu erzeugen; die klebende Kopfzeile bleibt intakt. */
html, body { overflow-x: clip; }

/* --- Hero mit ueberblendenden Fotos --------------------------------------
   Drei Bilder liegen uebereinander und werden per CSS-Animation nacheinander
   eingeblendet. Kein JavaScript: nichts, was blockieren oder nachladen muss. */
.hero {
  position: relative;
  height: clamp(24rem, 56vh, 38rem);
  overflow: hidden;
  background: var(--sand-dk);
  margin-bottom: 3.5rem;
}
/* Hoehere Spezifitaet als die Regel, die beim ersten Element den oberen
   Abstand entfernt — der Hero soll buendig unter der Kopfzeile sitzen. */
main > .wrap > .hero:first-of-type { margin-top: -2.5rem; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  animation: heroFade 24s infinite both;
}
.hero-1 { animation-delay: 0s; }
.hero-2 { animation-delay: 8s; }
.hero-3 { animation-delay: 16s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  3%   { opacity: 1; }
  30%  { opacity: 1; }
  33%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-img, .hero-slide picture {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 0;
}
/* Motiv auf seiner Seite verankern, damit die gegenueberliegende,
   ruhige Flaeche fuer den Text frei bleibt */
.hero-1 .hero-img, .hero-3 .hero-img { object-position: 25% 25%; }
.hero-2 .hero-img { object-position: 80% 40%; }

/* Text liegt frei auf dem Foto — ohne Hinterlegung, wie im Original.
   Je Bild auf der ruhigen, hellen Seite. Ein kaum sichtbarer heller Schein
   um die Buchstaben faengt ab, wenn das Motiv dort doch einmal unruhiger
   wird; auf glatten Flaechen ist er nicht wahrnehmbar. */
.hero-text {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: min(30rem, 42%);
  color: #4a4f54;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .75), 0 0 14px rgba(255, 255, 255, .55);
}
.hero-text-right { right: max(2.5rem, calc(50% - var(--wrap) / 2)); }
.hero-text-left  { left:  max(2.5rem, calc(50% - var(--wrap) / 2)); }

.hero-text h2 {
  margin: 0 0 .5rem;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  color: #43484d;
}
.hero-text .hero-sub { margin-bottom: 1rem; font-size: 1.05rem; }
.hero-text p { margin-bottom: 0; font-size: 1.02rem; line-height: 1.6; }
.hero-text a { color: var(--teal); text-decoration: none; font-weight: 600; }
.hero-text a:hover, .hero-text a:focus { color: var(--teal-dk); text-decoration: underline; }

/* Schmale Schirme: es bleibt keine verlaesslich freie Bildflaeche uebrig,
   deshalb steht der Text unter dem Foto statt darauf. */
@media (max-width: 52rem) {
  .hero { height: auto; }
  .hero-slide { position: relative; }
  .hero-2, .hero-3 { display: none; }        /* ohne Ueberblendung nur das erste Motiv */
  .hero-1 { opacity: 1; animation: none; }
  .hero-img, .hero-slide picture {
    position: relative; height: clamp(14rem, 42vw, 20rem);
  }
  .hero-text {
    position: static; transform: none; width: auto;
    padding: 1.4rem 1.25rem 0; text-shadow: none;
    text-align: center;
  }
}

/* Wer Bewegung reduziert haben moechte, sieht nur das erste Bild. */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-1 { opacity: 1; }
  .hero-2, .hero-3 { display: none; }
}

/* --- Teaser-Kacheln ------------------------------------------------------- */
.teasers {
  display: grid; gap: 2rem;
  margin: 0 0 3.5rem;
}
@media (min-width: 52rem) { .teasers { grid-template-columns: repeat(3, 1fr); } }

.teaser {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.teaser picture, .teaser > img { display: block; }
.teaser img { width: 100%; height: 13rem; object-fit: cover; border-radius: 0; }
.teaser-body { padding: 1.4rem 1.5rem 1.6rem; text-align: center; }
.teaser-body h2 { margin-top: 0; font-size: 1.3rem; }
.teaser-body h2 a { text-decoration: none; color: var(--ink); }
.teaser-body h2 a:hover { color: var(--accent); }
.teaser-body p { font-size: .98rem; }
.teaser-body p:last-child { margin-bottom: 0; }

/* --- Zentriertes Signet als Gliederung ------------------------------------ */
.logo-divider { text-align: center; margin: 0 0 2.5rem; }
.logo-divider img { width: clamp(13rem, 24vw, 19rem); height: auto; margin: 0 auto; }

/* --- Zentrierter Fliesstext ----------------------------------------------- */
.centered-copy { max-width: 44rem; margin: 0 auto 3.5rem; text-align: center; }
.centered-copy p:last-child { margin-top: 1.8rem; }

/* --- Bildband ueber volle Breite mit eingeblendetem Text ------------------- */
.band {
  position: relative;
  min-height: clamp(20rem, 42vh, 28rem);
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 3.5rem;
}
.band-img, .band picture {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
/* Abdunkelung, damit heller Text auf jedem Foto lesbar bleibt */
.band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55), rgba(0,0,0,.25));
}
.band-text {
  position: relative; z-index: 1;
  max-width: 40rem; padding: 2rem 1.5rem; text-align: center; color: #fff;
}
.band-text h2 { margin-top: 0; color: #fff; }
.band-text p { font-size: 1.1rem; }
.band-text p:last-child { margin-bottom: 0; }

/* --- Buch und Qualifikationen --------------------------------------------- */
.book { display: grid; gap: 2rem; align-items: center; margin-bottom: 1rem; }
@media (min-width: 46rem) { .book { grid-template-columns: 15rem 1fr; } }
.book-cover img { margin: 0 auto; max-width: 15rem; }
.book-body h2 { margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; margin-top: 1.5rem; }
.badges img { max-width: 10rem; height: auto; }

/* --- Bild im Textumfluss --------------------------------------------------
   Entspricht dem bisherigen Auftritt: Foto links, Text laeuft daneben weiter.
   Auf schmalen Schirmen steht das Bild ueber dem Text. */
.float-left { display: block; margin: .3rem 0 1rem; }
.float-left img { width: 100%; height: auto; }
@media (min-width: 42rem) {
  .float-left {
    float: left; width: min(17rem, 38%);
    margin: .3rem 1.8rem 1rem 0; shape-margin: 1rem;
  }
}
/* Nach einem umflossenen Bild wieder sauber aufsetzen */
h2, h3 { clear: both; }

/* --- Galerie im Mauerwerk-Satz --------------------------------------------
   CSS-Spalten erzeugen die versetzte Anordnung des bisherigen Auftritts,
   ohne JavaScript und ohne feste Bildhoehen. */
.gallery { columns: 2; column-gap: 1rem; margin: 1.5rem 0 2.5rem; }
@media (min-width: 52rem) { .gallery { columns: 3; column-gap: 1.2rem; } }
.gallery a {
  display: block; break-inside: avoid; margin-bottom: 1rem;
  border-radius: var(--radius); overflow: hidden; line-height: 0;
}
.gallery img { width: 100%; height: auto; transition: transform .35s ease, filter .35s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.03); filter: brightness(1.04); }

@media (prefers-reduced-motion: reduce) {
  .gallery img { transition: none; }
  .gallery a:hover img { transform: none; }
}

/* --- Akrostichon (C-O-A-C-H-I-N-G) ---------------------------------------
   Der Anfangsbuchstabe steht in einer eigenen Spalte. Dadurch ist er klar
   vom Wort getrennt, statt unmittelbar davor zu kleben. */
.acrostic { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; }
.acrostic li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  align-items: baseline;
  gap: .9rem;
  margin-bottom: .55rem;
  font-size: 1.15rem;
}
.acrostic li > span:first-child {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal-dk);
  text-align: center;
}

/* --- Blog ----------------------------------------------------------------- */
.post-date {
  font-family: var(--sans); font-size: .88rem; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem;
}
.post-date a { color: var(--ink-soft); }

.post { max-width: 44rem; }
.post h1 { margin-top: .2rem; }
.post img { margin: 1.5rem 0; }

.post-list { display: grid; gap: 2rem; margin: 2rem 0; }
.post-card {
  display: grid; gap: 1.2rem; align-items: start;
  padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
.post-card:last-child { border-bottom: 0; }
@media (min-width: 42rem) { .post-card { grid-template-columns: 14rem 1fr; } }
.post-thumb img { width: 100%; height: 9rem; object-fit: cover; }
.post-card h2 { margin: .2rem 0 .5rem; font-size: 1.3rem; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { margin-bottom: .5rem; }

/* --- Seitensignet --------------------------------------------------------- */
.page-icon { text-align: center; margin-bottom: 1rem; }
.page-icon img { width: 6rem; height: auto; margin: 0 auto; }

/* --- Schaltflaechen ------------------------------------------------------ */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .95rem; font-weight: 600;
  background: var(--accent); color: #fff; text-decoration: none;
  padding: .75rem 1.5rem; border-radius: var(--radius); border: 0; cursor: pointer;
}
.btn:hover, .btn:focus { background: var(--accent-dk); color: #fff; }
.btn-sec { background: var(--blue); }
.btn-sec:hover, .btn-sec:focus { background: #53718b; }

/* --- Karten / Hervorhebungen --------------------------------------------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.5rem 0;
}
.note {
  background: var(--sand-dk); border-left: 3px solid var(--blue);
  padding: 1rem 1.3rem; margin: 1.5rem 0; font-size: .97rem;
}

/* --- Tabellen: Termine und Preise ---------------------------------------- */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .98rem; }
caption { text-align: left; font-weight: 700; padding: 0 0 .6rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--sand-dk); font-family: var(--sans); font-size: .85rem;
           text-transform: uppercase; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }
td.price { white-space: nowrap; font-weight: 700; }
.table-note { font-size: .9rem; color: var(--ink-soft); }

/* Termine als Liste — auf schmalen Schirmen lesbarer als eine Tabelle */
.events { list-style: none; margin: 1.5rem 0; padding: 0; }
.events li {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1rem;
}
.events .when { font-family: var(--sans); font-size: .88rem; color: var(--accent);
                text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.events .what { font-size: 1.15rem; font-weight: 700; margin: .25rem 0; }
.events .where, .events .price { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.events .price { font-weight: 700; color: var(--ink); }
.events .hint { font-size: .92rem; color: var(--ink-soft); margin: .5rem 0 0; }

/* --- Formular ------------------------------------------------------------ */
.form { max-width: 36rem; }
.form p { margin-bottom: 1.1rem; }
.form label { display: block; font-family: var(--sans); font-size: .92rem; font-weight: 600; margin-bottom: .3rem; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white);
}
.form textarea { min-height: 10rem; resize: vertical; }
.form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; }
.form .consent input { margin-top: .35rem; }
.form .req { color: var(--accent); }
/* Honigtopf — fuer Menschen unsichtbar, fuer einfache Bots verlockend */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.msg { padding: 1rem 1.3rem; border-radius: var(--radius); margin: 1.5rem 0; }
.msg-ok  { background: #e8f3ec; border-left: 4px solid #2e7d4f; }
.msg-err { background: #fdeceA; border-left: 4px solid var(--accent); }

/* --- Fussbereich --------------------------------------------------------- */
.site-footer {
  background: var(--white); border-top: 1px solid var(--line);
  padding: 2.2rem 0; font-size: .95rem; color: var(--ink-soft);
}
.site-footer .wrap { display: grid; gap: 1.2rem; }
@media (min-width: 48rem) { .site-footer .wrap { grid-template-columns: 2fr 1fr; } }
.site-footer a { color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }

/* --- Druck --------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .btn { display: none; }
  body { background: #fff; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
