:root {
  color-scheme: light;
  --bg: #f2eee7;
  --bg-accent: #e7dbc9;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-strong: #ffffff;
  --text: #1f2a2e;
  --muted: #5d6a70;
  --line: rgba(31, 42, 46, 0.12);
  --primary: #234e52;
  --primary-strong: #17373a;
  --gold: #b87b45;
  --shadow: 0 24px 60px rgba(31, 42, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(35, 78, 82, 0.12), transparent 30%),
    radial-gradient(circle at bottom right, rgba(184, 123, 69, 0.14), transparent 28%),
    linear-gradient(135deg, var(--bg), var(--bg-accent));
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "";
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 28px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.hero-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31, 42, 46, 0.16);
}

.hero-visual img,
.about-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
}

h1 {
  letter-spacing: -0.04em;
}

.title-prefix,
.title-name {
  display: block;
}

.title-prefix {
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.title-name {
  max-width: 11ch;
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 16px;
}

.intro {
  max-width: 62ch;
  margin: 24px 0 0;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-strong);
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.38);
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.feature-card,
.contact-card,
.about-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-strong);
  box-shadow: 0 12px 30px rgba(31, 42, 46, 0.06);
}

.feature-card-accent {
  background: linear-gradient(180deg, rgba(35, 78, 82, 0.08), rgba(255, 255, 255, 0.92));
}

.timeline-chart {
  margin-top: 16px;
}

.timeline-scroll {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
}

.timeline-svg {
  width: 100%;
  min-width: 1080px;
  height: auto;
  display: block;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.12));
  border: 1px solid rgba(31, 42, 46, 0.08);
  border-radius: 22px;
}

#timeline-base {
  stroke: rgba(35, 78, 82, 0.38);
  stroke-width: 2;
  stroke-linecap: round;
}

.timeline-phase {
  fill-opacity: 0.12;
  stroke-width: 0;
}

.timeline-phase-label {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: #17373a;
}

.timeline-segment {
  cursor: pointer;
}

.timeline-bar {
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
  transition: transform 140ms ease, opacity 140ms ease;
  transform-origin: center;
}

.timeline-segment.active .timeline-bar,
.timeline-segment:hover .timeline-bar,
.timeline-segment:focus-visible .timeline-bar {
  transform: scaleY(1.12);
  opacity: 0.92;
}

.timeline-stem {
  stroke: rgba(35, 78, 82, 0.38);
  stroke-width: 2;
}

.timeline-node-date {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  fill: #17373a;
}

.timeline-node-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  fill: #1f2a2e;
}

.timeline-node-location {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 11px;
  fill: #3f4c52;
}

.timeline-popup {
  position: absolute;
  top: 24px;
  left: 24px;
  width: min(340px, calc(100% - 20px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 46, 0.16);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(31, 42, 46, 0.18);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -8px);
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 4;
}

.timeline-popup.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.timeline-popup-date {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-strong);
  letter-spacing: 0.03em;
}

.timeline-popup h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

.timeline-popup p {
  margin: 0;
  line-height: 1.65;
  color: var(--muted);
}

.timeline-hint {
  margin: 10px 2px 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.section-label {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.section-heading {
  margin: 48px 0 18px;
}

.about-intro {
  margin: 48px 0 18px;
}

.about-intro h2 {
  margin-bottom: 0;
}

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

#reiseblog .about-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.about-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  padding: 0;
  overflow: hidden;
}

.about-card img {
  height: clamp(220px, 24vw, 260px);
}

.about-card div {
  align-self: start;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 28px 28px;
}

.about-card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-family: "Fraunces", Georgia, serif;
}

.about-card p,
.contact-card p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.about-card-text {
  background: linear-gradient(180deg, rgba(184, 123, 69, 0.12), rgba(255, 255, 255, 0.96));
}

.contact {
  margin-top: 22px;
}

.contact-card a {
  color: var(--primary-strong);
  font-weight: 700;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card {
  max-width: none;
}

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  #ueber .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0 32px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px;
    border-radius: 24px;
  }

  .section-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3.8rem);
  }

  .hero-copy::after {
    margin-top: 22px;
  }

  .section-heading {
    margin-top: 34px;
  }

  .about-card div {
    padding: 0 22px 22px;
  }

  .timeline-popup {
    width: min(300px, calc(100% - 20px));
  }

  .timeline-popup h3 {
    font-size: 1.12rem;
  }
}
