/* Sparfuchs Zuhause – Stylesheet */
@font-face { font-family: "Bricolage"; src: url("../fonts/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("../fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --fox: #F26A1B;
  --fox-dark: #C2500D;
  --rust: #A8410B;
  --sun: #FFC234;
  --sun-light: #FFE08A;
  --cream: #FFF8F0;
  --peach: #FFE8D6;
  --peach-2: #FFF1E3;
  --ink: #2B1D16;
  --muted: #6A5244;
  --line: #EED7C3;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(120, 60, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Instrument", system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); }
a:hover { color: var(--fox-dark); }
h1, h2, h3 { font-family: "Bricolage", system-ui, sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--sun); padding: 8px 14px; z-index: 50; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 0; background: var(--sun); color: var(--ink); font: 700 1rem/1 "Instrument", sans-serif; text-decoration: none; cursor: pointer; box-shadow: 0 4px 0 #D9980B; transition: transform .15s, box-shadow .15s; }
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 0 #D9980B; }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 0 #D9980B; }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--ghost:hover { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.btn--dark { background: var(--ink); color: var(--white); box-shadow: 0 4px 0 #000; }
.btn--dark:hover { color: var(--white); box-shadow: 0 6px 0 #000; }
.btn--full { width: 100%; }

/* Kopfzeile */
.topbar { background: var(--fox); color: var(--white); position: sticky; top: 0; z-index: 20; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 800 1.3rem "Bricolage", sans-serif; }
.brand:hover { color: var(--white); }
.brand img { border-radius: 50%; border: 2px solid var(--white); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a:not(.btn) { color: var(--white); text-decoration: none; font-weight: 700; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-btn { display: none; background: none; border: 0; color: var(--white); min-width: 44px; min-height: 44px; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; padding: 8px 0 18px; gap: 14px; }
  .nav--open { display: flex; }
}

/* Hero */
.hero { background: var(--fox); color: var(--white); position: relative; overflow: hidden; padding: 40px 0 120px; }
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -60px; height: 140px; background: var(--sun); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero::before { content: ""; position: absolute; left: -5%; right: -5%; bottom: -80px; height: 140px; background: var(--cream); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: 1; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 2; }
.hero p.lead { font-size: 1.2rem; max-width: 34ch; color: #FFF3E8; }
.hero h1 span { color: var(--sun); }
.hero__img { border-radius: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 5px solid var(--white); transform: rotate(1.5deg); }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding: 0; list-style: none; }
.badges li { background: rgba(255,255,255,.18); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; }
@media (max-width: 880px) { .hero__in { grid-template-columns: 1fr; } .hero { padding-bottom: 100px; } }

/* Abschnitte */
.section { padding: 70px 0; }
.section--peach { background: var(--peach-2); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.kicker { display: inline-block; font-weight: 700; color: var(--rust); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 8px; }

/* Download-Karten */
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.card__img { position: relative; background: var(--peach); aspect-ratio: 4 / 3; overflow: hidden; display: flex; justify-content: center; padding-top: 16px; }
.card__img img { width: 62%; box-shadow: 0 8px 20px rgba(0,0,0,.18); border-radius: 6px; }
.card__img.is-locked img { filter: blur(1.5px) saturate(.8); }
.card__lock { z-index: 2; position: absolute; inset: auto 12px 12px auto; background: var(--ink); color: var(--white); border-radius: 999px; padding: 6px 12px; font-size: .82rem; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.card__tag { z-index: 2; position: absolute; left: 12px; top: 12px; background: var(--sun); color: var(--ink); border-radius: 999px; padding: 4px 12px; font-size: .8rem; font-weight: 700; }
.card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__body .btn { margin-top: auto; }

/* Schritte */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 48px; height: 48px; border-radius: 50%; background: var(--fox); color: var(--white); font: 800 1.4rem "Bricolage", sans-serif; align-items: center; justify-content: center; margin-bottom: 12px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Themen */
.topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.topic { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.topic img { width: 100%; border-radius: 16px; aspect-ratio: 1; object-fit: cover; }
.topic p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .topics { grid-template-columns: 1fr; } .topic { grid-template-columns: 110px 1fr; } }

/* Newsletter */
.newsletter { background: var(--ink); color: var(--white); border-radius: 30px; padding: 44px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; }
.newsletter h2 span { color: var(--sun); }
.newsletter p { color: #E9DCD2; }
.newsletter .form label { color: var(--white); }
@media (max-width: 820px) { .newsletter { grid-template-columns: 1fr; padding: 30px 24px; } }

/* Formulare */
.auth { padding: 50px 0 80px; }
.auth__box { max-width: 480px; margin: 0 auto; background: var(--white); border-radius: 26px; padding: 34px; box-shadow: var(--shadow); }
.auth__box h1 { font-size: 2rem; }
.auth__fox { width: 84px; height: 84px; border-radius: 50%; margin: -76px auto 10px; border: 4px solid var(--white); box-shadow: var(--shadow); }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.form input[type=text], .form input[type=email], .form input[type=password] { width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: 14px; font: inherit; background: var(--white); color: var(--ink); }
.form input:focus { border-color: var(--fox); outline: none; box-shadow: 0 0 0 4px rgba(242,106,27,.18); }
.pw { position: relative; }
.pw button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--rust); font-weight: 700; cursor: pointer; min-height: 40px; padding: 0 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .95rem; }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--fox); flex-shrink: 0; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }
.newsletter .hint { color: #CDBDB1; }
.auth__alt { text-align: center; margin-top: 18px; font-size: .95rem; }

/* Meldungen */
.flashes { margin-top: 18px; display: grid; gap: 10px; }
.flash { padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.flash--success { background: #E2F6E9; color: #17603A; }
.flash--error { background: #FDE3DC; color: #9A2B0E; }
.flash--info { background: var(--sun-light); color: var(--ink); }

/* Konto */
.account { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 40px 0 80px; }
.account__side { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-self: start; text-align: center; }
.account__side img { width: 110px; height: 110px; border-radius: 50%; margin: 0 auto 10px; }
.panel { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px; }
.panel--danger { border: 2px solid #F3C2B3; }
@media (max-width: 860px) { .account { grid-template-columns: 1fr; } }

/* Rechtstexte */
.legal { max-width: 820px; padding: 40px 0 80px; }
.legal h2 { font-size: 1.4rem; margin-top: 1.6em; }

/* Fußzeile */
.footer { background: var(--ink); color: #E9DCD2; padding: 40px 0 24px; margin-top: 40px; }
.footer__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.brand--light { color: var(--white); }
.footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__nav a { color: var(--white); }
.footer__note { border-top: 1px solid #4A372C; margin-top: 24px; padding-top: 16px; font-size: .85rem; color: #BFAEA2; }
