/* Gretchen's Diary: Design-System */

/* Schriften, lokal gespeichert */
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("../fonts/caveat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Palette */
  --cream: #fff8f1;
  --ink: #3b2b2e;
  --berry: #a63a60;
  --apricot: #f2a057;
  --blush: #f7d3da;

  /* abgeleitete Töne */
  --ink-soft: #6e5a5d;
  --line: #ecd9cf;
  --paper: #fffdfa;

  --f-head: "Fraunces", Georgia, serif;
  --f-body: "Literata", Georgia, serif;
  --f-hand: "Caveat", "Bradley Hand", cursive;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(59, 43, 46, .06), 0 8px 24px rgba(59, 43, 46, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--berry); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "SOFT" 50; }
h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--berry); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Handschrift-Notiz */
.note { font-family: var(--f-hand); font-weight: 500; color: var(--berry); font-size: 1.55rem; line-height: 1.1; display: inline-block; }
.kicker { font-family: var(--f-hand); font-size: 1.5rem; color: var(--berry); margin: 0 0 .3rem; line-height: 1.2; }

/* Knopf: die eine Handlungsaufforderung */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--berry); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--f-body);
  padding: 1rem 1.5rem; min-height: 48px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(166, 58, 96, .25);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(166, 58, 96, .32); background: #933153; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--small { padding: .7rem 1.1rem; font-size: .92rem; min-height: 42px; box-shadow: none; }

/* Kopfzeile */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 241, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 10px; transform: rotate(-4deg); transition: transform .3s ease; box-shadow: var(--shadow); }
.brand:hover img { transform: rotate(2deg); }
.brand span { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.brand span i { font-style: italic; font-weight: 400; color: var(--berry); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; position: relative; padding: .5rem 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 2px; background: var(--apricot); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Abschnitte */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head a { white-space: nowrap; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 36rem; }

/* Startseite: Kopfbereich */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { margin-bottom: 2rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 26rem); }
.hero-art img { border-radius: 6px; transform: rotate(3deg); box-shadow: 0 2px 4px rgba(59, 43, 46, .08), 0 24px 48px rgba(59, 43, 46, .14); }
.tape { position: absolute; width: 7.5rem; height: 1.9rem; background: rgba(247, 211, 218, .8); top: -.8rem; left: 50%; transform: translateX(-50%) rotate(-5deg); z-index: 1; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.hero-art .note { position: absolute; left: -2.5rem; bottom: -2.4rem; transform: rotate(-6deg); }

/* Platzhalter-Bilder */
.ph {
  position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius);
  background-color: #fbe3cf;
  background-image: repeating-linear-gradient(90deg, rgba(242, 160, 87, .28) 0 14px, transparent 14px 34px);
}
.ph::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(255, 248, 241, .0) 30%, rgba(255, 248, 241, .35) 100%); }
.ph span { position: relative; display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--berry); color: #fff; box-shadow: 0 6px 16px rgba(166, 58, 96, .28); transition: transform .4s ease; }
.ph svg { width: 2.1rem; height: 2.1rem; }
.ph--wide { aspect-ratio: 16 / 9; }
.ph--card { aspect-ratio: 4 / 3; }
.ph--portrait { aspect-ratio: 4 / 5; }
.ph--square { aspect-ratio: 1; }
.ph--pink { background-color: var(--blush); background-image: repeating-linear-gradient(90deg, rgba(166, 58, 96, .09) 0 14px, transparent 14px 34px); }

/* Artikelkarten */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.card { display: flex; flex-direction: column; background: var(--paper); border-radius: calc(var(--radius) + 4px); padding: .7rem .7rem 1.3rem; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(59, 43, 46, .06), 0 16px 32px rgba(59, 43, 46, .11); }
.card:hover .ph span { transform: scale(1.08) rotate(-4deg); }
.card-body { padding: 1rem .6rem 0; display: flex; flex-direction: column; flex: 1; }
.card h3 { margin: .35rem 0 .5rem; transition: color .25s; }
.card:hover h3 { color: var(--berry); }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0 0 1rem; }
.meta { font-size: .85rem; color: var(--ink-soft); margin-top: auto; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--berry); background: var(--blush); padding: .25rem .65rem; border-radius: 999px; text-decoration: none; }

/* Lieblingsbeiträge */
.favs { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fav { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; text-decoration: none; color: inherit; padding: 1.5rem 0; }
.fav + .fav { border-top: 1px dashed var(--line); margin-top: 1.5rem; padding-top: 3rem; }
.fav:nth-of-type(even) .ph { order: 2; }
.fav h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: .6rem 0 .6rem; transition: color .25s; }
.fav:hover h3 { color: var(--berry); }
.fav p { color: var(--ink-soft); }
.fav .note { margin-top: .5rem; }
.fav .note svg { width: 2.6rem; height: 1.6rem; vertical-align: middle; margin-left: .3rem; }
.fav .ph span { transition: transform .4s ease; }
.fav:hover .ph span { transform: scale(1.08) rotate(-4deg); }

/* Themen-Kacheln */
.topics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.topic { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.2rem; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .3s, transform .3s; }
.topic:hover { border-color: var(--apricot); transform: translateY(-3px); }
.topic .ico { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blush); color: var(--berry); display: grid; place-items: center; }
.topic .ico svg { width: 1.3rem; height: 1.3rem; }
.topic strong { font-family: var(--f-head); font-weight: 600; font-size: 1.15rem; }
.topic small { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }

/* Kurz über Greta */
.about-teaser .wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about-teaser .ph { max-width: 22rem; transform: rotate(-2deg); }
.about-teaser p { font-size: 1.15rem; }

/* Instagram-Abschluss */
.cta { position: relative; overflow: hidden; text-align: center; color: var(--ink); background-color: #fde7d3; background-image: repeating-linear-gradient(90deg, rgba(242, 160, 87, .35) 0 18px, transparent 18px 46px); }
.cta-card { position: relative; max-width: 40rem; margin: 0 auto; background: var(--blush); padding: clamp(2.2rem, 6vw, 3.5rem) clamp(1.4rem, 5vw, 3.5rem); border-radius: 26px 34px 22px 38px; box-shadow: 0 20px 40px rgba(166, 58, 96, .14); transform: rotate(-1deg); }
.cta-card > * { transform: rotate(1deg); }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--ink); margin-bottom: 1.6rem; }
.cta .handle { display: block; font-family: var(--f-hand); font-size: 1.6rem; color: var(--berry); margin-top: 1rem; }

/* Seitenkopf für Unterseiten */
.page-head { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { max-width: 20ch; }

/* Themen-Seite */
.topic-nav { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.topic-nav a { text-decoration: none; border: 1px solid var(--line); background: var(--paper); color: var(--ink); padding: .55rem 1rem; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; gap: .5rem; transition: border-color .25s, background .25s; }
.topic-nav a:hover { border-color: var(--apricot); background: #fff; }
.topic-block { padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--line); scroll-margin-top: 5rem; }
.topic-block .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.topic-block .ico { width: 3rem; height: 3rem; border-radius: 50%; background: var(--blush); color: var(--berry); display: grid; place-items: center; margin-bottom: 1rem; }
.topic-block .ico svg { width: 1.4rem; height: 1.4rem; }
.topic-block p { color: var(--ink-soft); }
.topic-block .cards { grid-template-columns: repeat(2, 1fr); }

/* Artikel */
.article-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; text-align: center; }
.article-head h1 { max-width: 18ch; margin: 1rem auto .6rem; }
.article-head .meta { font-size: .95rem; }
.article-hero { max-width: 60rem; margin: 0 auto; }
.prose { max-width: 40rem; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 1rem; font-size: 1.14rem; line-height: 1.8; }
.prose > p:first-of-type::first-letter { font-family: var(--f-head); font-weight: 600; float: left; font-size: 3.6em; line-height: .85; padding: .08em .12em 0 0; color: var(--berry); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin: 2.2em 0 .6em; }
.prose blockquote { margin: 2rem 0; padding: .3rem 0 .3rem 1.4rem; border-left: 3px solid var(--apricot); font-family: var(--f-head); font-style: italic; font-size: 1.35rem; line-height: 1.45; color: var(--berry); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--berry); }
.recipe { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin: 2rem 0; }
.recipe h3 { margin-top: 0; }
.signoff { margin-top: 2.5rem; font-family: var(--f-hand); font-size: 1.8rem; color: var(--berry); }
.more { padding-top: 3rem; }
.more .cards { grid-template-columns: repeat(2, 1fr); max-width: 52rem; }

/* Über mich */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-grid .ph { position: sticky; top: 6rem; transform: rotate(-2deg); }
.about-grid .prose { padding: 0; margin: 0; }
.list-topics { list-style: none; padding: 0 !important; display: grid; gap: .8rem; }
.list-topics li { display: flex; gap: .9rem; align-items: baseline; }
.list-topics a { font-weight: 600; }

/* Kontaktformular */
.contact { max-width: 40rem; }
.contact-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.2rem); }
.field { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.field label { font-size: .95rem; font-weight: 600; }
.field input, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #dcc6ba; border-radius: 10px; padding: .75rem .9rem; min-height: 48px; transition: border-color .2s, box-shadow .2s; width: 100%; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 3px rgba(166, 58, 96, .15); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--berry); flex: none; }
.btn-plain { font: 600 1rem/1 var(--f-body); color: var(--berry); background: transparent; border: 2px solid var(--berry); border-radius: 999px; padding: .85rem 1.4rem; min-height: 48px; cursor: pointer; transition: background .25s, color .25s; }
.btn-plain:hover { background: var(--berry); color: #fff; }
.btn-plain[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 1rem 0 0; font-size: .98rem; min-height: 1.5em; }
.form-status.is-ok { color: #2f6b45; }
.form-status.is-err { color: #a8322d; }

/* Rechtstexte */
.legal { max-width: 44rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal .hint { background: var(--blush); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .98rem; }
.fillme { background: #ffe9a8; padding: 0 .3em; border-radius: 4px; }

/* Fußzeile */
.site-footer { background: var(--ink); color: #ead9d4; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer .foot-brand { font-family: var(--f-head); font-size: 1.4rem; color: #fff; margin-bottom: .4rem; }
.site-footer .foot-brand i { font-weight: 400; color: var(--blush); }
.site-footer .foot-title { font-family: var(--f-hand); font-size: 1.35rem; color: var(--apricot); margin-bottom: .6rem; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 1.5rem; margin-top: 1rem; color: #bda9a4; font-size: .85rem; }

/* sanftes Einblenden beim Scrollen */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* Tablet */
@media (max-width: 980px) {
  .topics { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > :nth-child(3):last-child { display: none; }
}

/* Handy: eigener Durchgang */
@media (max-width: 720px) {
  body { font-size: 1.02rem; }
  .site-header .wrap { min-height: 3.75rem; }
  .brand { gap: .55rem; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 1rem; white-space: nowrap; }
  .nav { gap: .9rem; font-size: .93rem; }
  .nav a { white-space: nowrap; }
  .about-teaser .ph { margin: 0 auto; }
  .nav .btn { display: none; }               /* Instagram-Knopf steht auf dem Handy im Kopfbereich */

  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: 62%; margin-bottom: .5rem; }
  .hero-art .note { display: none; }
  .hero .btn { width: 100%; justify-content: center; }

  .section-head { flex-direction: column; align-items: start; gap: .4rem; }

  /* Neueste Beiträge: kompakte Zeilen statt großer Karten */
  .cards, .topic-block .cards, .more .cards { grid-template-columns: 1fr; }
  .cards > :nth-child(3):last-child { display: flex; }
  .card { flex-direction: row; align-items: center; gap: .9rem; padding: .6rem; }
  .card .ph { width: 6.5rem; flex: none; aspect-ratio: 1; border-radius: 10px; }
  .card .ph span { width: 2.6rem; height: 2.6rem; }
  .card .ph svg { width: 1.25rem; height: 1.25rem; }
  .card-body { padding: 0; }
  .card h3 { font-size: 1.08rem; margin: .3rem 0 .3rem; }
  .card p { display: none; }
  .tag { font-size: .7rem; }

  .fav { grid-template-columns: 1fr; gap: 1rem; }
  .fav:nth-of-type(even) .ph { order: 0; }
  .fav .ph { aspect-ratio: 16 / 9; }
  .fav .note svg { display: none; }

  .topics { grid-template-columns: 1fr 1fr; }
  .topic { padding: 1rem; }
  .topic small { display: none; }
  .topics > :last-child { grid-column: 1 / -1; }

  .about-teaser .wrap, .about-grid { grid-template-columns: 1fr; }
  .about-teaser .ph { max-width: 11rem; }
  .about-grid .ph { position: static; max-width: 14rem; }

  .topic-block .wrap { grid-template-columns: 1fr; gap: 1rem; }
  .article-hero { padding: 0 var(--gutter); }
  .prose { font-size: 1.06rem; }

  .cta .btn { width: 100%; justify-content: center; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 359px) {
  .brand span { display: none; }
}
