/* ==========================================================================
   fredpichler.de — Design-System
   Aufbau: Bootstrap 5.3 (assets/vendor/bootstrap) + diese Datei als Theme.
   Es wird nichts von externen Servern geladen.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Farben & Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marke: tiefes Petrol — ruhig, sachlich, seriös */
  --fp-primary:        #0f4c5c;
  --fp-primary-dark:   #0a3341;
  --fp-primary-light:  #17697f;
  --fp-primary-050:    #eef5f7;

  /* Akzent: warmes Kupfer — Holz, Handwerk, Wärme */
  --fp-accent:         #c1743c;
  --fp-accent-dark:    #97551f;   /* textsicher auf Weiß */
  --fp-accent-050:     #fbf4ee;

  /* Neutrale Flächen und Schrift */
  --fp-ink:            #14232b;
  --fp-body:           #3f5058;
  --fp-muted:          #6e8089;
  --fp-line:           #dfe6e9;
  --fp-surface:        #ffffff;
  --fp-surface-alt:    #f5f8f9;

  --fp-radius:         14px;
  --fp-radius-sm:      10px;
  --fp-shadow:         0 1px 2px rgba(20, 35, 43, .05), 0 8px 24px rgba(20, 35, 43, .06);
  --fp-shadow-lg:      0 2px 4px rgba(20, 35, 43, .06), 0 18px 48px rgba(20, 35, 43, .12);

  /* Bootstrap-Variablen überschreiben */
  --bs-primary:        #0f4c5c;
  --bs-primary-rgb:    15, 76, 92;
  --bs-body-color:     #3f5058;
  --bs-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bs-link-color:     #0f4c5c;
  --bs-link-color-rgb: 15, 76, 92;
  --bs-link-hover-color: #17697f;
  --bs-border-color:   #dfe6e9;
  --bs-border-radius:  14px;
}

/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--fp-body);
  background: var(--fp-surface);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .fp-serif {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  color: var(--fp-ink);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem); }

p { max-width: 68ch; }
.fp-prose p:last-child { margin-bottom: 0; }

a { text-underline-offset: 0.18em; }

::selection { background: var(--fp-accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--fp-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Sprungmarke für Tastatur- und Screenreader-Nutzung */
.fp-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--fp-primary);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--fp-radius-sm) 0;
}
.fp-skip:focus { left: 0; color: #fff; }

/* Kleine Auszeichnungen */
.fp-eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fp-accent-dark);
  margin-bottom: .65rem;
  display: block;
}
.fp-eyebrow--onDark { color: #e8b98e; }

.fp-lead {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--fp-body);
}

.fp-rule {
  width: 56px;
  height: 3px;
  border: 0;
  opacity: 1;
  background: var(--fp-accent);
  border-radius: 2px;
  margin: 0 0 1.5rem;
}
.fp-rule--center { margin-left: auto; margin-right: auto; }

.fp-section { padding: clamp(3.25rem, 2rem + 4vw, 6rem) 0; }
.fp-section--tight { padding: clamp(2.5rem, 1.8rem + 2.6vw, 4rem) 0; }
.fp-surface-alt { background: var(--fp-surface-alt); }
.fp-surface-warm { background: var(--fp-accent-050); }

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.fp-nav {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--fp-line);
  transition: box-shadow .2s ease;
}
.fp-nav.is-stuck { box-shadow: 0 4px 20px rgba(20, 35, 43, .09); }

.fp-brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--fp-ink) !important;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.fp-brand small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin-top: .12rem;
}

.fp-nav .navbar-nav .nav-link {
  font-weight: 500;
  font-size: .96rem;
  color: var(--fp-body);
  padding: .55rem .85rem;
  border-radius: var(--fp-radius-sm);
  position: relative;
}
.fp-nav .navbar-nav .nav-link:hover,
.fp-nav .navbar-nav .nav-link:focus { color: var(--fp-primary); background: var(--fp-primary-050); }
.fp-nav .navbar-nav .nav-link.active,
.fp-nav .navbar-nav .show > .nav-link { color: var(--fp-primary); font-weight: 600; }

@media (min-width: 992px) {
  .fp-nav .navbar-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .1rem;
    height: 2px;
    background: var(--fp-accent);
    border-radius: 2px;
  }
}

.fp-nav .dropdown-menu {
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius-sm);
  box-shadow: var(--fp-shadow);
  padding: .4rem;
  margin-top: .4rem;
  min-width: 15rem;
}
.fp-nav .dropdown-item {
  border-radius: 8px;
  padding: .5rem .75rem;
  font-size: .94rem;
  color: var(--fp-body);
}
.fp-nav .dropdown-item:hover,
.fp-nav .dropdown-item:focus { background: var(--fp-primary-050); color: var(--fp-primary); }
.fp-nav .dropdown-item.active { background: var(--fp-primary); color: #fff; }

.navbar-toggler { border-color: var(--fp-line); padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: none; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn { font-weight: 600; border-radius: 999px; padding: .68rem 1.5rem; letter-spacing: .005em; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1rem; }

.btn-fp {
  background: var(--fp-primary);
  border: 1px solid var(--fp-primary);
  color: #fff;
}
.btn-fp:hover, .btn-fp:focus { background: var(--fp-primary-light); border-color: var(--fp-primary-light); color: #fff; }

.btn-fp-accent {
  background: var(--fp-accent);
  border: 1px solid var(--fp-accent);
  color: #fff;
}
.btn-fp-accent:hover, .btn-fp-accent:focus { background: var(--fp-accent-dark); border-color: var(--fp-accent-dark); color: #fff; }

.btn-fp-outline {
  background: transparent;
  border: 1px solid var(--fp-line);
  color: var(--fp-ink);
}
.btn-fp-outline:hover, .btn-fp-outline:focus { border-color: var(--fp-primary); color: var(--fp-primary); background: var(--fp-primary-050); }

.btn-fp-ghost {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
}
.btn-fp-ghost:hover, .btn-fp-ghost:focus { background: #fff; border-color: #fff; color: var(--fp-primary-dark); }

/* --------------------------------------------------------------------------
   5. Hero (Startseite)
   -------------------------------------------------------------------------- */
.fp-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 82% -8%, #1a7188 0%, rgba(26, 113, 136, 0) 62%),
    linear-gradient(152deg, var(--fp-primary-dark) 0%, var(--fp-primary) 58%, #0d5568 100%);
  color: #fff;
  padding: clamp(3.5rem, 2rem + 8vw, 7.5rem) 0 clamp(3.5rem, 2rem + 6vw, 6rem);
}
.fp-hero::after {
  /* feine Diagonale als Struktur, rein dekorativ */
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, .035) 62% 100%);
  pointer-events: none;
}
.fp-hero > .container { position: relative; z-index: 1; }
.fp-hero h1 { color: #fff; }
.fp-hero p { color: rgba(255, 255, 255, .87); }

.fp-hero-portrait {
  border-radius: var(--fp-radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .32);
  width: 100%;
  height: auto;
  display: block;
}
.fp-hero-portrait-frame { position: relative; }
.fp-hero-portrait-frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: var(--fp-radius);
  z-index: -1;
}

/* Kennzahlen unter dem Hero */
.fp-stat { border-left: 3px solid var(--fp-accent); padding-left: 1rem; }
.fp-stat .fp-stat-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 700;
  color: var(--fp-ink);
  line-height: 1.1;
  display: block;
}
.fp-stat .fp-stat-label { font-size: .92rem; color: var(--fp-muted); }
.fp-hero .fp-stat .fp-stat-num { color: #fff; }
.fp-hero .fp-stat .fp-stat-label { color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------------
   6. Seitenkopf (Unterseiten)
   -------------------------------------------------------------------------- */
.fp-pagehead {
  background: linear-gradient(150deg, var(--fp-primary-dark) 0%, var(--fp-primary) 100%);
  color: #fff;
  padding: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem) 0 clamp(2.2rem, 1.6rem + 3vw, 3.5rem);
}
.fp-pagehead h1 { color: #fff; margin-bottom: .85rem; }
.fp-pagehead p { color: rgba(255, 255, 255, .85); margin-bottom: 0; }
.fp-pagehead--wood { background: linear-gradient(150deg, #6b3d1c 0%, #9a5b2a 100%); }

.breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.5); font-size: .875rem; margin-bottom: 1.1rem; }
.breadcrumb a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb-item.active { color: rgba(255, 255, 255, .95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .45); }

/* --------------------------------------------------------------------------
   7. Karten
   -------------------------------------------------------------------------- */
.fp-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  box-shadow: var(--fp-shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
/* Nur Karten im Raster werden auf gleiche Hoehe gezogen. Eine Karte in einer
   Seitenspalte soll sich nach ihrem Inhalt richten und nicht auf die Hoehe der
   Textspalte daneben aufgeblasen werden. */
.fp-card-link { text-decoration: none; color: inherit; display: block; height: 100%; }
.fp-card-link > .fp-card { height: 100%; }
.fp-card-link:hover .fp-card,
.fp-card-link:focus .fp-card {
  transform: translateY(-4px);
  box-shadow: var(--fp-shadow-lg);
  border-color: #c9d6da;
}
.fp-card-body { padding: 1.6rem; }
.fp-card h3 { margin-bottom: .6rem; }
.fp-card p { color: var(--fp-body); font-size: .98rem; margin-bottom: 0; }

.fp-card-media { position: relative; overflow: hidden; background: var(--fp-surface-alt); }
/* Absolut positioniert, damit ein Bild im Hochformat das per aspect-ratio
   gesetzte Kachelformat nicht aufblaeht (height:100% haette sonst keinen
   definierten Bezug und das Bild wuerde seine eigene Hoehe durchsetzen). */
.fp-card-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.fp-card-link:hover .fp-card-media img,
.fp-card-link:focus .fp-card-media img { transform: scale(1.045); }

.fp-more {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  font-weight: 600; font-size: .93rem;
  color: var(--fp-primary);
}
.fp-more::after { content: "→"; transition: transform .2s ease; }
.fp-card-link:hover .fp-more::after { transform: translateX(4px); }

/* Icon-Plakette auf Leistungs-Karten */
.fp-badge-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--fp-primary-050);
  color: var(--fp-primary);
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700; font-size: 1.15rem;
  margin-bottom: 1.1rem;
}

/* --------------------------------------------------------------------------
   8. Galerie + Lightbox
   -------------------------------------------------------------------------- */
.fp-gallery-item { border: 0; background: none; padding: 0; width: 100%; height: 100%; text-align: left; }

.fp-figure {
  margin: 0;
  background: var(--fp-surface);
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  overflow: hidden;
  box-shadow: var(--fp-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.fp-gallery-item:hover .fp-figure,
.fp-gallery-item:focus-visible .fp-figure { transform: translateY(-4px); box-shadow: var(--fp-shadow-lg); }

.fp-figure-media { position: relative; background: #eceff1; flex: 0 0 auto; overflow: hidden; }
/* wie bei .fp-card-media: absolut positioniert, sonst setzt ein Hochformat-
   Bild seine eigene Hoehe durch und das Kachelraster wird unruhig */
.fp-figure-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.fp-gallery-item:hover .fp-figure-media img { transform: scale(1.04); }

.fp-figure-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 51, 65, .28), transparent 45%);
  opacity: 0;
  transition: opacity .22s ease;
}
.fp-gallery-item:hover .fp-figure-media::after { opacity: 1; }

.fp-zoom {
  position: absolute; right: .7rem; bottom: .7rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--fp-primary);
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 700;
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
}
.fp-gallery-item:hover .fp-zoom,
.fp-gallery-item:focus-visible .fp-zoom { opacity: 1; transform: translateY(0); }

.fp-figure figcaption {
  padding: .95rem 1.1rem 1.15rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--fp-body);
  flex: 1 1 auto;
}
.fp-figure figcaption:empty { display: none; }

/* Lightbox */
#fpLightbox .modal-content {
  background: transparent;
  border: 0;
}
#fpLightbox .modal-dialog { max-width: min(1140px, 94vw); }
#fpLightbox img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--fp-radius-sm);
  background: #0a3341;
}
#fpLightbox .fp-lightbox-caption {
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  text-align: center;
  margin-top: .9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .6);
}
#fpLightbox .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: .9;
  position: absolute;
  top: -2.4rem; right: 0;
  z-index: 2;
}
.modal-backdrop.show { opacity: .93; background: #061a21; }

/* --------------------------------------------------------------------------
   9. Inhaltsbausteine
   -------------------------------------------------------------------------- */
.fp-quote {
  border-left: 4px solid var(--fp-accent);
  background: var(--fp-accent-050);
  border-radius: 0 var(--fp-radius-sm) var(--fp-radius-sm) 0;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}
.fp-quote p {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem);
  font-style: italic;
  color: var(--fp-ink);
  margin-bottom: .5rem;
}
.fp-quote cite { font-style: normal; font-size: .9rem; color: var(--fp-muted); }

.fp-approach { border-top: 1px solid var(--fp-line); padding-top: 1.75rem; margin-top: 1.75rem; }
.fp-approach:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.fp-approach h3 { display: flex; align-items: baseline; gap: .7rem; }
.fp-approach h3 .fp-approach-no {
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em;
  color: var(--fp-accent-dark);
  flex: 0 0 auto;
}

.fp-checklist { list-style: none; padding: 0; margin: 0; }
.fp-checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .7rem;
}
.fp-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--fp-accent);
}

.fp-figure-inline {
  margin: 0;
  border-radius: var(--fp-radius);
  overflow: hidden;
  box-shadow: var(--fp-shadow);
  border: 1px solid var(--fp-line);
}
.fp-figure-inline img { width: 100%; height: auto; display: block; }
.fp-figure-inline figcaption {
  padding: .85rem 1.1rem;
  font-size: .9rem;
  color: var(--fp-muted);
  background: var(--fp-surface);
}

/* Termin-Liste (Märkte) */
.fp-event {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--fp-line);
}
.fp-event:last-child { border-bottom: 0; }
.fp-event-date {
  flex: 0 0 auto;
  min-width: 5.4rem;
  text-align: center;
  background: var(--fp-primary-050);
  border-radius: var(--fp-radius-sm);
  padding: .6rem .5rem;
  line-height: 1.2;
}
.fp-event-date .d { display: block; font-family: 'Source Serif 4', Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--fp-primary); }
.fp-event-date .m { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--fp-muted); }
.fp-event-body h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.fp-event-body p { font-size: .95rem; margin-bottom: 0; color: var(--fp-muted); }

/* Kontaktzeile */
.fp-contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--fp-line);
}
.fp-contact-row:last-child { border-bottom: 0; }
.fp-contact-icon {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--fp-primary-050);
  color: var(--fp-primary);
  display: grid; place-items: center;
}
.fp-contact-row .label { font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; color: var(--fp-muted); font-weight: 600; }
.fp-contact-row .value { font-size: 1.05rem; color: var(--fp-ink); font-weight: 500; }
.fp-contact-row .value a { color: var(--fp-ink); text-decoration: none; }
.fp-contact-row .value a:hover { color: var(--fp-primary); text-decoration: underline; }

/* CTA-Band */
.fp-cta {
  background: linear-gradient(150deg, var(--fp-primary-dark) 0%, var(--fp-primary) 100%);
  color: #fff;
  border-radius: var(--fp-radius);
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.25rem);
}
.fp-cta h2 { color: #fff; }
.fp-cta p { color: rgba(255, 255, 255, .85); }

/* Rechtstexte */
.fp-legal h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: .8rem; }
.fp-legal h2:first-child { margin-top: 0; }
.fp-legal h3 { font-size: 1.08rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.fp-legal p, .fp-legal li { font-size: .98rem; }
.fp-legal ul { padding-left: 1.2rem; }

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.fp-footer {
  background: var(--fp-primary-dark);
  color: rgba(255, 255, 255, .72);
  padding: clamp(2.75rem, 2rem + 2.5vw, 4rem) 0 1.75rem;
  font-size: .95rem;
}
.fp-footer h2, .fp-footer h3 {
  color: #fff;
  font-size: .82rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}
.fp-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fp-footer a:hover, .fp-footer a:focus { color: #fff; text-decoration: underline; }
.fp-footer ul { list-style: none; padding: 0; margin: 0; }
.fp-footer li { margin-bottom: .5rem; }
.fp-footer .fp-footer-brand {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.fp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .58);
}

/* --------------------------------------------------------------------------
   11. Kleinigkeiten
   -------------------------------------------------------------------------- */
.fp-qr { max-width: 148px; border-radius: 10px; border: 1px solid var(--fp-line); padding: 6px; background: #fff; }

.fp-note {
  background: var(--fp-primary-050);
  border: 1px solid #cfe0e5;
  border-radius: var(--fp-radius-sm);
  padding: 1rem 1.2rem;
  font-size: .95rem;
}

.fp-top {
  position: fixed;
  right: 1.25rem; bottom: 1.25rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--fp-primary);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--fp-shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1030;
}
.fp-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.fp-top:hover { background: var(--fp-primary-light); }

/* Seitenverhältnisse für Bildkacheln */
.fp-ratio-4x3 { aspect-ratio: 4 / 3; }
.fp-ratio-3x2 { aspect-ratio: 3 / 2; }
.fp-ratio-16x9 { aspect-ratio: 16 / 9; }
.fp-ratio-1x1 { aspect-ratio: 1 / 1; }

@media print {
  .fp-nav, .fp-footer, .fp-top, .fp-cta { display: none !important; }
  body { font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
