/* RC-Segelfreunde Bremen — maritimes Design */

:root {
  --navy: #0e3a53;
  --navy-dark: #08222f;
  --teal: #2c8c99;
  --teal-light: #5fb4bd;
  --sand: #f6f2e9;
  --sand-dark: #ece4d1;
  --gold: #c9a24b;
  --text: #23333d;
  --text-light: #5a6c76;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(14, 58, 83, 0.12);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--sand);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: Georgia, serif;
  font-size: 1.05rem;
  font-weight: bold;
  letter-spacing: 0.2px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--sand); }
.logo .wave-icon { font-size: 1.25rem; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--sand);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  white-space: nowrap;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    box-shadow: var(--shadow);
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 130%);
  color: var(--white);
  padding: 64px 0 56px;
  text-align: center;
}
.hero h1 { color: var(--white); margin-bottom: 0.4em; }
.hero p.lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.4em;
  color: #eaf3f4;
}
.hero .btn { margin: 0 6px; }

.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--teal) 130%);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 12px 26px;
  border-radius: 30px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}
.btn:hover { background: #dab766; text-decoration: none; color: var(--navy-dark); }
.btn.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn.btn-outline:hover { background: rgba(255,255,255,0.15); color: var(--white); }

/* Sections */
main { display: block; }

.section {
  padding: 56px 0;
}
.section.alt { background: var(--sand-dark); }

.section-intro {
  max-width: 760px;
  margin: 0 auto 2em;
  text-align: center;
  color: var(--text-light);
}

/* Cards grid (feature/teaser cards) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card .card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--text-light); flex: 1; }
.card .card-link { margin-top: 10px; font-weight: bold; }

.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sand-dark);
}

/* Content article */
.content-article {
  max-width: 780px;
  margin: 0 auto;
}
.content-article img { border-radius: var(--radius); margin: 1.2em 0; box-shadow: var(--shadow); }
.content-article ul { padding-left: 1.2em; }

/* Boat class sections */
.bootsklasse {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
}
.bootsklasse .row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.bootsklasse .col-img { flex: 0 0 240px; max-width: 240px; }
.bootsklasse .col-img img { border-radius: 6px; box-shadow: none; }
.bootsklasse .col-text { flex: 1; min-width: 260px; }
.bootsklasse ul.facts {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
  font-size: 0.92rem;
  color: var(--text-light);
}
.bootsklasse ul.facts li { margin-bottom: 2px; }
.specs {
  background: var(--sand);
  border-left: 3px solid var(--teal);
  padding: 10px 14px;
  font-size: 0.92rem;
  border-radius: 0 6px 6px 0;
}

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

.gallery-back { display: inline-block; margin-bottom: 20px; }

/* Lightbox */
#lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 34, 47, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 30px;
  cursor: zoom-out;
}
#lightbox-overlay.open { display: flex; }
#lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#lightbox-overlay .lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
}

/* Videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px 0 40px;
}
.video-grid video { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: #000; }

/* Blog */
.blog-post {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 28px;
}
.blog-post .meta {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 0.8em;
}
.blog-post img { border-radius: 8px; }
.blog-post .blog-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.blog-post .blog-photos a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; }
.blog-post .blog-photos img { width: 100%; height: 100%; object-fit: cover; }

/* Forms */
.contact-form, .form-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 6px; color: var(--navy); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-hp { position: absolute; left: -9999px; top: -9999px; }
.form-note { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; }
.form-success { background: #e4f5ea; border: 1px solid #a9dcbc; color: #1c5e34; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.form-error { background: #fbe6e6; border: 1px solid #eab3b3; color: #8a2222; padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }

/* Info box (Impressum/Kontakt data) */
.info-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 28px;
  margin-bottom: 24px;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #c7d3d8;
  padding: 40px 0 24px;
  margin-top: 40px;
}
footer.site-footer .footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site-footer h4 { color: var(--white); font-size: 1rem; }
footer.site-footer a { color: #c7d3d8; }
footer.site-footer a:hover { color: var(--white); }
footer.site-footer .footer-nav ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer .footer-nav li { margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a9aa2;
}

/* Breadcrumb-ish back link */
.back-link { display: inline-block; margin: 24px 0 0; }
