/*
Theme Name: Limerenz
Theme URI: https://limerenz.de
Author: Kopfstabil
Author URI: https://kopfstabil.de
Description: Ein warmes, emotionales Theme für limerenz.de – wo obsessive Verliebtheit auf Heilung trifft.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: limerenz
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --nacht:     #0F1923;
  --nacht-mid: #1A2B38;
  --dunkel:    #243342;
  --petrol:    #2A7A8A;
  --petrol-hell: #55A8B8;
  --rose:      #C4846A;
  --apricot:   #FEEADE;
  --creme:     #FDF8F3;
  --weiss:     #FFFFFF;
  --text-dim:  rgba(253,248,243,0.6);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', sans-serif;

  --radius: 2px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1160px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background-color: var(--nacht);
  color: var(--creme);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--petrol-hell);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--rose); }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

.italic { font-style: italic; }
.label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol-hell);
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 6rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 9rem 0; }

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background var(--transition), padding var(--transition);
}

#site-header.scrolled {
  background: rgba(15, 25, 35, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(42,122,138,0.2);
}

#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--creme);
  letter-spacing: 0.05em;
}
.site-logo span { color: var(--rose); font-style: italic; }
.site-logo:hover { color: var(--creme); }

#primary-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

#primary-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color var(--transition);
}
#primary-nav a:hover { color: var(--creme); }

.nav-cta {
  background: transparent !important;
  border: 1px solid var(--petrol) !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius) !important;
  color: var(--petrol-hell) !important;
}
.nav-cta:hover {
  background: var(--petrol) !important;
  color: var(--creme) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--creme);
  transition: var(--transition);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(42,122,138,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(196,132,106,0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--nacht) 0%, var(--nacht-mid) 100%);
  z-index: 0;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--rose);
}

.hero__title {
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
  margin-bottom: 1.5rem;
}
.hero__title em {
  color: var(--rose);
  font-style: italic;
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 540px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s 1.5s forwards;
}
.hero__scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--rose);
  color: var(--nacht);
}
.btn--primary:hover {
  background: var(--apricot);
  color: var(--nacht);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,132,106,0.3);
}

.btn--outline {
  background: transparent;
  color: var(--creme);
  border: 1px solid rgba(253,248,243,0.3);
}
.btn--outline:hover {
  border-color: var(--creme);
  color: var(--creme);
  background: rgba(253,248,243,0.05);
}

/* =============================================
   CHECKLIST / RECOGNITION SECTION
   ============================================= */
.recognition {
  background: var(--nacht-mid);
  border-top: 1px solid rgba(42,122,138,0.15);
  border-bottom: 1px solid rgba(42,122,138,0.15);
}

.recognition__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.recognition__intro .label { margin-bottom: 1rem; }
.recognition__intro h2 { margin-bottom: 1.5rem; }
.recognition__intro p { color: var(--text-dim); }

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: all var(--transition);
}
.checklist li:hover {
  background: rgba(42,122,138,0.08);
  border-color: rgba(42,122,138,0.2);
  color: var(--creme);
}

.checklist__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
  margin-top: 0.55em;
  flex-shrink: 0;
}

/* =============================================
   ABOUT / EXPLANATION SECTION
   ============================================= */
.about-section { position: relative; }

.about-section__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.about-section__sticky {
  position: sticky;
  top: 8rem;
}

.about-section__sticky .label { margin-bottom: 1.5rem; }
.about-section__sticky h2 { margin-bottom: 2rem; }

.quote-block {
  border-left: 2px solid var(--rose);
  padding: 1.5rem 0 1.5rem 1.8rem;
  margin: 2rem 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--creme);
  line-height: 1.6;
  margin: 0;
}
.quote-block cite {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-style: normal;
}

.about-section__content p { color: var(--text-dim); }
.about-section__content h3 {
  color: var(--creme);
  margin: 2.5rem 0 1rem;
  font-size: 1.5rem;
}
.about-section__content h3:first-child { margin-top: 0; }

/* =============================================
   BLOG PREVIEW
   ============================================= */
.blog-section { background: linear-gradient(180deg, var(--nacht) 0%, var(--nacht-mid) 100%); }

.blog-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(42,122,138,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.post-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--dunkel), var(--nacht-mid));
  position: relative;
  overflow: hidden;
}
.post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__body { padding: 1.5rem; }
.post-card__cat {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--petrol-hell);
  margin-bottom: 0.6rem;
}
.post-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: var(--creme);
}
.post-card__excerpt {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}
.post-card__link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.post-card__link::after { content: '→'; }
.post-card__link:hover { color: var(--apricot); gap: 0.7rem; }

/* =============================================
   CTA / COACHING TEASER
   ============================================= */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 50%, rgba(42,122,138,0.15) 0%, transparent 70%),
    var(--nacht-mid);
  z-index: 0;
}

.cta-section__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta-section .label { margin-bottom: 1.5rem; }
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-section p {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.cta-brand-link {
  display: block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.cta-brand-link a { color: var(--petrol-hell); }

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--nacht);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 3rem 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--creme);
}
.footer__logo span { color: var(--rose); font-style: italic; }

.footer__nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer__nav a:hover { color: var(--creme); }

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: right;
}

/* =============================================
   SINGLE POST / PAGE
   ============================================= */
.entry-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--nacht-mid);
  border-bottom: 1px solid rgba(42,122,138,0.15);
}

.entry-header .label { margin-bottom: 1.2rem; }
.entry-header h1 { max-width: 800px; margin: 0 auto 1.5rem; }
.entry-header .entry-meta {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.entry-content h2, .entry-content h3 {
  color: var(--creme);
  margin: 2.5rem 0 1rem;
}
.entry-content p { color: rgba(253,248,243,0.8); }
.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  color: rgba(253,248,243,0.8);
  margin-bottom: 1.4em;
}
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
  border-left: 2px solid var(--rose);
  padding: 1rem 0 1rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--creme);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .recognition__grid,
  .about-section__inner,
  .posts-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-section__sticky { position: static; }
  .blog-section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  #primary-nav { display: none; }
  #primary-nav.open {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--nacht);
    z-index: 99;
    align-items: center;
    justify-content: center;
  }
  #primary-nav.open ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  #primary-nav.open a { font-size: 1.5rem; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }

  .footer__inner { flex-direction: column; text-align: center; }
  .footer__copy { text-align: center; }
}
