/*
Theme Name: Holzwarth
Text Domain: holzwarth
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
*/

/* Open Sans — Variable Font (lokal, DSGVO-konform) */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/open-sans-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;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(assets/fonts/open-sans-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;
}

/* Playfair Display — Variable Font (lokal, DSGVO-konform) */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/playfair-display-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;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(assets/fonts/playfair-display-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;
}

* {
  box-sizing: border-box;
}

html, body, div, span, h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  padding: 0;
}

/* ===== Body: Dunkler Hintergrund mit subtiler Textur ===== */
html, body {
  background: #141a17;
  color: #e8e6e1;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(90, 158, 132, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
    #141a17;
}

/* ===== Globale Animationen ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Nav: Sticky + Glass + Scroll (fuer Unterseiten) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 26, 23, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.site-header.site-header--scrolled {
  background: rgba(20, 26, 23, 0.96);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  border-color: transparent;
}

/* Nav: Hover-Underline */
.site-header .wp-block-navigation a { position: relative; transition: color 0.2s; border-radius: 6px; }
.site-header .wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0.5rem; right: 0.5rem;
  height: 2px;
  background: #5a9e84;
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .wp-block-navigation a:hover { background: rgba(255,255,255,0.04); }
.site-header .wp-block-navigation a:hover::after { transform: scaleX(1); }

/* Footer: Animated Gradient Line (fuer Unterseiten) */
.site-footer::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, #8b7355, #5a9e84, #8b7355);
  background-size: 200% 100%;
  animation: footer-gradient 6s ease infinite;
}
@keyframes footer-gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Footer: Link Hover */
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: #fff !important; }

/* ===== Unterseiten (Impressum, Datenschutz) ===== */
.page-content {
  animation: fadeInUp 0.6s ease;
}
.page-content h1 {
  font-family: 'Playfair Display', serif;
  color: #fff;
  border-bottom: 2px solid rgba(90, 158, 132, 0.3);
  padding-bottom: 1rem;
}
.page-content h2 {
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.page-content h3 {
  color: #d1d5db;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
.page-content p {
  color: #b0ada8;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.page-content ul {
  color: #b0ada8;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.page-content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}
.page-content a:not(.back-link a) {
  color: #5a9e84;
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 158, 132, 0.3);
  transition: color 0.2s, border-color 0.2s;
}
.page-content a:not(.back-link a):hover {
  color: #5fc09a;
  border-color: #5fc09a;
}

/* Zurueck-Link */
.back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.back-link a:hover {
  color: #fff;
  border-color: rgba(90, 158, 132, 0.4);
  background: rgba(90, 158, 132, 0.08);
}
