/* töpfErnaRriscH – ein Stylesheet, kein Build-Schritt */

:root {
  --cream: #f6f0e3;
  --cream-deep: #ece2cc;
  --paper: #fffaf0;
  --ink: #3a2e28;
  --ink-soft: #6b5d54;
  --clay: #b4573a;
  --clay-dark: #8f4229;
  --glaze: #28527a;
  --heart: #d6362e;
  --line: #dccfb4;
  --radius: 18px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 7rem; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--glaze); text-underline-offset: 3px; }
a:hover { color: var(--clay-dark); }

.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }

h1, h2, h3 { font-family: 'Fredoka', 'Poppins', system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .005em; }

/* verspielte Überschriften: leicht schief, Textmarker-Strich, gezeichnete Wellenlinie */
h1 { rotate: -1.2deg; transform-origin: left center; }
.marker {
  background: linear-gradient(103deg, transparent 0 2%, rgba(180, 87, 58, .3) 2% 98%, transparent 98%) no-repeat 0 78% / 100% .55em;
  padding: 0 .12em; margin: 0 -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.herz { color: var(--clay); display: inline-block; rotate: -3deg; }
/* Keyword-Zeile steht im h1 (gut für Google), sieht aber aus wie bisher */
h1 .eyebrow { display: block; font-family: 'Poppins', system-ui, sans-serif; font-size: .8rem; line-height: 1.5; margin-bottom: .8rem; }
section h2::after {
  content: ""; display: block; width: 4.4rem; height: 10px; margin-top: .4rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='10' viewBox='0 0 28 10'%3E%3Cpath d='M0 5 Q7 -1 14 5 T28 5' fill='none' stroke='%23b4573a' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center / 28px 10px;
}
.contact-box h2::after { margin-inline: auto; }
h1 { font-size: clamp(2.3rem, 6.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 96%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
/* Startseite: per Script fest oben (kein Springen des Inhalts, wenn das Logo schrumpft) */
.site-header.fix { position: fixed; left: 0; right: 0; }
/* nur kurz beim Ausmessen der großen Kopfzeile aktiv */
.site-header.messen, .site-header.messen * { transition: none !important; animation: none !important; }
.site-header.compact { box-shadow: 0 10px 18px -14px rgba(58, 46, 40, .55); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: .3rem 1.5rem; padding-block: .7rem;
  transition: padding .3s;
}
.site-header.compact .wrap { padding-block: .35rem; }

.logo {
  display: inline-grid; grid-template-columns: auto auto; align-items: center;
  column-gap: .7rem; row-gap: .15rem; text-decoration: none; color: var(--ink);
}
.logo-word { grid-column: 1; grid-row: 1; width: clamp(200px, 56vw, 270px); height: auto; transition: width .3s; }
.logo-tag { grid-column: 1; grid-row: 2; font-size: clamp(.9rem, 3.2vw, 1.1rem); line-height: 1.2; }
.logo .heart {
  grid-column: 2; grid-row: 1 / span 2;
  width: clamp(38px, 11vw, 56px); height: auto;
  transform-origin: 50% 55%; animation: herzschlag 1.5s ease-in-out infinite;
  transition: width .3s;
}
/* verkleinertes Logo, sobald man nach unten scrollt */
.site-header.compact .logo-word { width: clamp(125px, 34vw, 190px); }
.site-header.compact .logo-tag { display: none; }
.site-header.compact .logo .heart { width: clamp(24px, 7vw, 36px); }

/* Herzschlag: zwei schnelle Schläge, dann kurze Pause */
@keyframes herzschlag {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.22); }
  20% { transform: scale(1); }
  30% { transform: scale(1.16); }
}

.nav { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: .2rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a:focus-visible { border-color: var(--clay); color: var(--ink); }

/* Menü-Blasen in der Kopfzeile: erscheinen, sobald die Blasen im Foto aus dem Bild gescrollt sind */
.head-menu { display: none; align-items: center; gap: .7rem; padding-bottom: 10px; }
.site-header.menu-in .head-menu { display: flex; }
.head-menu a {
  --bg: #f1e6d0; --fg: #3a2e28; --line: #9a8878; --tilt: 0deg;
  position: relative; flex: none; white-space: nowrap; text-decoration: none;
  visibility: hidden; /* jede Blase erscheint erst, wenn ihre Blase im Foto verdeckt wird */
  font-weight: 600; font-size: .92rem; line-height: 1; letter-spacing: .01em;
  padding: .5em .95em .45em; background: var(--bg); color: var(--fg);
  border: 2px solid var(--line); border-radius: 1.2em / 1em;
  rotate: var(--tilt); filter: drop-shadow(0 3px 4px rgba(58, 46, 40, .3));
}
.head-menu a::before, .head-menu a::after {
  content: ""; position: absolute; left: 30%; border-style: solid; border-color: transparent;
  transform-origin: top center; transform: translateX(-50%) skewX(-14deg);
}
.head-menu a::before { top: 100%; border-width: 9px 5px 0 5px; border-top-color: var(--line); }
.head-menu a::after { top: calc(100% - 1px); border-width: 7px 3px 0 3px; border-top-color: var(--bg); }
.head-menu a:nth-child(1) { --bg: #f1e6d0; --tilt: -2deg; }
.head-menu a:nth-child(2) { --bg: #e7e4df; --tilt: 2deg; }
.head-menu a:nth-child(3) { --bg: #f6efe3; --tilt: -1.5deg; }
.head-menu a:nth-child(4) { --bg: #ecd0c1; --tilt: 2deg; }
.head-menu a:nth-child(5) { --bg: #dcd7d0; --tilt: 2.5deg; }
.head-menu a:nth-child(6) { --bg: var(--clay); --fg: #fff; --line: var(--clay-dark); --tilt: -2deg; }
.head-menu a:hover, .head-menu a:focus-visible { --bg: var(--clay); --fg: #fff; --line: var(--clay-dark); scale: 1.08; }
.head-menu a:nth-child(6):hover, .head-menu a:nth-child(6):focus-visible { --bg: var(--clay-dark); }
/* Die Blase ist da, sobald das Script ihr „in“ gibt (sie fliegt dann aus dem Foto in ihren Platz) */
.head-menu a.in { visibility: visible; }
@media (min-width: 1040px) {
  .site-header .wrap { flex-wrap: nowrap; }
  .head-menu { margin-left: auto; }
}
@media (max-width: 1039px) {
  /* Handy: alle Menüpunkte sichtbar, Blasen brechen in zwei Zeilen um (Zeilenabstand lässt Platz für die Zipfel) */
  .head-menu {
    flex: 1 1 100%; flex-wrap: wrap; gap: 14px .4rem;
    padding: .2rem 0 12px; margin-top: -.1rem;
  }
  .head-menu a { font-size: .8rem; padding: .48em .8em .42em; }
}

/* ---------- Start ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1.1fr .9fr;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
  color: var(--clay-dark); font-weight: 600; margin-bottom: .8rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero img { border-radius: var(--radius); box-shadow: 0 18px 40px -22px rgba(58, 46, 40, .55); }

/* Menü als Sprechblasen über den Tonköpfen (Position = Spitze der Blase, in % des Fotos) */
.hero-pic { position: relative; }
/* Sprechblasen: ruhige Farben (Beige, zartes Grau, Terrakotta), dezente Umrandung, weicher Schatten */
.bubbles a.bubble {
  --x: 50%; --y: 50%; --bg: #f1e6d0; --fg: #3a2e28; --tilt: 0deg; --line: #9a8878;
  position: absolute; left: var(--x); top: var(--y);
  transform: translate(-50%, calc(-100% - 20px));
  rotate: var(--tilt);
  white-space: nowrap; text-decoration: none;
  font-weight: 600; letter-spacing: .01em; line-height: 1;
  font-size: clamp(.9rem, 3.6vw, 1.3rem);
  padding: .55em 1em .5em;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--line); border-radius: 1.2em / 1em;
  filter: drop-shadow(0 6px 6px rgba(58, 46, 40, .35));
  animation: wippen 3.2s ease-in-out infinite;
  transition: opacity .25s;
}
/* Blase ist in die Menüleiste übergegangen */
.bubbles a.bubble.weg { opacity: 0; pointer-events: none; }
/* Sprechblasen-Zipfel: Rand (::before) + Füllung (::after) */
.bubbles a.bubble::before, .bubbles a.bubble::after {
  content: ""; position: absolute; left: 50%; border-style: solid; border-color: transparent;
  transform-origin: top center; transform: translateX(-50%) skewX(-14deg);
}
.bubbles a.bubble::before {
  top: 100%; border-width: 18px 9px 0 9px; border-top-color: var(--line);
}
.bubbles a.bubble::after {
  top: calc(100% - 1px); border-width: 16px 6px 0 6px; border-top-color: var(--bg);
}
.bubbles a.bubble:hover, .bubbles a.bubble:focus-visible {
  --bg: var(--clay); --fg: #fff; --line: var(--clay-dark); animation-play-state: paused; scale: 1.08;
}
.bubbles a.b1 { --x: 19%; --y: 37%; --bg: #f1e6d0; --tilt: -2deg; animation-delay: -.2s !important; }
.bubbles a.b2 { --x: 30%; --y: 11%; --bg: #e7e4df; --tilt: 2deg;  animation-delay: -1.1s !important; }
.bubbles a.b3 { --x: 68%; --y: 18%; --bg: #f6efe3; --tilt: -1.5deg; animation-delay: -2s !important; }
.bubbles a.b4 { --x: 76%; --y: 32%; --bg: #dcd7d0; --tilt: 2.5deg;  animation-delay: -.7s !important; }
.bubbles a.b5 { --x: 81%; --y: 55%; --bg: var(--clay); --fg: #fff; --line: var(--clay-dark); --tilt: -2deg; animation-delay: -1.6s !important; }
.bubbles a.b5:hover, .bubbles a.b5:focus-visible { --bg: var(--clay-dark); }
.bubbles a.b6 { --x: 38%; --y: 66%; --bg: #ecd0c1; --tilt: 2deg; animation-delay: -2.4s !important; }

@keyframes wippen {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* Button „Zum Start“, erscheint beim Runterscrollen */
.to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  padding: .7rem 1.15rem; border-radius: 999px; text-decoration: none;
  background: var(--clay); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1;
  border: 2px solid var(--clay-dark);
  box-shadow: 0 10px 18px -8px rgba(40, 30, 25, .6);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.to-top:hover, .to-top:focus-visible { background: var(--clay-dark); color: #fff; transform: translateY(-3px) scale(1.05); }
.to-top[hidden] { display: none; }

.btns { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--clay); color: #fff; border: 2px solid var(--clay);
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Abschnitte ---------- */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
section.tint { background: var(--cream-deep); }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--ink-soft); }

/* Galerie */
/* verspielt: verschiedene Größen, nur runde und ovale Formen (Kreise, Ovale, weiche Kiesel), schief, mit farbigem Schatten dahinter */
.gallery {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0; padding: 1.4rem 0 2.4rem;
}
.gallery figure {
  --w: 240px; --r: 0deg; --shape: 22px; --mask: none; --back: transparent;
  position: relative;
  margin: .6rem .3rem; flex: 0 0 auto;
  width: min(var(--w), 44vw);
  transform: rotate(var(--r));
  filter: drop-shadow(0 10px 10px rgba(58, 46, 40, .3));
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1);
}
.gallery figure:hover { transform: rotate(0deg) scale(1.06); z-index: 3; }
.gallery img, .gallery figure::before {
  border-radius: var(--shape);
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
  mask: var(--mask) center / 100% 100% no-repeat;
}
.gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* farbige Form hinter dem Foto */
.gallery figure::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--back); transform: translate(.7rem, .7rem) rotate(5deg);
}

/* 1: stehendes Oval */
.gallery figure:nth-child(1) { --w: 245px; --r: -4deg; --shape: 50%; --back: #e3b8a2; margin-top: 1.8rem; }
.gallery figure:nth-child(1) img { aspect-ratio: 4 / 5; }
/* 2: Kreis */
.gallery figure:nth-child(2) { --w: 220px; --r: 3deg; --shape: 50%; --back: #d9d4cd; margin-bottom: 1.4rem; }
.gallery figure:nth-child(2) img { aspect-ratio: 1 / 1; }
/* 3: weicher Kiesel */
.gallery figure:nth-child(3) { --w: 270px; --r: -2deg; --shape: 62% 38% 55% 45% / 48% 58% 42% 52%; --back: #e6d3b3; margin-top: 2.4rem; }
.gallery figure:nth-child(3) img { aspect-ratio: 1 / 1; }
/* 4: Kreis mit Ausschnitt oben */
.gallery figure:nth-child(4) { --w: 235px; --r: 5deg; --shape: 50%; --back: #e3b8a2; margin-bottom: 1.8rem; }
.gallery figure:nth-child(4) img { aspect-ratio: 1 / 1; object-position: 50% 35%; }
/* 5: hohes Oval mit gestricheltem Ring */
.gallery figure:nth-child(5) { --w: 190px; --r: -5deg; --shape: 50%; margin: 1.4rem .9rem .6rem; }
.gallery figure:nth-child(5) img { aspect-ratio: 3 / 5; outline: 3px dashed var(--clay); outline-offset: 7px; }
/* 6: liegendes Oval */
.gallery figure:nth-child(6) { --w: 295px; --r: 2.5deg; --shape: 50%; --back: #d9d4cd; margin-top: 2rem; }
.gallery figure:nth-child(6) img { aspect-ratio: 5 / 4; }
/* 7: zweiter weicher Kiesel */
.gallery figure:nth-child(7) { --w: 245px; --r: -3deg; --shape: 40% 60% 46% 54% / 58% 42% 58% 42%; --back: #e3b8a2; margin-bottom: 1rem; }
.gallery figure:nth-child(7) img { aspect-ratio: 1 / 1; }

@media (max-width: 760px) {
  .gallery figure { width: min(var(--w), 42vw); margin-left: .25rem; margin-right: .25rem; }
  .gallery figure:nth-child(5) { margin-left: .7rem; margin-right: .7rem; }
}

/* Kurse */
.cards { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .3rem; }
.card .price { font-size: 1.8rem; font-weight: 600; color: var(--clay-dark); margin: .2rem 0 .8rem; }
.card ul { margin: 0 0 1rem; padding-left: 1.15rem; color: var(--ink-soft); }
.card li { margin-bottom: .2rem; }
.card .note { margin-top: auto; font-size: .92rem; color: var(--ink-soft); }
.card.wide { grid-column: 1 / -1; }
.card.wide ul { columns: 2 260px; }

.info {
  margin-top: 1.5rem; padding: 1.4rem 1.6rem; border-radius: var(--radius);
  background: var(--paper); border-left: 6px solid var(--glaze);
}
.info p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr 1fr; }
.split img { border-radius: var(--radius); box-shadow: 0 18px 40px -26px rgba(58, 46, 40, .55); }
.split.reverse > :first-child { order: 2; }
.intro-split { margin-bottom: 2.2rem; }
.intro-split img { max-height: 340px; width: 100%; object-fit: cover; }

/* Aktuelles: Märkte, Veranstaltungen, Flyer */
.news-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 1rem; }
.news-grid[hidden] { display: none; }
.news-leer { color: var(--ink-soft); background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 40rem; }
.news-leer[hidden] { display: none; }
.news-karte { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 14px 26px -22px rgba(58, 46, 40, .6); }
.news-bild { display: block; background: var(--cream-deep); }
.news-bild img { width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.news-inhalt { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.news-inhalt h3 { margin: 0 0 .3rem; font-size: 1.35rem; }
.news-datum { align-self: flex-start; background: var(--clay); color: #fff; font-weight: 600; font-size: .85rem; line-height: 1; padding: .45rem .8rem; border-radius: 999px; margin: 0 0 .8rem; }
.news-ort { color: var(--clay-dark); font-weight: 600; margin: 0 0 .5rem; }
.news-text { color: var(--ink-soft); white-space: pre-line; margin: 0 0 1rem; }
.news-inhalt .btn { margin-top: auto; align-self: flex-start; }

/* Instagram: drei Beiträge, verspielt wie die Galerie */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin: 0 0 2rem; padding: .6rem .4rem; }
.ig-grid[hidden] { display: none; }
.ig-grid figure { margin: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1); }
.ig-grid a { display: block; }
.ig-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; height: auto;
  box-shadow: 0 14px 26px -14px rgba(58, 46, 40, .6);
}
.ig-grid figure:nth-child(1) { transform: rotate(-3deg); }
.ig-grid figure:nth-child(1) img { border-radius: 24px 24px 24px 90px; }
.ig-grid figure:nth-child(2) { transform: rotate(2deg) translateY(.6rem); }
.ig-grid figure:nth-child(2) img { border-radius: 62% 38% 55% 45% / 48% 58% 42% 52%; }
.ig-grid figure:nth-child(3) { transform: rotate(-2deg); }
.ig-grid figure:nth-child(3) img { border-radius: 90px 24px 24px 24px; }
.ig-grid figure:hover { transform: rotate(0deg) scale(1.05); }
@media (prefers-reduced-motion: reduce) { .ig-grid figure { transition: none; } }

/* Kontakt */
.contact-box {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); text-align: center;
}
.contact-box .mail { font-size: clamp(1.1rem, 3.4vw, 1.5rem); font-weight: 600; word-break: break-word; }
.social { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.4rem; }

/* Fuß */
.site-footer { background: var(--ink); color: #eadfcb; padding-block: 2.2rem; font-size: .95rem; }
.site-footer a { color: #f4d9b8; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.site-footer img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 62%; border: 2px solid #eadfcb55; }
.site-footer .brand { display: flex; align-items: center; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Rechtstexte */
.legal { max-width: 46rem; padding-block: 2.5rem 4rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.todo { background: #fff1b8; padding: 0 .3em; border-radius: 4px; }

:focus-visible { outline: 3px solid var(--glaze); outline-offset: 3px; }

@media (max-width: 760px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .nav { font-size: .9rem; gap: .1rem 1rem; }
  .hero-pic { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery figure { transition: none; }
  .logo .heart, .bubbles a.bubble, .site-header.menu-in .head-menu a { animation: none !important; }
}
