/**
 * Components — Buttons, Cards, CTA-Banner, Hero, Promise-Grid
 *
 * Importiert spezialisierte Components am Ende der Datei.
 *
 * @package hammerl-brot
 */

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn,
.hmr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:hover,
.btn:focus-visible,
.hmr-btn:hover,
.hmr-btn:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

/* Primary — gefüllter Akzent-Button (dunkles Ocker für Kontrast) */
.btn-primary,
.hmr-btn--primary {
  background: var(--color-accent-strong);
  color: #fff;
  border-color: var(--color-accent-strong);
}

.btn-primary:hover,
.btn-primary:focus-visible,
.hmr-btn--primary:hover,
.hmr-btn--primary:focus-visible {
  background: var(--color-accent-2);
  border-color: var(--color-accent-2);
  color: #fff;
}

/* Ghost — Outline-Variante (für dunkle Backgrounds) */
.btn-ghost,
.hmr-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover,
.btn-ghost:focus-visible,
.hmr-btn--ghost:hover,
.hmr-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Outline — auf hellem Hintergrund */
.btn-outline,
.hmr-btn--outline {
  background: transparent;
  color: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
}

.btn-outline:hover,
.btn-outline:focus-visible,
.hmr-btn--outline:hover,
.hmr-btn--outline:focus-visible {
  background: var(--color-accent-strong);
  color: #fff;
}

/* Fokus-Ring (A11y) */
.btn:focus-visible,
.hmr-btn:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 3px;
}

/* ==========================================================================
   Hero — Bild + Overlay + Centered Content
   ========================================================================== */

.hmr-hero {
  position: relative;
  min-height: 480px;
  background: #1a1a1a;
  border-radius: var(--radius-md);
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: center;
}

.hmr-hero__bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.hmr-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
  z-index: 2;
}

.hmr-hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-xl) var(--space-md);
  max-width: 780px;
  width: 100%;
}

.hmr-hero__title {
  color: #fff;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: var(--lh-tight);
  margin: 0 0 var(--space-sm) 0;
}

.hmr-hero__lead {
  color: #fff;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.5;
  margin: 0 0 var(--space-md) 0;
  max-width: 640px;
}

.hmr-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ==========================================================================
   Promise-Grid (Drei Versprechen)
   ========================================================================== */

.hmr-promises {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hmr-promises {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
}

.hmr-promise {
  text-align: center;
  padding: var(--space-md) var(--space-sm);
}

.hmr-promise__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm) auto;
  color: var(--color-accent-strong);
}

.hmr-promise__icon svg {
  width: 100%;
  height: 100%;
}

.hmr-promise__title {
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-xs) 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  color: var(--color-text);
}

.hmr-promise__text {
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--color-text-muted);
  margin: 0;
}

/* ==========================================================================
   CTA-Banner (Newsletter, Kontakt, etc.)
   ========================================================================== */

.hmr-cta-banner {
  background: var(--color-accent);             /* blasses Gelb */
  color: var(--color-text);                    /* dunkler Text für Kontrast */
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.hmr-cta-banner__title {
  color: var(--color-text);
  margin: 0 0 var(--space-sm) 0;
  font-size: clamp(24px, 3vw, 36px);
}

.hmr-cta-banner__lead {
  color: var(--color-text);
  opacity: 0.85;
  max-width: 580px;
  margin: 0 auto var(--space-md) auto;
  line-height: var(--lh-base);
}

/* CTA-Banner-Button: dunkles Ocker auf gelbem Hintergrund */
.hmr-cta-banner .hmr-btn--ghost,
.hmr-cta-banner .hmr-btn--primary {
  background: var(--color-accent-strong);
  color: #fff;
  border-color: var(--color-accent-strong);
}

.hmr-cta-banner .hmr-btn--ghost:hover,
.hmr-cta-banner .hmr-btn--ghost:focus-visible,
.hmr-cta-banner .hmr-btn--primary:hover,
.hmr-cta-banner .hmr-btn--primary:focus-visible {
  background: var(--color-accent-2);
  border-color: var(--color-accent-2);
  color: #fff;
}

/* ==========================================================================
   Cards (für Sorten, Beiträge etc.)
   ========================================================================== */

.hmr-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.hmr-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.hmr-card__media {
  aspect-ratio: 4 / 3;
  background-position: center center;
  background-size: cover;
}

.hmr-card__body {
  /* Mehr Luft oben zwischen Bild und Titel */
  padding: var(--space-md) var(--space-md) var(--space-md);
}

.hmr-card__title {
  font-size: var(--fs-h3);
  margin: 0 0 var(--space-sm) 0;
  line-height: 1.25;
}

.hmr-card__excerpt {
  color: var(--color-text-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  margin: 0;
}

/* ==========================================================================
   Hero — Background-Video mit Overlay-Headline + CTAs
   ========================================================================== */

.hammerl-hero {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 480px;
  max-height: 800px;
  overflow: hidden;
  background: #000;
}

.hammerl-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hammerl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}

.hammerl-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100%;
  padding: 0 24px;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.6);
}

.hammerl-hero__headline {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hammerl-hero__subheadline {
  font-family: var(--font-body, "Droid Serif"), serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  margin: 0 0 2em;
  color: #fff;
  font-weight: 300;
}

.hammerl-hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.hammerl-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body, "Droid Serif"), serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  border-radius: 0;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.hammerl-hero__btn--primary {
  background: #fff;
  color: #000;
}

.hammerl-hero__btn--primary:hover {
  background: transparent;
  color: #fff;
}

.hammerl-hero__btn--secondary {
  background: transparent;
  color: #fff;
}

.hammerl-hero__btn--secondary:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .hammerl-hero {
    height: 70vh;
    min-height: 400px;
  }
  .hammerl-hero__content {
    padding: 0 16px;
  }
  .hammerl-hero__ctas {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hammerl-hero__btn {
    width: 100%;
  }
}

/* Reduced motion: video pausieren wenn User prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hammerl-hero__video {
    display: none;
  }
  .hammerl-hero {
    background-image: url("https://hammerl-landbaeckerei98639.e.wpstage.net/wp-content/uploads/2017/08/CHK7335-teaser.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* ==========================================================================
   Video-Hero (LEGACY — alte YouTube-Iframe-Sektion, jetzt unused)
   ========================================================================== */

.hammerl-video-hero {
  padding: var(--space-xl, 48px) 0;
  background: var(--color-bg, #f8f8f8);
}

.hammerl-video-hero__frame {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  border-radius: var(--radius-sm, 4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hammerl-video-hero__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .hammerl-video-hero {
    padding: var(--space-md, 24px) 0;
  }
  .hammerl-video-hero__frame {
    border-radius: 0;
  }
}

/* ==========================================================================
   Instagram-Section (Smashballoon Feed)
   ========================================================================== */

.hammerl-instagram-section {
  padding: 60px 0;
  background: #fff;
}

.hammerl-instagram-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.hammerl-instagram-section__header h2 {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hammerl-instagram-section__handle {
  font-family: var(--font-body, "Droid Serif"), serif;
  font-size: 1rem;
  color: #666;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.hammerl-instagram-section__handle:hover {
  color: #000;
}

/* Smashballoon-Feed Container überschreiben (.sbi) */
.hammerl-instagram-section .sbi_photo_wrap {
  border-radius: 0;
}

/* Click-Verhalten der Posts: nur ein <a> klickbar = sbi_photo
   (verlinkt zum Instagram-Post in neuem Tab).
   sbi_link_area würde sonst zur JPG-File-URL führen + Lightbox-Modal triggern. */
.hammerl-instagram-section .sbi_link_area {
  pointer-events: none;
}
.hammerl-instagram-section .sbi_photo {
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

/* SBI-Lightbox-Modal hart killen — falls Plugin sie trotz disablelightbox=true rendert. */
#sbi_lightbox,
#sbi_lightboxOverlay {
  display: none !important;
}

/* ==========================================================================
   B2B-Streifen
   ========================================================================== */

.hammerl-b2b-strip {
  padding: 56px 0;
  background: #000;
  color: #fff;
}

.hammerl-b2b-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.hammerl-b2b-strip__text {
  flex: 1 1 60%;
  min-width: 280px;
}

.hammerl-b2b-strip__text h2 {
  color: #fff;
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hammerl-b2b-strip__text p {
  color: #ddd;
  margin: 0;
  font-size: 1.125rem;
}

.hammerl-b2b-strip__cta {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #fff;
  color: #000;
  font-family: var(--font-body, "Droid Serif"), serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  transition: all 0.2s ease-in-out;
}

.hammerl-b2b-strip__cta:hover {
  background: transparent;
  color: #fff;
}

/* ==========================================================================
   B2B-Page (/fuer-haendler/)
   ========================================================================== */

.b2b-hero {
  background: #0f1011 linear-gradient(135deg, #0f1011 0%, #2a2c2f 100%);
  color: #fff;
  padding: 96px 0;
  text-align: center;
}

.b2b-hero__inner {
  max-width: 800px;
  margin: 0 auto;
}

.b2b-hero h1 {
  color: #fff;
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
}

.b2b-hero__sub {
  font-size: 1.25rem;
  color: #ddd;
  margin: 0 0 32px;
  line-height: 1.5;
}

.b2b-hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.b2b-btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-family: var(--font-body, "Droid Serif"), serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid #fff;
  transition: all 0.2s ease-in-out;
}

.b2b-btn--primary {
  background: #fff;
  color: #000;
}

.b2b-btn--primary:hover {
  background: transparent;
  color: #fff;
}

.b2b-btn--secondary {
  background: transparent;
  color: #fff;
}

.b2b-btn--secondary:hover {
  background: #fff;
  color: #000;
}

/* --- Button-Element-Reset (Submit-Buttons brauchen UA-Reset) --- */
button.b2b-btn {
  cursor: pointer;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
}

/* --- Buttons auf HELLEM Hintergrund (PDF-CTA, Kontaktformular): dunkel füllen,
   da weiß-auf-weiß sonst unsichtbar ist; + Abstand zum Text darüber. --- */
.b2b-pdf-cta__btn.b2b-btn--primary,
.hb-contact-form__submit.b2b-btn--primary {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
  margin-top: 24px;
}
.b2b-pdf-cta__btn.b2b-btn--primary:hover,
.hb-contact-form__submit.b2b-btn--primary:hover {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
}

.b2b-solutions {
  padding: 80px 0;
  background: #fff;
}

.b2b-solutions__header,
.b2b-contact__header,
.b2b-testimonials__header,
.b2b-conditions__header,
.b2b-form__header {
  text-align: center;
  margin-bottom: 48px;
}

.b2b-solutions__header h2,
.b2b-contact__header h2,
.b2b-testimonials__header h2,
.b2b-conditions__header h2,
.b2b-form__header h2 {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.b2b-solutions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.b2b-card {
  background: #f8f8f8;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.b2b-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.b2b-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  color: var(--color-accent-strong, #8a6d2b);
}

.b2b-card__icon-svg {
  width: 45px;
  height: 45px;
  display: block;
}

.b2b-card h3 {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.b2b-card p {
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
  margin: 0;
}

.b2b-contact {
  padding: 80px 0;
  background: #f5f5f5;
}

.b2b-contact__card {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  flex-wrap: wrap;
}

.b2b-contact__photo {
  flex: 0 0 140px;
}

.b2b-contact__photo-placeholder {
  width: 140px;
  height: 140px;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 2.5rem;
  font-weight: 700;
}

.b2b-contact__details {
  flex: 1 1 280px;
}

.b2b-contact__name {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.b2b-contact__role {
  color: #666;
  margin: 4px 0 16px;
}

.b2b-contact__channels {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.b2b-contact__channels li {
  margin-bottom: 6px;
}

.b2b-contact__sla {
  color: #444;
  font-size: 1rem;
  margin: 0;
}

.b2b-testimonials {
  padding: 80px 0;
  background: #fff;
}

.b2b-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.b2b-testimonial {
  margin: 0;
  padding: 32px 24px;
  background: #f8f8f8;
  border-left: 4px solid #000;
}

.b2b-testimonial__quote {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 16px;
}

.b2b-testimonial__cite {
  font-size: 1rem;
  color: #444;
}

.b2b-testimonial__name {
  font-weight: 700;
  color: #000;
}

.b2b-testimonials__note {
  text-align: center;
  color: #444;
  font-size: 1rem;
  margin-top: 24px;
}

.b2b-conditions {
  padding: 80px 0;
  background: #f5f5f5;
}

.b2b-conditions__list {
  list-style: none;
  padding: 0;
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
}

.b2b-conditions__list li {
  padding: 16px 24px;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  line-height: 1.55;
  color: #222;
}

.b2b-conditions__list li:last-child {
  border-bottom: none;
}

.b2b-form {
  padding: 80px 0;
  background: #fff;
}

.b2b-form__placeholder {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px;
  background: #fffbea;
  border: 2px dashed #d4af37;
  text-align: center;
}

/* ==========================================================================
   Image-Menu-Tiles auf Startseite (Pinnacle-Toolkit)
   Equal-Height + sauberer Crop, weil Source-Bilder leicht unterschiedlich sind.
   ========================================================================== */

.image-menu-fixed-height {
  min-height: 320px;
}

.image_menu-bg-item {
  min-height: 320px;
  background-position: center center !important;
  background-size: cover !important;
}

@media (max-width: 768px) {
  .image-menu-fixed-height,
  .image_menu-bg-item {
    min-height: 240px;
  }
}

/* ==========================================================================
   Brote-Hub (/unsere-brote/) — 4-Kachel-Grid mit Tax-Term-Covern
   ========================================================================== */

.brote-hub {
  padding: 0 0 80px;
}

.brote-hub__intro {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
}

.brote-hub__intro p {
  margin: 0 0 16px;
}

.brote-hub__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.brote-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brote-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.brote-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eee center / cover no-repeat;
}

.brote-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
  transition: background 0.2s;
}

.brote-card:hover .brote-card__overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
}

.brote-card__body {
  padding: 20px 24px 24px;
}

.brote-card__title {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: #111;
}

.brote-card__meta {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 16px;
  letter-spacing: 0.3px;
}

.brote-card__cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000;
  border-bottom: 2px solid #000;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.brote-card:hover .brote-card__cta {
  color: #555;
  border-bottom-color: #555;
}

@media (max-width: 768px) {
  .brote-hub__grid {
    grid-template-columns: 1fr;
  }
  .brote-card__media {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================================
   Breadcrumbs ausgeblendet (Ascend-Default rendert "Startseite » …")
   ========================================================================== */

.kt_bc_nomargin,
#kadbreadcrumbs {
  display: none !important;
}

/* ==========================================================================
   Über-uns — Slick Image Gallery Section
   ==========================================================================
   Container für die Bilderserie oberhalb des Page-Headers auf /ueber-uns/.
   Die slick-spezifischen Styles (Arrows, Dots, Slides) liefert das Ascend
   Parent-Theme; wir setzen hier nur den Max-Width-Rahmen und den vertikalen
   Spacing-Rhythmus. */

.hammerl-ueber-gallery {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 1rem 15px 0;
    background: transparent;
}

.hammerl-ueber-gallery .kt-slick-slide {
    padding: 0 5px;
}

/* Normalize slide image heights — source files are 599x400 / 608x400 / 472x400.
   Force a uniform 4:3 box; cropping happens in browser via object-fit. */
.hammerl-ueber-gallery .kt-slick-slide a,
.hammerl-ueber-gallery .kt-slick-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
    border-radius: 2px;
}

/* Pre-init Fallback: solange Slick noch lädt (Klasse "loading"), Slides als
   horizontale Liste zeigen, damit kein leerer Block sichtbar ist. */
.hammerl-ueber-gallery .slick-slider.loading {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    background: transparent;
}

.hammerl-ueber-gallery .slick-slider.loading .kt-slick-slide {
    flex: 0 0 auto;
    width: clamp(220px, 33vw, 360px);
}

@media (max-width: 640px) {
    .hammerl-ueber-gallery {
        padding: 0.5rem 10px 0;
    }
}

/* ==========================================================================
   B2B Benefits Grid (3×2, SEO-keyword-haltig)
   ========================================================================== */

.b2b-benefits {
  padding: 80px 0;
  background: #f7f4ee;
}

.b2b-benefits__header {
  text-align: center;
  margin-bottom: 48px;
}

.b2b-benefits__heading {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.b2b-benefits__intro {
  max-width: 720px;
  margin: 0 auto;
  color: #444;
  font-size: 1.05rem;
  line-height: 1.6;
}

.b2b-benefits__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.b2b-benefit {
  background: #fff;
  padding: 28px;
  border-left: 3px solid #000;
}

.b2b-benefit__title {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.15rem;
  margin: 0 0 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.b2b-benefit__text {
  margin: 0;
  color: #222;
  line-height: 1.6;
  font-size: 1rem;
}

.b2b-benefit__text a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 900px) {
  .b2b-benefits__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   B2B FAQ (Long-Tail-SEO, FAQPage Schema)
   ========================================================================== */

.b2b-faq {
  padding: 80px 0;
  background: #fff;
}

.b2b-faq__inner {
  max-width: 860px;
  margin: 0 auto;
}

.b2b-faq__header {
  text-align: center;
  margin-bottom: 40px;
}

.b2b-faq__heading {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.b2b-faq__intro {
  color: #444;
  line-height: 1.6;
}

.b2b-faq__list {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.b2b-faq__item {
  border-bottom: 1px solid #e6e0d4;
  padding-bottom: 20px;
}

.b2b-faq__question h3 {
  font-family: var(--font-heading, "Droid Serif"), serif;
  font-size: 1.1rem;
  margin: 0 0 8px;
  line-height: 1.3;
}

.b2b-faq__answer {
  margin: 0;
  color: #222;
  line-height: 1.7;
  font-size: 1rem;
}

.b2b-faq__answer em {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
}

/* ==========================================================================
   Imports — spezialisierte Components
   ========================================================================== */

@import url("./components/image-menu.css");

/* ==========================================================================
   B2B-Page · Lesbarkeits-Boost
   Theme-Default body { line-height: 20px; font-size: 16px } drückt die
   B2B-Texte zu eng zusammen. Hier global pro B2B-Sektion größer +
   großzügigere line-height für lesbares Long-Form.
   ========================================================================== */

.b2b-card p,
.b2b-benefit__text,
.b2b-conditions__list li,
.b2b-testimonial__quote,
.b2b-faq__answer,
.b2b-contact__details p,
.b2b-contact__channels li {
  font-size: 1.0625rem;   /* ~17px */
  line-height: 1.65;
}

.b2b-faq__question h3 {
  font-size: 1.25rem;     /* ~20px */
  line-height: 1.4;
}

.b2b-benefit__title,
.b2b-card h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

.b2b-benefits__intro,
.b2b-faq__intro,
.b2b-solutions__header p,
.b2b-contact__header p,
.b2b-conditions__header p,
.b2b-form__header p {
  font-size: 1.125rem;    /* ~18px */
  line-height: 1.65;
}

.b2b-hero__sub {
  font-size: 1.25rem;
  line-height: 1.55;
}

.b2b-contact__sla,
.b2b-testimonials__note {
  font-size: 0.9375rem;   /* statt 0.85 — leserlicher */
  line-height: 1.5;
}

.b2b-faq__answer em {
  font-size: 0.9375rem;
}

/* ==========================================================================
   Display-Headlines — Amatic SC
   --------------------------------------------------------------------------
   Font-Entscheidung: Amatic SC ist eine schmale, handschriftliche Display-Font
   und korrespondiert mit dem handgeschriebenen "Hammerl"-Logo. Sie wird GEZIELT
   nur auf große Display-Headlines gesetzt (Hero + Haupt-Section-Headings der
   neuen Komponenten), NICHT auf Fließtext, Karten-/FAQ-Headings oder UI — dort
   bleibt die Serif/Body-Konsistenz, weil Amatic bei kleinen Größen schlecht
   lesbar ist und zu verspielt wirkt.

   Spezifität: Das ascend/Kadence-Parent setzt die Heading-Font dynamisch
   (Droid Serif) mit hoher Priorität. Daher hier gezielte Selektoren + scoped
   `!important` NUR auf diesen wenigen Display-Headlines — kein globales
   Heading-!important. Amatic baut schmal → Größen via --fs-display-* (~1.3x).
   ========================================================================== */

/* Amatic SC bewusst NICHT für Headlines verwendet (Kundenwunsch 2026-06-15).
   Alle Überschriften bleiben in Droid Serif (var(--font-heading)) wie vor dem
   Schriftgrößen-Fix. Display-Headlines übernehmen Font UND eine moderate Größe
   in Serif (nicht die schmal-kalibrierten Amatic-Größen). Die Amatic-Webfont-
   Dateien bleiben nur als 404-Fix liegen (@font-face in legacy-from-live.css). */
.hammerl-hero__headline,
.hmr-hero__title,
.b2b-hero h1 {
  font-family: var(--font-heading) !important;
  font-size: clamp(32px, 4.5vw, 52px) !important;
  line-height: 1.15 !important;
  font-weight: 700;
}

.hammerl-instagram-section__header h2,
.hammerl-b2b-strip__text h2,
.b2b-solutions__header h2,
.b2b-contact__header h2,
.b2b-testimonials__header h2,
.b2b-conditions__header h2,
.b2b-form__header h2,
.b2b-benefits__heading,
.b2b-faq__heading,
.brote-card__title {
  font-family: var(--font-heading) !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.2 !important;
  font-weight: 700;
}

/* Bewusst NICHT auf Amatic umgestellt (bleiben Serif/Body für Lesbarkeit):
   .b2b-card h3, .b2b-benefit__title, .b2b-faq__question h3,
   .b2b-contact__name, .b2b-testimonial__quote, .brote-card__meta.
   Diese kleinen/mittleren Headings tragen Detail-Text und sind in einer
   handschriftlichen Font schlechter lesbar. */

/* ==========================================================================
   A11y — Fokus-Ringe für Komponenten-Buttons/Links (additiv)
   --------------------------------------------------------------------------
   .b2b-btn, .hammerl-hero__btn, .hammerl-b2b-strip__cta haben bisher nur
   :hover, keinen sichtbaren Tastatur-Fokus. Hier ein klarer, kontrastreicher
   Fokus-Ring NUR bei :focus-visible (kein störender Ring bei Maus-Klick).
   Diese Buttons stehen meist auf dunklen Flächen → weißer Ring + dunkler
   Halo für Sichtbarkeit. Visuelles Layout bleibt unverändert.
   ========================================================================== */

.b2b-btn:focus-visible,
.hammerl-hero__btn:focus-visible,
.hammerl-b2b-strip__cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.55);
}

/* Buttons auf HELLEM Hintergrund (PDF-CTA, Kontaktformular-Submit):
   dunkler Ring statt weiß, sonst unsichtbar auf Weiß. */
.b2b-pdf-cta__btn.b2b-btn--primary:focus-visible,
.hb-contact-form__submit.b2b-btn--primary:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 3px;
  box-shadow: none;
}

/* Brote-Card ist ein klickbarer Link-Block → klarer Fokus-Ring. */
.brote-card:focus-visible {
  outline: 3px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* Instagram-Handle-Link: sichtbarer Fokus. */
.hammerl-instagram-section__handle:focus-visible {
  outline: 2px solid var(--color-accent-strong);
  outline-offset: 2px;
}

/* ==========================================================================
   Performance — will-change NUR bei Hover-Intent (sparsam)
   --------------------------------------------------------------------------
   will-change global zu setzen würde dauerhaft Compositor-Layer erzwingen
   (Memory-Kosten). Stattdessen den Hint nur kurz vor der Transition aktivieren,
   wenn der Pointer die Karte berührt — so wird der Layer nur bei tatsächlicher
   Interaktion promotet. Kein visueller Unterschied.
   ========================================================================== */

.hmr-card:hover,
.b2b-card:hover,
.brote-card:hover {
  will-change: transform;
}
