/* ==================================================
   ROOT
================================================== */

:root {
  --paper: #fbfaf5;
  --paper-soft: #eee7da;

  --white: #ffffff;
  --surface: rgba(255,255,255,0.92);
  --surface-strong: rgba(255,255,255,0.98);

  --accent: #b68a5a;
  --accent-dark: #8b623c;
  --signature: #2f665f;
  --signature-dark: #214941;
  --signature-soft: #dbe8e2;

  --ink: #203542;
  --ink-soft: #61727c;

  --line: rgba(32,53,66,0.12);
  --line-strong: rgba(32,53,66,0.18);

  --max: 1200px;
  --radius: 8px;

  --shadow-soft:
    0 10px 28px rgba(32,53,66,0.07);

  --shadow-medium:
    0 24px 56px rgba(32,53,66,0.13);

  --font-serif:
    "Libre Baskerville",
    Georgia,
    serif;

  --font-sans:
    "Inter",
    Arial,
    sans-serif;
}

/* ==================================================
   RESET
================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--signature-soft);
  color: var(--signature-dark);
}

/* ==================================================
   MAIN
================================================== */

main {
  background:
    linear-gradient(90deg, rgba(47,102,95,0.07), transparent 18%, transparent 82%, rgba(182,138,90,0.08)),
    linear-gradient(
      to bottom,
      #eee7da 0,
      #fbfaf5 520px
    );
}

/* ==================================================
   TYPOGRAPHY
================================================== */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.55rem);
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  letter-spacing: 0;
  margin-bottom: 20px;
  text-wrap: balance;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}

p {
  font-size: 1rem;
}

.section-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

section[id] {
  scroll-margin-top: 110px;
}

.author-page,
.catalog-page,
.contact-page,
.info-page,
.book-page,
.music-page {
  position: relative;
  overflow: hidden;
}

.author-page::after,
.catalog-page::after,
.contact-page::after,
.info-page::after,
.book-page::after,
.music-page::after {
  content: "";
  position: absolute;
  top: clamp(34px, 7vw, 92px);
  right: max(24px, calc((100vw - var(--max)) / 2));
  z-index: 0;
  width: clamp(170px, 22vw, 320px);
  height: clamp(170px, 22vw, 320px);
  background: var(--signature);
  opacity: 0.045;
  pointer-events: none;
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.author-page > *,
.catalog-page > *,
.contact-page > *,
.info-page > *,
.book-page > *,
.music-page > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--signature);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.author-content h1,
.catalog-hero h1,
.contact-hero h1,
.info-hero h1,
.legal-inner h1,
.book-content h1,
.music-content h1 {
  font-size: clamp(2.25rem, 3.6vw, 3.65rem);
  line-height: 1.08;
}

/* ==================================================
   HEADER
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251,250,245,0.88);
  border-bottom: 1px solid rgba(32,53,66,0.10);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.55) inset;
}

.site-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 32px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.54rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--signature-dark);
  white-space: nowrap;
}

.logo::before {
  content: "";
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  background: var(--signature-dark);
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.nav-toggle {
  display: none;
}

/* ==================================================
   NAVIGATION
================================================== */

.navigation {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navigation > a {
  display: inline-flex;
  align-items: center;

  line-height: 1;
}

.navigation > a,
.nav-dropdown-trigger {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.navigation > a::after,
.nav-dropdown-trigger::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -8px;

  width: 0;
  height: 2px;

  background: var(--signature);

  transform: translateX(-50%);
  transition: width 0.25s ease;
}

.navigation > a:hover::after,
.nav-dropdown-trigger:hover::after {
  width: 100%;
}

/* ==================================================
   DROPDOWN
================================================== */

.nav-dropdown {
  position: relative;

  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;

  line-height: 1;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 1001;

  top: calc(100% + 14px);
  left: 50%;

  transform: translateX(-50%);

  min-width: 240px;
  padding: 6px;

  background: rgba(255,255,255,0.98);

  border: 1px solid var(--line);
  border-radius: 8px;

  box-shadow: var(--shadow-soft);

  opacity: 0;
  visibility: hidden;

  transition: 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  top: 100%;

  height: 18px;
}

.nav-dropdown-menu a {
  display: block;

  padding: 8px 12px;

  text-decoration: none;
  color: var(--ink);

  border-radius: 10px;
}

.nav-dropdown-menu a:hover {
  background: var(--signature-soft);
  color: var(--signature-dark);
}

.nav-disabled {
  display: block;

  padding: 8px 12px;

  color: rgba(36,55,70,0.45);

  line-height: 1.25;
}

/* Schriftgröße anpassen */
.nav-dropdown-menu a,
.nav-dropdown-menu span {
  font-size: 0.9rem; /* oder 0.85rem */
}

.nav-disabled small {
  display: block;
  margin-top: 1px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  opacity: 0.7;
}

/* ==================================================
   BUTTONS
================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 46px;
  padding: 14px 25px;

  border-radius: 999px;

  text-decoration: none;
  font-weight: 700;
  line-height: 1;

  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:focus-visible,
.navigation a:focus-visible,
.nav-dropdown-trigger:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(47,102,95,0.30);
  outline-offset: 4px;
}

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

.primary {
  background: var(--signature);
  color: white;
  box-shadow: 0 14px 30px rgba(47,102,95,0.20);
}

.primary:hover {
  background: var(--signature-dark);
}

.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.secondary:hover {
  background: white;
  border-color: rgba(47,102,95,0.28);
}

/* ==================================================
   QUOTE SECTION
================================================== */

.quote-section {
  padding: 90px 32px;

  background:
    linear-gradient(90deg, rgba(47,102,95,0.08), transparent 22%, transparent 78%, rgba(182,138,90,0.10)),
    var(--white);

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-section blockquote {
  max-width: 900px;
  margin: 0 auto;

  text-align: center;

  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}

/* ==================================================
   AUTHOR TEASER
================================================== */

.author-teaser {
  padding: 90px 32px;
  background: var(--paper);
}

.author-teaser > div {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.author-teaser p {
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.author-teaser .button {
  margin-top: 18px;
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47,102,95,0.12), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,0.64), rgba(236,228,214,0.96)),
    #ece4d6;
  border-top: 1px solid rgba(47,102,95,0.13);
  margin-top: 84px;
}

.site-footer::before {
  content: "";
  position: absolute;
  right: max(32px, 7vw);
  top: 34px;
  width: 220px;
  height: 220px;
  background: var(--signature);
  opacity: 0.06;
  pointer-events: none;
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.site-footer-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;

  padding: 66px 32px 48px;

  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(420px, 1.4fr);
  gap: 72px;
  align-items: start;
}

.footer-brand {
  max-width: 420px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--signature-dark);
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.footer-logo::before {
  content: "";
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--signature-dark);
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.footer-brand p {
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.8;
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--signature);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-cta::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
}

.footer-cta:hover {
  color: var(--signature-dark);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-column h3 {
  color: var(--signature-dark);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-column a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-column a:hover {
  color: var(--signature);
  transform: translateX(2px);
}

.site-footer-bottom {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;

  padding: 24px 32px 34px;

  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.site-footer-bottom p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer-legal a {
  color: var(--ink-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-cookie-settings {
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.footer-legal a:hover,
.footer-cookie-settings:hover {
  color: var(--signature);
}

/* ==================================================
   COOKIE CONSENT
================================================== */

.cookie-consent-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(47,102,95,0.12), transparent 34%),
    rgba(32,53,66,0.22);
  backdrop-filter: blur(3px);
}

.cookie-consent {
  position: relative;
  overflow: hidden;
  width: min(560px, 100%);
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,250,245,0.96));
  border: 1px solid rgba(47,102,95,0.16);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(32,53,66,0.28);
}

.cookie-consent-backdrop[hidden] {
  display: none;
}

.cookie-consent::before {
  content: "";
  position: absolute;
  right: -44px;
  top: -52px;
  width: 190px;
  height: 190px;
  background: var(--signature);
  opacity: 0.045;
  pointer-events: none;
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.cookie-consent > * {
  position: relative;
  z-index: 1;
}

.cookie-consent-mark {
  display: block;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  background: var(--signature-dark);
  -webkit-mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
  mask: url("/assets/icons/brand/kompass.png") center / contain no-repeat;
}

.cookie-consent-eyebrow {
  margin-bottom: 8px;
  color: var(--signature);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cookie-consent h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.16;
}

.cookie-consent p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.cookie-consent a {
  color: var(--signature);
  font-weight: 700;
  text-decoration: none;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.cookie-consent-actions .button {
  min-height: 46px;
  padding: 14px 22px;
}

/* ==================================================
   MOBILE
================================================== */

@media (max-width: 900px) {
  .site-header-inner {
    position: relative;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.28rem;
  }

  .logo::before {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    min-height: 44px;
    padding: 0 14px;

    background: rgba(255,255,255,0.72);
    border: 1px solid var(--line);
    border-radius: 999px;

    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .navigation {
    position: absolute;
    top: calc(100% + 1px);
    left: 24px;
    right: 24px;

    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 12px;

    background: rgba(255,255,255,0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-medium);
  }

  .site-header.is-open .navigation {
    display: flex;
  }

  .navigation > a,
  .nav-dropdown-trigger {
    padding: 13px 12px;
    border-radius: var(--radius);
  }

  .navigation > a::after,
  .nav-dropdown-trigger::after {
    display: none;
  }

  .nav-dropdown {
    display: block;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    margin: 0 0 8px;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
  }

  .nav-dropdown::after {
    display: none;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .footer-brand {
    max-width: 560px;
  }

  .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer-bottom {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2.15rem, 11vw, 3.1rem);
  }

  .site-header-inner {
    padding: 18px 20px;
  }

  .logo {
    gap: 10px;
    font-size: 1.08rem;
  }

  .logo::before {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .navigation {
    left: 16px;
    right: 16px;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 54px 24px 38px;
    text-align: center;
  }

  .site-footer::before {
    right: 50%;
    top: 24px;
    width: 180px;
    height: 180px;
    transform: translateX(50%);
  }

  .footer-logo {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-column {
    align-items: center;
  }

  .footer-column a:hover {
    transform: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: center;
    padding: 22px 24px 32px;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }

  .cookie-consent-backdrop {
    align-items: end;
    padding: 16px;
  }

  .cookie-consent {
    padding: 28px 24px;
  }

  .cookie-consent-actions .button {
    width: 100%;
  }

  .author-page::after,
  .catalog-page::after,
  .contact-page::after,
  .info-page::after,
  .book-page::after,
  .music-page::after {
    top: 26px;
    right: -58px;
    width: 190px;
    height: 190px;
    opacity: 0.032;
  }
}
