/* judithrakers.com · Relaunch 2026-11 */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/open-sans-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --c-photo-bg: #ebe5e7;   /* aus dem rechten Bildrand des Fotos abgeleitet */
  --c-text: #4d4d4d;
  --c-text-soft: #6b6b6b;
  --c-page: #f1f1f1;
  --c-stripe: #e6e6e6;
  --c-focus: #8a6f75;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --card-max: 1200px;
  --gap: clamp(24px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(0px, 4vw, 48px) 0 24px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  background-color: var(--c-page);
  background-image: repeating-linear-gradient(135deg, var(--c-stripe) 0 1px, transparent 1px 4px);
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; border-radius: 2px; }

/* ---------- Karte Startseite ---------- */
.card {
  width: 100%;
  max-width: var(--card-max);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  background: var(--c-photo-bg);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.card__media { position: relative; margin: 0; min-height: 100%; overflow: hidden; }
.card__media picture, .card__media img {
  display: block; width: 100%; height: 100%;
}
.card__media img { object-fit: cover; object-position: 50% 18%; }
/* weicher Übergang vom Foto in die Textfläche */
.card__media::after {
  content: ""; position: absolute; inset: 0 0 0 auto; width: 18%;
  background: linear-gradient(to right, rgba(235,229,231,0), var(--c-photo-bg));
  pointer-events: none;
}

.card__content { padding: clamp(32px, 5vw, 64px) var(--gap); align-self: center; }

.headline-main {
  margin: 0 0 .35em;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.headline-sub { margin: 0 0 1.4em; font-size: clamp(18px, 1.8vw, 21px); font-weight: 600; }
.section-headline { margin: 1.5em 0 .45em; font-size: 16px; font-weight: 600; }
.card__content p { margin: 0 0 .9em; font-size: 14px; }

.contact { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.contact dt { font-weight: 400; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

.social { display: flex; gap: 14px; margin-top: 36px; }
.social svg { width: 30px; height: 30px; fill: var(--c-text); display: block; }
.social a:hover svg { fill: #000; }

/* ---------- Footer ---------- */
.footer-nav { margin-top: 14px; font-size: 14px; color: var(--c-text-soft); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.footer-nav li + li::before { content: "|"; margin-right: 10px; color: #aaa; }
.footer-nav a[aria-current="page"] { font-weight: 600; color: var(--c-text); }

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
.page {
  width: calc(100% - 32px);
  max-width: 820px;
  background: #fff;
  padding: clamp(28px, 5vw, 56px);
}
.page h1 { margin: 0 0 .4em; font-size: clamp(36px, 5vw, 52px); font-weight: 300; line-height: 1.1; color: var(--c-text); }
.page h2 { margin: 1.6em 0 .4em; font-size: 18px; font-weight: 600; }
.page p { margin: 0 0 1em; }
.page .placeholder { padding: 16px 20px; background: var(--c-photo-bg); border-left: 3px solid var(--c-focus); }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  body { justify-content: flex-start; padding-top: 0; }
  .card { grid-template-columns: 1fr; }
  .card__media { aspect-ratio: 4 / 4.4; min-height: 0; }
  .card__media img { object-position: 50% 20%; }
  .card__media::after { inset: auto 0 0 0; width: auto; height: 22%; background: linear-gradient(to bottom, rgba(235,229,231,0), var(--c-photo-bg)); }
  .card__content { padding: 8px 24px 36px; }
  .page { width: 100%; }
}
