/* Seascapecharter.org – angelehnt an das bisherige Joomla-Template (Purity III, "corporate") */
:root {
  --blue: #0077bb;
  --blue-dark: #005f96;
  --blue-light: #bbe6ff;
  --text: #444;
  --muted: #666;
  --bg: #fff;
  --bg-soft: #f7f7f7;
  --line: #e5e5e5;
  --radius: 3px;
  --container: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font: 15px/1.6 var(--font); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; margin: 0 0 24px; }
h2 { font-size: 24px; font-weight: 500; margin: 32px 0 12px; }
h3 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .container { padding: 0 16px; } .main-nav { width: calc(100% + 32px) !important; margin: 0 -16px !important; } }
/* feste Containerbreiten wie Bootstrap 3 im Original */
@media (min-width: 768px) { .container { max-width: 760px; } }
@media (min-width: 992px) { .container { max-width: 980px; } }
@media (min-width: 1200px) { .container { max-width: 1180px; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Header (Werte aus Purity III "corporate": template.css / megamenu.css) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); border-bottom: 1px solid #0067a2; font-size: 14px; line-height: 20px; }
/* eine Zeile: Logo | Menü | Flaggen – passt das Menü nicht daneben (980px-Container), rutscht es wie im Original in eine zweite Zeile */
.header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: flex-start; min-height: 55px; }
.logo { flex: none; display: block; line-height: 0; }
.logo:hover { background: transparent; }
.logo img { display: block; height: 53px; width: auto; }
.lang-switch { position: absolute; top: 26.5px; transform: translateY(-50%); right: 20px; display: flex; align-items: center; margin: 0 -5px; z-index: 2; }
.lang-switch a { display: block; margin: 0 5px; padding: 2px 0; line-height: 0; }
.lang-switch img { display: block; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
/* Menü horizontal zentriert: Desktop zwischen Logo und Flaggen, mittlere Breite in eigener Zeile */
.main-nav { flex: 1 1 auto; margin-right: 51px; } /* = Breite der Flaggen, damit der Abstand links und rechts gleich ist */
.main-nav > ul { display: flex; flex-wrap: nowrap; justify-content: center; gap: 30px; }
@media (min-width: 991px) and (max-width: 1199px) { .main-nav { flex-basis: 100%; margin-right: 0; } }
.main-nav > ul > li > a { white-space: nowrap; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a { display: block; padding: 0; line-height: 55px; color: var(--blue-light); text-transform: uppercase; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a:focus,
.main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { color: #fff; text-decoration: none; box-shadow: inset 0 -2px 0 #fff; }
/* Dreieck wie Bootstrap-.caret */
.has-children > a::after { content: ""; display: inline-block; width: 0; height: 0; margin: -2px 0 0 5px; vertical-align: middle; border-top: 4px solid var(--blue-light); border-right: 4px solid transparent; border-left: 4px solid transparent; }
.has-children > a:hover::after, .has-children:hover > a::after, .has-children.active > a::after { border-top-color: #fff; }
.sub-toggle { display: none; }
/* Dropdown: dunkles Mega-Menü */
.submenu { position: absolute; left: 0; top: 100%; min-width: 200px; padding: 20px 0; background: #444; border: 1px solid #444; box-shadow: 0 6px 12px rgba(0,0,0,.175); display: none; z-index: 60; }
.has-children:hover > .submenu, .has-children:focus-within > .submenu { display: block; }
.submenu li { border-bottom: 1px solid #515151; }
.submenu li:first-child { border-top: 1px solid #515151; }
.submenu a { display: block; padding: 10px; color: #eee; white-space: nowrap; }
.submenu a:hover, .submenu a:focus { color: #fff; background: #515151; text-decoration: none; }
.submenu a[aria-current] { color: #fff; background: #515151; }
.nav-toggle { display: none; }

/* Mobile Navigation (< 991px wie im Original) */
@media (max-width: 990px) {
  .logo img { height: 55px; }
  .lang-switch { right: 75px; top: 27.5px; }
  .nav-toggle { display: block; position: absolute; top: 0; right: 0; width: 55px; height: 55px; padding: 0; margin: 0; border: 0; background: transparent; cursor: pointer; }
  .nav-toggle:hover, .nav-toggle:focus, .nav-toggle[aria-expanded="true"] { background: #0067a2; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--blue-light); position: relative; content: ""; margin: 0 auto; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .main-nav { display: none; flex: 0 0 auto; width: calc(100% + 40px); margin: 0 -20px; border-top: 1px solid #0067a2; }
  .main-nav.open { order: 3; }
  .main-nav.open { display: block; max-height: calc(100vh - 56px); overflow-y: auto; }
  .main-nav > ul { flex-direction: column; flex-wrap: nowrap; padding: 0; gap: 0; justify-content: flex-start; }
  .main-nav > ul > li { margin: 0; display: flex; flex-wrap: wrap; align-items: stretch; border-top: 1px solid #0067a2; }
  .main-nav > ul > li:first-child { border-top: 0; }
  .main-nav > ul > li > a { flex: 1; padding: 20px; line-height: 20px; }
  .main-nav > ul > li > a:hover, .main-nav > ul > li:hover > a, .main-nav > ul > li.active > a { box-shadow: none; }
  .has-children > a::after { content: none; }
  .sub-toggle { display: block; width: 55px; background: none; border: 0; border-left: 1px solid #0067a2; color: var(--blue-light); font-size: 14px; cursor: pointer; }
  .sub-toggle:hover { background: #0067a2; color: #fff; }
  .sub-toggle[aria-expanded="true"] span { display: inline-block; transform: rotate(180deg); }
  .submenu { position: static; width: 100%; min-width: 0; padding: 0; border: 0; box-shadow: none; background: #0067a2; }
  .has-children:hover > .submenu, .has-children:focus-within > .submenu { display: none; }
  .has-children.open > .submenu { display: block; }
  .submenu li, .submenu li:first-child { border: 0; border-top: 1px solid #005788; }
  .submenu a { padding: 20px 20px 20px 30px; color: var(--blue-light); }
  .submenu a:hover, .submenu a[aria-current] { background: transparent; color: #fff; }
}

/* ---------- Slideshow ---------- */
.slideshow { background: var(--bg-soft); padding: 0 0 0; }
@media (max-width: 767px) { .slideshow .container { padding: 0; } }
.slides { position: relative; aspect-ratio: 1140 / 400; overflow: hidden; background: #dfe8ee; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); width: min(90%, 560px); text-align: center; color: #fff; background: rgba(0,0,0,.3); padding: 16px 20px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.slide figcaption strong { display: block; font-size: clamp(18px, 3vw, 32px); font-weight: 700; }
.slide figcaption span { display: block; font-size: 14px; }
.slide-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.25); color: #fff; border: 0; font-size: 34px; line-height: 1; width: 44px; height: 60px; cursor: pointer; }
.slide-nav:hover { background: rgba(0,0,0,.45); }
.slide-nav.prev { left: 0; } .slide-nav.next { right: 0; }
.slide-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.slide-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.slide-dots button[aria-current] { background: #fff; }
@media (max-width: 600px) { .slide figcaption { display: none; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* ---------- Karten (Startseite / Boote) ---------- */
.cards-band { padding: 40px 0 20px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.card h3 { font-size: 22px; font-weight: 500; margin: 14px 0 10px; }
.card .card-img img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.card p { margin: 0 0 10px; }
.card ul { padding-left: 18px; margin: 0 0 10px; }
@media (max-width: 991px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Inhalt ---------- */
.main-body { padding-top: 40px; padding-bottom: 56px; }
.main-body.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; }
@media (max-width: 860px) { .main-body.with-aside { grid-template-columns: 1fr; } }
.article { min-width: 0; }
.prose { max-width: 860px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ol, .prose ul { padding-left: 24px; }
.prose ol ol { list-style: lower-alpha; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.prose table { border-collapse: collapse; min-width: min(100%, 520px); }
.page-events .prose table, .page-prices .prose table { min-width: 100%; }
.prose th, .prose td { text-align: left; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 700; border-bottom: 2px solid var(--line); white-space: nowrap; }
.page-prices .prose td, .page-prices .prose th { white-space: nowrap; }

/* Termine / Preise: hervorgehobene Tabellen */
.page-events .prose table, .page-prices .prose table { background: #fff; }
.page-events .prose tbody tr:nth-child(odd), .page-prices .prose tbody tr:nth-child(odd) { background: var(--bg-soft); }
.page-events .prose td:first-child { white-space: nowrap; }
.page-events .prose td, .page-events .prose th, .page-prices .prose td, .page-prices .prose th { padding-left: 10px; }

/* FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--blue); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq-answer { padding: 0 0 14px; }

/* Partner */
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; margin-top: 24px; text-align: center; }
.partner img { max-width: 220px; }
.partner h3 { margin: 12px 0 4px; }
.partner p { margin: 0; color: var(--muted); }

/* Kontakt */
.contact-aside address { font-style: normal; line-height: 1.7; }
.contact-aside { background: var(--bg-soft); padding: 20px 22px; border-radius: var(--radius); align-self: start; }
.contact-aside h2 { margin-top: 0; font-size: 20px; }
.contact-form { margin-top: 32px; max-width: 760px; }
.contact-form form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form select, .contact-form textarea { font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid #ccc; border-radius: var(--radius); width: 100%; background: #fff; color: var(--text); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--blue); outline: 2px solid rgba(0,119,187,.2); outline-offset: 0; }
.contact-form .form-row { display: grid; gap: 14px; }
.contact-form .form-row.two { grid-template-columns: 1fr 1fr; }
.contact-form .form-row.three { grid-template-columns: 1.2fr 1fr 1fr; }
@media (max-width: 640px) { .contact-form .form-row.two, .contact-form .form-row.three { grid-template-columns: 1fr; } }
.contact-form label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.contact-form label.check input { margin-top: 4px; }
.req { color: #c0392b; }
.form-note { margin: 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { padding: 12px 14px; border-radius: var(--radius); background: var(--bg-soft); }
.form-status.ok { background: #e6f4ea; color: #1e6b34; }
.form-status.error { background: #fdecea; color: #a12a1e; }
.btn { justify-self: start; font: inherit; font-weight: 600; background: var(--blue); color: #fff; border: 0; padding: 11px 24px; border-radius: var(--radius); cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); color: var(--muted); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 36px; padding-bottom: 28px; align-items: start; }
.site-footer h2 { font-size: 16px; font-weight: 700; margin: 0 0 12px; color: var(--text); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: block; padding: 4px 0; }
.footer-logo { text-align: center; }
.footer-logo img { max-height: 90px; width: auto; }
.site-footer address { font-style: normal; line-height: 1.7; }
.copyright { border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } .footer-logo { text-align: left; } }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue); color: #fff; border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.to-top:hover { color: #fff; text-decoration: none; background: var(--blue-dark); }

/* 404 */
.notfound { padding: 60px 0; }
.to-top[hidden] { display: none; }
