/*
Theme Name: Schloss Thurn
Theme URI: https://schloss-thurn.de
Description: Custom Theme für den Erlebnispark Schloss Thurn - Block Editor basiert
Author: gestalträume
Author URI: https://gestaltraeume.de
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.1
License: Proprietary
Text Domain: schloss-thurn
*/

/* ── CSS Custom Properties (Design-Token) ── */
:root {
  /* Hauptfarben (aus Gestaltungsleitfaden) */
  --st-color-dark-green: #1F4D3A;
  --st-color-dark-red: #9B2335;
  --st-color-light-yellow: #F2D882;
  /* Abgeleitete Töne */
  --st-color-light-yellow-bg: #F7EDCC;
  --st-color-light-yellow-blob: rgba(242, 216, 130, 0.35);
  --st-color-light-green-blob: rgba(77, 122, 46, 0.15);
  --st-color-lachs-blob: rgba(232, 166, 138, 0.2);
  /* Zusatzfarben */
  --st-color-light-green: #4a7a3a;
  --st-color-purple: #7a6aaa;
  --st-color-gold: #c8a951;
  /* Neutralfarben */
  --st-color-dark: #1a1a1a;
  --st-color-white: #ffffff;
  --st-color-text: #1a1a1a;
  --st-color-text-muted: #4a4a4a;
  /* Abstände */
  --st-spacing-xs: 0.5rem;
  --st-spacing-sm: 1rem;
  --st-spacing-md: 2rem;
  --st-spacing-lg: 4rem;
  --st-spacing-xl: 6rem;
  /* Typografie */
  --st-font-headline: 'Barlow Condensed', sans-serif;
  --st-font-body: 'DM Sans', sans-serif;
  --st-font-accent: 'Caveat', cursive;
}

/* ── Reset & Basis ── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--st-font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--st-color-text);
  background-color: var(--st-color-light-yellow-bg);
  overflow-x: hidden;
}

/* ── Dunkelgrüner Seitenbalken (CI-Element) ── */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 100vh;
  background: var(--st-color-dark-green);
  z-index: 1000;
}

/* ── WordPress Full/Wide Alignment ── */
.entry-content > .alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > .alignfull {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

/* ── Typografie ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--st-font-headline);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--st-color-dark-red);
}

h1 { font-size: clamp(36px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: clamp(22px, 3vw, 32px); }

p {
  margin-bottom: 1em;
  color: var(--st-color-text-muted);
}

a {
  color: var(--st-color-dark-green);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--st-color-dark-red);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ── Container ── */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(247, 237, 204, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(31, 77, 58, 0.08);
}

.site-header__logo img {
  height: 100px;
  width: auto;
  margin-top: -8px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
  transition: height 0.4s ease;
}

.site-header.scrolled .site-header__logo img {
  height: 72px;
}

.site-header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--st-color-dark-green);
  letter-spacing: 0.5px;
}

.site-header__cta {
  font-family: var(--st-font-headline);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--st-color-dark-red);
  padding: 10px 24px;
  border-radius: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.site-header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(155, 35, 53, 0.3);
  color: #fff;
}

/* ── Footer ── */
.site-footer {
  background: var(--st-color-dark-green);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  font-size: 14px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer__brand-name {
  font-family: var(--st-font-headline);
  font-weight: 800;
  font-size: 20px;
  color: var(--st-color-light-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.site-footer h4 {
  font-family: var(--st-font-headline);
  font-weight: 700;
  font-size: 13px;
  color: var(--st-color-light-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 8px;
}

.site-footer a:hover {
  color: var(--st-color-light-yellow);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
}

/* ── Scroll Animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-container {
    padding: 0 24px;
  }

  .site-header {
    padding: 12px 24px;
  }

  .site-header__nav {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}
