/* ==========================================================================
   CaFEE Touren rund ums Café – Page Styles
   Extends styles.css – DO NOT redefine base variables.
   ========================================================================== */

/* ----------------------------------------
   Page body: native pointer until the custom cursor is ready
   ---------------------------------------- */
body.touren-page {
    /* Copper for small text on white: 5.5:1 instead of 4.46:1 */
    --touren-copper-text: #8a5f4c;
}

body.touren-page:not(.touren-cursor-active) {
    cursor: auto;
}

.touren-page:not(.touren-cursor-active) a,
.touren-page:not(.touren-cursor-active) button {
    cursor: pointer;
}

.touren-page .cursor-dot[hidden],
.touren-page .cursor-trail[hidden],
.touren-page .fairy-dust-container[hidden] {
    display: none !important;
}

.touren-page main#main,
.touren-page .wp-block-post-content {
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.touren-page .wp-block-post-content > * {
    max-width: none !important;
    margin-left: 0;
    margin-right: 0;
}

/* Solid header from the first pixel (dark hero below) */
.touren-page .nav {
    background-color: rgba(250, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md) 0;
    box-shadow: var(--shadow-md);
}

.touren-page .nav .nav-logo img {
    height: 60px;
    filter: none;
}

.touren-page .nav .nav-menu a {
    color: var(--color-secondary);
}

.touren-page .nav .nav-cta {
    color: var(--color-white) !important;
}

.touren-page .nav .nav-toggle span {
    background-color: var(--color-secondary);
}

/* Keyboard focus, matching the copper brand colour */
.touren-page a:focus-visible,
.touren-page button:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

/* .btn and .nav-cta carry a mask-image (Safari radius fix) that would clip the ring */
.touren-page .btn:focus-visible,
.touren-page .nav-cta:focus-visible {
    -webkit-mask-image: none;
    mask-image: none;
    outline-offset: 4px;
}

.touren-hero .btn:focus-visible {
    outline-color: var(--color-gold-light);
}

/* ----------------------------------------
   Reveal animation (progressive: content stays visible without JS)
   ---------------------------------------- */
.touren-motion .touren-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.touren-motion .touren-reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ========================================
   1. HERO
   ======================================== */
.touren-hero {
    --touren-art-height: max(150px, 16.667vw);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(134px + var(--space-3xl)) var(--space-xl) calc(var(--touren-art-height) + var(--space-xl));
    overflow: hidden;
    background: linear-gradient(160deg, #3c3c3b 0%, #2a2a29 55%, #1a1a1a 100%);
    color: var(--color-white);
}

/* Decorative landscape band below the text: never behind copy or buttons */
.touren-hero-art {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: var(--touren-art-height);
    pointer-events: none;
}

.art-ridge--back {
    fill: rgba(255, 255, 255, 0.035);
}

.art-ridge--mid {
    fill: rgba(189, 137, 113, 0.12);
}

.art-ridge--front {
    fill: rgba(20, 20, 20, 0.6);
}

.art-river {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 2;
}

.art-river--soft {
    stroke: rgba(212, 168, 142, 0.16);
}

.art-route {
    fill: none;
    stroke: var(--color-primary-light);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1 14;
    opacity: 0.75;
}

.art-tower {
    fill: none;
    stroke: var(--color-primary-light);
    stroke-width: 2;
    stroke-linejoin: round;
    opacity: 0.7;
}

.art-pin-ring {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.5;
    opacity: 0.45;
}

.art-pin {
    fill: var(--color-primary);
}

.art-pin-dot {
    fill: var(--color-cream);
}

.art-spark {
    fill: var(--color-gold-light);
    opacity: 0.45;
}

.touren-hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.touren-hero .section-title {
    margin-bottom: var(--space-lg);
}

.touren-hero .title-display {
    color: var(--color-white);
}

.touren-hero .title-script {
    font-size: var(--text-5xl);
    color: var(--color-primary-light);
}

.touren-hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 620px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.8;
}

.touren-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
}

.touren-hero .btn-secondary {
    border-color: rgba(255, 255, 255, 0.55);
}

/* ========================================
   2. TOUREN
   ======================================== */
.touren-list {
    position: relative;
    padding: var(--space-5xl) var(--space-xl);
    background: var(--gradient-warm);
    scroll-margin-top: 80px;
}

.touren-list-container {
    max-width: 1200px;
    margin: 0 auto;
}

.touren-list-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.touren-list-header .section-subtitle {
    margin-bottom: 0;
    font-size: var(--text-base);
}

.touren-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
    align-items: stretch;
}

.tour-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.tour-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-2xl);
}

.touren-motion .tour-card.touren-reveal.is-visible:hover {
    transform: translateY(-6px);
}

.tour-card-top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.tour-card-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--gradient-fairy);
    color: var(--color-primary-dark);
    padding: 12px;
}

.tour-card-icon svg {
    width: 100%;
    height: 100%;
}

.tour-card-type {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--touren-copper-text);
    border: 1px solid rgba(189, 137, 113, 0.5);
    border-radius: var(--radius-full);
    padding: 2px var(--space-md);
    line-height: 1.8;
}

.tour-card-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.25;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.tour-card-kicker {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--touren-copper-text);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.tour-card-text {
    font-size: var(--text-sm);
    color: var(--color-secondary-light);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.tour-facts {
    margin: auto 0 var(--space-lg);
    border-top: 1px solid var(--color-cream-dark);
}

.tour-fact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 var(--space-md);
    padding: 10px 0;
    border-bottom: 1px solid var(--color-cream-dark);
}

.tour-fact dt {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary-light);
    line-height: 1.5;
}

.tour-fact dd {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-secondary);
    line-height: 1.35;
    text-align: right;
    margin-left: auto;
}

.tour-card .tour-card-link {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    line-height: 1.35;
    text-align: center;
    white-space: normal;
}

.tour-card-link svg {
    flex-shrink: 0;
}

.touren-note {
    max-width: 640px;
    margin: var(--space-2xl) auto 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--color-secondary-light);
}

/* ========================================
   3. EINKEHREN
   ======================================== */
.touren-einkehr {
    padding: var(--space-5xl) var(--space-xl);
    background: var(--color-cream);
    overflow: hidden;
}

.touren-einkehr-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-4xl);
    align-items: center;
}

.touren-einkehr-media {
    position: relative;
    padding: 0 var(--space-2xl) var(--space-3xl) 0;
}

.touren-einkehr-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.touren-einkehr-image--small {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 46%;
    border: 6px solid var(--color-cream);
    box-shadow: var(--shadow-2xl);
}

.touren-einkehr-text .section-badge {
    margin-bottom: var(--space-sm);
}

.touren-einkehr-text > p:not(.section-badge) {
    color: var(--color-secondary-light);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.touren-einkehr-info {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--space-xl);
    margin: var(--space-xl) 0 var(--space-2xl);
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.touren-info-block h3 {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--touren-copper-text);
    margin-bottom: var(--space-sm);
}

.touren-info-block p,
.touren-hours dt,
.touren-hours dd {
    font-size: var(--text-sm);
    color: var(--color-secondary);
    line-height: 1.6;
}

.touren-hours-row + .touren-hours-row {
    margin-top: var(--space-sm);
}

.touren-hours dd {
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1280px) {
    .tour-card {
        padding: var(--space-xl);
    }
}

@media (max-width: 1024px) {
    .touren-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .touren-grid .tour-card:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - var(--space-xl) / 2);
        justify-self: center;
        width: 100%;
    }

    .touren-einkehr-container {
        gap: var(--space-3xl);
    }

    .touren-einkehr-info {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

@media (max-width: 900px) {
    .touren-page .nav .nav-logo img {
        height: 40px;
    }

    .touren-hero {
        padding-top: calc(72px + var(--space-3xl));
    }
}

@media (max-width: 767.98px) {
    .touren-hero {
        padding: calc(72px + var(--space-2xl)) var(--space-md) calc(var(--touren-art-height) + var(--space-lg));
    }

    .touren-hero .title-script {
        font-size: var(--text-4xl);
    }

    .touren-hero-subtitle {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }

    .touren-hero-actions .btn {
        width: 100%;
        max-width: 340px;
    }

    .touren-list,
    .touren-einkehr {
        padding: var(--space-4xl) var(--space-md);
    }

    .touren-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .touren-grid .tour-card:last-child {
        max-width: none;
    }

    .tour-card {
        padding: var(--space-xl) var(--space-lg);
    }

    .touren-einkehr-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .touren-einkehr-media {
        padding: 0 var(--space-lg) var(--space-2xl) 0;
    }

    .touren-einkehr-info {
        padding: var(--space-lg);
    }

    .touren-einkehr-text .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .touren-motion .touren-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .tour-card,
    .tour-card:hover {
        transition: none;
        transform: none;
    }
}

[hidden] { display: none !important; }
