/* ========================================
   Lothar Behrens — Stylesheet
   Design-Serie: Konstantin fliegt
   Farben: cream #f5f2ed, sand #e8e2d9,
           fog #c8c0b4, charcoal #2a2520, ink #1a1510
   Fonts: Cormorant Garamond (display), Raleway (body)
   ======================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  color: #2a2520;
  background-color: #f5f2ed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

::selection {
  background-color: #1a1510;
  color: #f5f2ed;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Focus Styles ---------- */
*:focus-visible {
  outline: 2px solid #1a1510;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Skip Link ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  background: #1a1510;
  color: #f5f2ed;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  z-index: 200;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #1a1510;
  line-height: 1.2;
}

.section-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #4a4038;
  font-weight: 500;
  margin-bottom: 3rem;
  font-family: 'Raleway', sans-serif;
}

.section-heading {
  font-size: 2.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.5s ease;
  border-bottom: 1px solid transparent;
  background: rgba(245, 242, 237, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 1.5rem 0;
}

.site-header.scrolled {
  background: rgba(245, 242, 237, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(200, 192, 180, 0.3);
  padding: 1rem 0;
}

.nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #1a1510;
}

.nav-links {
  display: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4038;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #1a1510;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1510;
  transition: all 0.3s ease;
}

/* Mobile Menu Open State */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(245, 242, 237, 0.98);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 2rem 1.5rem;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(200, 192, 180, 0.3);
}

/* ========================================
   HERO
   ======================================== */
.hero-section {
  padding: 8rem 0 4rem;
  background: #f5f2ed;
}

.hero-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-photo-wrapper {
  position: relative;
  display: inline-block;
  justify-self: center;
}

.hero-photo-shadow {
  position: absolute;
  inset: 0;
  background: #c8c0b4;
  transform: translate(1rem, 1rem);
  transition: transform 0.3s ease;
}

.hero-photo-wrapper:hover .hero-photo-shadow {
  transform: translate(1.5rem, 1.5rem);
}

.hero-photo {
  position: relative;
  z-index: 10;
  width: 240px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(20%);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-text {
  text-align: center;
}

.hero-meta {
  font-size: 0.875rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #4a4038;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1510;
  line-height: 1.05;
  margin-bottom: 2rem;
}

.hero-intro {
  font-size: 1.125rem;
  color: #2a2520;
  line-height: 1.9;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: #1a1510;
  color: #f5f2ed;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #2a2520;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  color: #1a1510;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid #1a1510;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #1a1510;
  color: #f5f2ed;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
  padding: 7rem 0;
  background: #e8e2d9;
}

.about-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.about-lead {
  font-size: 1.25rem;
  color: #1a1510;
  line-height: 1.8;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.about-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-block-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.about-block p {
  font-size: 1rem;
  line-height: 1.9;
  color: #2a2520;
  margin-bottom: 1rem;
}

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

/* ========================================
   BOOKS SECTION
   ======================================== */
.books-section {
  padding: 7rem 0;
  background: #f5f2ed;
}

.books-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.book-card {
  background: #e8e2d9;
  padding: 2.5rem;
  border: 1px solid rgba(200, 192, 180, 0.4);
  transition: all 0.3s ease;
  position: relative;
}

.book-card-cover {
  margin-bottom: 1.5rem;
  text-align: center;
}

.book-card-cover-img {
  width: 140px;
  height: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s ease;
}

.book-card:hover .book-card-cover-img {
  transform: scale(1.05);
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.book-card-badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f5f2ed;
  background: #4a4038;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.book-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: #1a1510;
  margin-bottom: 0.5rem;
}

.book-card-subtitle {
  font-style: italic;
  color: #4a4038;
  margin-bottom: 1.5rem;
}

.book-card-desc {
  color: #2a2520;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.book-card-date {
  font-size: 0.875rem;
  color: #3a3028;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.book-card-link {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #1a1510;
  color: #f5f2ed;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.book-card-link:hover {
  background: #2a2520;
  transform: translateY(-2px);
}

.books-upcoming {
  margin-top: 4rem;
  text-align: center;
  padding: 3rem;
  border: 1px solid #c8c0b4;
  background: rgba(232, 226, 217, 0.5);
}

.books-upcoming-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.books-upcoming-text {
  color: #2a2520;
  font-size: 1.125rem;
}

/* ========================================
   ESSAYS SECTION
   ======================================== */
.essays-section {
  padding: 7rem 0;
  background: #e8e2d9;
}

.essays-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.essays-intro {
  color: #2a2520;
  font-size: 1.125rem;
  max-width: 42rem;
  margin-bottom: 3rem;
}

.essays-sub-heading {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #1a1510;
}

.essays-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.essay-card {
  background: #f5f2ed;
  padding: 2rem;
  border-left: 3px solid #1a1510;
  transition: all 0.3s ease;
}

.essay-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.essay-category {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4038;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.essay-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #1a1510;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.essay-excerpt {
  color: #2a2520;
  font-size: 0.95rem;
  line-height: 1.7;
}

.essay-date {
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #6a6258;
}

.essays-lists {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 48rem;
  margin-bottom: 3rem;
}

.essay-list-block {
  background: #f5f2ed;
  padding: 2rem;
  border-left: 3px solid #c8c0b4;
}

.essay-list-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1a1510;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.essay-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.essay-list li {
  color: #2a2520;
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.6;
}

.essay-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #c8c0b4;
}

.essays-more {
  color: #4a4038;
  font-size: 1rem;
}

.essays-more a {
  color: #1a1510;
  font-weight: 500;
  border-bottom: 1px solid #1a1510;
  padding-bottom: 0.125rem;
  transition: all 0.3s ease;
}

.essays-more a:hover {
  color: #4a4038;
  border-bottom-color: #4a4038;
}

/* ========================================
   TALKS SECTION
   ======================================== */
.talks-section {
  padding: 7rem 0;
  background: #f5f2ed;
  border-bottom: 1px solid rgba(200, 192, 180, 0.3);
}

.talks-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.talks-intro {
  color: #2a2520;
  font-size: 1.125rem;
  line-height: 1.9;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.talks-cta {
  padding: 3rem;
  border: 1px solid #c8c0b4;
  background: rgba(232, 226, 217, 0.5);
  display: inline-block;
}

.talks-cta-text {
  color: #1a1510;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
  padding: 7rem 0;
  background: #e8e2d9;
}

.contact-content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.contact-intro {
  color: #2a2520;
  font-size: 1.125rem;
  line-height: 1.9;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.5rem;
  background: #f5f2ed;
  border: 1px solid rgba(200, 192, 180, 0.4);
  transition: all 0.3s ease;
}

.contact-link:hover {
  background: #1a1510;
  color: #f5f2ed;
  border-color: #1a1510;
}

.contact-link-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.7;
}

.contact-link-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #1a1510;
  color: #d0c8bc;
  padding: 4rem 0;
  border-top: 4px solid #e8e2d9;
}

.footer-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e8e2d9;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-tagline,
.footer-location {
  font-size: 0.875rem;
  color: #b0a89c;
}

.footer-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8e2d9;
  margin-bottom: 0.75rem;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: #b0a89c;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-col a:hover {
  color: #e8e2d9;
}

.footer-legal {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: #b0a89c;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.footer-legal span {
  margin: 0 0.75rem;
}

.footer-legal a {
  color: #b0a89c;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #e8e2d9;
}

/* ========================================
   FADE-IN ANIMATION
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-nav {
  background: #f5f2ed;
  border-bottom: 1px solid rgba(200, 192, 180, 0.3);
  padding: 1.25rem 0;
}

.legal-nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.legal-back-link {
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #4a4038;
  transition: color 0.3s ease;
}

.legal-back-link:hover {
  color: #1a1510;
}

.legal-main {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.legal-content {
  max-width: 48rem;
}

.legal-content h1 {
  font-size: 2.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #2a2520;
}

.legal-body section {
  display: flex;
  flex-direction: column;
}

.legal-body p + p {
  margin-top: 1rem;
}

.legal-body address {
  font-style: normal;
}

.legal-body a {
  color: #1a1510;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.3s ease;
}

.legal-body a:hover {
  color: #4a4038;
}

.legal-footer {
  background: #1a1510;
  color: #d0c8bc;
  padding: 2rem 0;
  border-top: 4px solid #e8e2d9;
}

.legal-footer-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: #b0a89c;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.legal-footer-inner span {
  margin: 0 0.75rem;
}

.legal-footer-inner a {
  color: #b0a89c;
  transition: color 0.3s ease;
}

.legal-footer-inner a:hover {
  color: #e8e2d9;
}

.legal-footer-inner .current-page {
  color: #d0c8bc;
}

/* ========================================
   RESPONSIVE — Tablet (768px+)
   ======================================== */
@media (min-width: 768px) {
  .nav-inner,
  .hero-content,
  .about-content,
  .books-content,
  .essays-content,
  .talks-content,
  .contact-content,
  .footer-main,
  .footer-legal,
  .legal-nav-inner,
  .legal-main {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-title {
    font-size: 4rem;
  }

  .section-heading {
    font-size: 3rem;
  }

  .about-columns {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .books-grid {
    grid-template-columns: 1fr 1fr;
  }

  .essays-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main {
    grid-template-columns: repeat(4, 1fr);
  }

  .legal-content h1 {
    font-size: 3rem;
  }
}

/* ========================================
   RESPONSIVE — Desktop (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 300px 1fr;
    text-align: left;
  }

  .hero-text {
    text-align: left;
  }

  .hero-intro {
    margin-left: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: 5rem;
  }
}
