/* Global stylesheet for the interim golf-arolsen.de website.
   All colors, spacings and fonts are defined as tokens in :root. */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/Inter-Bold.woff2") format("woff2"); }

:root {
  --green: #009b78;
  --green-dark: #00715a;
  --green-deep: #0c3b30;
  --sand: #c0b480;
  --sand-dark: #988f69;
  --sand-light: #f4f1e6;
  --text: #39373a;
  --text-muted: #6b686c;
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --line: #e4e2dc;
  --highlight: #ffec00;
  --golfamore: #f08a00;   /* campaign colour: Golfamore box and other offers (e.g. indoor golf) */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --gap: 1.5rem;
  --max: 1160px;
  --shadow: 0 6px 24px rgba(12, 59, 48, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); }
a:hover { color: var(--green-deep); }

h1, h2, h3 { line-height: 1.2; color: var(--green-deep); margin: 0 0 0.6em; }
/* Avoid single words on the last line (progressive enhancement) */
h1, h2, h3 { text-wrap: balance; hyphens: auto; overflow-wrap: break-word; }
p, li, dd, figcaption { text-wrap: pretty; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand-dark);
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
button.btn { background-color: transparent; }
button.btn--primary { background-color: var(--green-dark); }
.btn--primary { background: var(--green-dark); color: #fff; }
.btn--primary:hover { background: var(--green-deep); color: #fff; }
.btn--ghost { border-color: #fff; color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--green-deep); }
.btn--outline { border-color: var(--green-dark); color: var(--green-dark); }
.btn--outline:hover { background: var(--green-dark); color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { max-width: 1320px; display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; min-height: 72px; }
.brand { flex: none; display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--green-deep); white-space: nowrap; }
.brand img { width: 52px; height: 52px; }
.brand strong { display: block; font-size: 1.15rem; letter-spacing: 0.02em; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.2rem; align-items: center; }
.main-nav a {
  display: block;
  padding: 0.5rem 0.45rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-soft); color: var(--green-dark); }
.main-nav a[aria-current="page"] { color: var(--green-dark); box-shadow: inset 0 -3px 0 var(--sand); }
.main-nav .btn { padding: 0.55rem 0.95rem; margin-left: 0.5rem; color: #fff; }
.main-nav .btn--outline { color: var(--green-dark); }
.main-nav .btn--outline:hover { color: #fff; background: var(--green-dark); }
.main-nav .btn[aria-current="page"] { box-shadow: none; }
.main-nav .btn--outline[aria-current="page"] { background: var(--sand-light); }
.main-nav .nav-cta + .nav-cta .btn { margin-left: 0.4rem; }

@media (max-width: 1260px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .main-nav .btn { margin: 0.5rem 0 0; text-align: center; }
  .main-nav .nav-cta + .nav-cta .btn { margin-left: 0; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-video.is-playing { opacity: 1; }
.hero-toggle { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; padding: 0.4rem 0.9rem; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 999px; background: rgba(12, 59, 48, 0.45); color: #fff; font: inherit; font-size: 0.85rem; cursor: pointer; }
.hero-toggle:hover { background: rgba(12, 59, 48, 0.7); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 59, 48, 0.15) 0%, rgba(12, 59, 48, 0.2) 35%, rgba(12, 59, 48, 0.82) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 7vw, 5rem); width: 100%; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero p { font-size: 1.2rem; max-width: 46ch; margin: 0 0 1.5rem; }
.hero .eyebrow { color: #fff; opacity: 0.9; }
.hero h1, .hero p, .hero .eyebrow { text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35); }
@media (max-width: 480px) { .brand img { width: 44px; height: 44px; } .brand strong { font-size: 1.05rem; } }
@media (max-width: 400px) { .site-header .wrap { gap: 0.75rem; } .brand { gap: 0.5rem; } .brand strong { font-size: 0.95rem; } .nav-toggle { padding: 0.35rem 0.6rem; } }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.page-hero { position: relative; color: #fff; padding: clamp(4rem, 10vw, 7rem) 0 2.5rem; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(12, 59, 48, 0.55); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .eyebrow { color: #fff; opacity: 0.9; }

/* Quick facts bar under the start page video: dark green divider with four facts */
.facts { background: var(--green-deep); color: #fff; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; gap: 0.8rem; align-items: center; padding: 1.3rem 1.2rem; color: #fff; text-decoration: none; border-left: 1px solid rgba(255, 255, 255, 0.12); transition: background 0.15s; }
.fact:first-child { border-left: 0; padding-left: 0; }
a.fact:hover { background: rgba(255, 255, 255, 0.06); }
.fact-icon { flex: none; width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: rgba(192, 180, 128, 0.16); fill: none; stroke: var(--sand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fact small { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sand); }
.fact strong { display: block; margin: 0.1rem 0; font-size: 1.02rem; color: #fff; white-space: nowrap; }
.fact strong a { color: inherit; text-decoration: none; }
.fact > span > span { display: block; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); }
.fact a { color: inherit; }
.fact > span > span a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1000px) { .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(odd) { border-left: 0; padding-left: 0; } .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, 0.12); } }
@media (max-width: 560px) { .facts .wrap { grid-template-columns: minmax(0, 1fr); } .fact { border-left: 0; padding: 0.9rem 0; } .fact + .fact { border-top: 1px solid rgba(255, 255, 255, 0.12); } }

/* Split intro */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
}
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-body p { margin: 0 0 1rem; }
.card-more { margin-top: auto; font-weight: 700; color: var(--green-dark); }
a.card:hover h3 { color: var(--green-dark); }
.card time { font-size: 0.85rem; color: var(--sand-dark); font-weight: 700; }

/* Opening hours */
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.hours-box { background: var(--sand-light); border-top: 4px solid var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.hours-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 0 0 1rem; }
.hours-box dt { font-weight: 700; }
.hours-box dd { margin: 0; }
.note { font-size: 0.9rem; color: var(--text-muted); }

/* Panorama band */
.panorama { position: relative; color: #fff; text-align: center; }
.panorama img { width: 100%; height: clamp(260px, 38vw, 460px); object-fit: cover; }
.panorama .wrap { max-width: none; position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(12, 59, 48, 0.35); }
.panorama h2 { color: #fff; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th { background: var(--sand); color: var(--green-deep); text-align: left; padding: 0.8rem 1rem; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; }
.price-table td { padding: 0.8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 700; }
.price-table small { display: block; color: var(--text-muted); font-weight: 400; }
@media (max-width: 600px) {
  .price-table { font-size: 0.95rem; }
  .price-table th, .price-table td { padding: 0.7rem 0.5rem; }
  .price-table th { font-size: 0.72rem; letter-spacing: 0.03em; hyphens: auto; }
  .price-table td:last-child, .price-table th:last-child { white-space: normal; }
  .price-table td:first-child { white-space: nowrap; }
  .price-table td:first-child:has(small) { white-space: normal; }
}
@media (max-width: 340px) {
  .price-table td:first-child { white-space: normal; }
  .price-table td { hyphens: auto; }
}

/* Callout */
.callout { background: var(--green-deep); color: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.callout h2 { color: #fff; margin: 0 0 0.3rem; }
.callout p { margin: 0; }

/* Footer */
.site-footer { background: #1d2a26; color: #d8dcd9; padding: 3rem 0 1.5rem; font-size: 0.95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h3 { color: var(--sand); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }

/* Keeps a domain name in one piece; a line may only break after "www." */
.nobr { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Closed period of the office (e.g. winter break) in the opening hours */
.hours-closed { margin: 0 0 0.6rem; padding: 0.6rem 0.8rem; border-radius: 8px; background: #fff; border-left: 4px solid var(--golfamore); font-weight: 700; color: var(--green-deep); }
.hours-hint { margin: 0.6rem 0 0; font-size: 0.9rem; }
