/* Foiling Classes Austria – Grundstyles */
:root {
  --ink: #0f1a20;
  --ink-soft: #3c4b54;
  --carbon: #1d2428;
  --water: #1aa6c4;
  --water-deep: #0b6f87;
  --water-light: #e6f6fa;
  --sand: #f6f4ef;
  --white: #ffffff;
  --line: #d9e3e7;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--water-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; }
.alt { background: var(--sand); }
.dark { background: var(--carbon); color: #e8eef1; }
.dark a { color: #7fd8ea; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--water-deep); margin-bottom: .6em; }
.dark .eyebrow { color: #7fd8ea; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46rem; }
.dark .lead { color: #c4d1d7; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.brand img { height: 44px; width: auto; }
.brand span { font-size: .85rem; line-height: 1.1; text-transform: uppercase; }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--water-deep); }
.nav .btn { color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav .btn { text-align: center; margin-top: 8px; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--water-deep); color: var(--white); text-decoration: none;
  font-weight: 700; border: 2px solid var(--water-deep); cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--water); border-color: var(--water); }
.btn.ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }
.btn.outline { background: transparent; color: var(--water-deep); }
.btn.outline:hover { background: var(--water-light); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero {
  position: relative; color: var(--white);
  min-height: min(88vh, 760px); display: flex; align-items: center;
  background: #0b6f87 url("../img/foil.jpg") center 60% / cover no-repeat;
  padding: 100px 0;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,30,40,.82) 0%, rgba(5,30,40,.55) 55%, rgba(5,30,40,.1) 100%); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 14ch; }
.hero p { font-size: 1.25rem; max-width: 34rem; color: #dff3f8; }

/* Fotoreihe – Bilder im Originalformat 3:2, damit die Boote ganz sichtbar bleiben */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--carbon); }
.photo-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; } }

/* Grids & cards */
.grid { display: grid; gap: 20px; }
.grid.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

.class-card { display: flex; flex-direction: column; }
.class-card .tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--water-deep); background: var(--water-light); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; align-self: flex-start; }
.class-card ul { padding-left: 18px; margin: 0 0 1em; color: var(--ink-soft); font-size: .95rem; }
.class-card .links { margin-top: auto; font-size: .95rem; }
.class-card.open { background: var(--carbon); color: #e8eef1; border-color: var(--carbon); }
.class-card.open .tag { background: var(--water); color: var(--white); }
.class-card.open a { color: #7fd8ea; }

/* Statement */
.statement { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; max-width: 52rem; }

/* Steps */
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { counter-increment: s; padding: 22px; border-left: 3px solid var(--water); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.step::before { content: counter(s); display: block; font-weight: 800; font-size: 1.6rem; color: var(--water-deep); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--white); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
tr.past td { color: #8a989f; }

/* Social */
.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social a { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: var(--radius); background: rgba(255,255,255,.08); color: var(--white); text-decoration: none; font-weight: 700; }
.social a:hover { background: rgba(255,255,255,.16); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.social .soon { opacity: .55; }

/* Sponsors */
.sponsors { display: flex; flex-direction: column; gap: 30px; }
.sponsor-row { display: flex; flex-wrap: wrap; gap: 30px 50px; align-items: center; justify-content: center; }
/* Jedes Logo bekommt dieselbe Box, damit breite und runde Logos gleich wirken */
.sponsor-row a { width: 220px; height: 80px; display: flex; align-items: center; justify-content: center; }
.sponsor-row img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
@media (max-width: 560px) { .sponsors { gap: 24px; } .sponsor-row { gap: 24px 28px; } .sponsor-row a { width: 140px; height: 56px; } }

/* Forms */
form .row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #b9c7cd; border-radius: 10px;
  font: inherit; background: var(--white); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--water); border-color: var(--water); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; }
.check input { width: auto; margin-top: 5px; }
.hidden { display: none; }

/* Payment */
.pay { display: grid; gap: 30px; grid-template-columns: 240px 1fr; align-items: start; }
.pay #qr { background: var(--white); padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); }
.pay #qr img, .pay #qr svg { width: 100%; height: auto; }
.pay dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 1em; }
.pay dt { color: var(--ink-soft); }
.pay dd { margin: 0; font-weight: 600; word-break: break-word; }
@media (max-width: 640px) { .pay { grid-template-columns: 1fr; } .pay #qr { max-width: 240px; } }

/* Docs list */
.docs { list-style: none; padding: 0; margin: 0; }
.docs li { border-bottom: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; text-decoration: none; color: var(--ink); font-weight: 600; }
.docs a:hover { color: var(--water-deep); }
.docs span { color: var(--ink-soft); font-weight: 400; font-size: .9rem; white-space: nowrap; }

.note { background: var(--water-light); border-left: 4px solid var(--water); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: .95rem; }

/* Page head */
.page-head { background: var(--carbon); color: var(--white); padding: 70px 0 60px; }
.page-head.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.page-head img { border-radius: var(--radius); width: 100%; height: auto; }
@media (max-width: 860px) { .page-head.split .wrap { grid-template-columns: 1fr; } }
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* Footer */
.site-footer { background: #0c1215; color: #9fb0b8; padding: 50px 0 30px; font-size: .92rem; }
.site-footer a { color: #cfe3ea; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 30px; }
.site-footer h4 { color: var(--white); margin: 0 0 10px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }

/* Video */
.video-block { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: center; }
.video-block video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 860px) { .video-block { grid-template-columns: 1fr; } }

/* Foiling Days */
.event-teaser { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; background: var(--carbon); color: #e8eef1; }
.event-teaser { align-items: center; }
.event-teaser img { width: 100%; height: auto; }
.event-teaser .txt { padding: 40px; }
.event-teaser .date { font-size: 1.6rem; font-weight: 800; color: #7fd8ea; margin-bottom: .3em; }
@media (max-width: 760px) { .event-teaser { grid-template-columns: 1fr; } .event-teaser .txt { padding: 28px 22px; } }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.facts span { background: rgba(255,255,255,.12); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.timeline { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.timeline .card h3 { margin-bottom: .2em; }
.timeline .when { color: var(--water-deep); font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6em; }
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; background: var(--white); }
details summary { cursor: pointer; font-weight: 700; color: var(--water-deep); margin: 30px 0 12px; }
