/*
Theme Name: Rechtspause
Theme URI: https://www.rechtspause.de
Author: Rechto UG (haftungsbeschränkt)
Author URI: https://www.rechto.de
Description: Minimales Landing-Page-Theme für die Marke Rechtspause – Achtsamkeit für Juristinnen & Juristen.
Version: 1.0.0
License: Proprietary
Text Domain: rechtspause
*/

/* ======= VARIABLES ======= */
:root {
  --teal: #2A9D8F;
  --teal-light: #6EC6B8;
  --teal-pale: #E8F5F2;
  --teal-dark: #1E7A6E;
  --warm: #F4F0EB;
  --warm-dark: #E8E0D6;
  --ink: #2C2C2C;
  --ink-light: #5A5A5A;
  --ink-faint: #8A8A8A;
  --white: #FEFDFB;
  --accent-gold: #D4A853;
  --accent-rose: #C4716C;
  --shadow-soft: 0 4px 24px rgba(42, 157, 143, 0.08);
  --shadow-card: 0 8px 40px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ======= RESET ======= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

/* ======= UTILITY ======= */
.rp-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ======= HEADER / NAV ======= */
.rp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(254, 253, 251, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 157, 143, 0.08);
  transition: box-shadow 0.3s;
}
.rp-header.scrolled { box-shadow: var(--shadow-soft); }

.rp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.rp-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.rp-logo span { color: var(--accent-gold); }

.rp-nav-cta {
  background: var(--teal);
  color: #fff !important;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  text-decoration: none;
}
.rp-nav-cta:hover { background: var(--teal-dark); color: #fff !important; transform: translateY(-1px); }

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

.rp-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -200px;
  width: 650px; height: 650px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 157, 143, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.rp-hero::after {
  content: '§';
  position: absolute;
  bottom: 80px; right: 8%;
  font-family: 'Fraunces', serif;
  font-size: 18rem;
  font-weight: 300;
  color: rgba(42, 157, 143, 0.04);
  pointer-events: none;
  line-height: 1;
}

.rp-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rp-hero-text { position: relative; z-index: 2; }

.rp-hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  background: var(--teal-pale);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
  animation: rpFadeInUp 0.7s ease-out both;
}

.rp-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  animation: rpFadeInUp 0.7s 0.1s ease-out both;
}

.rp-hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.rp-hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 36px;
  max-width: 480px;
  animation: rpFadeInUp 0.7s 0.2s ease-out both;
}

/* ======= BOOK MOCKUP ======= */
.rp-hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: rpFadeInUp 0.8s 0.3s ease-out both;
}

.rp-book-mockup {
  position: relative;
  width: 320px;
  height: 420px;
  background: linear-gradient(135deg, var(--teal-pale) 0%, var(--warm) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card), 12px 12px 0 var(--teal-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  text-align: center;
  border: 1px solid rgba(42, 157, 143, 0.12);
  transform: rotate(-2deg);
  transition: transform 0.4s ease;
  overflow: hidden;
}
.rp-book-mockup:hover { transform: rotate(0deg) scale(1.02); }

/* If a real cover image is set */
.rp-book-mockup img.rp-book-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.rp-book-section-mark {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 16px;
}

.rp-book-title {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.rp-book-sub {
  font-size: 0.85rem;
  color: var(--ink-light);
  font-weight: 400;
  line-height: 1.5;
}

.rp-book-badge {
  position: absolute;
  top: -14px; right: -14px;
  background: var(--accent-gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(212, 168, 83, 0.3);
  z-index: 2;
}

.rp-floating-deco {
  position: absolute;
  font-family: 'Fraunces', serif;
  color: var(--teal-light);
  opacity: 0.25;
  pointer-events: none;
}
.rp-floating-deco.d1 { top: -30px; left: -40px; font-size: 3rem; animation: rpFloat 6s ease-in-out infinite; }
.rp-floating-deco.d2 { bottom: -20px; right: -30px; font-size: 2.4rem; animation: rpFloat 5s 1s ease-in-out infinite; }
.rp-floating-deco.d3 { top: 50%; left: -60px; font-size: 2rem; animation: rpFloat 7s 0.5s ease-in-out infinite; }

/* ======= EMAIL FORM ======= */
.rp-cta-area {
  animation: rpFadeInUp 0.7s 0.35s ease-out both;
}

.rp-email-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
}

.rp-email-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--warm-dark);
  border-radius: 50px;
  font-family: 'Libre Franklin', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s;
}
.rp-email-form input[type="email"]::placeholder { color: var(--ink-faint); }
.rp-email-form input[type="email"]:focus { border-color: var(--teal); }

.rp-email-form button,
.rp-email-form input[type="submit"] {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Libre Franklin', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  white-space: nowrap;
}
.rp-email-form button:hover,
.rp-email-form input[type="submit"]:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

.rp-form-hint {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 12px;
}

/* ======= FEATURES ======= */
.rp-features {
  padding: 100px 0 80px;
  background: var(--warm);
  position: relative;
}

.rp-features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
}

.rp-features-heading {
  text-align: center;
  margin-bottom: 60px;
}

.rp-features-heading h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.rp-features-heading p {
  color: var(--ink-light);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.rp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.rp-feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid rgba(42, 157, 143, 0.06);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}
.rp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.rp-feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.rp-feature-card h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--ink);
}

.rp-feature-card p {
  font-size: 0.92rem;
  color: var(--ink-light);
  line-height: 1.65;
}

/* ======= QUOTE ======= */
.rp-quote-section {
  padding: 80px 0;
  text-align: center;
}

.rp-quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: 8px;
}

.rp-quote-text {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--ink);
  max-width: 640px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.rp-quote-attr {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ======= ABOUT ======= */
.rp-about {
  padding: 80px 0;
  background: var(--teal-pale);
}

.rp-about-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.rp-about-visual {
  width: 100%;
  aspect-ratio: 1;
  max-width: 340px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(42, 157, 143, 0.2);
  overflow: hidden;
}

.rp-about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-about-initials {
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}

.rp-about h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
  color: var(--ink);
}

.rp-about p {
  color: var(--ink-light);
  font-size: 1rem;
  margin-bottom: 16px;
  max-width: 520px;
}

.rp-about p strong {
  color: var(--ink);
  font-weight: 600;
}

/* ======= BOTTOM CTA ======= */
.rp-bottom-cta {
  padding: 100px 0;
  text-align: center;
  position: relative;
}

.rp-bottom-cta::before {
  content: '§';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Fraunces', serif;
  font-size: 22rem;
  font-weight: 300;
  color: rgba(42, 157, 143, 0.03);
  pointer-events: none;
}

.rp-bottom-cta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
  color: var(--ink);
  position: relative;
}

.rp-bottom-cta > .rp-container > p {
  font-size: 1.05rem;
  color: var(--ink-light);
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.rp-bottom-cta .rp-email-form {
  margin: 0 auto;
  justify-content: center;
  position: relative;
}

/* ======= FOOTER ======= */
.rp-footer {
  padding: 40px 0;
  border-top: 1px solid var(--warm-dark);
  text-align: center;
}

.rp-footer-brand {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.rp-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.rp-footer-links a {
  font-size: 0.82rem;
  color: var(--ink-faint);
  text-decoration: none;
  transition: color 0.2s;
}
.rp-footer-links a:hover { color: var(--teal); }

.rp-footer-copy {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

/* ======= GENERIC PAGE (Impressum, Datenschutz) ======= */
.rp-page {
  padding: 120px 0 80px;
}

.rp-page h1 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 32px;
  color: var(--ink);
}

.rp-page h2 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 32px 0 12px;
  color: var(--ink);
}

.rp-page p, .rp-page li {
  color: var(--ink-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.rp-page ul, .rp-page ol {
  padding-left: 24px;
}

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

@keyframes rpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ======= RESPONSIVE ======= */
@media (max-width: 768px) {
  .rp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .rp-hero-subtitle { margin-left: auto; margin-right: auto; }
  .rp-email-form { flex-direction: column; max-width: 360px; margin: 0 auto; }
  .rp-email-form button,
  .rp-email-form input[type="submit"] { width: 100%; }
  .rp-form-hint { text-align: center; }
  .rp-features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .rp-about-inner { grid-template-columns: 1fr; text-align: center; }
  .rp-about-visual { max-width: 240px; }
  .rp-about p { margin-left: auto; margin-right: auto; }
  .rp-hero::after { font-size: 10rem; right: -20px; bottom: 40px; }
  .rp-book-mockup { width: 260px; height: 350px; }
  .rp-bottom-cta .rp-email-form { flex-direction: column; max-width: 360px; }
}
