:root {
  --ink: #0b1f33;
  --muted: #536371;
  --blue: #04466b;
  --deep-blue: #062f4d;
  --olive: #536b43;
  --terracotta: #b9532a;
  --sand: #f4efe5;
  --paper: #fffaf1;
  --line: rgba(11, 31, 51, 0.16);
  --shadow: 0 24px 70px rgba(14, 38, 54, 0.18);
  --radius: 8px;
  --mobile-page-gutter: 14px;
  --mobile-page-width: min(calc(100% - 2 * var(--mobile-page-gutter)), 760px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f8f3ea;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  min-height: 600px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 36, 58, 0.85) 0%, rgba(4, 36, 58, 0.56) 42%, rgba(4, 36, 58, 0.12) 78%),
    linear-gradient(180deg, rgba(4, 36, 58, 0.12) 58%, #f8f3ea 100%),
    url("/assets/portugal-hero.png") center / cover no-repeat;
  position: relative;
}

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: 999px;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 385px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 18px 0 92px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--terracotta);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.86rem;
}

.hero .eyebrow {
  color: #f4ba85;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.25vw, 4.85rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.subtitle {
  margin-bottom: 14px;
  color: #dce9d3;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 650;
}

.intro {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
}

.mindset {
  color: var(--ink);
  background: rgba(255, 250, 241, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mindset h2 {
  margin: 0;
  padding: 15px 20px;
  color: #fff;
  background: var(--olive);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mindset ul {
  list-style: none;
  margin: 0;
  padding: 8px 20px 14px;
}

.mindset li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
}

.mindset li:last-child {
  border-bottom: 0;
}

.icon {
  color: var(--olive);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: -72px auto 0;
  position: relative;
  z-index: 2;
}

.route-panel,
.overview-card,
.content-section {
  background: rgba(255, 250, 241, 0.96);
  border: 1px solid rgba(11, 31, 51, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(45, 34, 17, 0.08);
}

.route-panel {
  padding: 34px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.section-heading h2,
.content-section h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.route-line {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 0;
  position: relative;
}

.route-line::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 43px;
  border-top: 2px dashed rgba(83, 107, 67, 0.42);
}

.route-line li {
  min-width: 0;
  text-align: center;
  position: relative;
  padding: 0 10px;
}

.route-dot {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  border: 4px solid var(--paper);
  box-shadow: 0 7px 20px rgba(4, 70, 107, 0.22);
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.terminal .route-dot {
  background: var(--terracotta);
}

.route-line strong {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.94rem;
}

.route-line span:last-child {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0;
}

.overview-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  color: var(--olive);
  border: 1px solid rgba(83, 107, 67, 0.28);
  border-radius: 50%;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.overview-card h2 {
  margin-bottom: 14px;
  font-size: 1.16rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.overview-card p,
.overview-card dd,
.overview-card li,
.place-card p,
.place-card li,
.transport-stack p,
.day-grid p {
  color: var(--muted);
}

.fact-list {
  margin: 0;
}

.fact-list div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.fact-list dd {
  margin: 0;
  font-size: 0.94rem;
}

.compact-list {
  margin: 0;
  padding-left: 18px;
}

.compact-list li {
  margin: 0 0 10px;
}

.button {
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  color: #fff;
  background: var(--deep-blue);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
}

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

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

.rhythm-list li {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.content-section {
  margin: 14px 0;
  padding: 44px;
}

.note-grid,
.place-grid,
.day-grid {
  display: grid;
  gap: 14px;
}

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

.note-grid article,
.transport-stack article,
.day-grid article {
  padding: 22px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.note-grid h3,
.place-card h3,
.transport-stack h3,
.day-grid h3 {
  margin-bottom: 8px;
  color: var(--deep-blue);
}

.place-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.place-card {
  position: relative;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(4, 70, 107, 0.05), rgba(185, 83, 42, 0.05)),
    #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.place-number {
  color: var(--terracotta);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
}

.place-card h3 {
  margin: 8px 0 2px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.place-meta {
  color: var(--olive);
  font-weight: 850;
}

.place-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 34px;
}

.transport-stack {
  display: grid;
  gap: 10px;
}

.transport-stack article {
  padding: 18px 20px;
}

.transport-stack h3,
.transport-stack p {
  margin-bottom: 0;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 0;
}

.link-row a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 12px;
  color: #fff;
  background: var(--olive);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 800;
}

.check-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.check-grid li {
  padding: 16px 18px;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 750;
}

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

.day-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--olive);
  border-radius: 50%;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 24px auto 0;
  padding: 34px 0 42px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    min-height: auto;
  }

  .topbar,
  .hero {
    width: var(--mobile-page-width);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 0 104px;
  }

  .mindset {
    max-width: 520px;
  }

  main,
  .site-footer {
    width: var(--mobile-page-width);
  }

  main {
    margin-top: -56px;
  }

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

  .route-line,
  .overview-grid,
  .note-grid,
  .place-grid,
  .check-grid,
  .day-grid {
    grid-template-columns: 1fr;
  }

  .route-line {
    gap: 12px;
    padding-top: 0;
  }

  .route-line::before {
    left: 23px;
    right: auto;
    top: 23px;
    bottom: 23px;
    border-top: 0;
    border-left: 2px dashed rgba(83, 107, 67, 0.42);
  }

  .route-line li {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    text-align: left;
    padding: 0;
  }

  .route-dot {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .overview-card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
  }

  .brand {
    font-size: 0.78rem;
  }

  .nav-links a {
    white-space: nowrap;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .hero {
    flex: 1;
    align-items: end;
    padding-bottom: 64px;
  }

  .mindset {
    display: none;
  }

  main {
    margin-top: 16px;
  }

  .route-panel,
  .content-section {
    padding: 24px;
  }

  .overview-card,
  .place-card,
  .note-grid article,
  .day-grid article {
    padding: 20px;
  }

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

/* Wettervergleich und Packempfehlungen */
.source-note { color: var(--muted); font-size: 0.875rem; }
.climate-table-wrap { overflow-x: auto; margin: 26px 0 16px; }
.climate-table { width: 100%; border-collapse: collapse; text-align: left; }
.climate-table caption { text-align: left; font-weight: 750; margin-bottom: 12px; }
.climate-table th, .climate-table td { padding: 14px; vertical-align: top; border-bottom: 1px solid var(--line); }
.climate-table thead { color: #fff; background: var(--deep-blue); }
.climate-table tbody th { color: var(--deep-blue); }
.packing-grid li { color: var(--ink); }
section[id] { scroll-margin-top: 20px; }
@media (max-width: 620px) {
  .climate-table { min-width: 650px; }

}

/* Compact warm-glass section navigation. */
@media (max-width: 980px) {
  .topbar {
    position: fixed;
    inset: 8px 0 auto;
    z-index: 20;
    width: var(--mobile-page-width);
    margin: 0 auto;
    padding: 5px;
    display: block;
    border-radius: 999px;
    background: rgb(255 250 241 / 0.82);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgb(255 255 255 / 0.5);
    box-shadow: 0 8px 24px -8px rgb(30 58 95 / 0.25);
  }
  .topbar .brand { display: none; }
  .nav-links {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 5px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links.can-scroll-right {
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent);
  }
  .nav-links.can-scroll-left {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 100%);
  }
  .nav-links.can-scroll-left.can-scroll-right {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, transparent 0, #000 16px, #000 calc(100% - 28px), transparent);
  }
  .nav-links a {
    flex: none;
    white-space: nowrap;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    min-height: 32px;
    padding: 9px 16px;
    text-align: center;
    color: var(--deep-blue);
    border-radius: 999px;
    filter: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    text-shadow: none;
  }
  .nav-links a:hover { background: rgb(4 70 107 / 0.08); }
  .nav-links a[aria-current="location"] { background: var(--blue); color: var(--paper); }
  .nav-links a:focus-visible { outline: 2px solid var(--terracotta); outline-offset: -2px; }
  .hero { padding-top: 90px; }
  section[id], article[id] { scroll-margin-top: 76px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (max-width: 980px) { .topbar { background: rgb(255 250 241 / 0.96); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 620px) {
  .content-section { overflow-wrap: anywhere; }
  .content-section :is(article, .transport-stack, .split-section > div) { min-width: 0; }
}
