/* ── Fonts ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..600&display=swap');

/* ── Light Mode ──────────────────────────────────────── */
[data-md-color-scheme="default"] {
  --md-primary-fg-color:           #B4573C;
  --md-primary-fg-color--light:    #E4A88F;
  --md-primary-fg-color--dark:     #883F2C;
  --md-primary-bg-color:           #FBF7F2;
  --md-primary-bg-color--light:    #FBF7F2;
  --md-accent-fg-color:            #C15A3C;
  --md-accent-fg-color--light:     #C15A3C;
  --md-accent-fg-color--dark:      #883F2C;
  --md-default-bg-color:           #FBF7F2;
  --md-default-fg-color:           #2E2A26;
  --md-default-fg-color--light:    #2E2A26;
  --md-default-fg-color--lighter:  #4A453F;
  --md-default-fg-color--lightest: #6B655D;
  --md-code-bg-color:              #F2EDE6;
  --md-code-fg-color:              #2E2A26;
  --md-typeset-a-color:            #B4573C;
  --md-typeset-color:              #2E2A26;
  --md-typeset-kbd-color:          #E8E0D6;
  --md-typeset-table-color:        #E8E0D6;
  --md-warning-fg-color:           #883F2C;
}

/* (dark mode removed — light scheme only) */

/* ── Typography ──────────────────────────────────────── */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-header__title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.md-typeset {
  font-family: "Mulish", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.md-typeset h1 {
  color: var(--md-default-fg-color);
  margin-bottom: 1.2rem;
}

.md-typeset h2 {
  margin-top: 2.5rem;
  border-bottom: 1px solid #E8E0D6;
  padding-bottom: 0.4rem;
}



/* ── Links ───────────────────────────────────────────── */
.md-typeset a {
  text-decoration: none;
}
.md-typeset a:hover {
  text-decoration: underline;
}

/* ── Parallax Hero ───────────────────────────────────── */
.parallax-hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 70vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 60px;
  box-sizing: border-box;
  background: #2E2A26;
}

/* Scene: praxis.png is the visible frame — nothing draws outside its box. */
.parallax-hero__scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* City behind the window: berlin.avif shares the praxis 2000x1116 source,
   so this fallback mirrors the praxis cover exactly — skyline registers
   1:1 at rest. JS sizes the box in px (praxis footprint + drift headroom)
   and moves it with the scroll. */
.parallax-hero__city {
  position: absolute;
  inset: 0;
  background-image: url('/assets/berlin_hero.avif');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  pointer-events: none;
  will-change: transform;
}

/* Scoped to .parallax-hero__scene so it outranks Material's
   .md-typeset img { height: auto } — otherwise the img shrinks to its
   natural aspect and a dark strip shows below it on narrow screens. */
.parallax-hero__scene .parallax-hero__praxis {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 1;
}

/* ── Flock: crosses between city and praxis, seen through the panes ── */
.parallax-hero__flock {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.parallax-hero__flock img {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  will-change: transform;
}

/* ── Foreground plants: sink below the hero's bottom edge on scroll ── */
.parallax-hero__plant {
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.parallax-hero__plant--left {
  left: 0;
  width: clamp(150px, 16vw, 250px);
}

.parallax-hero__plant--right {
  right: 0;
  width: clamp(130px, 15vw, 230px);
}

/* ── Scrim: darkens the scene behind the hero text (25% top / 75%
   bottom crop keeps the window low; scrim is center-weighted because
   the bright window sits behind the centered text). Sits above praxis
   but below the plants (z 2) and the content (z 2). */
.parallax-hero__scene::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 66% 54% at 52% 44%, rgba(46, 42, 38, 0.55) 0%, rgba(46, 42, 38, 0.28) 55%, rgba(46, 42, 38, 0) 85%);
  pointer-events: none;
}



.parallax-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #FBF7F2;
  padding: 0 1.5rem;
  max-width: 920px;
  margin: auto;
}

.parallax-hero__content h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(46, 42, 38, 0.4), 0 2px 12px rgba(46, 42, 38, 0.25);
  color: #FBF7F2;
  line-height: 1.15;
  margin-top: 0;
  margin-bottom: 1rem;
  border: none;
}

.parallax-hero__content .md-button {
  background: #B4573C;
  border-color: #B4573C;
  color: #FBF7F2;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 2rem;
  margin: 0 0.4rem;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.parallax-hero__content .md-button:hover {
  background: #C15A3C;
  transform: translateY(-1px);
  text-decoration: none;
}

.parallax-hero__content .md-button--secondary {
  background: rgba(46, 42, 38, 0.3);
  border: 2px solid rgba(251, 247, 242, 0.6);
  color: #FBF7F2;
}

.parallax-hero__content .md-button--secondary:hover {
  background: rgba(46, 42, 38, 0.42);
  border-color: #FBF7F2;
}

.parallax-hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(251, 247, 242, 0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Welcome / intro section ─────────────────────────── */
.welcome-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1rem;
  text-align: center;
}

.welcome-section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  border: none;
  margin-bottom: 1rem;
}

.welcome-section p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--lighter);
}

/* 2-column layout: text + circular portrait */
.welcome-intro {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1rem;
}

.welcome-intro__text {
  flex: 1;
  text-align: left;
}

.welcome-intro__text h2 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  border: none;
  margin-bottom: 1rem;
}

.welcome-intro__text p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--md-default-fg-color--lighter);
}

.welcome-intro__portrait {
  flex: 0 0 auto;
}

.welcome-intro__portrait img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(46, 42, 38, 0.15);
  border: 4px solid var(--md-default-bg-color);
}

/* Stack portrait below text on narrow screens */
@media (max-width: 768px) {
  .welcome-intro {
    flex-direction: column;
    text-align: center;
  }
  .welcome-intro__text {
    text-align: center;
  }
  .welcome-intro__portrait img {
    width: 180px;
    height: 180px;
  }
}

/* ── Service cards on index ──────────────────────────── */
.grid.cards > ul > li {
  border: 1px solid #E8E0D6;
  border-radius: 10px;
  background: var(--md-default-bg-color);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}



.grid.cards > ul > li:hover {
  box-shadow: 0 4px 20px rgba(180, 87, 60, 0.15);
  transform: translateY(-2px);
}

.grid.cards > ul > li a {
  color: var(--md-typeset-a-color);
  font-weight: 600;
}

.grid.cards > ul > li h3 {
  font-family: "Fraunces", Georgia, serif;
  margin-top: 0;
}

.grid.cards > ul > li strong {
  color: var(--md-default-fg-color);
}

/* ── About intro: portrait + text (ueber-mich) ──────── */
.about-intro {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0 2rem;
}

.about-intro__text {
  flex: 1;
  text-align: left;
}

.about-intro__portrait {
  flex: 0 0 auto;
}

.portrait-circle {
  width: 240px !important;
  height: 240px !important;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(46, 42, 38, 0.15);
  border: 4px solid var(--md-default-bg-color);
}

@media (max-width: 768px) {
  .about-intro {
    flex-direction: column;
    text-align: center;
  }
  .about-intro__text {
    text-align: center;
  }
  .portrait-circle {
    width: 180px !important;
    height: 180px !important;
  }
}

/* ── CTA button on content pages ─────────────────────── */
.md-content .md-button--primary {
  background: #B4573C;
  border-color: #B4573C;
  color: #FBF7F2;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.7rem 2rem;
  margin: 0.75rem 0;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
  display: inline-block;
}

.md-content .md-button--primary:hover {
  background: #C15A3C;
  border-color: #C15A3C;
  color: #FBF7F2;
  transform: translateY(-1px);
}

/* ── Praxis image ────────────────────────────────────── */
.praxis-img {
  display: block;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(46, 42, 38, 0.12);
  max-width: 100%;
  height: auto;
}

/* ── Section spacing ─────────────────────────────────── */
.md-typeset hr {
  border-color: #E8E0D6;
  margin: 3rem 0;
}



/* ── Admonitions: warm styling ───────────────────────── */
.md-typeset .admonition {
  border-radius: 8px;
  border-left: 4px solid var(--md-primary-fg-color);
  box-shadow: 0 1px 8px rgba(46, 42, 38, 0.06);
}

/* ── Footer ──────────────────────────────────────────── */
.md-footer-meta {
  background: #2E2A26;
}

/* ── Content max-width for readability ───────────────── */
.md-content {
  max-width: 900px;
}
/* When parallax hero is on page, remove content width limit so hero can go full-width */
body.has-hero .md-content {
  max-width: 100% !important;
  padding: 0 !important;
}
body.has-hero .md-content__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
body.has-hero .md-content__inner > .parallax-hero {
  max-width: none;
  margin-left: calc(-50vw + 50%);
  width: 100vw;
}

/* Prevent horizontal scroll from 100vw hero (scrollbar width on non-overlay browsers) */
html {
  overflow-x: clip;
}

/* ── Map box ─────────────────────────────────────────── */
.map-box {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  margin: 1.5rem auto;
  border: 1px solid var(--md-default-fg-color--lightest);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── Header: warm tint on scroll ─────────────────────── */
.md-header {
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.08);
}

/* ── Bird logo: transparent, white circle only while pressed ── */
/* Fixed box: both birds must render at identical geometry so the
   header title never shifts on a src swap. */
.md-header__button.md-logo {
  width: 44px;
  height: 44px;
  background: transparent;
  border-radius: 50%;
  padding: 4px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.md-header__button.md-logo:active {
  background: #fff;
}

.md-header__button.md-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

