/* HEADER / NAV */

.site-header {
  background: var(--header-bg);
}

.site-header__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-title {
  color: var(--header-text);
  margin: 16px;
  font-size: 50px;
  line-height: 1;
  font-weight: bolder;
}

.site-subtitle {
  color: var(--accent);
  transform: translateY(-3rem);
  margin: 16px;
  font-size: 40px;
  line-height: 1;
  font-weight: bold;
  font-style: italic;
}

.site-title__link {
  color: inherit;
  text-decoration: none;
}

.site-subtitle__link {
  color: inherit;
  text-decoration: none;
}

.site-nav {
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  margin: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.site-nav__link {
  color: #9c9b9b;
  font-size: 18px;
  padding-right: .5rem;
  padding-left: .5rem;
  text-decoration: none;
  opacity: 1;
}

.site-nav__link:hover {
  color: var(--accent);
}

/* News burst badge */
.site-nav__link--news {
  position: relative;
  color: #fff;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 0;
}

.site-nav__link--news::before {
  content: "";
  position: absolute;
  inset: -4px -6px;
  background: var(--accent, #e8472a);
  clip-path: polygon(
    50% 0%, 61% 28%, 93% 11%, 78% 40%,
    100% 50%, 78% 60%, 93% 89%, 61% 72%,
    50% 100%, 39% 72%, 7% 89%, 22% 60%,
    0% 50%, 22% 40%, 7% 11%, 39% 28%
  );
  z-index: -1;
  animation: news-pulse 2s ease-in-out infinite;
}

@keyframes news-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.site-nav__link--news:hover {
  color: #fff;
}



/* Mobile toggle button */
.nav-toggle {
  margin-left: auto;
  display: none;
  border: 0.7px solid #aeadad;
  background: transparent;
  border-radius: 3px;
  padding: 18px 16px;
  cursor: pointer;
}

.nav-toggle__icon {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle__icon::before {
  top: -6px;
}

.nav-toggle__icon::after {
  top: 6px;
}



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

  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
  }
}

/* Site Intro Section */

.site-intro {
  max-width: 100%;
  margin: 60px auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  background-color: #252525;
  min-height: 480px;
}

/* Golden ratio: image 38.2%, text 61.8% */
.site-intro > div:first-child {
  flex: 0 0 38.2%;
}

.site-intro__image {
  width: 100%;
  height: 100%;
}

.site-intro__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.site-intro__text {
  flex: 1;
  color: #ffffff;
  padding: 60px 5% 60px 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-intro__text h1 {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.site-intro__text p {
  max-width: 60ch;
  margin-bottom: 18px;
  font-weight: 300;
  color: #ffffff;
}

@media (max-width: 700px) {
  .site-intro {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }

  .site-intro > div:first-child {
    flex: none;
    width: 100%;
  }

  .site-intro__image {
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .site-intro__text {
    padding: 32px 6%;
  }
}


/* FOOTER */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer__inner {
  max-width: 100%;
  margin: auto;
  padding: 80px 5% 140px 15%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  background-color: var(--footer-bg);
}

.footer-block__title {
  font-weight: bolder;
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: var(--header-bg);
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  color: var(--footer-text);
  text-decoration: none;
}

.footer-list a:hover {
  color: var(--accent);
}

.footer-text {
  color: var(--footer-text);
  margin: 0;
  line-height: 1.6;
}

.footer-text a {
  color: var(--accent);
  text-decoration: none;
}

.footer-text a:hover {
  color: var(--footer-text);
  text-decoration: none;
}

.site-footer__meta {
  border-top: 1px solid var(--border);
  padding: 50px 100px 100px 100px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  background-color: var(--bg);
}



/* PAGE BASIC */
.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 18px;
}

.page-header {
  margin-bottom: 18px;
}

.page-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 2rem;
}

.page-lead {
  margin: 0;
  color: var(--muted);
}

/* CARDS GRID */
.cards__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

/* CARDS: image-only with hover overlay */

.card {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.card__link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Media (image fills the tile) */
.card__media {
  width: 100%;
  height: 100%;
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 180ms ease;
}

/* Overlay (hidden by default) */
.card__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  background: var(--accent);
  /* your solid color */
  color: var(--accent-contrast, #fff);
  /* define in base.css */
}

/* Overlay content */
.card__overlay-inner {
  text-align: center;
  max-width: 26ch;
}

.card__icon-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.card__icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: none;
  /* optional */
}

.card__title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--accent-contrast);
}

.card__subtitle {
  margin: 0;
  opacity: 0.9;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover + keyboard focus = show overlay, hide image */
.card__link:hover .card__overlay,
.card__link:focus-visible .card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.card__link:hover .card__img,
.card__link:focus-visible .card__img {
  opacity: 0;
}

/* Nice focus outline for accessibility */
.card__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Touch devices: no hover → show overlay by default (optional) */
@media (hover: none) {
  .card__overlay {
    opacity: 1;
  }

  .card__img {
    opacity: 0;
  }
}

/* Cards that start showing the title/color side instead of the photo */
.card--title-first .card__overlay {
  opacity: 1;
  pointer-events: auto;
}

.card--title-first .card__img {
  opacity: 0;
}

.card--title-first .card__link:hover .card__overlay,
.card--title-first .card__link:focus-visible .card__overlay {
  opacity: 0;
  pointer-events: none;
}

.card--title-first .card__link:hover .card__img,
.card--title-first .card__link:focus-visible .card__img {
  opacity: 1;
}

.card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}


.card__meta {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ENTRY PAGE */

.entry-header {
  margin-bottom: 18px;
}

.entry-back a {
  color: var(--muted);
  text-decoration: none;
}

.entry-back a:hover {
  text-decoration: underline;
}

.entry-title {
  margin: 6px 0 8px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.05;
}

.entry-meta {
  margin: 0;
  color: var(--muted);
}

.entry-content {
  max-width: 72ch;
}

.entry-content p {
  margin: 0 0 14px;
}

.entry-figure {
  margin: 18px 0 20px;
}

.entry-img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.entry-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-quote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

.entry-quote p {
  margin: 0;
}

.entry-quote footer {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}


.entry-nav {
  max-width: 72ch;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.entry-nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.entry-nav a:hover {
  text-decoration: underline;
}

.entry-nav a[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

/* ===== Journey Entries Feed ===== */



.entry-teaser {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.entry-teaser__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.entry-teaser__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  /* große, cinematische Bilder */
  width: 100%;
  background: rgba(0, 0, 0, 0.03);
}

.entry-teaser__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-teaser__body {
  padding: 16px 16px 18px;
}

.entry-teaser__date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.entry-teaser__title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1.1;
}

.entry-teaser__subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.entry-teaser:hover {
  border-color: rgba(0, 0, 0, 0.18);
}

.entry-teaser__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 16px;
}

/* Optional: auf sehr großen Screens etwas "magaziniger" */
@media (min-width: 980px) {
  .entry-teaser__body {
    padding: 18px 20px 20px;
  }

  .entry-teaser__title {
    font-size: 2.1rem;
  }
}

@media (max-width: 600px) {
  .post__cover {
    max-height: 280px;
  }

  .post__coverimg {
    height: 280px;
  }
}


/* ===== Full Blog Feed (Blogger-like) ===== */

.entries-feed,
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 42px;
  max-width: 500px;
  margin: 0 auto;
}

/* Container zentrieren wie Artikelbreite */
/* Chapter divider */
.chapter-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: 40vh;
  background: var(--accent);
  color: var(--accent-contrast, #fff);
  text-align: center;
  padding: 60px 24px;
  margin-top: 80px;
  margin-bottom: 80px;
}

.chapter-divider__inner {
  max-width: 600px;
}

.chapter-divider__label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin: 0 0 16px;
  font-family: var(--font-body);
}

.chapter-divider__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  margin: 0;
  font-family: var(--font-display, var(--font-body));
  font-weight: 700;
  color: var(--accent-contrast, #fff);
}

.post {
  max-width: 500px;
  margin: 0 auto;
}

/* Cover: nicht zu hoch */
.post__cover {
  aspect-ratio: auto;
  /* override 16:9 */
  max-height: 420px;
}

.post__coverimg {
  height: 420px;
  max-width: 600px;
  /* <- wichtig */
  /* <- wichtig */
  object-fit: contain;
}

.post__head {
  padding: 18px 18px 0;
}

.post__date {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.post__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1.05;
  font-style: normal;
  font-weight: bold;
  color: #252525;
}



.post__title a:hover {
  color: var(--accent);
}

.post__subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
  font-style: none;
  font-weight: bold;
  color: #252525;
}

.post__content {
  padding: 0 18px 22px;
  max-width: 72ch;
}

.post__content p {
  margin: 0 0 14px;
}

.post__figure {
  margin: 18px 0;
}

.post__img-inline {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.post__caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.post__loading,
.post__missing {
  color: var(--muted);
}


.journey-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 18px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 28px;
  align-items: start;
}

.journey-toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 14px 14px;
  background: var(--bg);
}

.journey-toc__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}



.journey-toc__list a {
  color: inherit;
  text-decoration: none;
}

.journey-toc__list a:hover {
  color: var(--accent);
  text-decoration: none;
}

@media (max-width: 900px) {
  .journey-layout {
    grid-template-columns: 1fr;
  }

  .journey-toc {
    position: static;
    order: -1;
  }
}

.post__title a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-style: normal;
  font-weight: bold;
  color: #252525;
  text-decoration: none;
}

.post__title-icon {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ===== TOC icons ===== */

.toc-item a {
  display: flex;
  align-items: center;
  gap: 5px;
}



.journey-toc__list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-item a.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
}

.toc-icon {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.toc-num {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  min-width: 2ch;
}

.toc-title {
  line-height: 1.2;
}

.toc-item.is-active a.toc-link {
  background: rgba(0, 0, 0, 0.06);
  outline: 1px solid rgba(0, 0, 0, 0.10);
}

.toc-item.is-active .toc-num {
  color: var(--text);
}

/* Home Intro Section */

.home-intro {
  max-width: 800px;
  margin: 60px auto;
  /* zentriert in der Seite */
  padding: 0 20px;
  /* schützt auf kleinen Screens */
  display: flex;
  align-items: center;
  /* vertikal mittig */
  gap: 32px;
}

.home-intro__image {
  flex: 0 0 65%;
}

.home-intro__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.home-intro__text {
  flex: 0 0 40%;
  color: #252525;
}

.home-intro__text h1 {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 12px;
}

.home-intro__text p {
  max-width: 60ch;
  margin-bottom: 18px;
  font-weight: 300;
  color: #444444;
}

@media (max-width: 700px) {
  .home-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .home-intro__image,
  .home-intro__text {
    flex: none;
    width: 100%;
  }
}

.btn[hidden] { display: none; }

.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  border: 1px solid transparent;
}

.btn-primary {
  background: #252525;
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.92;
}

/* Gallery */

.gallery {
  margin: 0 auto;
  padding: 14px 18px;
  --header-bg: #252525;
  --footer-bg: #ffffff;
  --header-text: #ffffff;
  --footer-text: #252525;
  --bg: #252525;
  --muted: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.2rem;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  /* perfekte Quadrate */
  overflow: hidden;
  border-radius: 12px;
  /* optional, moderner Look */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* füllt das Quadrat */
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 1rem;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 0));

  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.gallery-item {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.post__video-inline {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  background: black;
}

.post__figure video {
  max-width: 100%;
}


/* =========================
   Postcards
========================= */

.postcard-viewer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.postcard-scene {
  perspective: 1200px;
}

.postcard {
  position: relative;
  transform-style: preserve-3d;
  transition:
    transform 0.8s ease,
    opacity 0.4s ease;
}

/* Portrait */
.postcard:not(.landscape) {
  height: 90vh;
    max-height: 700px;
  aspect-ratio: 2 / 3;
}

/* Landscape */
.postcard.landscape {
  width: 55vw;
  max-width: 700px;
  aspect-ratio: 3 / 2;
}

.postcard.is-fading {
  opacity: 0;
}

.postcard.is-flipped {
  transform: rotateY(180deg);
}

.postcard-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  background-size: cover;
  background-position: center;
}

.postcard-back {
  transform: rotateY(180deg);
}

.postcard-text {
  position: absolute;
  font-family: serif;
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-line;
  color: #252525;
  font-family: cursive ;
}

/* Navigation */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 3rem;
  color: #888;
  cursor: pointer;
  z-index: 10;
  padding: 1rem;
    outline: none;
      box-shadow: none;
}

.nav.prev {
  left: 1rem;
}

.nav.next {
  right: 1rem;
}

.nav:hover {
  color: white;
}

.back-button {
  position: fixed;
  cursor: pointer;
  top: 2rem;
  left: 2rem;
  text-decoration: none;
  color: var(--header-text);
  opacity: 60%;
  font-size: 25px;
  line-height: 1;
  font-weight: bolder;
  font-family: "Rajdhani", system-ui, -apple-system, Segoe UI, sans-serif;;
}

.lang-toggle {
  outline: none;
  position: fixed;
  top: 2rem;
  right: 2rem;
  color: #9c9b9b;
  font-size: 18px;
  padding-right: .5rem;
  padding-left: .5rem;
  text-decoration: none;
  opacity: 1;
  cursor: pointer;
  box-shadow: none;
  background: none;
  border: none;
  appearance: none;
}

.lang-toggle:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .postcard.landscape {
    width: 95vw;
  }

  .postcard:not(.landscape) {
    height: 75vh;
  }
}
