/* ============================================
   SHARED STYLES for subpages (impressum, datenschutz, agb, angebot)
   Matches index.html design system
   ============================================ */

:root {
  --bg:        #F6F1E8;
  --bg-warm:   #EFE7D9;
  --bg-dark:   #14130F;
  --bg-cream:  #FBF7EF;
  --text:      #14130F;
  --text-mute: #6B6457;
  --accent:    #9C8A5E;
  --accent-dk: #7E6E47;
  --accent-lt: #C4B388;
  --blush:     #E9D6C5;
  --blush-dp:  #DCC2AB;
  --stone:     #A89F94;
  --stone-lt:  #D6CFC4;
  --line:      #D8D0C2;

  --font-display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-script:  "Cormorant Garamond", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1440px;
  --gutter: clamp(20px, 5vw, 96px);
  --soft: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --med:  500ms cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 280ms ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 1080px; }
.container--text { max-width: 820px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
.display {
  font-family: var(--font-display);
  font-weight: 350;
  letter-spacing: -0.018em;
  line-height: 1.05;
}
.display--xl { font-size: clamp(56px, 8.5vw, 140px); }
.display--lg { font-size: clamp(44px, 6.4vw, 96px); }
.display--md { font-size: clamp(32px, 4.4vw, 68px); }
.display--sm { font-size: clamp(24px, 2.8vw, 36px); }
.script { font-family: var(--font-script); font-style: italic; font-weight: 400; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.eyebrow--light { color: rgba(246, 241, 232, 0.78); }

.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.6; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(246, 241, 232, 0.94);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: padding var(--fast);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; line-height: 1; }
.nav__logo { height: clamp(48px, 4vw, 56px); width: auto; }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
}
.nav__link::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--fast);
}
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  background: var(--text); color: var(--bg);
  padding: 14px 24px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  transition: background var(--fast);
}
.nav__cta:hover { background: var(--accent-dk); }
.nav__toggle { display: none; width: 40px; height: 40px; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 1px; background: currentColor; margin: 7px auto; transition: transform var(--fast), opacity var(--fast); }
.nav__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--bg-dark); color: var(--bg);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateY(-100%); transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
    padding: 80px var(--gutter);
    z-index: 99;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__link { font-size: 22px; letter-spacing: 0.12em; color: var(--bg); font-family: var(--font-display); font-weight: 350; text-transform: none; }
  .nav__link::after { display: none; }
}

/* ============================================
   PAGE HEADER (sub-hero)
   ============================================ */
.page-hero {
  padding-top: 180px;
  padding-bottom: clamp(60px, 8vw, 120px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero__eyebrow { display: block; margin-bottom: 28px; }
.page-hero h1 {
  margin-bottom: 24px;
}
.page-hero__lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-mute);
  max-width: 640px;
}
.page-hero__divider {
  width: 56px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

/* ============================================
   CONTENT (legal text)
   ============================================ */
.legal {
  padding: clamp(60px, 8vw, 120px) 0;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.legal h2:first-child { margin-top: 0; }
.legal h2 em { font-style: italic; color: var(--accent-dk); }

.legal h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.legal p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.legal p.body--mute, .legal .mute { color: var(--text-mute); }

.legal a {
  color: var(--accent-dk);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: color var(--fast), border-color var(--fast);
}
.legal a:hover { color: var(--text); border-color: var(--text); }

.legal ul, .legal ol {
  margin: 8px 0 24px 24px;
}
.legal li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
  color: var(--text);
}

.legal__divider {
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

.legal__contact-card {
  background: var(--bg-warm);
  padding: clamp(24px, 4vw, 40px);
  margin: 32px 0;
}
.legal__contact-card p { margin-bottom: 8px; }
.legal__contact-card p:last-child { margin-bottom: 0; }
.legal__contact-card strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 19px;
  color: var(--text);
  display: block;
  margin-bottom: 12px;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--text);
  margin-top: 48px;
  transition: gap var(--fast), color var(--fast);
}
.legal__back:hover { gap: 18px; color: var(--accent-dk); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 72px 0 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(168, 159, 148, 0.2);
}
.footer__brand img { height: 100px; width: auto; margin-bottom: 24px; }
.footer__brand-sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 28px;
}
.footer__brand-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: rgba(246, 241, 232, 0.78);
  max-width: 320px;
}
.footer__col h4 {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 24px;
}
.footer__col ul { list-style: none; }
.footer__col li { margin-bottom: 12px; font-size: 14px; }
.footer__col a {
  color: rgba(246, 241, 232, 0.78);
  transition: color var(--fast);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.footer__col a:hover { color: var(--bg); border-bottom-color: var(--accent); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  color: var(--text-mute);
}
.footer__bottom a { color: var(--text-mute); transition: color var(--fast); }
.footer__bottom a:hover { color: var(--accent-lt); }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

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