/* KAJAMOOD – "Über mich." als statische Seite
   Nachbau des Shopify-Themes (Horizon) mit den im Shop gemessenen Werten.
   Breakpoints wie im Theme: 750px (Tablet), 960px (Desktop), 1100px (3 Spalten Socials). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/inter-700.woff2") format("woff2"); }

:root {
  --page-margin: 16px;
  --spacing-scale: 0.7;
  --h-big: clamp(2.75rem, 4.8vw, 3rem);   /* H1 + große H2 (44–48px) */
  --h3: 2rem;                               /* "Hallo, ich bin Kaja." */
  --line: #dfdfdf;
  --muted: rgba(0, 0, 0, 0.6);
  --hero-height: 15rem;
}
@media (min-width: 640px) { :root { --hero-height: 40svh; } }
@media (min-width: 750px) { :root { --page-margin: 40px; --spacing-scale: 1; } }
@media (min-width: 960px) { :root { --hero-height: 50svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.page-width { padding-inline: var(--page-margin); }

/* ---------- Header ---------- */
.site-header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.site-header__logo img { width: 131px; height: 28px; object-fit: contain; }
@media (min-width: 750px) {
  .site-header { height: 74px; padding-bottom: 14px; }
  .site-header__logo img { width: 234px; height: 50px; }
}

/* ---------- Seitentitel ---------- */
.page-title {
  max-width: 672px;
  margin-inline: auto;
  padding-top: max(20px, calc(var(--spacing-scale) * 40px));
}
@media (max-width: 749.98px) { .page-title { max-width: none; } }
.h-big {
  font-size: var(--h-big);
  font-weight: 700;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin-top: max(24px, calc(var(--spacing-scale) * 32px));
  height: var(--hero-height);
  overflow: hidden;
  background: #333;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55.3% 32.4%;
}
.hero::after {               /* Verlauf wie im Theme: #00000026 → transparent, von unten */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
  pointer-events: none;
}

/* ---------- Intro ---------- */
.intro { display: flex; flex-direction: column; gap: 12px; }
.intro__heading { padding-top: 40px; max-width: 1560px; }
.intro__lead {
  padding-block: 30px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: pretty;
}

/* ---------- Bild + Text ---------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 20px;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding-left: 20px;
}
@media (min-width: 750px) {
  .split { flex-direction: row; align-items: center; gap: 32px; }
  .split__media, .split__body { flex: 0 0 calc((100% - 32px) / 2); min-width: 0; }
  .split__body { padding-left: 25px; }
}
.split__heading { font-size: var(--h3); font-weight: 700; line-height: 1.1; }
.rte { display: flex; flex-direction: column; }   /* wie im Theme: Absatzabstände kollabieren nicht (7 + 7 px) */
.rte p { margin-block: 7px; }
.rte p:first-child { margin-top: 0; }
.rte p:last-child { margin-bottom: 0; }
.split__body .rte { max-width: 455px; }

.button {
  display: inline-grid;
  place-items: center;
  padding: 16px 24px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.6;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.button:hover { background: #262626; }
.button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* ---------- Langer Text ---------- */
.story { padding-block: 10px; }

/* ---------- Trennlinie ---------- */
.divider { padding-block: max(20px, calc(var(--spacing-scale) * 30px)); }
.divider span { display: block; height: 2px; background: var(--line); }

/* ---------- Socials ---------- */
.socials { max-width: 2000px; margin: 0 auto; padding: clamp(12px, 3vw, 24px); scroll-margin-top: 16px; }
.socials__heading {
  margin-bottom: clamp(12px, 2.5vw, 20px);
  padding-left: clamp(10px, 2vw, 18px);
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
}
.socials__grid { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2.5vw, 20px); }
@media (min-width: 750px)  { .socials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .socials__grid { grid-template-columns: repeat(3, 1fr); } }

.social-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 14px;
  padding: clamp(14px, 2.4vw, 18px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.social-card:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.2); border-color: rgba(0, 0, 0, 0.12); }
.social-card:focus-visible { outline: 3px solid #e5e5e5; outline-offset: 3px; }
.social-card__icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f4f4f4;
  border: 2px solid #e5e5e5;
  overflow: hidden;
}
.social-card__icon img { width: 70%; height: 70%; object-fit: contain; }
@media (min-width: 750px) { .social-card__icon { width: 56px; height: 56px; } }
.social-card__title { margin: 2px 0 6px; font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; line-height: 1.2; }
.social-card__desc { font-size: 14px; line-height: 1.5; opacity: 0.88; }
@media (prefers-reduced-motion: reduce) {
  .social-card { transition: none; }
  .social-card:hover { transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; }
.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.site-footer__links { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #000; text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 780px; margin: 0 auto; padding-block: max(20px, calc(var(--spacing-scale) * 40px)) 48px; }
.legal h1 { font-size: var(--h-big); line-height: 1; margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; line-height: 1.2; margin: 28px 0 8px; }
.legal p, .legal ul { margin: 0 0 10px; }
.legal a { word-break: break-word; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 13px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 700; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: #000; }
