/* ═══════════════════════════════════════════════════════════
   STOFFLIEBE ERFURT — Design Tokens
   Warme, handwerkliche Nähkurs-Identität: gedecktes Beerenrot
   (Plum) und sanftes Terrakotta auf cremefarbenem Leinen-Grund.
   ═══════════════════════════════════════════════════════════ */

   :root {
    --cream:        #FFFFFF;
    --cream-deep:   #FFF3D6;
    --ink:          #332B14;
    --ink-soft:     #6B5F3D;
    --sunflower:    #FBBA00;
    --on-sunflower: #CF0153;
    --on-sunflower-pale: #CF0153;
    --footer-accent: #544D42;
    --sunflower-deep: #E0AC1F;
    --sunflower-pale: #FFE9A8;
    --plum:         #3A2E12;
    --plum-deep:    #241C0B;
    --terracotta:   #D98A3D;
    --terracotta-deep: #B5701F;
    --white:        #FFFFFF;
    --pink:         #CF0153;
    --pink-deep:    #A50142;
  
    --border:      #EDDDA8;
    --border-soft: rgba(58, 46, 18, 0.12);
  
    --radius:    10px;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(58, 46, 18, 0.12);
    --shadow-deep: 0 20px 48px rgba(58, 46, 18, 0.22);
  
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'Nunito', system-ui, sans-serif;
    --font-heading: 'Poppins', system-ui, sans-serif;
  }
  
  /* ── Reset ──────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* ── Fonts (self-hosted) ──────────────────────────── */
  @font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Fraunces-600.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Fraunces-700.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Fraunces';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Fraunces-500i.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/Nunito-400.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/Nunito-600.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Nunito-700.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/Nunito-800.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/Poppins-500.woff2') format('woff2');
  }
  @font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Poppins-700.woff2') format('woff2');
  }
  
  .section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--on-sunflower-pale);
    background: var(--sunflower-pale);
    padding: 0.25rem 0.7rem;
    border-radius: 99px;
    margin-bottom: 0.6rem;
  }
  .section-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    color: var(--pink);
    margin-bottom: 0.75rem;
  }
  .section-intro {
    max-width: 620px;
    color: var(--ink-soft);
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
  section { padding: 4.5rem 1.5rem; }
  .container { max-width: 1120px; margin: 0 auto; }
  
  /* ── Header ─────────────────────────────────────── */
  #site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(58,46,18,0.15);
    padding: 0 1.25rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
  }
  body.page-home #site-header { background: var(--sunflower); }
  .header-inner {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .header-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }
  .header-logo img { height: 46px; width: auto; }
  .header-logo span {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.2rem;
    color: var(--pink);
  }
  .header-nav {
    display: none;
    gap: 1.8rem;
  }
  .header-nav a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--pink);
    transition: color 0.15s;
  }
  .header-nav a:hover { color: var(--plum); }
  .header-nav a.active { color: var(--pink); border-bottom: 2px solid var(--pink); padding-bottom: 4px; }
  .btn-primary {
    background: var(--white);
    color: var(--pink);
    border: 1.5px solid var(--pink);
    border-radius: 99px;
    padding: 0.65rem 1.3rem;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--pink); color: var(--white); transform: translateY(-1px); }
  .btn-secondary {
    border: 1.5px solid var(--plum);
    color: var(--plum);
    border-radius: 99px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 800;
    display: inline-block;
    transition: background 0.15s, color 0.15s;
  }
  .btn-secondary:hover { background: var(--plum); color: var(--sunflower); }
  .btn-secondary--pink { border-color: var(--pink); color: var(--pink); }
  .btn-secondary--pink:hover { background: var(--pink); color: var(--white); }
  
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
  }
  .menu-toggle span { width: 22px; height: 2px; background: var(--plum); border-radius: 2px; }
  
  .header-cta { display: none; }
  .header-contact { display: flex; gap: 0.4rem; align-items: center; }
  .header-contact a {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(58,46,18,0.08);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
  }
  .header-contact a:hover { background: rgba(58,46,18,0.18); }
  .header-contact svg { width: 16px; height: 16px; fill: var(--pink); }
  
  @media (min-width: 900px) {
    .header-nav { display: flex; }
    .header-cta { display: inline-block; padding: 0.55rem 1.1rem; }
    .header-contact { gap: 0.5rem; }
    .header-contact a { width: 38px; height: 38px; }
    .header-contact svg { width: 18px; height: 18px; }
    .menu-toggle { display: none; }
  }
  
  .mobile-nav {
    display: none;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--cream);
    z-index: 190;
    padding: 2rem 1.5rem;
    overflow-y: auto;
  }
  .mobile-nav.open { display: block; }
  .mobile-nav a {
    display: block;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--plum);
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .mobile-nav .btn-primary { margin-top: 1.5rem; text-align: center; color: var(--sunflower); }
  
  /* ── Hero ───────────────────────────────────────── */
  .hero {
    position: relative;
    max-height: 60vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }
  .hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 3.75rem 1.5rem;
    overflow-y: auto;
    max-height: 100%;
  }
  @media (min-width: 720px) {
    .hero { max-height: 55vh; min-height: 440px; }
    .hero-inner { padding: 2rem 1.5rem; }
  }
  .hero-img {
    position: absolute;
    inset: 0;
    background-color: var(--plum-deep);
  }
  .hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transition: opacity 1.4s ease;
  }
  .hero-slide.active { opacity: 1; }
  .hero-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58,46,18,0.35) 0%, rgba(58,46,18,0.55) 55%, rgba(58,46,18,0.9) 100%);
    z-index: 1;
  }
  .hero-content {
    max-width: 640px;
    color: var(--white);
  }
  .hero-content .section-label { background: var(--sunflower); color: var(--on-sunflower); }
  .hero-content h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.05rem, 4.6vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 18px rgba(0,0,0,0.25);
  }
  .hero-content p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.92);
    margin-bottom: 0.85rem;
    max-width: 520px;
  }
  @media (min-width: 480px) {
    .hero-content p { font-size: 0.95rem; margin-bottom: 1.1rem; }
  }
  .hero-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { padding: 0.5rem 1rem; font-size: 0.8rem; }
  .hero-actions .btn-secondary { border-color: var(--white); color: var(--white); }
  .hero-actions .btn-secondary:hover { background: var(--white); color: var(--plum); }
  @media (min-width: 480px) {
    .hero-actions { gap: 0.9rem; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { padding: 0.65rem 1.3rem; font-size: 0.85rem; }
  }
  
  /* ── Intro-Kacheln: Nähkurse / Plotten ────────────── */
  .intro-tiles {
    padding-top: 4rem;
  }
  .tiles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  @media (min-width: 640px) {
    .tiles-grid { grid-template-columns: repeat(3, 1fr); }
  }
  .tile {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
  }
  .tile-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--sunflower-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    font-size: 1.4rem;
    overflow: hidden;
  }
  .tile-icon img { width: 40px; height: 40px; object-fit: contain; }
  .tile h2 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 0.6rem;
  }
  .tile p { color: var(--ink-soft); font-size: 0.95rem; }
  .tile--naehkurse,
  .tile--plotten,
  .tile--naehgruppen { border-top: 4px solid var(--pink); }
  .tile--naehkurse .tile-icon,
  .tile--plotten .tile-icon,
  .tile--naehgruppen .tile-icon { background: var(--sunflower-pale); }
  
  /* ── Über mich / Story ────────────────────────────── */
  .story {
    background: var(--cream-deep);
  }
  .story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }
  @media (min-width: 900px) {
    .story-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  }
  .story-text p {
    margin-bottom: 1.1rem;
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.75;
  }
  .story-text p:last-child { margin-bottom: 0; }
  .story-signature {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--plum);
  }
  .story-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
  .story-gallery img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
  }
  .story-gallery > *:first-child { grid-row: span 2; min-height: 300px; }
  
  /* ── Kurse ─────────────────────────────────────── */
  .courses { background: var(--cream); }
  .courses-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
  }
  .courses-head .section-intro { margin-bottom: 0; }
  .courses-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  .courses-grid .course-card {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
  /* Mobile: horizontales Scrollen mit Snap, immer eine Karte mittig
     ("magnetisches" Einrasten) statt vertikal gestapelter Karten -
     Kundenwunsch für die Kurse-Seite auf dem Handy. */
  @media (max-width: 639px) {
    .courses-grid {
      gap: 1rem;
      scroll-padding-inline: 8vw;
      margin: 0 -1.5rem;
      padding-inline: 1.5rem;
    }
    .courses-grid .course-card {
      flex: 0 0 84vw;
      scroll-snap-align: center;
    }
  }
  /* Desktop/Tablet: ebenfalls seitwärts scrollbar statt umbrechendem
     Grid, aber mit vier Karten gleichzeitig sichtbar statt einer -
     Kartenbreite ergibt sich aus (Containerbreite - 3 Lücken) / 4. */
  @media (min-width: 640px) {
    .courses-grid .course-card {
      flex: 0 0 calc((100% - 3 * 1.5rem) / 4);
      scroll-snap-align: start;
    }
  }
  .courses-mobile-cta { display: none; }
  @media (max-width: 639px) {
    .courses-mobile-cta {
      display: block;
      text-align: center;
      margin-top: 1.5rem;
    }
    .courses-mobile-cta .btn-primary { width: 100%; }
  }
  
  /* ── Scroll-Hinweis-Pfeil: zeigt beim ersten Laden, dass die Kurskarten
     seitwärts scrollbar sind. Sitzt rechts am Rand, außerhalb der Karten,
     pulsiert dezent und verschwindet, sobald einmal gescrollt wurde
     (siehe initCoursesScrollHint in main.js). ────────────────────────── */
  .courses-scroll-wrap { position: relative; }
  .courses-scroll-hint {
    position: absolute;
    top: 50%;
    right: -0.25rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pink);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    line-height: 1;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  }
  @media (max-width: 639px) {
    .courses-scroll-hint { width: 34px; height: 34px; font-size: 1.1rem; right: 0.4rem; }
  }
  .courses-scroll-hint.is-visible {
    opacity: 1;
    animation: courses-scroll-hint-pulse 1.4s ease-in-out infinite;
  }
  @keyframes courses-scroll-hint-pulse {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.18); }
  }
  .course-card {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.4rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .course-card[hidden] { display: none; }
  .course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
  .course-card--full {
    background: #fdf1ec;
    border-color: var(--pink);
    opacity: 0.85;
    padding-top: 3.4rem;
  }
  .course-badge {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    background: var(--pink);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
  }
  .btn-primary--disabled {
    display: block;
    cursor: not-allowed;
    background: var(--white);
    color: var(--pink);
    border: 1.5px solid var(--pink);
    opacity: 0.65;
    pointer-events: none;
    text-align: center;
  }
  .course-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--plum);
    margin-bottom: 0.75rem;
    line-height: 1.3;
  }
  .course-meta {
    list-style: none;
    font-size: 0.86rem;
    color: var(--ink-soft);
    margin-bottom: 1rem;
    flex-grow: 1;
  }
  .course-meta li {
    display: flex;
    gap: 0.5rem;
    padding: 0.28rem 0;
    border-bottom: 1px dashed var(--border-soft);
  }
  .course-meta li:last-child { border-bottom: none; }
  .course-meta .meta-icon { flex-shrink: 0; width: 1.1rem; text-align: center; }
  .course-price {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--pink);
    margin-bottom: 1rem;
  }
  .course-card .btn-primary {
    text-align: center;
    width: 100%;
  }
  .courses-note {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
    background: var(--sunflower-pale);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
  }
  
  /* ── WhatsApp-Hinweis (inline im Fließtext, z.B. Nähgruppen-Seite) ── */
  .inline-link {
    color: var(--pink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .inline-link:hover { color: var(--pink-deep); }
  
  /* ── Legal-Seiten (Impressum & Datenschutz) ─────────
     Beide Inhalte liegen in derselben Seite, umgeschaltet per Tab-Klick
     und/oder ?tab=-Query-Parameter (siehe main.js initLegalTabs()) -
     kein serverseitiges Templating nötig, da rein statischer Build. */
  .legal-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }
  .legal-tabs { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
  .legal-tab {
    padding: 0.55rem 1.2rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    border: 1.5px solid var(--pink);
    background: var(--white);
    color: var(--pink);
    cursor: pointer;
    font-family: inherit;
  }
  .legal-tab.active { background: var(--pink); color: var(--white); }
  .legal-panel { display: none; }
  .legal-panel.active { display: block; }
  .legal-h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.3rem);
    color: var(--pink);
    margin-bottom: 1.75rem;
  }
  .legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-soft);
  }
  .legal-section:last-child { border-bottom: none; }
  .legal-section h2 {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--pink);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .legal-section p {
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.8;
    margin-bottom: 0.75rem;
  }
  .legal-section p:last-child { margin-bottom: 0; }
  .legal-section a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
  .pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--white);
    border: 1.5px solid var(--border-soft);
    border-radius: 99px;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 1.5rem;
    color: var(--ink-soft);
  }
  @media print {
    #site-header, .pdf-btn, .legal-tabs, footer, #scroll-top-btn { display: none !important; }
    body { background: #fff; color: #000; }
    .legal-panel { display: block !important; }
    .legal-section h2 { color: #000; }
    .legal-section p { color: #333; }
    .legal-wrapper { max-width: 100%; padding: 0; }
  }
  .ratings { background: var(--cream-deep); text-align: center; }
  .ratings-slider-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }
  .ratings-slider-head .section-heading {
    margin-bottom: 0;
    position: relative;
    padding-bottom: 0.6rem;
  }
  .ratings-slider-head .section-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--ink);
  }
  .rating-slider { max-width: 760px; margin: 0 auto; min-height: 130px; position: relative; }
  .rating-slide {
    display: none;
    text-align: left;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .rating-slide.active { display: flex; }
  .rating-quote-mark {
    font-family: Georgia, serif;
    font-size: 3.5rem;
    line-height: 1;
    color: rgba(58,46,18,0.2);
    flex-shrink: 0;
  }
  .rating-slide-body { flex: 1; }
  .rating-text {
    font-size: 1.05rem;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 1rem;
  }
  .rating-name { color: var(--sunflower-deep); font-weight: 700; font-size: 1rem; }
  .rating-reply {
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border-soft);
    font-size: 0.85rem;
    color: var(--ink-soft);
  }
  .rating-reply strong {
    display: block;
    color: var(--plum);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
  }
  @media (max-width: 640px) {
    .ratings-slider-head { gap: 0.75rem; }
    .rating-quote-mark { font-size: 2.5rem; }
  }
  
  /* ── Blog ─────────────────────────────────────────── */
  .blog { background: var(--cream); }
  .blog-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  @media (min-width: 720px) {
    .blog-container { grid-template-columns: repeat(3, 1fr); }
  }
  .blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    display: block;
    transition: transform 0.15s, box-shadow 0.15s;
  }
  .blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
  .blog-card-img {
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: var(--cream-deep);
  }
  .blog-card-body { padding: 1.4rem 1.5rem; }
  .blog-date {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--on-sunflower-pale);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .blog-card-body h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pink);
    margin: 0.5rem 0 0.6rem;
    line-height: 1.35;
  }
  .blog-card-body p {
    font-size: 0.88rem;
    color: var(--ink-soft);
    margin-bottom: 0.9rem;
    line-height: 1.55;
  }
  .blog-readmore {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--on-sunflower-pale);
  }
  #blog-more-wrap { text-align: center; margin-top: 2.5rem; }
  
  /* Blog-Detailseite */
  .blog-back-sticky { margin-bottom: 1.5rem; }
  .blog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ink-soft);
  }
  .blog-back:hover { color: var(--terracotta-deep); }
  .blog-post-view {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
  }
  .blog-post-view h1 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    font-weight: 700;
    color: var(--pink);
    margin-bottom: 0.6rem;
    line-height: 1.25;
  }
  .blog-post-content { margin-top: 1.75rem; }
  .blog-post-content p { margin-bottom: 1.2rem; font-size: 1rem; line-height: 1.75; color: var(--ink); }
  .blog-post-content strong { color: var(--plum); }
  .blog-post-content h2, .blog-post-content h3 {
    margin: 1.8rem 0 0.9rem; font-weight: 700; line-height: 1.3; color: var(--ink);
  }
  .blog-post-content h2 { font-size: 1.5rem; }
  .blog-post-content h3 { font-size: 1.2rem; }
  .blog-post-content ul, .blog-post-content ol {
    margin: 0 0 1.2rem 1.4rem; font-size: 1rem; line-height: 1.75; color: var(--ink);
  }
  .blog-post-content li { margin-bottom: 0.4rem; }
  .blog-post-content img {
    border-radius: var(--radius-lg);
    margin: 0.5rem 0 1.5rem;
    box-shadow: var(--shadow-soft);
  }
  
  /* ── Block-Editor-Rendering (render_blog_blocks() in build_common.py) ──
     Fehlte bislang komplett (siehe girasole/style.css fuer die identische
     Ergaenzung und die ausfuehrliche Begruendung) - ohne diese Regeln
     rendern bild_2er/3er/4er als reiner Block-Fluss (Bilder untereinander)
     statt als Grid, und breite="klein"/"mittel" beim einzelnen bild-Block
     hat keine sichtbare Wirkung. */
  .blog-block { margin: 1.5rem 0; }
  .blog-block-bild img,
  .blog-block-bild picture { display: block; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
  .blog-block-bild--voll { width: 100%; }
  .blog-block-bild--voll img { width: 100%; height: auto; }
  .blog-block-bild--mittel { width: 60%; }
  .blog-block-bild--mittel img { width: 100%; height: auto; }
  .blog-block-bild--klein { width: 35%; }
  .blog-block-bild--klein img { width: 100%; height: auto; }
  .blog-block-bild--zentriert { margin-left: auto; margin-right: auto; }
  .blog-block-bild--links { margin-right: auto; }
  .blog-block-bild--rechts { margin-left: auto; }
  
  .blog-block-bild-reihe {
    display: grid; gap: 0.9rem;
  }
  .blog-block-bild-reihe--2 { grid-template-columns: 1fr 1fr; }
  .blog-block-bild-reihe--3 { grid-template-columns: 1fr 1fr 1fr; }
  .blog-block-bild-reihe--4 { grid-template-columns: 1fr 1fr; }
  .blog-block-bild-reihe-item picture,
  .blog-block-bild-reihe-item img {
    aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: cover;
    display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft);
  }
  .blog-block-bild-reihe-caption {
    display: block; margin-top: 0.4rem; font-size: 0.82rem; text-align: center; color: var(--ink-soft);
  }
  @media (max-width: 640px) {
    .blog-block-bild-reihe--3, .blog-block-bild-reihe--4 { grid-template-columns: 1fr 1fr; }
  }
  
  .blog-block-bild-text { display: flex; gap: 1.5rem; align-items: flex-start; }
  .blog-block-bild-text--rechts { flex-direction: row-reverse; }
  .blog-block-bild-text-bild { flex-shrink: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); }
  .blog-block-bild-text--quadratisch .blog-block-bild-text-bild { width: 45%; aspect-ratio: 1 / 1; }
  .blog-block-bild-text--hochformat .blog-block-bild-text-bild { width: 35%; aspect-ratio: 3 / 4; }
  .blog-block-bild-text-bild picture,
  .blog-block-bild-text-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .blog-block-bild-text-inhalt { flex: 1; min-width: 0; }
  @media (max-width: 640px) {
    .blog-block-bild-text { flex-direction: column; }
    .blog-block-bild-text--quadratisch .blog-block-bild-text-bild,
    .blog-block-bild-text--hochformat .blog-block-bild-text-bild { width: 100%; }
  }
  
  .blog-block-dokument {
    display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem;
    border-radius: var(--radius-lg); background: var(--cream-deep);
    text-decoration: none; color: inherit; box-shadow: var(--shadow-soft);
  }
  .blog-block-dokument:hover { filter: brightness(0.97); }
  .blog-block-dokument-icon { font-size: 1.6rem; }
  .blog-block-dokument-text { display: flex; flex-direction: column; }
  .blog-block-dokument-titel { font-weight: 700; color: var(--ink); }
  .blog-block-dokument-groesse { font-size: 0.8rem; color: var(--ink-soft); }
  
  /* ── Plotten-Teaser (eigene Sektion, aus Original-Unterseite) ── */
  .plotten { background: var(--cream-deep); }
  .plotten-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
  }
  @media (min-width: 900px) {
    .plotten-grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  }
  .plotten-text p { margin-bottom: 1.1rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; }
  .plotten-text p:last-child { margin-bottom: 0; }
  .plotten-img img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
  }
  
  /* ── Kontakt / Footer ─────────────────────────────── */
  footer {
    background: var(--sunflower);
    color: var(--plum);
    padding: 3.5rem 1.5rem 2rem;
  }
  .footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }
  @media (min-width: 720px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  }
  .footer-brand img { height: 56px; width: auto; margin-bottom: 1rem; }
  .footer-brand p { color: var(--plum); font-size: 0.95rem; max-width: 320px; }
  .footer-col h2 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    color: var(--footer-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .footer-col a, .footer-col p {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--footer-accent);
    margin-bottom: 0.55rem;
  }
  .footer-col a:hover { color: var(--plum-deep); text-decoration: underline; }
  .footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
  .footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(58,46,18,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: background 0.15s;
  }
  .footer-social a:hover { background: var(--plum); }
  .footer-social a svg { fill: var(--footer-accent); transition: fill 0.15s; }
  .footer-social a:hover svg { fill: var(--sunflower); }
  .footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(58,46,18,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--footer-accent);
  }
  .footer-bottom a { color: var(--footer-accent); }
  .footer-bottom a:hover { color: var(--plum-deep); }
  .footer-legal { display: flex; gap: 1rem; flex-wrap: wrap; }
  .footer-credit {
    max-width: 1120px;
    margin: 0.75rem auto 0;
    color: var(--footer-accent);
  }
  .footer-credit p { margin: 0; }
  .footer-credit-main {
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.9;
  }
  .footer-credit-minor {
    font-size: 0.7rem;
    opacity: 0.55;
    margin-top: 0.2rem;
  }
  .footer-credit a { color: var(--footer-accent); text-decoration: underline; text-underline-offset: 2px; }
  .footer-credit a:hover { color: var(--plum-deep); }
  
  /* ── Nach-oben-Pfeil: immer fixed am Bildschirmrand, kein Andocken
     mehr im Footer (Kundenwunsch: einfacher, kein sichtbarer Sprung) ── */
  #scroll-top-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(58,46,18,0.08);
    transition: background 0.15s, transform 0.15s, opacity 0.2s;
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 150;
    opacity: 0;
    pointer-events: none;
  }
  #scroll-top-btn.is-visible { opacity: 1; pointer-events: auto; }
  #scroll-top-btn:hover { transform: translateY(-3px); background: rgba(58,46,18,0.18); }
  #scroll-top-btn img { width: 26px; height: 26px; }
  
  /* ── Unterseiten: Stickmuster-Banner + Titel/Untertitel im Seitenfluss ──
     (gilt für alle Unterseiten außer Start, Kurse, Nähgruppen, die
     weiterhin eine echte Foto-Slideshow im Header zeigen).
     Aufbau: 1) das Musterbild volle Bildschirmbreite, direkt an den
     Header anschließend, mit dem Seitennamen (z.B. "ÜBER MICH") als
     Overlay-Schriftzug, 2) Titel + Untertitel stehen NICHT im Banner
     selbst, sondern im .container der nachfolgenden Inhalts-Section,
     direkt über dem übrigen Text - beides teilt denselben Hintergrund
     und wirkt dadurch als ein zusammenhängender Block, statt wie zwei
     getrennte, unverbunden wirkende Abschnitte. */
  .page-banner { padding: 0; }
  .page-banner-image {
    position: relative;
    width: 100%;
    background-image: url('images/patterns/banner-stitch-nologo.jpg');
    background-size: cover;
    background-position: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .page-banner-image span {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    color: var(--white);
    text-shadow: 0 2px 14px rgba(0,0,0,0.35);
  }
  .page-banner-text { margin-bottom: 2.5rem; }
  .page-banner-text h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    line-height: 1.18;
    color: var(--pink);
  }
  .page-banner-text p {
    margin-top: 0.6rem;
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 560px;
  }
  @media (min-width: 720px) {
    .page-banner-image { height: 180px; }
  }
  
  /* ── Unterseiten mit echtem Foto-Header (Start, Kurse, Nähgruppen) ── */
  .page-header {
    position: relative;
    min-height: 46vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
  }
  @media (max-width: 640px) {
    .page-header { min-height: 50vh; max-height: 50vh; }
  }
  .page-header .hero-img { position: absolute; inset: 0; }
  .page-header-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3rem;
  }
  .page-header-content { max-width: 720px; color: var(--white); }
  .page-header-content .section-label { background: var(--sunflower); color: var(--pink); }
  .page-header-content h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    font-size: clamp(1.9rem, 4.6vw, 2.9rem);
    line-height: 1.18;
    text-shadow: 0 2px 18px rgba(0,0,0,0.3);
  }
  .page-header-content p {
    margin-top: 0.75rem;
    font-size: 1rem;
    color: rgba(255,255,255,0.92);
    max-width: 520px;
  }
  
  /* Generische Slideshow (für Kurse-Kopf, Plotten-Galerie) */
  .slideshow {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
  }
  .slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
  }
  .slideshow .slide.active { opacity: 1; }
  .slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
  }
  .slideshow-dots span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
  }
  .slideshow-dots span.active { background: var(--white); }
  
  /* Plotten-Galerie: eine große Slideshow mit Prev/Next-Pfeilen, kein
     Thumbnail-Streifen mehr (bewusst entfernt für ein ruhigeres Bild) */
  .plotten-gallery { margin-top: 2.5rem; }
  .plotten-gallery .slideshow {
    width: 100%;
    height: clamp(220px, 42vw, 480px);
  }
  .gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    color: var(--pink);
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
  }
  .gallery-arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
  .gallery-arrow--prev { left: 12px; }
  .gallery-arrow--next { right: 12px; }
  .gallery-arrow--static { position: static; top: auto; transform: none; flex-shrink: 0; }
  .gallery-arrow--static:hover { background: var(--white); transform: scale(1.06); }
  
  /* ── FAQ-Akkordeon ─────────────────────────────────── */
  .faq-list { max-width: 760px; }
  .faq-item {
    border-bottom: 1px solid var(--border-soft);
  }
  .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 0.25rem;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--plum);
  }
  .faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--sunflower-pale);
    color: var(--on-sunflower-pale);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    transition: transform 0.2s;
  }
  .faq-item.open .faq-icon { transform: rotate(45deg); }
  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .faq-answer p {
    padding: 0 0.25rem 1.15rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.7;
  }
  
  /* Aktiver Nav-Link im Mobile-Menü (Cream-Hintergrund, andere Kontrastfarbe nötig als im gelben Header) */
  .mobile-nav a.active { color: var(--terracotta-deep); }
  
  /* Für Screenreader/Struktur nötige, aber optisch nicht gewünschte Überschriften
     (z.B. wenn eine Section bereits einen sichtbaren Titel hat, aber die
     Heading-Hierarchie eine zusätzliche Zwischenebene braucht) */
  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }