/* ---------------------------------------------------------------
   Dr. Brigitte Knipp — Stille · Bewegung · Spiritualität
   Sea-tinted blue-green palette, "paper on water" layout
---------------------------------------------------------------- */

:root {
  /* Sea palette — blue-green like the ocean, not too green */
  --sea-deep:    #1f3d49;   /* dark teal, near-black */
  --sea-mid:     #2f6b7a;   /* contemplative teal */
  --sea-fog:     #6f9aa3;   /* misty blue-green */
  --sea-foam:    #b9d1d2;   /* pale foam */
  --sea-sky:     #d9e6e4;   /* sky reflection */

  /* Paper */
  --paper:       #fbf8f1;   /* warm off-white, like Bütten */
  --paper-edge:  #efe9dc;
  --ink:         #1a2a30;
  --ink-soft:    #44575f;
  --ink-mute:    #7a8a90;

  /* Accent — a single warm note, like sunlight on water */
  --accent:      #c08a4a;

  /* Type */
  --serif: "Cormorant Garamond", "EB Garamond", Garamond, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --paper-radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sea-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- The sea (background) ---------- */

.sea {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.sea__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 110%, rgba(255,255,255,.10) 0%, transparent 60%),
    linear-gradient(180deg,
      #2a5663 0%,
      #356c79 35%,
      #3a7682 70%,
      #4f8d97 100%);
}

.sea__shimmer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 1px at 18% 62%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(2px 1px at 32% 71%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(2px 1px at 51% 65%, rgba(255,255,255,.30), transparent 60%),
    radial-gradient(2px 1px at 69% 73%, rgba(255,255,255,.20), transparent 60%),
    radial-gradient(2px 1px at 84% 67%, rgba(255,255,255,.28), transparent 60%),
    radial-gradient(2px 1px at 12% 82%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(2px 1px at 44% 86%, rgba(255,255,255,.18), transparent 60%),
    radial-gradient(2px 1px at 76% 88%, rgba(255,255,255,.22), transparent 60%);
  opacity: .9;
  mix-blend-mode: screen;
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  color: var(--sea-sky);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: linear-gradient(180deg, rgba(15,30,38,.55), rgba(15,30,38,0));
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  border-bottom: none;
}
.brand:hover { color: #fff; }
.brand__name { letter-spacing: .18em; }
.enso {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.85);
  border-top-color: transparent;
  border-right-color: rgba(255,255,255,.55);
  transform: rotate(-25deg);
}

/* Language switcher — pill toggle, deliberately prominent */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lang__btn {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255,255,255,.72);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 7px 16px;
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.lang__btn:hover { color: #fff; }
.lang__btn.is-active {
  background: rgba(255,255,255,.92);
  color: var(--sea-deep);
}
.lang__btn.is-active:hover { color: var(--sea-deep); }

/* ---------- Paper card ---------- */

.paper {
  position: relative;
  margin: clamp(20px, 4vw, 64px) auto clamp(40px, 6vw, 80px);
  max-width: 880px;
  background: var(--paper);
  border-radius: var(--paper-radius);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 60px -20px rgba(0,0,0,.45),
    0 60px 120px -30px rgba(0,0,0,.35);
  padding: clamp(36px, 6vw, 84px) clamp(24px, 6vw, 96px) clamp(48px, 6vw, 96px);
  /* very subtle paper grain */
  background-image:
    radial-gradient(rgba(0,0,0,.012) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,.015) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .005em;
  margin: 0 0 .5em;
}

h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  text-align: center;
  margin: 0 0 1.2em;
}

h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.25;
  margin: 2em 0 .6em;
}

h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin: 0 0 .6em;
}

p { margin: 0 0 1.1em; }

em { font-family: var(--serif); font-style: italic; font-size: 1.05em; }

a { color: var(--sea-mid); text-decoration: none; border-bottom: 1px solid currentColor; transition: color .2s; }
a:hover { color: var(--accent); }

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.45;
  font-weight: 400;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 1.4em;
}

.muted { color: var(--ink-soft); }
.small { font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding-bottom: 4px;
}

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin: 0 0 28px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 14px;
}

.hero__welcome {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 24px);
  color: var(--ink-soft);
  margin: 0 0 36px;
}

.portrait {
  margin: 32px auto 36px;
  width: clamp(180px, 32vw, 240px);
}
.portrait__frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--paper-edge),
    0 0 0 6px var(--paper),
    0 0 0 7px var(--paper-edge),
    0 20px 40px -16px rgba(31,61,73,.45);
  background: linear-gradient(160deg, var(--sea-foam), var(--sea-fog));
}
.portrait__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait__frame--placeholder::after {
  content: "Porträt";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(255,255,255,.85);
  font-size: 18px;
  letter-spacing: .1em;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.6vw, 17px);
  max-width: 56ch;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.anchors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.anchors a {
  color: var(--sea-mid);
  border-bottom: none;
  padding: 6px 2px;
  position: relative;
}
.anchors a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 1px;
  background: var(--sea-mid);
  transition: left .3s, right .3s;
}
.anchors a:hover::after { left: 0; right: 0; }

/* ---------- Rule / ornament ---------- */

.rule {
  border: 0;
  height: 1px;
  background: var(--paper-edge);
  margin: clamp(48px, 6vw, 72px) 0;
}

.rule--ornament {
  height: auto;
  background: none;
  text-align: center;
  position: relative;
}
.rule--ornament::before {
  content: attr(data-symbol);
  display: inline-block;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--sea-fog);
  background: var(--paper);
  padding: 0 18px;
  position: relative;
  z-index: 1;
}
.rule--ornament::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: var(--paper-edge);
  z-index: 0;
}

/* ---------- Prose sections ---------- */

.prose {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.prose p,
.prose ol,
.prose ul { font-size: 17px; }

/* ---------- Pull quote ---------- */

.pull {
  margin: 2.4em 0;
  padding: 28px 32px;
  border-left: 2px solid var(--sea-fog);
  background: linear-gradient(90deg, rgba(111,154,163,.08), transparent 70%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 23px);
  line-height: 1.4;
  color: var(--ink);
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 2.4em 0 1.6em;
}
.card {
  background: #fff;
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 22px 22px 20px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(31,61,73,.25);
}
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

.placeholder {
  font-style: italic;
  color: var(--ink-mute) !important;
}

@media (max-width: 720px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Timeline ---------- */

.timeline {
  list-style: none;
  margin: 1.6em 0 1em;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--paper-edge);
}
.timeline li {
  position: relative;
  padding: 0 0 18px 36px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sea-mid);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline__year {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin-bottom: 4px;
}
.timeline li p { margin: 0; }

/* ---------- Book ---------- */

.book {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 1em;
}
.book__cover {
  aspect-ratio: 2 / 3;
  background: linear-gradient(160deg, var(--sea-mid), var(--sea-deep));
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  text-align: center;
  padding: 16px;
  border-radius: 2px;
  box-shadow:
    inset 8px 0 16px -8px rgba(0,0,0,.4),
    0 16px 30px -16px rgba(31,61,73,.4);
}
.book__cover span { line-height: 1.2; }
.book__meta h3 { margin-top: 0; }
.book__sub {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin: -.4em 0 1em;
}

@media (max-width: 560px) {
  .book { grid-template-columns: 120px 1fr; gap: 22px; }
  .book__cover { font-size: 16px; }
}

/* ---------- Contact ---------- */

.contact { text-align: center; }
.contact__intro { max-width: 48ch; margin: 0 auto 2em; }

.form {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}
.form__row {
  margin-bottom: 16px;
}
.form__row label {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sea-mid);
  margin-bottom: 6px;
}
.form__row input,
.form__row textarea {
  width: 100%;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--paper-edge);
  border-radius: 3px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form__row input:focus,
.form__row textarea:focus {
  outline: none;
  border-color: var(--sea-mid);
  box-shadow: 0 0 0 3px rgba(47,107,122,.12);
}
.form__row textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form__actions {
  margin: 24px 0 12px;
  text-align: center;
}

.button {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--sea-mid);
  border: 1px solid var(--sea-mid);
  border-radius: 999px;
  padding: 13px 32px;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.button:hover {
  background: var(--sea-deep);
  border-color: var(--sea-deep);
  transform: translateY(-1px);
}

.form__note {
  text-align: center;
  margin-top: 18px;
}

/* ---------- Footer ---------- */

.footnote {
  text-align: center;
  color: rgba(255,255,255,.6);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 24px 16px 36px;
}
.footnote a { color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.25); }
.footnote a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  .paper { padding: 28px 22px 40px; margin: 0; border-radius: 0; }
  .paper::before, .paper::after { display: none; }
  .topbar { padding: 14px 18px; font-size: 11px; }
  .anchors { gap: 4px 14px; font-size: 11px; }
  .rule { margin: 40px 0; }
}

/* ---------- Print ---------- */

@media print {
  .sea, .topbar, .footnote, .anchors { display: none; }
  body { background: #fff; color: #000; }
  .paper { box-shadow: none; margin: 0; max-width: 100%; padding: 0; }
}
