/* =========================================================
   Schlosskeller Südsteiermark — Onepager „Ein neues Kapitel“
   Auszug aus dem Relaunch-Designsystem (tokens/base/components)
   – Vito Extended (500/400) nur für Headlines
   – Vito 300/400/500 für alles andere, KEIN Bold
   – Flächen statt Rahmen, kein Radius auf Bildern/Flächen
   ========================================================= */

/* --- Fonts ------------------------------------------------ */
@font-face { font-family: 'Vito'; src: url('../fonts/Vito-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vito'; src: url('../fonts/Vito-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vito'; src: url('../fonts/Vito-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vito'; src: url('../fonts/Vito-LightItalic.woff2') format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Vito Extended'; src: url('../fonts/Vito-ExtendedRegular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Vito Extended'; src: url('../fonts/Vito-ExtendedMedium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

/* --- Tokens ----------------------------------------------- */
:root {
  --grey-900: #101828;
  --grey-800: #1D2939;
  --grey-700: #344054;
  --grey-600: #475467;
  --grey-500: #667085;
  --grey-400: #98A2B3;
  --grey-300: #D6DBE3;
  --grey-200: #EAECF0;
  --grey-100: #F2F4F7;

  --c-wirtshaus:    #780009;
  --c-gourmet-gold: #C6A15B;

  --bg:        #FFFFFF;
  --bg-alt:    var(--grey-100);
  --fg:        var(--grey-800);
  --fg-soft:   var(--grey-700);
  --fg-muted:  var(--grey-500);
  --line:      var(--grey-200);
  --line-data: var(--grey-300);
  --accent:        var(--grey-800);
  --accent-hover:  var(--grey-900);
  --accent-contrast: #FFFFFF;
  --overlay-rgb: 29, 41, 57;

  --font-body:    'Vito', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Vito Extended', 'Vito', 'Helvetica Neue', Arial, sans-serif;

  --fs-h1:      clamp(2.25rem, 6vw, 4.5rem);
  --fs-h2:      clamp(2rem, 4vw, 3.25rem);
  --fs-h3:      clamp(1.5rem, 2.4vw, 2rem);
  --fs-body:    1.125rem;
  --fs-small:   1rem;
  --fs-xsmall:  0.9375rem;
  --fs-eyebrow: 0.8125rem;
  --ls-h12: -0.005em;
  --ls-h36: -0.01em;
  --ls-caps: 0.06em;
  --lh-tight: 1.1;
  --lh-snug:  1.2;
  --lh-body:  1.5;

  --shell-w:   1280px;
  --content-w: 1248px;
  --text-w-md: 832px;
  --gutter: clamp(20px, 2.5vw, 32px);

  --sp-03: 16px; --sp-04: 24px; --sp-05: 32px; --sp-06: 40px;
  --sp-07: 48px; --sp-08: 56px; --sp-09: 64px; --sp-10: 80px; --sp-12: 120px;

  --radius-pill: 25px;
  --transition: 0.3s ease-in-out;
  --transition-slow: 0.8s ease-in-out;
  --header-h: 74px;

  --arrow-dark:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4M18 8h11M25 4l4 4-4 4' fill='none' stroke='%231D2939' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --arrow-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4M18 8h11M25 4l4 4-4 4' fill='none' stroke='%23FFFFFF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (max-width: 1023px) {
  :root {
    --sp-03: 12px; --sp-04: 16px; --sp-05: 24px; --sp-06: 30px;
    --sp-07: 32px; --sp-08: 42px; --sp-09: 48px; --sp-10: 60px; --sp-12: 90px;
    --header-h: 64px;
  }
}
@media (max-width: 767px) {
  :root {
    --sp-03: 10px; --sp-04: 14px; --sp-05: 20px; --sp-06: 24px;
    --sp-07: 28px; --sp-08: 36px; --sp-09: 40px; --sp-10: 52px; --sp-12: 72px;
  }
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
img, svg { display: block; max-width: 100%; height: auto; }
ul[class], ol[class] { list-style: none; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--fg); overflow-wrap: break-word; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); letter-spacing: var(--ls-h12); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); letter-spacing: var(--ls-h36); }

.eyebrow {
  display: block;
  font-family: var(--font-body); font-weight: 500;
  font-size: var(--fs-eyebrow); line-height: var(--lh-snug);
  text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--fg-muted);
}
/* Das „trifft“-Motiv */
.subline {
  display: block;
  font-family: var(--font-body); font-weight: 300; font-style: italic;
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  color: var(--fg-muted);
}

.typo p { margin: 0 0 var(--sp-03); }
.typo > :last-child { margin-bottom: 0; }
.typo p.lead { font-size: clamp(1.1875rem, 1.6vw, 1.375rem); line-height: 1.45; color: var(--fg); }
.typo strong { font-weight: 500; }
.typo a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.typo a:hover { color: var(--accent-hover); text-decoration-color: currentColor; }

.container    { max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter); }
.container-md { max-width: calc(var(--text-w-md) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section      { padding-block: var(--sp-10) var(--sp-12); }
.section-alt  { background: var(--bg-alt); }
.text-center  { text-align: center; }
.muted        { color: var(--fg-muted); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-contrast); }

/* --- Skip-Link -------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 3000;
  background: var(--accent); color: var(--accent-contrast);
  padding: 10px 18px; border-radius: var(--radius-pill); text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* --- Buttons (Pille + Pfeil-Slide) ------------------------ */
.btn {
  position: relative; display: inline-block;
  padding: 12.5px 44px 11.5px 20px;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1;
  text-decoration: none; text-align: center; cursor: pointer; white-space: nowrap;
  color: var(--accent-contrast); background: var(--accent);
  border: 1px solid var(--accent); border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn::before {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 16px; height: 16px; transform: translateY(-50%); overflow: hidden;
  background: var(--arrow-white) no-repeat right center / 200% 100%;
  transition: background var(--transition);
}
.btn:hover { background: transparent; color: var(--accent-hover); border-color: var(--accent-hover); }
.btn:hover::before { background-image: var(--arrow-dark); background-position: left center; }

.btn--outline { background: transparent; color: var(--accent); }
.btn--outline::before { background-image: var(--arrow-dark); }
.btn--outline:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn--outline:hover::before { background-image: var(--arrow-white); }

/* Text-Button (Tertiär) */
.btn-text {
  position: relative; display: inline-block; padding: 0 24px 0 0;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: var(--lh-body);
  color: var(--accent); text-decoration: none;
  transition: color var(--transition);
}
.btn-text::before {
  content: ''; position: absolute; right: 0; top: 50%;
  width: 16px; height: 16px; transform: translateY(-50%); overflow: hidden;
  background: var(--arrow-dark) no-repeat right center / 200% 100%;
  transition: background var(--transition);
}
.btn-text:hover { color: var(--accent-hover); }
.btn-text:hover::before { background-position: left center; }

/* --- Header (schlank, ohne Navigation) -------------------- */
.site-header { position: relative; z-index: 10; height: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); }
.site-header__inner {
  max-width: var(--shell-w); height: 100%; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-04);
}
.site-header__logo img { height: 38px; width: auto; }
@media (max-width: 480px) { .site-header__logo img { height: 30px; } }

/* --- Brief + Außenansicht ---------------------------------- */
.letter { padding-block: var(--sp-10) var(--sp-12); }
.letter__grid {
  max-width: var(--content-w); margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.letter__media { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--grey-200); }
.letter__media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 60%; }
.letter__inner { max-width: 680px; }
.letter__inner .eyebrow { margin-bottom: var(--sp-03); }
.letter__title {
  font-size: clamp(2.5rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.letter__inner .subline { margin-bottom: var(--sp-06); }
.letter__rule { width: 64px; height: 1px; border: 0; background: var(--line-data); margin: 0 0 var(--sp-06); }
.letter__text p {
  margin: 0 0 var(--sp-04);
  font-size: clamp(1.1875rem, 1.45vw, 1.3125rem); line-height: 1.55; color: var(--fg);
}
.letter__text .letter__salutation {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: var(--lh-snug); letter-spacing: var(--ls-h36);
}
.letter__text .letter__closing {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.625rem, 2.6vw, 2.25rem); line-height: var(--lh-snug); letter-spacing: var(--ls-h36);
  margin: var(--sp-06) 0 var(--sp-04);
}
.letter__text > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .letter { padding-block: var(--sp-05) var(--sp-10); }
  .letter__grid { grid-template-columns: 1fr; gap: var(--sp-07); }
  .letter__media { aspect-ratio: 3 / 2; }
  .letter__media img { object-position: center; }
  .letter__inner { max-width: 640px; margin-inline: auto; }
}

/* Einstieg */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.letter__media img { animation: fade 1.2s ease-in-out both; }
.letter__inner > * { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.letter__inner > :nth-child(2) { animation-delay: .1s; }
.letter__inner > :nth-child(3) { animation-delay: .2s; }
.letter__inner > :nth-child(4) { animation-delay: .3s; }
.letter__inner > :nth-child(5) { animation-delay: .4s; }
@media (prefers-reduced-motion: reduce) { .letter__media img, .letter__inner > * { animation: none; } }

/* --- Footer ----------------------------------------------- */
.site-footer { background: var(--bg-alt); color: var(--fg); }
.site-footer__inner {
  max-width: var(--shell-w); margin-inline: auto;
  padding: var(--sp-09) var(--gutter) var(--sp-10);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-05);
}
@media (max-width: 1023px) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__logo { grid-column: 1 / -1; } }
@media (max-width: 560px)  { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__logo img { width: min(240px, 80%); }
.site-footer h2 {
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-small);
  letter-spacing: 0; line-height: var(--lh-body); color: var(--fg); margin-bottom: var(--sp-03);
}
.site-footer p { font-size: var(--fs-small); color: var(--fg-muted); margin-bottom: var(--sp-03); }
.site-footer a { color: var(--fg-muted); text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--fg); }
.site-footer__bottom { border-top: 1px solid rgba(var(--overlay-rgb), 0.08); }
.site-footer__bottom-inner {
  max-width: var(--shell-w); margin-inline: auto; padding: var(--sp-04) var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--sp-04);
  font-size: var(--fs-xsmall); color: var(--fg-muted);
}

/* --- Textseite (Datenschutz) ------------------------------ */
.text-page { max-width: calc(var(--text-w-md) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.text-page h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: var(--lh-tight); letter-spacing: var(--ls-h12); margin-bottom: var(--sp-06); }
.text-page h2 { font-size: clamp(1.25rem, 1.7vw, 1.375rem); line-height: var(--lh-snug); margin: var(--sp-07) 0 var(--sp-03); }
.text-page .eyebrow { margin-bottom: var(--sp-03); }
.text-page p { color: var(--fg-soft); }
.text-page .back { margin-top: var(--sp-07); }
