/* ===========================================================
   cayohnezucker.de  ·  Can Abi
   Eigenbau-Ersatz fuer die Onepage.io-Seite.
   Alle Werte wurden am 01.09.2026 auf der Live-Seite gemessen.
   =========================================================== */

/* ---------- Schrift (lokal gehostet, kein CDN) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}

/* ---------- Design-Token (aus dem Onepage-Farbkit) ---------- */
:root {
  --key1: #f7ac0b;
  --key2: #ed940f;
  --light: #f8f4ed;
  --dark: #232021;
  --text: rgb(1, 1, 1);
  --line: rgb(194, 152, 30);
  --page-max: 1250px;
  --page-pad: clamp(24px, 4.5vw, 58px);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
picture { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--text);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

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

/* ---------- Seitenhintergrund (identischer Farbverlauf) ---------- */
.page {
  position: relative;
  min-height: 100vh;
  background-color: #fff;
  background-image:
    radial-gradient(circle at 0% 0%, rgb(255 224 80) 0%, transparent 70%),
    radial-gradient(circle at 100% 100%, rgb(188 123 0) 0%, transparent 70%);
  padding: 100px var(--page-pad);
}
.page__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.block { width: 100%; }

/* ---------- Profil ---------- */
.profile { display: flex; flex-direction: column; align-items: center; }
.profile__img {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: #c2981e;
}
.profile__img picture { display: block; width: 100%; height: 100%; }
.profile__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.profile__name {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

/* ---------- Ueberschriften ---------- */
.h-l, .h-m {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.3;
}
.h-l { font-size: 32px; }
.h-m { font-size: 24px; }

/* ---------- Fliesstext ---------- */
.text-m { margin: 0; font-size: 16px; line-height: 1.5; }
.text-s { margin: 0; font-size: 14px; line-height: 1.5; }
.text-m a, .text-s a { text-decoration: underline; }

/* ---------- Social-Icons ---------- */
.social {
  display: flex;
  justify-content: center;
  gap: 16px;
}
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 24px;
  border-radius: 100px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.social a:hover { transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; display: block; }
.social svg path, .social svg circle { fill: var(--text); }

/* ---------- Trennlinie ---------- */
.rule {
  width: 100%;
  height: 32px;
  display: flex;
  align-items: center;
}
.rule::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--line);
}

/* ---------- Karte mit Bild (Merch / Lernbuch) ---------- */
.card-list { width: 100%; display: flex; justify-content: center; }
.card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 12px;
  max-width: 100%;
  text-decoration: none;
  color: var(--text);
  transition: color 0.3s ease;
}
.card:hover { color: var(--dark); }
.card__media {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
}
.card__media picture { display: block; width: 100%; height: 100%; }
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.card__text { text-align: left; }
.card__title { display: block; font-size: 16.8px; font-weight: 700; line-height: 1.5; }
.card__subtitle { display: block; font-size: 15.12px; font-weight: 400; line-height: 1.5; }

/* ---------- Link-Button (Onepage-Stil "line") ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 61px;
  padding: 8px 31px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px rgba(1, 1, 1, 0.2);
  transition: box-shadow 0.3s ease;
}
@media (hover: hover) {
  .btn:hover { box-shadow: inset 0 0 0 2px rgb(1, 1, 1); }
}
.btn__icon { flex: 0 0 30px; width: 30px; height: 30px; }
.btn__icon svg { width: 100%; height: 100%; display: block; }
.btn__text { flex: 0 1 auto; min-width: 0; }
.btn__label { display: block; padding: 4px 0; font-size: 17px; font-weight: 600; line-height: 1.2; }
.btn__subtitle { display: block; font-size: 13.6px; font-weight: 400; line-height: 1.5; letter-spacing: 0.5px; }

/* Variante ohne Rahmen (Kontaktformular) */
.btn--plain {
  width: auto;
  min-height: 0;
  padding: 2px 12px;
  box-shadow: none;
  justify-content: center;
}
.btn--plain .btn__label { font-size: 15px; font-weight: 600; text-align: center; }
/* Statische Unterstreichung in der Linienfarbe, wie im Original */
.btn--plain .btn__label span {
  display: inline-block;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
@media (hover: hover) {
  .btn--plain:hover { box-shadow: none; }
  .btn--plain:hover .btn__label span { border-bottom-color: var(--text); }
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(35, 32, 33, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 50;
}
.modal-backdrop[data-open='true'] { display: flex; }
.modal {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: auto;
  background: #fff;
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 100px;
  background: var(--light);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover { background: #ece5d8; }
.modal__title { margin: 0 0 12px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: 0.2px; }
.modal__lead { margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.modal__img { margin: 0 0 24px; border-radius: 6px; overflow: hidden; }
.modal__img img { width: 100%; height: auto; }

/* ---------- Formular ---------- */
.form { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.form__row { display: flex; gap: 14px; }
.form__row > * { flex: 1 1 0; min-width: 0; }
.form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form input[type='text'],
.form input[type='email'],
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: #fff;
  border: 2px solid rgba(1, 1, 1, 0.2);
  border-radius: 4px;
}
.form input:focus, .form textarea:focus { border-color: var(--dark); outline: none; }
.form textarea { min-height: 130px; resize: vertical; }
.form__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.form__check input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--key2); }
.form__submit {
  margin-top: 6px;
  min-height: 56px;
  padding: 10px 28px;
  border: 0;
  border-radius: 4px;
  background: var(--dark);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.form__submit:hover { background: #000; }
.form__submit[disabled] { opacity: 0.55; cursor: default; }
.form__note { font-size: 13px; line-height: 1.45; color: #555; margin: 0; }
.form__error { color: #a1161b; font-size: 14px; margin: 0; }
.form__error:empty { display: none; }

/* Honigtopf: fuer Menschen unsichtbar, Bots fuellen ihn aus */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Danke-Schritt */
.modal__step[hidden] { display: none; }
.modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 100px;
  background: var(--key1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal__success-icon svg { width: 32px; height: 32px; }

/* ---------- Rechtstexte ---------- */
.legal-page { background: #fff; min-height: 100vh; }
.legal-nav {
  padding: 22px var(--page-pad);
  text-align: center;
  border-bottom: 1px solid rgba(35, 32, 33, 0.1);
}
.legal-nav a { font-weight: 700; font-size: 16.8px; text-decoration: none; }
.legal-nav a:hover { text-decoration: underline; }
.legal-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px var(--page-pad) 64px;
}
.legal-main h1 { font-size: 32px; font-weight: 700; line-height: 1.3; letter-spacing: 0.2px; margin: 0 0 28px; }
.legal-main h2 { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: 0.2px; margin: 40px 0 14px; }
.legal-main h3 { font-size: 19px; font-weight: 700; line-height: 1.4; margin: 28px 0 10px; }
.legal-main h4 { font-size: 17px; font-weight: 600; line-height: 1.4; margin: 22px 0 8px; }
.legal-main p { margin: 0 0 16px; line-height: 1.65; }
.legal-main ul, .legal-main ol { margin: 0 0 16px; padding-left: 22px; line-height: 1.65; }
.legal-main li { margin-bottom: 6px; }
.legal-main a { color: #8a6a08; overflow-wrap: anywhere; }
.legal-main strong { font-weight: 700; }
.legal-main hr { border: 0; border-top: 1px solid rgba(35, 32, 33, 0.15); margin: 32px 0; }

.legal-footer {
  background: var(--dark);
  color: var(--light);
  padding: 48px var(--page-pad);
}
.legal-footer__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.legal-footer h2 { font-size: 18px; font-weight: 700; margin: 0 0 14px; }
.legal-footer ul { list-style: none; margin: 0; padding: 0; }
.legal-footer li { margin-bottom: 8px; }
.legal-footer a { color: var(--light); text-decoration: none; }
.legal-footer a:hover { text-decoration: underline; }
.legal-footer p { margin: 0 0 8px; font-size: 15px; }
.legal-footer__bottom {
  max-width: var(--page-max);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(248, 244, 237, 0.2);
  font-size: 13px;
  line-height: 1.6;
  color: rgba(248, 244, 237, 0.75);
  text-align: center;
}

/* ---------- Cookie-Hinweis ---------- */
.cookie {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(680px, calc(100% - 32px));
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  padding: 22px 24px;
  display: none;
  gap: 20px;
  align-items: flex-start;
  z-index: 60;
  text-align: left;
}
.cookie[data-open='true'] { display: flex; }
.cookie__body { flex: 1 1 auto; }
.cookie__title { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.cookie__text { margin: 0; font-size: 13px; line-height: 1.55; color: #444; }
.cookie__text a { color: #8a6a08; }
.cookie__actions { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
.cookie__btn {
  border: 0;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.cookie__btn--primary { background: var(--key1); color: var(--dark); }
.cookie__btn--primary:hover { background: var(--key2); }
.cookie__btn--ghost { background: var(--light); color: var(--dark); }
.cookie__btn--ghost:hover { background: #ece5d8; }

/* ---------- Abstaende (wie --a-indent-lg in Onepage) ----------
   Steht bewusst am Ende, damit die Werte die margin-Resets der
   Komponenten oben ueberschreiben. */
.gap-0  { margin-bottom: 0; }
.gap-4  { margin-bottom: 4px; }
.gap-5  { margin-bottom: 5px; }
.gap-10 { margin-bottom: 10px; }
.gap-11 { margin-bottom: 11px; }
.gap-14 { margin-bottom: 14px; }
.gap-15 { margin-bottom: 15px; }
.gap-20 { margin-bottom: 20px; }

@media (max-width: 560px) {
  .cookie { flex-direction: column; gap: 14px; }
  .cookie__actions { flex-direction: row; width: 100%; }
  .cookie__btn { flex: 1 1 0; }
  .form__row { flex-direction: column; }
  .modal { padding: 32px 20px; }
  .h-l { font-size: 27px; }
  .h-m { font-size: 21px; }
  .btn { padding: 8px 18px; }
  .card { gap: 16px; }
}

@media print {
  .cookie, .legal-nav, .legal-footer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
