/* Larissa Weiss – Website 2026
   Handgeschriebenes Stylesheet, kein Build-Schritt nötig. */

/* ---------- Fonts (lokal gehostet, keine externen Aufrufe) ---------- */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Fraunces Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design-Tokens ---------- */
:root {
  --radius: 0.5rem;
  --background: oklch(0.977 0.008 85);
  --foreground: oklch(0.245 0.018 145);
  --card: oklch(0.992 0.005 85);
  --card-foreground: oklch(0.245 0.018 145);
  --primary: oklch(0.352 0.035 152);
  --primary-foreground: oklch(0.977 0.008 85);
  --secondary: oklch(0.941 0.014 85);
  --secondary-40: oklch(0.941 0.014 85 / 0.4);
  --muted-foreground: oklch(0.505 0.019 130);
  --accent: oklch(0.878 0.031 92);
  --accent-foreground: oklch(0.298 0.03 152);
  --border: oklch(0.895 0.014 85);

  --font-sans: "Inter Variable", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces Variable", ui-serif, Georgia, serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  border: 0 solid var(--border);
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-height: 100vh;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

h1,
h2,
h3,
blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
}

/* ---------- Layout-Helfer ---------- */
.container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.container--narrow {
  max-width: 48rem;
}

.section {
  padding-block: 5rem;
}

.section--alt {
  border-top: 1px solid var(--border);
  background-color: var(--secondary-40);
}

.section--invert {
  border-block: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

.section--invert .eyebrow {
  color: inherit;
  opacity: 0.7;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    opacity 0.2s,
    background-color 0.2s,
    color 0.2s;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--outline {
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn--outline:hover {
  background-color: var(--secondary);
}

.btn--invert {
  background-color: var(--primary-foreground);
  color: var(--primary);
}

.btn--invert:hover {
  opacity: 0.9;
}

.btn--invert-outline {
  border: 1px solid oklch(0.977 0.008 85 / 0.4);
  color: var(--primary-foreground);
}

.btn--invert-outline:hover {
  background-color: oklch(0.977 0.008 85 / 0.1);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background-color: oklch(0.977 0.008 85 / 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.site-header__brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.025em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.nav-toggle__close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
  display: inline;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  padding: 0.5rem 1.5rem 1.5rem;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  display: block;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 4rem;
  padding-bottom: 5rem;
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.25rem;
  line-height: 1.1;
}

.hero__intro {
  margin-top: 1rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero blockquote {
  margin-top: 2rem;
  border-left: 2px solid var(--accent);
  padding-left: 1.25rem;
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.5;
  color: oklch(0.245 0.018 145 / 0.8);
}

.hero blockquote footer {
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-style: normal;
  color: var(--muted-foreground);
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.portrait--hero {
  box-shadow: 0 1px 2px 0 oklch(0 0 0 / 0.05);
}

.figure--wide {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.figure--desk {
  margin-top: 2.5rem;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  display: none;
}

/* ---------- Über mich ---------- */
.about__grid {
  display: grid;
  gap: 3rem;
}

.section h2 {
  font-size: 1.875rem;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.facts {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.facts dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.facts dd {
  margin: 0.5rem 0 0;
  font-size: 1rem;
}

/* ---------- Angebote ---------- */
.section__intro {
  margin-top: 1.5rem;
  max-width: 42rem;
  font-size: 1rem;
  color: var(--muted-foreground);
}

.cards {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--card);
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.25rem;
  color: var(--card-foreground);
}

.card p {
  margin-top: 0.75rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.card__link {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-underline-offset: 4px;
}

.card__link:hover {
  text-decoration: underline;
}

/* ---------- THE MENTAL STUDIO ---------- */
.studio__grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

.studio__text {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
  opacity: 0.9;
}

/* ---------- Referenzen ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Weiße Kachel, weil einige Logos als JPG mit weißem Hintergrund vorliegen. */
  background-color: #fff;
}

.logo-tile img {
  max-height: 3.25rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  /* Dezente Angleichung der sehr unterschiedlichen Logo-Farbigkeiten. */
  filter: grayscale(1);
  opacity: 0.75;
  transition:
    filter 0.3s,
    opacity 0.3s;
}

.logo-tile:hover img {
  filter: none;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .logo-tile img {
    transition: none;
  }
}

/* ---------- Kontakt ---------- */
.contact__grid {
  display: grid;
  gap: 3rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__list li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.25rem;
}

.contact__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.contact__value {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.contact__value:hover {
  color: var(--primary);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--secondary-40);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- Rechtstexte ---------- */
.legal {
  padding-block: 4rem;
}

.legal h1 {
  font-size: 2.25rem;
}

.legal section {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.legal h2 {
  font-size: 1.25rem;
  color: var(--foreground);
}

.legal h3 {
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.legal h3:first-of-type {
  margin-top: 0;
}

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-list li {
  padding-left: 0.25rem;
}

.legal-source {
  font-size: 0.875rem;
}

.legal a {
  color: var(--primary);
}

.legal a:hover {
  text-decoration: underline;
}

/* ---------- 404 ---------- */
.error-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding-inline: 1rem;
  text-align: center;
}

.error-page h1 {
  font-size: 4.5rem;
  font-weight: 700;
}

.error-page h2 {
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.error-page p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Ohne JavaScript bleibt alles sichtbar. */
.no-js .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav,
  .mobile-nav.is-open {
    display: none;
  }

  .section {
    padding-block: 7rem;
  }

  .section--refs {
    padding-block: 6rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero__grid,
  .studio__grid,
  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__grid {
    grid-template-columns: 1fr 1.2fr;
  }

  .hero h1 {
    font-size: 3.75rem;
  }

  .hero__intro,
  .lead,
  .about__text,
  .section__intro,
  .studio__text {
    font-size: 1.125rem;
  }

  .section h2 {
    font-size: 2.25rem;
  }

  .figure--desk {
    display: block;
  }

  .legal {
    padding-block: 6rem;
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
