/* Ronjas Welt: Ergänzungen zum bestehenden bluefish-Layout */

.bf-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1100;
  padding: .7rem 1rem;
  transform: translateY(-180%);
  background: #fff;
  color: #004c74;
  border: 2px solid #004c74;
  font-weight: 700;
}

.bf-skip-link:focus {
  transform: translateY(0);
}

.bf-ronja-main,
.bf-ronja-main * {
  box-sizing: border-box;
}

.bf-ronja-main {
  color: #44494c;
  padding-bottom: 3rem;
}

.bf-ronja-shell {
  width: 100%;
  max-width: none;
  margin: 0;
}

.bf-ronja-main p {
  line-height: 1.72;
}

.bf-ronja-intro-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #765f52;
  color: #fff;
}

.bf-ronja-small-title {
  margin: 0 0 .8rem;
  color: #fff;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.bf-ronja-intro-text {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.7;
}

.bf-ronja-welcome-figure {
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #dce9ef;
}

.bf-ronja-welcome-figure img {
  display: block;
  width: 100%;
  height: 440px;
  object-fit: cover;
  object-position: center;
}

.bf-ronja-heading {
  margin-bottom: clamp(2.75rem, 6vw, 5rem);
  padding: clamp(1.6rem, 4vw, 3.25rem);
  background: #f4f9fc;
  border-left: 6px solid #0086cb;
  box-shadow: 0 10px 28px rgba(0, 55, 82, .08);
}

.bf-kicker {
  margin: 0 0 .55rem !important;
  color: #765f52;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.4 !important;
  text-transform: uppercase;
}

.bf-ronja-heading h1 {
  margin: 0 0 1rem;
  color: #006da8;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.12;
}

.bf-ronja-lead {
  max-width: 850px;
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
}

.bf-section {
  margin-bottom: clamp(3rem, 6vw, 5rem);
  scroll-margin-top: 1.5rem;
}

.bf-section-tinted {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #f7fbfd;
  border: 1px solid #d5dde1;
}

.bf-section-heading {
  max-width: 820px;
  margin-bottom: clamp(1.4rem, 3vw, 2rem);
}

.bf-section-heading h2,
.bf-final-cta h2 {
  margin: 0;
  color: #006da8;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.22;
}

.bf-section-intro {
  max-width: 900px;
  margin: .9rem 0 0;
  font-size: 1.03rem;
}

.bf-feature-story {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: #fbfaf9;
  border-top: 4px solid #765f52;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .045);
}

.bf-story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.bf-story-copy p:last-child {
  margin-bottom: 0;
}

.bf-ronja-quote {
  padding: 1.4rem;
  background: #fff;
  border-left: 5px solid #0086cb;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .045);
}

.bf-ronja-quote p {
  margin: 0;
  color: #005f94;
  font-size: 1.08rem;
  font-weight: 600;
}

.bf-ronja-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.25rem);
}

.bf-ronja-gallery-item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ccd8de;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .05);
}

.bf-ronja-gallery-item a {
  display: block;
  overflow: hidden;
}

.bf-ronja-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  transition: transform .25s ease;
}

.bf-ronja-gallery-item a:hover img,
.bf-ronja-gallery-item a:focus img {
  transform: scale(1.025);
}

.bf-ronja-gallery-item figcaption {
  min-height: 58px;
  padding: .7rem .8rem;
  background: #eef4f7;
  color: #4f575b;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.bf-ronja-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.bf-ronja-card {
  min-width: 0;
  padding: clamp(1.3rem, 3vw, 1.8rem);
  background: #fff;
  border: 1px solid #d5dde1;
  border-top: 4px solid #0086cb;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .045);
}

.bf-ronja-card:nth-child(even) {
  border-top-color: #765f52;
}

.bf-ronja-card-icon {
  display: inline-flex;
  margin-bottom: .7rem;
  font-size: 1.8rem;
  line-height: 1;
}

.bf-ronja-card h3 {
  margin: 0 0 .65rem;
  color: #006da8;
  font-size: 1.24rem;
  line-height: 1.35;
}

.bf-ronja-card p {
  margin: 0;
}

.bf-actions {
  display: flex;
  gap: .75rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.bf-button {
  display: inline-flex;
  min-height: 50px;
  padding: 11px 20px;
  align-items: center;
  justify-content: center;
  background: #006da8;
  color: #fff;
  border: 2px solid #006da8;
  border-radius: 999px;
  font-size: .96rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}

.bf-button:hover,
.bf-button:focus {
  background: #00547f;
  border-color: #00547f;
  color: #fff;
  text-decoration: none;
}

.bf-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr);
  gap: 1.5rem 2.5rem;
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  background: #006da8;
  color: #fff;
}

.bf-final-cta h2 {
  margin-bottom: .8rem;
  color: #fff;
}

.bf-final-cta p {
  max-width: 770px;
  margin: 0;
}

.bf-final-cta .bf-actions {
  flex-direction: column;
}

.bf-button-light {
  background: #fff;
  color: #005f94;
  border-color: #fff;
}

.bf-button-light-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.bf-button-light:hover,
.bf-button-light:focus,
.bf-button-light-outline:hover,
.bf-button-light-outline:focus {
  background: #e7f3f9;
  color: #004c74;
  border-color: #e7f3f9;
}

.bf-ronja-main a:focus-visible,
.bf-ronja-footer a:focus-visible {
  outline: 3px solid #222;
  outline-offset: 3px;
}

.bf-ronja-footer {
  padding: 2rem 0 1rem;
  border-top: 1px solid #cfd0d1;
  text-align: center;
}

.bf-footer-links,
.bf-social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.bf-footer-links {
  gap: .65rem 1.4rem;
  margin-bottom: 1rem;
}

.bf-footer-links a {
  color: #005f94;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bf-social-links {
  gap: 1rem;
  margin-bottom: .8rem;
}

.bf-social-links a {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
}

.bf-social-links img {
  display: block;
}

.bf-ronja-footer p {
  margin: 0;
  font-size: .9rem;
}

@media (max-width: 1279px) {
  .bf-ronja-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .bf-ronja-welcome-figure img {
    height: auto;
    object-fit: contain;
  }

  .bf-story-layout,
  .bf-final-cta {
    grid-template-columns: 1fr;
  }

  .bf-final-cta .bf-actions {
    flex-direction: row;
  }
}

@media (max-width: 767px) {
  .bf-ronja-heading {
    border-left-width: 4px;
  }

  .bf-ronja-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bf-final-cta .bf-actions {
    flex-direction: column;
  }

  .bf-actions,
  .bf-actions .bf-button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .bf-ronja-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .bf-ronja-gallery-item {
    width: min(100%, 390px);
    margin: 0 auto;
  }
}

@media (max-width: 399px) {
  .bf-ronja-heading,
  .bf-feature-story,
  .bf-section-tinted,
  .bf-final-cta {
    padding: 1.25rem;
  }

  .bf-ronja-heading h1 {
    font-size: 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-ronja-page *,
  .bf-ronja-page *::before,
  .bf-ronja-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}


/* Seitlicher Innenabstand im braunen Vorstellungskasten. */
.bf-ronja-page .bf-ronja-intro-box {
  padding: clamp(2rem, 4vw, 4rem) clamp(1.75rem, 3.2vw, 3.5rem) !important;
}

.bf-ronja-page .bf-ronja-intro-box > * {
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991px) {
  .bf-ronja-page .bf-ronja-intro-box > * {
    max-width: none;
  }
}
