/* ── Golf & Natur Page ── */

/* HERO */
.golf-hero {
    position: relative;
    height: 100vh; /* Fallback für ältere Browser */
    height: 100svh; /* Stabile Viewport-Höhe — kein Zittern beim Scrollen durch ein-/ausblendende Adressleiste */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--ob-dark);
}
.golf-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/golf.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.55;
    transform: scale(1.05);
    transition: transform 8s ease;
}
@media (hover: hover) and (pointer: fine) {
    .golf-hero:hover .golf-hero__bg { transform: scale(1.0); }
}
.golf-hero__content {
    position: relative;
    text-align: center;
    color: var(--ob-white);
    padding: 0 24px;
    max-width: 800px;
}
.golf-hero__eyebrow {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 6px 16px;
    border-radius: 20px;
}
.golf-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    line-height: 1.1;
}
.golf-hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.85;
    font-style: italic;
    line-height: 1.6;
}
.golf-hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.golf-hero__scroll span {
    display: block;
    width: 2px;
    height: 40px;
    background: rgba(255,255,255,0.4);
    margin: 0 auto;
    animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
    0%,100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(0.6); }
}

/* INTRO */
.golf-intro {
    background: var(--ob-sand);
    padding: 80px 24px;
}
.golf-intro__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}
.golf-intro__badge {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--ob-ocean);
    color: var(--ob-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.golf-intro__number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.golf-intro__label {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 4px;
}
.golf-intro__text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
    color: var(--ob-dark);
}
.golf-intro__text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

/* HIGHLIGHT */
.golf-highlight {
    background: var(--ob-ocean);
    color: var(--ob-white);
    padding: 32px 24px;
}
.golf-highlight__inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.golf-highlight__icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}
.golf-highlight__text {
    flex: 1;
    min-width: 200px;
}
.golf-highlight__text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 4px;
}
.golf-highlight__text p {
    opacity: 0.8;
    font-size: 0.95rem;
}
.ob-btn--outline {
    background: transparent;
    border: 2px solid var(--ob-ocean);
    color: var(--ob-ocean);
    flex-shrink: 0;
}
.ob-btn--outline:hover {
    background: var(--ob-ocean);
    color: var(--ob-white);
}

/* Outline auf dunklem Hintergrund (Highlight-Banner) */
.golf-highlight .ob-btn--outline {
    border-color: var(--ob-white);
    color: var(--ob-white);
}
.golf-highlight .ob-btn--outline:hover {
    background: var(--ob-white);
    color: var(--ob-ocean);
}

/* MAP SECTION */
.golf-map-section {
    padding: 80px 0 0;
    background: var(--ob-white);
}
.golf-map-section__header {
    text-align: center;
    padding: 0 24px 40px;
    max-width: 700px;
    margin: 0 auto;
}
.golf-map-section__header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 12px;
}
.golf-map-section__header p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}
.golf-map-wrap {
    position: relative;
    height: 600px;
}
#golf-map-el {
    width: 100%;
    height: 100%;
}

/* MARKERS */
.golf-marker {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.15s;
}
@media (hover: hover) and (pointer: fine) {
    .golf-marker:hover { transform: scale(1.15); }
}
.golf-marker--house { background: #1a4a6b; }
.golf-marker--golf  { background: #2d7a2d; }

/* SIDE PANEL */
.golf-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px;
    background: var(--ob-white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 500;
    transform: translateX(360px);
    transition: transform 0.3s ease;
    max-height: 560px;
    display: flex;
    flex-direction: column;
}
.golf-panel--open { transform: translateX(0); }
.golf-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: var(--ob-ocean);
    color: var(--ob-white);
    border-radius: 8px 8px 0 0;
    cursor: move;
    user-select: none;
}
.golf-panel__title {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}
.golf-panel__close {
    background: none;
    border: none;
    color: var(--ob-white);
    cursor: pointer;
    font-size: 1rem;
    opacity: 0.7;
    padding: 0 0 0 12px;
}
.golf-panel__close:hover { opacity: 1; }
.golf-panel__body {
    padding: 16px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.golf-panel__img-wrap img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}
.golf-panel__desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #444;
}
.golf-panel__meta {
    font-size: 0.85rem;
    color: var(--ob-ocean);
    font-weight: 600;
}
.golf-panel__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ob-btn--sm {
    padding: 8px 16px;
    font-size: 12px;
}
.golf-panel__route-info {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: #333;
    background: var(--ob-sand);
    padding: 10px 12px;
    border-radius: 6px;
}

/* COURSES LIST */
.golf-list {
    padding: 80px 24px;
    background: var(--ob-sand);
}
.golf-list__inner {
    max-width: 1200px;
    margin: 0 auto;
}
.golf-list__inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 40px;
    text-align: center;
}
.golf-list__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.golf-card {
    background: var(--ob-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.golf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.golf-card__img-wrap {
    height: 180px;
    overflow: hidden;
    background: #eee;
}
.golf-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
@media (hover: hover) and (pointer: fine) {
    .golf-card:hover .golf-card__img-wrap img { transform: scale(1.05); }
}
.golf-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.golf-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ob-dark);
}
.golf-card__dist {
    font-size: 0.82rem;
    color: var(--ob-ocean);
    font-weight: 600;
}
.golf-card__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.golf-card__btn {
    margin-top: 8px;
    align-self: flex-start;
}
.golf-card__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* NATURE SECTION */
.golf-nature {
    padding: 80px 24px;
    background: var(--ob-white);
}
.golf-nature__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.golf-nature__text h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 20px;
}
.golf-nature__text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}
.golf-nature__img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* CTA */
.golf-cta {
    background: var(--ob-dark);
    color: var(--ob-white);
    padding: 80px 24px;
    text-align: center;
}
.golf-cta__inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}
.golf-cta__inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}
.golf-cta__inner p {
    opacity: 0.8;
    line-height: 1.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .golf-intro__inner { flex-direction: column; gap: 32px; text-align: center; }
    .golf-highlight__inner { flex-direction: column; text-align: center; }
    .golf-map-wrap { height: 450px; }
    .golf-panel {
        position: fixed;
        bottom: 0; left: 0; right: 0; top: auto;
        width: 100%;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
        max-height: 70vh;
    }
    .golf-panel--open { transform: translateY(0); }
    .golf-nature__inner { grid-template-columns: 1fr; }
    .golf-list__grid { grid-template-columns: 1fr; }
}
