/* Ratgeber-Artikel. Baut auf ../styles.css auf (Farben, Schriften, Header, Footer). */

.article { max-width: 720px; margin: 0 auto; padding: 54px 24px 30px; }
.article .eyebrow { display: block; margin-bottom: 12px; }
.article h1 { font-size: clamp(2.1rem, 5.4vw, 3.1rem); }
.article .byline { margin-top: 18px; color: var(--ink-soft); font-size: .95rem; }
.article .intro { font-size: 1.2rem; color: var(--ink-soft); margin-top: 22px; }

.article h2 { font-size: clamp(1.5rem, 3.6vw, 1.95rem); margin: 48px 0 14px; }
.article h3 { font-size: 1.25rem; margin: 30px 0 8px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px; padding-left: 1.3em; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--coral-deep); font-weight: 700; }
.article a:not(.btn) { color: var(--coral-deep); }

.article figure { margin: 34px 0; }
.article figure img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--card); padding: 10px; box-shadow: var(--shadow-card); border: 1px solid rgba(206,197,182,0.6); }
.article figcaption { text-align: center; font-family: var(--f-hand); font-size: 1.3rem; color: var(--sage); margin-top: 12px; }
.article figure.small img { max-width: 320px; margin: 0 auto; }
.article figure.drawing img { max-width: 440px; margin: 0 auto; transform: rotate(-1deg); }

/* Kleine Geschichte aus unserem Alltag */
.story .label { font-family: var(--f-hand); font-size: 1.35rem; color: var(--coral-deep); display: block; margin-bottom: 6px; line-height: 1; }

/* Tipp-Kasten */
.tip { background: var(--sage-light); border-radius: 16px; padding: 20px 24px 4px; margin: 30px 0; }
.tip .label { font-family: var(--f-hand); font-size: 1.35rem; color: var(--paint-green); display: block; margin-bottom: 6px; line-height: 1; }

/* Nummerierte Ideen */
.ideas { counter-reset: idea; list-style: none; padding: 0 !important; }
.ideas > li { counter-increment: idea; position: relative; padding-left: 54px; margin-bottom: 22px; }
.ideas > li::before { content: counter(idea); position: absolute; left: 0; top: 2px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; color: #fff; background: var(--coral); transform: rotate(-4deg); }
.ideas > li:nth-child(3n+2)::before { background: var(--teal); }
.ideas > li:nth-child(3n)::before { background: var(--sage); }
.ideas > li strong { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }

/* App-Hinweis am Ende */
.app-cta { background: var(--card); border-radius: 24px; padding: 34px 28px; margin: 50px 0 20px; text-align: center; box-shadow: var(--shadow-card); border: 1px solid rgba(206,197,182,0.6); }
.app-cta h2 { margin: 6px 0 12px; }
.app-cta p { color: var(--ink-soft); max-width: 46ch; margin: 0 auto 24px; }
.app-cta .app-note { font-size: .88rem; margin: 16px auto 0; }

/* Weiterlesen */
.more { max-width: 720px; margin: 0 auto; padding: 10px 24px 60px; }
.more h2 { font-size: 1.5rem; margin-bottom: 16px; }
.more-list { display: grid; gap: 12px; }
.more-list a { display: block; background: var(--card); border: 1px solid rgba(206,197,182,0.7); border-radius: 14px; padding: 16px 20px; text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; transition: transform .18s ease; }
.more-list a:hover { transform: translateY(-2px); color: var(--coral-deep); }
.more-list a span { display: block; font-family: var(--f-body); font-weight: 400; font-size: .92rem; color: var(--ink-soft); margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
  .more-list a:hover { transform: none; }
}

/* ---- Kritzel am Rand (reines CSS/SVG, keine Bilddateien) ---- */
:root {
  --doodle-sonne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%23E0A33A' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M50 32c10 0 18 8 18 18s-8 18-18 17-17-8-17-18 7-17 17-17z'/%3E%3Cpath d='M50 8v12M50 80v12M8 50h12M80 50h12M20 20l9 9M71 71l9 9M80 20l-9 9M29 71l-9 9'/%3E%3C/g%3E%3C/svg%3E");
  --doodle-spirale: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%236FA8A8' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M52 50c0-3 4-4 6-1 3 4-1 10-7 10-8 0-12-9-8-16 5-9 18-9 24 0 7 11-1 26-15 27-17 1-28-15-23-30'/%3E%3C/g%3E%3C/svg%3E");
  --doodle-stern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%23F06D5E' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M50 12l10 24 26 2-20 17 7 26-23-14-22 14 6-26-20-17 26-2z'/%3E%3C/g%3E%3C/svg%3E");
  --doodle-herz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%23D6503F' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M50 84C22 64 12 48 16 34c4-14 22-18 34-2 11-16 30-12 34 2 4 14-6 30-34 50z'/%3E%3C/g%3E%3C/svg%3E");
  --doodle-schnecke: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%236B7F5A' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M44 66c-14 0-22-10-20-21 2-12 15-19 27-14 10 5 11 18 3 23-6 4-14 0-12-6 1-4 6-5 8-2'/%3E%3Cpath d='M12 70h64c6 0 10-4 10-10M78 60l-2-16M86 58l4-14'/%3E%3C/g%3E%3C/svg%3E");
  --doodle-kreuz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='1' seed='3'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='3'/%3E%3C/filter%3E%3Cg fill='none' stroke='%23D6503F' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round' filter='url%28%23c%29'%3E%3Cpath d='M10 88c10-6 16-16 26-18s14 8 24 4 10-14 14-20' stroke-dasharray='2 10' stroke='%23B69BD6'/%3E%3Cpath d='M66 16l20 20M86 16L66 36'/%3E%3C/g%3E%3C/svg%3E");
}

.article { position: relative; }
.article::before, .article::after {
  content: ""; position: absolute; top: 40px; bottom: 40px; width: 130px;
  pointer-events: none; opacity: .75; z-index: -1;
}
/* Mobil/Tablet: nur ein kleiner Stern oben rechts */
.article::after {
  top: 26px; bottom: auto; right: 16px; width: 44px; height: 44px;
  background: var(--doodle-stern) center / contain no-repeat;
  transform: rotate(12deg);
}
.article::before { display: none; }

@media (min-width: 1100px) {
  .article::before, .article::after { display: block; top: 40px; bottom: 40px; height: auto; width: 130px; transform: none; }
  .article::before {
    left: -190px;
    background:
      var(--doodle-sonne)    10px 0      / 96px no-repeat,
      var(--doodle-spirale)  34px 38%    / 70px no-repeat,
      var(--doodle-herz)     4px  78%    / 64px no-repeat;
  }
  .article::after {
    right: -190px;
    background:
      var(--doodle-stern)    30px 90px   / 62px no-repeat,
      var(--doodle-schnecke) 0    55%    / 110px no-repeat,
      var(--doodle-kreuz)    20px 96%    / 90px no-repeat;
  }
}

/* ---- Geschichten als Zettel am Kühlschrank ---- */
.story {
  position: relative;
  background: #FFFBEF;
  border: none;
  border-radius: 4px 4px 6px 6px;
  padding: 30px 26px 8px;
  margin: 40px 6px;
  transform: rotate(-.7deg);
  box-shadow: 0 1px 1px rgba(74,63,46,.08), 0 16px 26px -18px rgba(74,63,46,.45);
}
.story:nth-of-type(even) { transform: rotate(.6deg); }
.story::before {
  content: ""; position: absolute; top: -13px; left: 50%;
  width: 104px; height: 28px; margin-left: -52px;
  background: rgba(224,163,58,.38);
  border-left: 2px dotted rgba(255,255,255,.5); border-right: 2px dotted rgba(255,255,255,.5);
  transform: rotate(-3deg);
}
.story:nth-of-type(even)::before { transform: rotate(4deg); background: rgba(111,168,168,.34); }

@media (prefers-reduced-motion: reduce) { .story, .story:nth-of-type(even) { transform: none; } }

/* ---- Kurzantwort und FAQ (auch für KI-Suchmaschinen gut zitierbar) ---- */
.summary { background: var(--gold-light); border-radius: 16px; padding: 20px 24px 6px; margin: 28px 0 10px; }
.summary .label { font-family: var(--f-hand); font-size: 1.35rem; color: #9A6A12; display: block; margin-bottom: 6px; line-height: 1; }
.summary ul { margin-bottom: 14px; }
.faq-list h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 22px 0 6px; }
.faq-list p { color: var(--ink); }

/* ---- Ratgeber-Übersicht: Kacheln mit Kritzel-Illustration ---- */
.article.hub { max-width: 980px; }
.article.hub::before { display: none; }
.article.hub .intro { max-width: 60ch; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; margin-top: 40px; }
.article a.hub-card, .hub-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid rgba(206,197,182,0.7); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-card); transition: transform .18s ease; }
.hub-card:hover { transform: translateY(-4px) rotate(-.3deg); }
.hub-card:nth-child(even):hover { transform: translateY(-4px) rotate(.3deg); }
.hub-art { aspect-ratio: 12 / 7; display: grid; place-items: center; }
.hub-art svg { width: 88%; height: auto; }
.hub-body { padding: 20px 24px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hub-body b { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; line-height: 1.2; }
.hub-body span { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.hub-body em { font-style: normal; font-family: var(--f-hand); font-size: 1.35rem; color: var(--coral-deep); margin-top: 6px; }
.hub-body em::after { content: " →"; font-family: var(--f-body); font-size: 1rem; }
@media (max-width: 700px) { .hub-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .hub-card:hover, .hub-card:nth-child(even):hover { transform: none; } }
