/* Building blocks of the content sections: split layout, equipment cards,
   audience cards, learning section, prices, booking embed, bistro,
   FAQ, contact list and legal pages. */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--top { align-items: start; }
.split img { width: 100%; border-radius: var(--radius); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Official Trackman logo (clear space of about one letter height as per the Trackman logo rules) */
.partner-logo { display: inline-flex; flex-direction: column; gap: 0.6rem; margin-top: 0.8rem; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--night); }
.partner-logo small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.partner-logo img { width: min(260px, 60vw); height: auto; }

/* Equipment cards */
.features { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.features li { padding: 1.2rem 1.25rem 1.3rem; background: var(--card); border-radius: var(--radius); border-top: 3px solid var(--green); }
.features svg { width: 32px; height: 32px; margin-bottom: 0.6rem; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.features h3 { margin-bottom: 0.3rem; }
.features p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } }

/* Audience cards: who indoor golf is for */
.audience { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.audience li { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.audience img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.audience-body { padding: 1.1rem 1.25rem 1.3rem; border-top: 3px solid var(--green); flex: 1; }
.audience-body small { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-light); }
.audience-body h3 { margin: 0.2rem 0 0.4rem; }
.audience-body p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 1000px) { .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }

/* Highlighted section for learning golf with the pro */
.section--dark { background: radial-gradient(circle at 15% 20%, rgba(52, 184, 100, 0.16), transparent 55%), var(--night); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark .lead { color: var(--text-muted); }
.pro-card { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-left: 4px solid var(--green); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.pro-card strong { display: block; color: #fff; font-size: 1.1rem; }
.pro-card span { font-size: 0.95rem; color: var(--text-muted); }
.checklist { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.5rem; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23060b08' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Prices */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--green-deep); color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: #fff; }
.hours-table { margin: 0.5rem 0 1.2rem; }
.hours-table caption { caption-side: top; text-align: left; padding: 0 0 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.hours-table td:last-child { font-weight: 400; color: var(--text-muted); }
.hours-table td + td { white-space: nowrap; }
@media (max-width: 480px) { .hours-table th, .hours-table td { padding: 0.7rem 0.6rem; font-size: 0.92rem; } }
.price-table small { display: block; font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.info-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.info-box h3 + p { margin-top: 0; }
.info-box p:last-child { margin-bottom: 0; }
.note { font-size: 0.9rem; color: var(--text-muted); }

/* Third-party embeds, loaded only after consent click (js/embed.js) */
.embed { margin-top: 1.5rem; background: var(--card); border: 1px dashed var(--green-deep); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); text-align: center; }
.embed p { max-width: 60ch; margin: 0 auto 1rem; font-size: 0.95rem; color: var(--text-muted); }
.embed .actions { justify-content: center; }
.embed iframe { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius); background: #fff; }
.embed.is-loaded { padding: 0; border: 0; background: none; }
@media (max-width: 480px) { .embed .actions { flex-direction: column; } .embed .btn { text-align: center; } }

/* FAQ */
.faq-wrap { max-width: 52rem; }
.faq { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.05rem 2.5rem 1.05rem 0; font-weight: 600; color: #fff; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.4rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--green); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 1.1rem; color: var(--text-muted); max-width: 46rem; }

/* Contact list */
.contact-list { list-style: none; margin: 0; padding: 1.5rem; display: grid; gap: 1.1rem; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.contact-list li { display: flex; gap: 0.9rem; align-items: center; }
.contact-list svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--green-light); text-decoration: underline; }

/* Legal pages */
.page-head { background: var(--night); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { margin-top: 1.4rem; }

/* Offers from angebote/angebote.js (js/angebote.js) */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--gap); margin-top: 1.5rem; }
.offer { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); border-left: 6px solid var(--green); overflow: hidden; box-shadow: var(--shadow); }
.offer img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.offer-body { padding: 1.1rem 1.25rem 1.2rem; }
.offer-badge { display: inline-block; margin-bottom: 0.5rem; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--green); color: var(--night); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.offer h3 { margin: 0 0 0.3rem; }
.offer-text { margin: 0; color: var(--text-muted); }
.offer-price { margin: 0.6rem 0 0; font-size: 1.6rem; font-weight: 800; color: var(--green-light); }
.offer .note { margin: 0.3rem 0 0; }

/* Teaser cards linking to sub pages */
a.teaser { color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
a.teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.teaser-more { display: inline-block; margin-top: 0.6rem; color: var(--green-light); font-weight: 700; font-size: 0.95rem; }

/* Closing call to action */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.cta-band h2 { margin: 0 0 0.3rem; }
.cta-band p { margin: 0; color: var(--text-muted); }

/* Group occasions */
.occasions { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.occasions li { padding: 1.25rem; background: var(--card); border-radius: var(--radius); border-top: 3px solid var(--green); }
.occasions svg { width: 32px; height: 32px; margin-bottom: 0.6rem; fill: none; stroke: var(--green); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.occasions h3 { margin-bottom: 0.3rem; }
.occasions p { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
@media (max-width: 860px) { .occasions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .occasions { grid-template-columns: 1fr; } }
.audience .teaser { display: flex; flex-direction: column; height: 100%; }
.audience .teaser:hover { transform: none; box-shadow: none; }
.audience li { transition: border-color 0.2s; }
.audience li:hover { border-color: var(--green); }

/* Course library: key figures and examples */
.stats { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stats li { padding-top: 1rem; border-top: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--green-light); }
.stats span { color: var(--text-muted); font-size: 0.95rem; }
.course-title { margin-top: 2.5rem; }
.courses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem var(--gap); }
.courses li { padding: 0.9rem 1.1rem 1rem; background: var(--card); border-radius: var(--radius); border-left: 3px solid var(--green); }
.course-map { position: relative; display: block; margin-bottom: 0.6rem; border-radius: 6px; overflow: hidden; background: radial-gradient(circle at 50% 40%, rgba(52, 184, 100, 0.1), transparent 70%), var(--night); }
.course-sketch { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; padding: 0.3rem; }
/* With a mouse the cards show only text; the sketch floats in above the card on hover
   (wipe from the first tee to the last green). Touch screens show it inside the card. */
@media (hover: hover) {
  .courses li { position: relative; transition: background 0.3s, border-color 0.3s; }
  .courses li:hover, .courses li:focus-visible { z-index: 2; background: #1a2d22; border-left-color: var(--green-light); }
  .course-map { position: absolute; left: 0; right: 0; bottom: calc(100% + 0.6rem); margin: 0; border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.3s, transform 0.3s; }
  .course-sketch { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.1s; }
  .courses li:hover .course-map, .courses li:focus-visible .course-map { opacity: 1; transform: none; }
  .courses li:hover .course-sketch, .courses li:focus-visible .course-sketch { clip-path: inset(0 0 0 0); }
}
.courses strong { display: block; color: #fff; }
.courses span { font-size: 0.92rem; color: var(--text-muted); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .courses { grid-template-columns: 1fr; } }

/* Games */
.games { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
.games li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.games img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.game-body { padding: 0.9rem 1.1rem 1.1rem; }
.game-body h3 { margin: 0 0 0.25rem; }
.game-body p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }
