/* ============================================================
   pauled.at — shared stylesheet
   Light parchment theme, self-hosted fonts, no third-party calls
   ============================================================ */

/* ---------- Self-hosted fonts (run fetch-fonts.sh once) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --bg:        #f6f1e7;
  --bg-2:      #fbf7ee;
  --bg-3:      #ffffff;
  --line:      rgba(26, 38, 32, 0.08);
  --line-2:    rgba(26, 38, 32, 0.16);

  --ink:       #1a2620;
  --ink-dim:   #4a5a52;
  --ink-muted: #8a9089;

  --moss:      #04492e;
  --moss-2:    #0a6b45;
  --moss-3:    #1a8c61;
  --copper:    #c45a1c;
  --copper-2:  #e07535;

  --serif:     "Fraunces", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 30px 60px -22px rgba(26, 38, 32, 0.22), 0 10px 28px -12px rgba(26, 38, 32, 0.12);
  --shadow-sm: 0 4px 14px -4px rgba(26, 38, 32, 0.10);

  --max: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Grain overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.35 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
body::after {
  content: "";
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 45% at 12% 8%, rgba(4, 73, 46, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 88% 75%, rgba(196, 90, 28, 0.10), transparent 60%);
}

/* ---------- Reusable ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--copper);
  display: inline-block;
}
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(246, 241, 231, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}
.brand img {
  width: 72px; height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(26, 38, 32, 0.15));
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-text .sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--ink);
  background: var(--line);
}
.nav-links .cta {
  color: var(--copper);
  border: 1px solid rgba(196, 90, 28, 0.4);
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 12px;
}
.nav-links .cta:hover {
  background: rgba(196, 90, 28, 0.10);
  color: var(--copper-2);
}
.hamburger {
  display: none;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  width: 44px; height: 44px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}
.hamburger span {
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform 0.3s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 170px 0 100px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-text .eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 300;
  letter-spacing: -0.035em;
  margin-bottom: 32px;
  color: var(--ink);
}
.hero h1 em { font-style: italic; font-weight: 400; color: var(--copper); }
.hero h1 .accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--moss);
}
.quote {
  border-left: 2px solid var(--copper);
  padding: 4px 0 4px 22px;
  margin-top: 36px;
  max-width: 460px;
}
.quote p {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}
.quote cite {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-style: normal;
}

.hero-photo {
  position: relative;
  aspect-ratio: 1036 / 964;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(160deg, #e8e0cf, #d9cfbb);
  border: 1px solid var(--line);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 70%, transparent 40%, rgba(26, 38, 32, 0.08) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.photo-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* ---------- Section header ---------- */
.section { padding: 100px 0; position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: clamp(36px, 4.5vw, 62px);
  font-weight: 300;
}
.section-head h2 em { font-style: italic; color: var(--copper); font-weight: 400; }
.section-head .desc {
  max-width: 340px;
  color: var(--ink-dim);
  font-size: 15px;
}
.section-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

/* ---------- Was cards ---------- */
.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow);
}
.card-img { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 22px 20px; }
.card-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--copper);
  margin-bottom: 10px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; line-height: 1.25; }
.card p { color: var(--ink-dim); font-size: 14px; line-height: 1.55; }

/* ---------- Interessen strip ---------- */
.strip {
  background: linear-gradient(180deg, transparent, rgba(4, 73, 46, 0.04), transparent);
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.strip-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 16px;
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s, box-shadow 0.3s;
  position: relative;
}
.strip-item:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.strip-item a { display: block; color: inherit; }
.strip-item .thumb {
  width: 84px; height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s;
  box-shadow: var(--shadow-sm);
}
.strip-item:hover .thumb { transform: scale(1.08); }
.strip-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-item .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.strip-item:hover .label,
.strip-item a:hover .label { color: var(--moss); }

/* ---------- Wo / Location card ---------- */
.location-card {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  position: relative;
}
.location-visual {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(4, 73, 46, 0.05), transparent 70%),
    linear-gradient(135deg, #f1eadc, #ede4d2);
  border-right: 1px solid var(--line);
  color: var(--ink);
  overflow: hidden;
}
.location-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 38, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 38, 32, 0.04) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.location-visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}
.location-info {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-row { margin-bottom: 22px; }
.location-row:last-of-type { margin-bottom: 28px; }
.location-row .key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.location-row .val {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
}
.location-row .val.coords {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}
.osm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  background: var(--moss);
  color: #fff !important;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--moss);
}
.osm-btn:hover {
  background: var(--moss-2);
  border-color: var(--moss-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.osm-btn svg {
  width: 14px; height: 14px;
  transition: transform 0.3s;
}
.osm-btn:hover svg { transform: translate(2px, -2px); }

.map-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.map-meta-item {
  padding: 22px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}
.map-meta-item .key {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.map-meta-item .val {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.map-meta-item a { color: var(--copper); transition: color 0.2s; }
.map-meta-item a:hover { color: var(--copper-2); }

/* ---------- Footer ---------- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot .left { display: flex; align-items: center; gap: 16px; }
.foot img { width: 52px; height: 52px; opacity: 0.85; }
.foot .copy {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot .links a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.2s;
}
.foot .links a:hover { color: var(--copper); }

/* ---------- To-top button ---------- */
.to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--moss);
  border: 1px solid var(--moss-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, background 0.3s;
  z-index: 40;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.to-top.visible { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--moss-2); transform: translateY(-2px); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Legal pages (impressum, datenschutz)
   ============================================================ */
.legal-page { padding: 160px 0 60px; }
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content .section-num { margin-bottom: 18px; }
.legal-content h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.03em;
  margin-bottom: 48px;
  color: var(--ink);
}
.legal-content h1 em { font-style: italic; color: var(--copper); font-weight: 400; }
.legal-content h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--ink);
}
.legal-content h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-top: 32px;
  margin-bottom: 10px;
}
.legal-content p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal-content p strong { color: var(--ink); font-weight: 500; }
.legal-content a { color: var(--copper); transition: color 0.2s; }
.legal-content a:hover { color: var(--copper-2); }
.legal-content ul {
  margin: 0 0 16px 0;
  padding-left: 20px;
  color: var(--ink-dim);
}
.legal-content ul li {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.legal-content .info-block {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.legal-content .info-block p { margin-bottom: 6px; color: var(--ink); }
.legal-content .info-block p:last-child { margin-bottom: 0; }
.legal-content .info-block .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  display: block;
}
.legal-content .updated {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 140px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 500px; margin: 0 auto; }
  .strip-grid { grid-template-columns: repeat(3, 1fr); }
  .map-meta { grid-template-columns: 1fr; }
  .location-card { grid-template-columns: 1fr; }
  .location-visual {
    aspect-ratio: 2.4 / 1;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .location-info { padding: 32px 28px; }
  .section { padding: 70px 0; }
  .section-head { margin-bottom: 40px; }

  .brand img { width: 60px; height: 60px; }
  .brand-text .name { font-size: 18px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 90px;
    left: 0; right: 0;
    background: rgba(246, 241, 231, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 20px var(--pad);
    gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-links .cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .legal-page { padding: 130px 0 40px; }
}
@media (max-width: 600px) {
  .what-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text .sub { display: none; }
  .brand img { width: 52px; height: 52px; }
  .foot { justify-content: center; text-align: center; }
  .foot .links { justify-content: center; }
}
