/* ============================================
   UnserTakt — Design Tokens & Stylesheet
   Brand: Warm, organic, handmade, familial
   ============================================ */

/* --- Fonts (self-hosted, no external requests) --- */

/* Montserrat — latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat — latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/montserrat-latin.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Montserrat Italic — latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Montserrat Italic — latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/montserrat-italic-latin.woff2') format('woff2');
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Nourd — fallback to Georgia if not available */
/* Mistrully — logo is image-based, fallback for any text use */

/* --- Design Tokens (CSS Custom Properties) --- */
:root {
  /* Colors */
  --color-pergament: #EDE7DF;
  --color-leinen: #F5F1EB;
  --color-sand: #E2DAD0;
  --color-aquarell: #D9CBBF;
  --color-tinte: #0F0F0D;
  --color-dunkelbraun: #2A2520;
  --color-staub: #7A7168;
  --color-warmweiss: #FDFAF7;

  /* Spacing */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Typography */
  --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
  --font-serif: 'Georgia', 'Times New Roman', serif;

  /* Sizes */
  --text-caption: 0.8125rem;   /* 13px */
  --text-body: 0.9375rem;      /* 15px */
  --text-label: 0.625rem;      /* 10px */
  --text-sub: 1.25rem;         /* 20px */

  /* Max width */
  --max-width: 720px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-dunkelbraun);
  background-color: var(--color-pergament);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Paper Texture Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
}

/* --- Layout --- */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.content {
  max-width: var(--max-width);
  width: 100%;
  text-align: center;
  padding: 0 var(--space-l);
}

/* --- Logo Banner --- */
.logo-banner {
  margin-bottom: var(--space-xl);
  width: 100%;
}

.logo-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Tagline --- */
.tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-label);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-staub);
  margin-bottom: var(--space-2xl);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 1px;
  background-color: var(--color-aquarell);
  margin: 0 auto var(--space-xl);
}

/* --- About Text --- */
.about {
  max-width: 520px;
  margin: 0 auto var(--space-2xl);
}

.about p {
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-dunkelbraun);
  margin-bottom: var(--space-l);
}

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

/* --- Quote / Claim --- */
.claim {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-staub);
  max-width: 440px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
}

/* --- Social Links --- */
.social {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.social a {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-label);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-staub);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.social a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-tinte);
  transition: width 0.3s ease;
}

.social a:hover {
  color: var(--color-tinte);
}

.social a:hover::after {
  width: 100%;
}

/* --- Contact --- */
.contact {
  margin-bottom: var(--space-xl);
}

.contact a {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--text-caption);
  color: var(--color-staub);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.contact a:hover {
  color: var(--color-tinte);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding: var(--space-l);
  text-align: center;
}

.footer p {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--color-staub);
  letter-spacing: 0.1em;
}

.footer-links {
  margin-top: var(--space-s);
  display: flex;
  justify-content: center;
  gap: var(--space-l);
}

.footer-links a {
  font-size: 0.6875rem;
  font-weight: 300;
  color: var(--color-staub);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-tinte);
}

/* --- Legal Pages --- */
.legal {
  text-align: left;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.legal-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-tinte);
  text-align: center;
  margin-bottom: var(--space-m);
  padding: var(--space-l);
}

.legal .divider {
  margin-bottom: var(--space-2xl);
}

.legal-body h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-body);
  color: var(--color-tinte);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-s);
}

.legal-body h3 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  color: var(--color-dunkelbraun);
  margin-top: var(--space-l);
  margin-bottom: var(--space-xs);
}

.legal-body h4 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-caption);
  font-style: italic;
  color: var(--color-staub);
  margin-top: var(--space-m);
  margin-bottom: var(--space-xs);
}

.legal-body p {
  font-size: var(--text-caption);
  line-height: 1.7;
  color: var(--color-dunkelbraun);
  margin-bottom: var(--space-m);
}

.legal-body ul {
  font-size: var(--text-caption);
  color: var(--color-dunkelbraun);
  margin-bottom: var(--space-m);
  padding-left: var(--space-l);
  line-height: 1.7;
}

.legal-body .legal-emphasis {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-tinte);
  background-color: var(--color-leinen);
  padding: var(--space-m);
  margin-bottom: var(--space-m);
}

.legal-body .legal-source {
  margin-top: var(--space-xl);
  font-size: 0.6875rem;
  color: var(--color-staub);
}

.legal-body a {
  color: var(--color-staub);
  text-decoration: none;
  transition: color 0.3s ease;
}

.legal-body a:hover {
  color: var(--color-tinte);
}

.legal-back {
  margin-top: var(--space-2xl);
  text-align: center;
}

.legal-back a {
  font-size: var(--text-caption);
  font-weight: 400;
  color: var(--color-staub);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.3s ease;
}

.legal-back a:hover {
  color: var(--color-tinte);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .content {
    padding: 0 var(--space-m);
  }

  .about p {
    font-size: var(--text-caption);
  }

  .social {
    flex-direction: column;
    gap: var(--space-m);
  }

  .claim {
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .claim {
    font-size: 0.9375rem;
  }
}
