/* =========================================================
   Anne Berger – Landingpage
   Farbpalette: Ibiza-Stimmung
   ========================================================= */

:root {
  --color-terracotta: #D9773A;
  --color-gold: #E8B95C;
  --color-turquoise: #2AA9A0;
  --color-deep-blue: #1B3A4B;
  --color-sand: #F5EBDD;
  --color-white: #FFFFFF;

  --font-heading: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", "Montserrat", sans-serif;

  --max-width: 1180px;
  --section-padding: clamp(4rem, 8vw, 7rem);
  --radius: 6px;
  --transition: 0.35s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-deep-blue);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: var(--color-deep-blue);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }

p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-heading.align-left {
  text-align: left;
  margin: 0 0 3rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(217, 119, 58, 0.35);
}

.btn-primary:hover {
  background: #c4682f;
}

.btn-secondary {
  background: transparent;
  color: var(--color-deep-blue);
  border-color: var(--color-deep-blue);
}

.btn-secondary:hover {
  background: var(--color-deep-blue);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-deep-blue);
}

.buy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 235, 221, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(27, 58, 75, 0.08);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-deep-blue);
  letter-spacing: 0.01em;
}

.nav-logo span {
  color: var(--color-terracotta);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracotta);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--color-deep-blue);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(160deg, var(--color-deep-blue) 0%, #234b60 55%, var(--color-turquoise) 130%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(232, 185, 92, 0.18), transparent 40%),
                     radial-gradient(circle at 85% 80%, rgba(42, 169, 160, 0.25), transparent 45%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-sand);
  margin-bottom: 1rem;
}

.hero .author-name {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.2rem;
}

.hero-cover {
  max-width: 340px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
}

.hero-cover img {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .hero-text {
    align-items: flex-start;
  }
  .hero-cover {
    order: 2;
  }
}

/* ---------- Divider ---------- */
.divider {
  display: flex;
  justify-content: center;
  padding: 0 0;
  background: inherit;
}

.divider svg {
  width: 100%;
  height: auto;
  max-width: 1400px;
}

.section {
  padding: var(--section-padding) 0;
}

.bg-sand { background: var(--color-sand); }
.bg-white { background: var(--color-white); }

/* ---------- Autorenportrait ---------- */
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.author-photo {
  position: relative;
}

.author-photo img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 25px 50px rgba(27, 58, 75, 0.18);
}

.author-content h2 {
  margin-bottom: 1.4rem;
}

.author-content p {
  color: #3d5666;
}

.author-signature {
  margin-top: 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--color-terracotta);
}

@media (min-width: 860px) {
  .author-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
  }
}

/* ---------- Buchvorstellung ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.book-cover-wrap {
  display: flex;
  justify-content: center;
}

.book-cover-wrap img {
  max-width: 320px;
  border-radius: 4px;
  box-shadow: 0 25px 55px rgba(27, 58, 75, 0.25);
}

.book-content .book-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  margin-bottom: 0.3rem;
}

.book-content .book-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-terracotta);
  margin-bottom: 1.5rem;
}

.book-content p {
  color: #3d5666;
}

@media (min-width: 860px) {
  .book-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

/* ---------- Leserstimmen ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 15px 35px rgba(27, 58, 75, 0.08);
  border: 1px solid rgba(27, 58, 75, 0.06);
}

.testimonial-stars {
  color: var(--color-gold);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-text {
  font-style: italic;
  color: #3d5666;
  margin-bottom: 1.2rem;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-deep-blue);
  font-size: 0.95rem;
}

@media (min-width: 700px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1050px) {
  .testimonial-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Newsletter ---------- */
.newsletter-section {
  background: linear-gradient(135deg, var(--color-deep-blue), #24506a);
  color: var(--color-white);
  text-align: center;
}

.newsletter-section h2 {
  color: var(--color-white);
}

.newsletter-section .section-heading p {
  color: rgba(255,255,255,0.75);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1 1 220px;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.95);
  color: var(--color-deep-blue);
}

.newsletter-form input:focus {
  outline: 2px solid var(--color-gold);
}

.newsletter-form button {
  flex: 0 0 auto;
}

.newsletter-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Social Media ---------- */
.social-section {
  text-align: center;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-icons a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sand);
  color: var(--color-deep-blue);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  background: var(--color-terracotta);
  color: var(--color-white);
  transform: translateY(-3px);
}

.social-icons svg {
  width: 22px;
  height: 22px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep-blue);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  transition: background var(--transition);
}

.footer-social a:hover {
  background: var(--color-terracotta);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

@media (min-width: 760px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Fade-in animation ---------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Bücher-Seite ---------- */
.page-header {
  background: linear-gradient(160deg, var(--color-deep-blue), var(--color-turquoise));
  color: var(--color-white);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin: 0 auto;
}

.book-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .book-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1050px) {
  .book-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.book-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(27, 58, 75, 0.1);
  border: 1px solid rgba(27, 58, 75, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(27, 58, 75, 0.18);
}

.book-card-cover {
  background: var(--color-sand);
  padding: 2.5rem 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
}

.book-card-cover img {
  max-width: 200px;
  box-shadow: 0 15px 30px rgba(27, 58, 75, 0.25);
  border-radius: 3px;
}

.book-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.book-card-body h3 {
  margin-bottom: 0.3rem;
}

.book-card-subtitle {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-terracotta);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.book-card-body p {
  color: #3d5666;
  font-size: 0.95rem;
  flex: 1;
}

.book-card-body .btn {
  align-self: flex-start;
  margin-top: 1rem;
}

.book-card-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed rgba(27, 58, 75, 0.15);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  color: rgba(27, 58, 75, 0.4);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.1rem;
}

/* ---------- Legal Pages ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 2.2rem;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  color: #3d5666;
}

.legal-content ul {
  color: #3d5666;
  margin: 0 0 1.2rem;
  padding-left: 1.4rem;
}

.legal-content li {
  margin-bottom: 0.4rem;
}

/* ---------- Mobile nav ---------- */
@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--color-sand);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -10px 0 40px rgba(0,0,0,0.15);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
