/* ==========================================================================
   Langfahrthilfe v2 – Design-Refinement
   Agentur-Review: nahbar · professionell · maritim · niedrige Hemmschwelle
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: "Source Sans 3", sans-serif;
  color: #2a3441;
  background: #f5f2ea;
  margin: 0;
}

body.is-menu-open {
  overflow: hidden;
}

::selection {
  background: #c9a04a;
  color: #0b1a2b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #c9a04a;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
.font-display {
  font-family: "Lobster", cursive;
}

.font-body {
  font-family: "Source Sans 3", sans-serif;
}

.font-mono {
  font-family: "IBM Plex Mono", monospace;
}

/* Section titles: Lobster bleibt für Wärme, aber leicht ruhiger wirken */
.section-title {
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Course path
   -------------------------------------------------------------------------- */
.course-path {
  stroke-dasharray: 8 8;
}

/* --------------------------------------------------------------------------
   Scroll-reveal
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }

  .slideshow img {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Badge / trust chips
   -------------------------------------------------------------------------- */
.badge-ring {
  box-shadow: inset 0 0 0 1.5px #c9a04a;
}

.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
}

.trust-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c9a04a;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Wave divider (maritim, weicher Übergang)
   -------------------------------------------------------------------------- */
.wave-divider {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: -1px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Slideshow
   -------------------------------------------------------------------------- */
.slideshow {
  position: relative;
  overflow: hidden;
}

.slideshow img {
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.slideshow img.is-active {
  opacity: 1;
  z-index: 1;
}

.slideshow img:not(.is-active) {
  opacity: 0;
  z-index: 0;
}

.slideshow figcaption {
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
  padding: 1.75rem 0.75rem 0.85rem;
  margin: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* --------------------------------------------------------------------------
   Report scroller
   -------------------------------------------------------------------------- */
#scrollContainer {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

#scrollContainer::-webkit-scrollbar {
  display: none;
}

.scroll-nav-btn {
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Price rows
   -------------------------------------------------------------------------- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.price-row dt {
  flex: 1 1 auto;
  min-width: 0;
}

.price-row dd {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero-title-accent {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Soft secondary CTA */
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
  border-color: #c9a04a;
  background: rgba(201, 160, 74, 0.12);
}

/* Primary CTA polish */
.btn-primary {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover {
    transform: translateY(-1px);
  }
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
#mobileMenu:not(.hidden) {
  animation: menuSlide 0.2s ease-out;
}

@keyframes menuSlide {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mobileMenu:not(.hidden) {
    animation: none;
  }
}

/* --------------------------------------------------------------------------
   Forms – touch-friendly, ruhig
   -------------------------------------------------------------------------- */
input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  min-height: 2.75rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
  border-color: #1a8a99;
  box-shadow: 0 0 0 3px rgba(26, 138, 153, 0.15);
}

/* --------------------------------------------------------------------------
   Leistung cards – leichte Tiefe
   -------------------------------------------------------------------------- */
.service-card {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

/* --------------------------------------------------------------------------
   Safe area
   -------------------------------------------------------------------------- */
@supports (padding: max(0px)) {
  header nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}

/* ==========================================================================
   Unterseiten – gemeinsame Bausteine
   ========================================================================== */

/* Kompakter Subpage-Hero */
.sub-hero {
  padding-top: 7rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .sub-hero {
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
}

/* Breadcrumb */
.breadcrumb {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.breadcrumb a:hover {
  color: #c9a04a;
}

/* --------------------------------------------------------------------------
   Logbuch / Blog – editorial, lesefreundlich
   -------------------------------------------------------------------------- */
.page-blog .prose {
  max-width: 42rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2a3441;
}

.page-blog .prose p {
  margin-bottom: 1.25rem;
}

.page-blog .prose h2 {
  font-family: "Lobster", cursive;
  font-size: 1.75rem;
  color: #0e2236;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.page-blog .prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0e2236;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-blog .meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #1a8a99;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card {
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(14, 34, 54, 0.12);
  }
}

/* --------------------------------------------------------------------------
   Leistungen – strukturiert, service-orientiert
   -------------------------------------------------------------------------- */
.page-service .service-aside {
  border-left: 3px solid #c9a04a;
  padding-left: 1.25rem;
}

.page-service .checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
}

.page-service .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #1a8a99;
  font-weight: 600;
}

.page-service .step-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  color: #c9a04a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Rechtliches – klar, nüchtern, maximale Lesbarkeit
   -------------------------------------------------------------------------- */
.page-legal {
  background: #f5f2ea;
}

.page-legal .legal-body {
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #2a3441;
}

.page-legal .legal-body h2 {
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #0e2236;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px solid rgba(14, 34, 54, 0.12);
  padding-bottom: 0.35rem;
}

.page-legal .legal-body h3 {
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.35rem;
  margin-bottom: 0.4rem;
  color: #0e2236;
}

.page-legal .legal-body p,
.page-legal .legal-body ul {
  margin-bottom: 0.85rem;
}

.page-legal .legal-body ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.page-legal .legal-body a {
  color: #1a8a99;
  text-decoration: underline;
}

.page-legal .legal-note {
  font-size: 0.8rem;
  color: #5a6570;
  border-left: 3px solid #c9a04a;
  padding-left: 0.85rem;
  margin-top: 2rem;
}

/* Logbuch-Einträge auf der gemeinsamen Blogseite */
.page-blog .logbuch-entry {
  scroll-margin-top: 2rem;
}

.page-blog .logbuch-entry + .logbuch-entry {
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .page-blog .logbuch-entry + .logbuch-entry {
    margin-top: 3rem;
  }
}

.page-blog .prose h3 {
  font-family: "Lobster", cursive;
  font-size: 1.45rem;
  color: #0e2236;
  margin-top: 2rem;
  margin-bottom: 0.65rem;
}

/* Responsive WebP image wrappers: preserve the original image layout. */
.slideshow > picture {
  position: absolute;
  inset: 0;
  display: block;
}

.slideshow > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#heimathafen > picture {
  position: absolute;
  inset: 0;
  display: block;
}

#heimathafen > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Logbuch-Slider
   -------------------------------------------------------------------------- */

[data-slider-host] {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

[data-slider-host] > * {
  flex: 0 0 85%;
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  [data-slider-host] > * {
    flex-basis: calc(50% - 0.625rem);
  }
}

@media (min-width: 1024px) {
  [data-slider-host] > * {
    flex-basis: calc(33.333% - 0.834rem);
  }
}

/* Einheitliche Größe der Logbuch-Vorschaubilder */
.logbuch-slider [data-slider-host] article img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

@media (min-width: 640px) {
  .logbuch-slider [data-slider-host] article img {
    height: 14rem;
  }
}

[data-slider-host] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

[data-slider-host]::-webkit-scrollbar {
  display: none;
}

/* -------------------------------------------------
   Logbuchartikel – ruhiges Editorial-Layout
------------------------------------------------- */


.page-logbuch .article-card {
  max-width: 100%;
  margin-inline: auto;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgb(14 34 54 / 0.12);
  border-radius: 1.25rem;
  box-shadow: 0 12px 35px rgb(14 34 54 / 0.08);
}

.page-logbuch .article-header {
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

.page-logbuch .article-header h2 {
  margin-top: 0.45rem;
  color: #0e2236;
  font-family: "Lobster", cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

.page-logbuch .article-body {
  color: #2a3441;
  font-size: 1.08rem;
  line-height: 1.8;
}

.page-logbuch .article-body p {
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.page-logbuch .article-figure {
  width: 100%;
  max-width: 650px;
  margin: 3rem auto;
}

.page-logbuch .article-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 0.8rem;
  background: #f5f2ea;
}

.page-logbuch .article-figure figcaption {
  max-width: 580px;
  margin: 0.7rem auto 0;
  color: rgb(14 34 54 / 0.62);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
}

/* Das erste Bild darf größer sein */
.page-logbuch .article-figure--hero {
  max-width: 780px;
  margin-top: 0;
  margin-bottom: 3rem;
}

.page-logbuch .article-figure--hero img {
  max-height: 620px;
  border-radius: 0 0 0.8rem 0.8rem;
}

/* Kleine Detailbilder nicht künstlich aufblasen */
.page-logbuch .article-figure--detail {
  max-width: 470px;
}

/* Textabschluss */
.page-logbuch .article-contact {
  max-width: 650px;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(14 34 54 / 0.12);
}

@media (min-width: 640px) {
  .page-logbuch .article-card {
    padding: 3.5rem;
  }
}