/* ==========================================================================
   Soulandra · hope by Alex
   Mobile first. Schriften lokal, keine externen Ressourcen.
   ========================================================================== */

/* ---------- Schriften (SIL Open Font License, siehe assets/fonts) ---------- */

@font-face {
  font-family: "Alex Brush";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/alex-brush-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin-wght-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Figtree";
  font-style: italic;
  font-weight: 300 900;
  font-display: swap;
  src: url("assets/fonts/figtree-latin-wght-italic.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */

:root {
  --color-bg: #f7f1e9;
  --color-bg-alt: #efe6da;
  --color-surface: #fcf9f5;
  --color-text: #4b3b35;
  --color-text-muted: #6a5850;
  --color-accent: #8b5744;
  --color-accent-hover: #70442f;
  --color-terra: #a76d58;
  --color-gold: #bb9872;
  --color-line: #e3d6c7;
  --color-hero-gold: #e6bd8b;
  --color-hero-text: #fff4e6;
  --color-footer-bg: #3e322b;
  --color-footer-text: #f3ebe2;
  --color-footer-muted: #c9b9aa;

  --font-script: "Alex Brush", "Brush Script MT", cursive;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --fs-small: 0.875rem;
  --fs-h2: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
  --fs-h3: clamp(1.5rem, 1.35rem + 0.6vw, 1.75rem);

  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --container: 72rem;
  --measure: 40rem;
  --section-space: clamp(4.5rem, 3rem + 7vw, 8.5rem);
  --header-h: 4rem;

  --radius: 0.875rem;
  --shadow-soft: 0 1px 2px rgb(75 59 53 / 0.04), 0 14px 34px -14px rgb(75 59 53 / 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Basis ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}

p {
  margin: 0 0 1.25em;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

strong {
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--color-hero-gold);
  color: var(--color-text);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Layout ---------- */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--measure);
}

.section {
  padding-block: var(--section-space);
}

.section--alt {
  background: var(--color-bg-alt);
}

.center {
  text-align: center;
}

/* ---------- Header & Navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(247 241 233 / 0.92);
  border-bottom: 1px solid var(--color-line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-right: auto;
  padding-block: 0.25rem;
  line-height: 1;
  text-decoration: none;
}

.brand-name {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1;
}

.brand-tagline {
  margin-top: 0.1rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--color-accent);
}

.lang-switch {
  order: 2;
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--color-terra);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font: 600 0.75rem/1 var(--font-sans);
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.lang-switch:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.nav-toggle {
  order: 3;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 1.375rem;
  height: 1.5px;
  margin-left: -0.6875rem;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}

.nav-toggle-bar {
  top: 50%;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  left: 0;
  margin-left: 0;
}

.nav-toggle-bar::before {
  transform: translateY(-0.4375rem);
}

.nav-toggle-bar::after {
  transform: translateY(0.4375rem);
}

.is-open .nav-toggle-bar {
  background: transparent;
}

.is-open .nav-toggle-bar::before {
  transform: rotate(45deg);
}

.is-open .nav-toggle-bar::after {
  transform: rotate(-45deg);
}

/* Mobile: ausklappbares Panel */
.site-nav {
  position: absolute;
  top: 100%;
  left: calc(-1 * var(--gutter));
  right: calc(-1 * var(--gutter));
  padding: 0.5rem var(--gutter) 1.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 24px 40px -24px rgb(75 59 53 / 0.25);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-0.5rem);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
}

.is-open .site-nav {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav li:last-child a {
  border-bottom: 0;
}

.site-nav a:hover,
.site-nav a.is-active,
.site-nav a[aria-current="page"] {
  color: var(--color-accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(32rem, 88vh, 60rem);
  min-height: clamp(32rem, 88svh, 60rem);
  padding: 5rem var(--gutter);
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: #6b4a3b;
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
  object-position: center 51%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(36 28 24 / 0.14) 0%, rgb(35 24 18 / 0.3) 55%, rgb(35 24 18 / 0.55) 100%);
}

.hero-title {
  margin: 0;
  padding: 0 0.08em;
  font-family: var(--font-script);
  font-size: clamp(4rem, 21vw, 8.125rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  color: var(--color-hero-gold);
  text-shadow: 0 3px 12px rgb(31 19 13 / 0.78), 0 0 28px rgb(31 19 13 / 0.36);
}

.hero-subtitle {
  margin: 0 0 1.75rem;
  padding-left: 0.25em;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 0.8rem + 0.8vw, 1.3rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--color-hero-text);
  text-shadow: 0 2px 8px #21150e;
}

.hero-quote {
  max-width: 34rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1rem + 2vw, 2.125rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--color-hero-text);
  text-shadow: 0 2px 14px rgb(31 19 13 / 0.7);
  text-wrap: balance;
}

/* ---------- Abschnittsköpfe ---------- */

.section-head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 7.5rem;
  margin: 1.75rem auto 0;
  color: var(--color-gold);
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid currentColor;
}

.divider span {
  width: 0.375rem;
  height: 0.375rem;
  background: currentColor;
  transform: rotate(45deg);
}

/* ---------- Fließtext ---------- */

.prose {
  max-width: var(--measure);
  margin-inline: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

.prose p:last-child {
  margin-bottom: 0;
}

.statement {
  margin-block: 2rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.25rem + 1vw, 1.875rem);
  line-height: 1.35;
  text-align: center;
  color: var(--color-accent);
  -webkit-hyphens: manual;
  hyphens: manual;
}

.statement strong {
  font-weight: 600;
}

.statement--lead {
  margin-top: 0;
}

.signature {
  margin-top: 2.25rem;
  font-family: var(--font-script);
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--color-accent);
}

.signature em {
  font-style: normal;
}

.intro {
  max-width: var(--measure);
  margin: 0 auto;
  text-align: center;
  color: var(--color-text-muted);
}

/* ---------- Karten ---------- */

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

.card {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card::before {
  content: "";
  display: block;
  width: 2.5rem;
  margin-bottom: 1.25rem;
  border-top: 1px solid var(--color-gold);
}

.card-title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.2;
}

.card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* ---------- Zitat ---------- */

.pullquote {
  max-width: 44rem;
  margin: 3.5rem auto 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.2rem + 2vw, 2.5rem);
  font-style: italic;
  line-height: 1.35;
  text-align: center;
  color: var(--color-accent);
}

.pullquote + .signature,
.signature.center {
  margin-top: 0.5rem;
  text-align: center;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin-top: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}

.button:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgb(75 59 53 / 0.5);
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3.5rem 2.5rem;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: var(--fs-small);
  text-align: center;
}

.footer-brand {
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.footer-brand .brand-name {
  display: block;
  font-size: 2.5rem;
  color: var(--color-hero-gold);
}

.footer-brand .brand-tagline {
  color: var(--color-footer-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding-block: 0.5rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--color-hero-gold);
  border-bottom-color: currentColor;
}

.site-footer :focus-visible {
  outline-color: var(--color-hero-gold);
}

.footer-note {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(243 235 226 / 0.14);
  font-size: 0.8125rem;
  color: var(--color-footer-muted);
}

/* ---------- Rechtliche Seiten ---------- */

.legal {
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6rem) var(--section-space);
}

.legal .section-head {
  margin-bottom: 2.5rem;
}

.legal-title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.12;
}

.legal h2 {
  margin: 2.75rem 0 0.75rem;
  font-family: var(--font-serif);
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.25;
}

.legal ul {
  margin: 0 0 1.25em;
  padding-left: 1.25rem;
}

.legal li + li {
  margin-top: 0.35em;
}

.note {
  padding: 1.25rem 1.5rem;
  border: 1px dashed var(--color-terra);
  border-radius: var(--radius);
  background: #fff9f1;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.note p {
  margin: 0.75em 0 0;
}

.placeholder {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: #f3e3cf;
  color: var(--color-accent-hover);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
}

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

/* ---------- 404 ---------- */

.error-page {
  display: grid;
  place-items: center;
  min-height: 70vh;
  min-height: 70svh;
  text-align: center;
}

.error-page .section-head {
  margin-bottom: 2rem;
}

.error-subtitle {
  margin: 0.5rem 0 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  font-style: italic;
  color: var(--color-text-muted);
}

.error-page p {
  max-width: 32rem;
  margin-inline: auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

.button-row .button {
  margin-top: 0;
}

.button--ghost {
  background: transparent;
  color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-terra);
}

.button--ghost:hover {
  color: #fff;
}

/* ---------- Ohne JavaScript: Navigation offen anzeigen ---------- */

@media (scripting: none) {
  .nav-toggle {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav {
    position: static;
    width: 100%;
    padding: 0 0 0.75rem;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
  }

  .site-nav a {
    padding: 0.25rem 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: var(--fs-small);
  }
}

/* ---------- Ab 600px ---------- */

@media (min-width: 37.5rem) {
  .hero-title {
    font-size: clamp(6.5rem, 17vw, 13.75rem);
  }

  .hero-subtitle {
    margin: -0.375rem 0 2.5rem;
    padding-left: 0.38em;
    letter-spacing: 0.38em;
  }

  .statement {
    text-align: left;
  }
}

/* ---------- Ab 900px ---------- */

@media (min-width: 56.25rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .card {
    padding: 2.5rem 2rem 2.25rem;
  }
}

/* ---------- Desktop-Navigation ab 1000px ---------- */

@media (min-width: 62.5rem) {
  :root {
    --header-h: 4.75rem;
  }

  .nav-toggle {
    display: none;
  }

  .header-inner {
    gap: 2rem;
  }

  .site-nav {
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
  }

  .site-nav a {
    position: relative;
    padding: 0.5rem 0;
    border: 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.2rem;
    border-top: 1px solid currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
  }

  .site-nav a:hover::after,
  .site-nav a.is-active::after,
  .site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .brand-name {
    font-size: 2.25rem;
  }
}

/* ---------- Reduzierte Bewegung ---------- */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Druck ---------- */

@media print {
  .site-header,
  .skip-link,
  .site-nav,
  .hero-media,
  .hero::after {
    display: none;
  }

  .hero {
    min-height: 0;
    padding-block: 2rem;
    background: none;
    color: var(--color-text);
  }

  .hero-title,
  .hero-subtitle,
  .hero-quote {
    color: var(--color-text);
    text-shadow: none;
  }
}
