/* ==========================================================================
   Auszeit by Sophie Krines – Stylesheet
   Handgeschriebener Ersatz fuer den frueheren Tailwind-Build.
   Aufbau: 1 Tokens · 2 Reset · 3 Typografie · 4 Layout · 5 Komponenten
           6 Seiten · 7 Animationen
   ========================================================================== */

/* 1 — Design-Tokens ------------------------------------------------------- */

:root {
  --background: oklch(0.9396 0.0051 48.6841);
  --foreground: oklch(0.2046 0 0);
  --primary: oklch(0.6336 0.0244 58.5655);
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(0.8621 0.0095 52.0823);
  --muted-foreground: oklch(0.361 0.0014 17.2213);
  --border: oklch(0.8621 0.0095 52.0823);
  --ring: oklch(0.6336 0.0244 58.5655);

  --font-sans: "Louis George Cafe", ui-sans-serif, sans-serif, system-ui;

  --shadow-xs: 0 4px 10px 0 hsl(240 30% 25% / 0.06);

  /* Layout */
  --container-max: 64rem;
  --container-padding: 1.5rem;

  /* Bewegung */
  --reveal-duration: 800ms;
  --reveal-distance: 100px;
  --fade-duration: 700ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* Schrift lokal eingebunden – keine externen Requests (DSGVO) */

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Light"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-300-normal.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-300-normal.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Light Italic"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-300-italic.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-300-italic.woff") format("woff");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Regular"), local("Louis George Cafe"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-400-normal.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-400-normal.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Regular Italic"), local("Louis George Cafe Italic"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-400-italic.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-400-italic.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Bold"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-700-normal.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-700-normal.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Louis George Cafe";
  src: local("Louis George Cafe Bold Italic"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-700-italic.woff2") format("woff2"),
    url("../../fonts/louis-george-cafe/louis-george-cafe-700-italic.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* 2 — Reset -------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
  outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

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

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  vertical-align: middle;
}

img,
video {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

address {
  font-style: normal;
}

/* 3 — Typografie --------------------------------------------------------- */

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

h1 {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
}

h1:not(:first-child) {
  margin-top: 4rem;
}

h2 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

h2:not(:first-child) {
  margin-top: 3rem;
}

h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: calc(1.75 / 1.25);
}

h3:not(:first-child) {
  margin-top: 2rem;
}

/* h4 bleibt bewusst unformatiert (Fliesstext-Groesse, ohne Abstaende) */

p {
  margin-block: 0.5rem;
}

@media (min-width: 48rem) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.5rem;
    line-height: calc(2 / 1.5);
  }
}

/* Hilfsklassen */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

.text-fine {
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
}

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

/* 4 — Layout ------------------------------------------------------------- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin-inline: auto;
}

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--container-padding);
}

@media (min-width: 48rem) {
  .container {
    padding: 2rem;
  }
}

.site-header__inner {
  display: flex;
  justify-content: center;
}

.site-logo {
  width: auto;
  height: 12rem;
}

@media (min-width: 40rem) {
  .site-logo {
    height: 14rem;
  }
}

@media (min-width: 48rem) {
  .site-logo {
    height: 16rem;
  }
}

.site-main {
  flex: 1 1 0%;
  margin-inline: auto;
}

.site-footer {
  margin-top: 4rem;
}

@media (min-width: 40rem) {
  .site-footer {
    margin-top: 8rem;
  }
}

.site-footer__inner {
  overflow: hidden;
}

.footer {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: calc(1 / 0.75);
  text-align: center;
}

.footer__nav {
  margin-block: 0.5rem;
}

.footer__meta {
  color: color-mix(in oklab, var(--muted-foreground) 70%, transparent);
}

.footer__separator {
  display: none;
}

@media (min-width: 48rem) {
  .footer__separator {
    display: inline;
  }
}

/* 5 — Komponenten -------------------------------------------------------- */

/* Button (frueher shadcn-Button, Variante "default", Groesse "lg") */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  height: 4rem;
  padding-inline: 2.5rem;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-xs);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  outline: none;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 150ms cubic-bezier(0.4, 0, 0.2, 1), transform 200ms var(--ease-out);
}

.button:hover {
  background-color: color-mix(in oklab, var(--primary) 90%, transparent);
  transform: scale(1.05);
}

.button:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent),
    var(--shadow-xs);
}

.button svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

/* Badge-Ueberschrift (Blob-Signet mit Titel darueber) */

.badge-headline {
  position: relative;
  display: block;
  margin-bottom: 4rem;
}

.badge-headline--spaced {
  padding-top: 4rem;
}

.badge-headline__inner {
  position: relative;
  display: flex;
  justify-content: center;
  margin-block: 2rem;
}

.badge-headline__media {
  width: 8rem;
}

.badge-headline__media img {
  width: 100%;
}

.badge-headline__title {
  position: absolute;
  top: 0;
  right: 0;
  left: 2rem;
  margin-top: 4rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (min-width: 40rem) {
  .badge-headline__media {
    width: 10rem;
  }

  .badge-headline__title {
    top: 0.5rem;
    left: 3rem;
    font-size: 1.875rem;
  }
}

@media (min-width: 48rem) {
  .badge-headline__media {
    width: 15rem;
  }

  .badge-headline__title {
    top: 1rem;
    left: 4rem;
    font-size: 2.25rem;
  }
}

/* Zweispaltige Reihe: Text links, Bild rechts */

.split {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.split--between {
  justify-content: space-between;
}

.split__text {
  width: 100%;
}

@media (min-width: 48rem) {
  .split {
    flex-direction: row;
    gap: 4rem;
  }

  .split__text {
    width: 75%;
  }
}

/* 6 — Seiten ------------------------------------------------------------- */

/* Startseite */

.intro {
  margin-block: 2rem;
}

.intro__sign {
  margin-top: 2rem;
}

.actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .actions {
    flex-direction: row;
  }
}

.contact {
  margin-block: 1rem;
}

.contact__stage {
  position: relative;
  overflow: hidden;
}

.contact__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  scale: 1.5;
}

@media (min-width: 40rem) {
  .contact__backdrop img {
    scale: 1;
  }
}

.contact__body {
  position: relative;
  z-index: 10;
  margin: 1.5rem;
  margin-top: 10rem;
  padding: 2rem;
}

.contact__phone {
  font-size: 1.25rem;
  line-height: calc(1.75 / 1.25);
  font-weight: 600;
}

.contact__hint {
  font-size: 1rem;
  line-height: 1.5;
}

@media (min-width: 40rem) {
  .contact__phone {
    font-size: 1.5rem;
    line-height: calc(2 / 1.5);
  }

  .contact__hint {
    font-size: 1.125rem;
    line-height: calc(1.75 / 1.125);
  }
}

.contact__address {
  margin-block: 4rem;
}

/* Vita */

.vita-list {
  margin-block: 2rem;
}

.vita-list__item {
  display: flex;
  flex-direction: column;
  padding-bottom: 0.75rem;
}

.vita-list__item:not(:last-child) {
  border-bottom: 1px solid var(--secondary);
}

.vita-list dt {
  margin-block: 0.5rem;
}

@media (min-width: 48rem) {
  .vita-list dt {
    font-size: 1.125rem;
    line-height: calc(1.75 / 1.125);
  }
}

.portrait {
  width: 10rem;
  height: 10rem;
  border-radius: 9999px;
  object-fit: cover;
  filter: grayscale(1);
}

.quote-wrap {
  display: flex;
  justify-content: center;
}

.quote {
  width: 75%;
  color: var(--primary);
  font-size: 1.125rem;
  font-style: italic;
  font-weight: 700;
  line-height: calc(1.75 / 1.125);
  text-align: center;
}

.spaced-top {
  margin-top: 1.5rem;
}

.spaced-block {
  margin-block: 1.5rem;
}

/* 7 — Animationen -------------------------------------------------------- */
/* Ohne JavaScript ist alles sofort sichtbar. Die Startzustaende greifen erst,
   wenn das Inline-Snippet im <head> die Klasse "js" gesetzt hat. */

.js [data-fade] {
  opacity: 0;
  transition: opacity var(--fade-duration) var(--ease-out);
}

.js [data-fade].is-visible {
  opacity: 1;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  transition: opacity var(--reveal-duration) var(--ease-out),
    transform var(--reveal-duration) var(--ease-out);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js [data-fade],
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button {
    transition: background-color 150ms linear;
  }

  .button:hover {
    transform: none;
  }
}
