:root {
    --bg: #f4f8f6;
    --surface: rgba(255, 255, 255, 0.80);
    --surface-strong: rgba(255, 255, 255, 0.94);
    --text: #2d3a34;
    --creme: #fffdd0;
    --muted: #6b7c74;
    --accent: #f2c94c;
    --accent-dark: #cfa63a;
    --olive: #9bb7a4;
    --olive-dark: #6f8f7c;
    --line: rgba(170, 200, 180, 0.5);
    --soft: rgba(230, 240, 235, 0.85);
    --sand: #f6ecd2;
    --wood: #8b6b3f;
    --shadow: 0 18px 48px rgba(80, 90, 70, 0.15);
    --radius: 28px;
    --max: 1220px;
    --nav-height: 118px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    margin: 0;
    font-family: 'Glacial Indifference', Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    background-color: #f1efe7;
    background-image: linear-gradient(rgba(244, 248, 246, 0.72), rgba(244, 248, 246, 0.82)), rgb(244, 248, 246);
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 22%, rgba(255,255,255,0.22), transparent 20%), radial-gradient(circle at 80% 12%, rgba(217,229,227,0.24), transparent 24%), linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.08));
    animation: drift 22s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes drift {
    0% {
        transform: scale(1) translate3d(0,0,0);
    }

    100% {
        transform: scale(1.06) translate3d(0,-16px,0);
    }
}

h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.08;
    color: #24312a;
}

p {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
}

.glass {
    background: var(--surface);
    border: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    min-height: var(--nav-height);
    background: rgba(244, 248, 246, 0.82);
    border-bottom: 1px solid rgba(170, 200, 180, 0.38);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.brittany {
    font-family: 'Brittany', Georgia, serif;
}

.pull-right {
    text-align: right;
}

/* Hero Section */
.hero {
  height: 90vh;
  margin-top: 10vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 2rem;
  background: 
    radial-gradient(circle at 10% 20%, rgba(212, 229, 247, 0.3) 0%, rgba(254, 249, 227, 0.2) 90%),
    linear-gradient(rgba(250, 249, 246, 0.1), rgba(250, 249, 246, 0.3)),
    url('img/Jakobsweg.PNG') no-repeat center center;
  background-size: auto, auto, cover;
  overflow: hidden;
  color: var(--creme);
}

.hero h1 {
  color: var(--creme);
}

/* Winding path SVG background layer */
.hero-bg-path {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-muschel {
  width: 120px;
  height: 120px;
  margin-bottom: 3.5rem;
  fill: var(--pastel-yellow-dark);
  filter: drop-shadow(0 4px 10px rgba(204, 160, 16, 0.2));
  animation: pulse 4s infinite ease-in-out;
}

.hero-date {
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--pastel-blue-dark);
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* Countdown Timer */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
  color: var(--text);
}

.countdown-item {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--creme);
  min-width: 90px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
}

.countdown-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  background: rgba(255, 255, 255, 0.9);
}

.countdown-number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pastel-blue-dark);
  line-height: 2;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.text-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.text-content p {
  margin-bottom: 1.5rem;
}

#story .container {
  padding-top: 10vh;
}

.story-badge {
  display: inline-block;
  background-color: var(--pastel-yellow-mid);
  color: var(--pastel-blue-dark);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.motto {
  float: right;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.story-quote {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--pastel-blue-dark);
  line-height: 1.4;
  margin: 2rem 0;
  position: relative;
  padding: 0 2rem;
}

.story-quote::before, .story-quote::after {
  font-size: 4rem;
  position: absolute;
  opacity: 0.15;
  color: var(--pastel-yellow-dark);
  line-height: 1;
}

.story-quote::before {
  content: '„';
  left: 0;
  top: -1rem;
}

.story-quote::after {
  content: '"';
  right: 0;
  bottom: -2rem;
}

.danger {
    color: #c0392b;
    font-weight: 700;
}

.nav {
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    color: var(--text);
    font-family: 'Brittany', Georgia, serif;
    font-size: 1.18rem;
    letter-spacing: 0.03em;
    padding-top: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 6px 14px rgba(80,70,40,0.15);
}

.nav-links {
    position: relative;
    display: flex;
    gap: 10px 18px;
    padding: 10px 0 6px;
    max-width: 860px;
    align-items: flex-start;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 9px 12px;
    margin-top: 8px;
    border-radius: 999px;
    border: 1px solid rgba(170, 200, 180, 0.5);
    background: rgba(255, 252, 246, 0.92);
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-toggle-line {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--olive-dark);
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(80, 90, 70, 0.12);
}

.nav-route {
    position: absolute;
    inset: 0 0 0 0;
    pointer-events: none;
    z-index: 0;
}

    .nav-route svg {
        width: 100%;
        height: 100%;
        display: block;
    }

    .nav-route path {
        fill: none;
        stroke: #a7c4b1;
        stroke-width: 3;
        stroke-dasharray: none;
        stroke-linecap: round;
        opacity: 0.6;
    }

.nav-links a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    color: var(--muted);
    font-size: 0.72rem;
    padding: 5px 10px 5px 8px;
    border-radius: 999px;
    transition: color 0.25s ease, transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    font-weight: 700;
    background: rgba(255, 252, 246, 0.78);
    border: 1px solid rgba(170, 200, 180, 0.28);
    box-shadow: 0 8px 18px rgba(80, 90, 70, 0.06);
    backdrop-filter: blur(6px);
}

    .nav-links a:nth-of-type(odd) {
    transform: translateY(16px);
    }

    .nav-links a:nth-of-type(even) {
    transform: translateY(-16px);
    }

    .nav-links a::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--olive);
        box-shadow: 0 0 0 3px rgba(255,255,255,0.6);
        transition: transform 0.3s ease, background 0.3s ease;
        flex: 0 0 auto;
    }

    .nav-links a::after {
        content: none;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-dark);
        background: rgba(255, 252, 246, 0.94);
        box-shadow: 0 10px 22px rgba(242,201,76,0.14);
    }

    .nav-links a.active::before {
        width: 18px;
        height: 18px;
        border: 0;
        border-radius: 50%;
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        box-shadow: 0 0 0 6px rgba(255,255,255,0.72), 0 0 18px rgba(242,201,76,0.24);
        background-image: url("img/Jakobsmuschel.png");
    }

main {
    padding-top: calc(var(--nav-height) + 34px);
    padding-bottom: 50px;
    position: relative;
}

.path-wrapper {
    position: relative;
}

.camino-line {
    position: absolute;
    top: 70px;
    bottom: 160px;
    left: 50%;
    width: 210px;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 0.92;
}

    .camino-line::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(155,183,164,0.16), rgba(242,201,76,0.22));
        filter: blur(32px);
        border-radius: 999px;
    }

    .camino-line svg {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .camino-line path.main-road {
        fill: none;
        stroke: var(--accent);
        stroke-width: 7;
        stroke-linecap: round;
        stroke-dasharray: 12 18;
    }

    .camino-line path.side-road {
        fill: none;
        stroke: rgba(255,255,255,0.32);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-dasharray: 3 14;
    }

.hero,
.path-section,
footer {
    position: relative;
    z-index: 1;
}

.hero {
    padding: 16px 0 32px;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.6rem);
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: 0.2s ease;
    cursor: pointer;
    min-height: 44px;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 12px 26px rgba(203,141,61,0.2);
}

    .btn-primary:hover {
        background: var(--accent-dark);
    }

.btn-secondary {
    background: rgba(255,252,246,0.9);
    border-color: var(--line);
    color: var(--text);
}

.path-section {
    padding: 26px 0;
}

.path-stop {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    position: relative;
}

    .path-stop.reverse {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

        .path-stop.reverse .signpost-column {
            order: 2;
        }

        .path-stop.reverse .content-column {
            order: 1;
        }

.signpost-column {
    position: sticky;
    top: 136px;
    align-self: start;
}

.signpost {
    position: relative;
    padding-left: 34px;
    min-height: 168px;
}

    .signpost::before {
        content: "";
        position: absolute;
        left: 8px;
        top: 0;
        bottom: 0;
        width: 10px;
        border-radius: 999px;
        background: linear-gradient(180deg, #7a5c34 0%, #5f4728 100%);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }

.arrow-board {
    position: relative;
    display: block;
    width: 100%;
    padding: 18px 24px;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #f7d774 0%, #f2c94c 100%);
    color: white;
    border-radius: 16px 16px 16px 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 14px 28px rgba(127, 87, 33, 0.18);
}

    .arrow-board::before {
        content: "";
        position: absolute;
        left: -36px;
        top: 50%;
        width: 26px;
        height: 26px;
        transform: translateY(-50%);
        background-repeat: no-repeat;
        background-size: contain;
        background-position: center;
        background-image: url('img/Jakobsmuschel.png');
    }

.arrow-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 252, 246, 0.86);
    border: 1px solid var(--line);
    color: var(--olive-dark);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    box-shadow: 0 10px 18px rgba(83, 67, 38, 0.08);
}

.card {
    position: relative;
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

    .card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
        opacity: 0.2;
        pointer-events: none;
        border-radius: inherit;
    }

.reveal {
    min-height: 90vh;
    opacity: 0;
    transform: translateY(38px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.15rem);
    margin-bottom: 12px;
}

.section-intro {
    color: var(--muted);
    max-width: 66ch;
    margin-bottom: 24px;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.muted {
    color: var(--muted);
}

.details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px;
}

    .details-list li {
        padding: 16px 18px;
        border-radius: 18px;
        border: 1px solid var(--line);
        background: rgba(237, 242, 229, 0.7);
    }

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 18px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}

    .timeline-item:first-child {
        border-top: 0;
        padding-top: 0;
    }

.timeline-time {
    font-weight: 800;
    color: var(--accent-dark);
}

.menu-card,
.upload-card,
.route-card {
    position: relative;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 252, 246, 0.76);
}

.coord-box {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(237, 242, 229, 0.72);
    border: 1px solid var(--line);
}

.coord-box,
.coord-box .muted {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.route-stack,
.menu-grid,
.upload-grid {
    display: grid;
    gap: 16px;
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,252,246,0.92);
    border: 1px solid var(--line);
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 700;
}

footer {
    padding: 28px 0 72px;
    color: rgba(38, 51, 46, 0.82);
    text-align: center;
}

.small {
    font-size: 0.92rem;
}

@media (max-width: 1120px) {
    .path-stop,
    .path-stop.reverse {
        grid-template-columns: 1fr;
    }

        .path-stop.reverse .signpost-column,
        .path-stop.reverse .content-column {
            order: initial;
        }

    .signpost-column {
        position: relative;
        top: 0;
    }

    .camino-line {
        left: 66px;
        transform: none;
        width: 110px;
    }

    .menu-grid,
    .upload-grid,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links {
        justify-content: flex-start;
        max-width: 100%;
        gap: 10px 14px;
    }
}

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 22px 18px;
    }

    .path-section {
        padding: 20px 0;
    }

    .route-card .btn,
    .upload-card .btn {
        width: 100%;
    }

    .arrow-board {
        padding: 14px 18px;
    }

    .arrow-board::before {
        left: -24px;
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 760px) {
    :root {
        --nav-height: 10vh;
    }

    body {
        background-attachment: scroll;
    }

    .topbar {
        height: auto;
    }

    .nav {
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
        min-height: var(--nav-height);
    }

    .brand {
        order: 1;
        flex: 0 0 auto;
        margin-top: 8px;
    }

    .nav-toggle {
        order: 2;
        display: inline-flex;
    }

    .nav-route {
        display: none;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex: 0 0 100%;
        margin-top: 10px;
        display: none;
        max-width: 100%;
        flex-direction: column;
        gap: 6px;
        padding-bottom: 10px;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a:nth-of-type(odd) {
        transform: translateY(-1rem);
        justify-content: flex-start;
    }

    main {
        padding-top: calc(var(--nav-height) + 18px);
    }

    .motto {
        display: block;
        float: none;
        text-align: center;
        margin-bottom: 1rem;
    }

    .camino-line {
        display: none;
    }

    .signpost {
        padding-left: 24px;
    }

    .arrow-board::after {
        right: -18px;
        border-top-width: 22px;
        border-bottom-width: 22px;
        border-left-width: 20px;
    }

    .countdown-number {
        font-size: 1rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }
}

@font-face {
  font-family: "Brittany";
  src: url(font/Brittany.otf) format("opentype");
}
