/* Bergpfad fixture stylesheet — independent of quark base. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #ffffff;
}

a { color: #2d6a4f; }

img { max-width: 100%; height: auto; display: block; }

.bp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =========================
   Header & Navigation
   ========================= */
.bp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid #e0e6e2;
}
.bp-header .bp-logo img { height: 36px; width: auto; }

.bp-nav { display: flex; gap: 24px; }
.bp-nav a {
  color: #1f6feb;
  text-decoration: none;
  font-weight: 500;
}

/* P1 — link_hover_color_only: nav links get underline only on hover */
.bp-nav-hover-only a:hover { text-decoration: underline; }
.bp-nav-hover-only a:focus { text-decoration: underline; }

/* Default nav style for other pages: always-visible underline so only the P1 link triggers hover-only */
.bp-nav-underlined a { text-decoration: underline; }

/* =========================
   Hero
   ========================= */
.bp-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  margin-bottom: 48px;
}
.bp-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.bp-hero-inner { position: relative; z-index: 1; max-width: 720px; padding: 0 24px; }
.bp-hero h1 { font-size: 48px; margin: 0 0 16px; line-height: 1.15; }

/* P1 — contrast_text_insufficient: tagline grey on white (when not on dark hero) */
.bp-low-contrast-tagline {
  color: #999;
  background: #ffffff;
  padding: 16px 24px;
  text-align: center;
  font-size: 18px;
  margin: 0 0 32px;
}

/* P5 — contrast_large_text_insufficient: light large heading */
.bp-large-low-contrast {
  color: #bbbbbb;
  background: #ffffff;
  font-size: 48px;
  font-weight: 700;
  margin: 32px 0 16px;
  line-height: 1.2;
}

/* =========================
   Tabs (Filter) — interactive_state_color_only_indicator
   ========================= */
.bp-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #ddd;
  margin: 32px 0 24px;
}
.bp-tabs button {
  border: none;
  background: transparent;
  color: #2d6a4f;
  padding: 12px 20px;
  font-size: 15px;
  cursor: pointer;
}
/* P1 — active tab indicated only by background colour, no icon, no aria-selected */
.bp-tabs button.is-active {
  background: #d8f3dc;
}

/* =========================
   Feature Cards (P1)
   ========================= */
.bp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0 64px;
}
.bp-feature-card {
  border: 1px solid #e0e6e2;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.bp-feature-card img { width: 100%; height: 180px; object-fit: cover; }
.bp-feature-card-body { padding: 16px 20px 20px; }
.bp-feature-card h3 { margin: 0 0 8px; font-size: 18px; color: #1b4332; }
.bp-feature-card p { margin: 0 0 16px; color: #444; font-size: 14px; }
.bp-feature-card .bp-btn-link {
  display: inline-block;
  background: #2d6a4f;
  color: #fff;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 14px;
}

/* =========================
   Article (P2)
   ========================= */
.bp-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}
.bp-article h1 { font-size: 36px; margin: 0 0 16px; line-height: 1.2; }
.bp-article h2 { font-size: 26px; margin: 40px 0 12px; }
.bp-article h3 { font-size: 20px; margin: 32px 0 10px; }
.bp-article p { margin: 0 0 16px; }
.bp-article-meta { color: #666; font-size: 14px; margin: 0 0 24px; }
.bp-article-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 4px; margin: 0 0 24px; }
.bp-article-inline { width: 100%; max-height: 360px; object-fit: cover; border-radius: 4px; margin: 24px 0; }
.bp-article-figure-caption { font-size: 13px; color: #666; margin-top: 6px; }

/* P2 — fake heading suspected: bold styled div */
.bp-fake-heading {
  font-size: 24px;
  font-weight: bold;
  margin-top: 32px;
  margin-bottom: 12px;
  color: #1b4332;
}

/* P2 — link_color_only_distinction: inline link blue, no underline */
.bp-inline-link-no-underline {
  color: #1f6feb;
  text-decoration: none;
}

/* =========================
   Gallery (P3)
   ========================= */
.bp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 24px;
}
.bp-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
}
.bp-gallery-section {
  padding: 24px 0;
}
.bp-gallery-divider { width: 100%; margin: 32px 0; }
.bp-empty-h2 {
  /* visual: empty heading is invisible, but DOM has <h2></h2> */
  height: 12px;
  margin: 0 0 16px;
}

/* =========================
   Forms (P4)
   ========================= */
.bp-form-page { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 32px 24px; }
.bp-form-main h1 { font-size: 32px; margin: 0 0 24px; }
.bp-form { display: flex; flex-direction: column; gap: 16px; max-width: 520px; }
.bp-form label { font-weight: 500; font-size: 14px; }
.bp-form input[type="text"],
.bp-form input[type="email"],
.bp-form input[type="tel"],
.bp-form textarea {
  padding: 10px 12px;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.bp-form textarea { min-height: 100px; resize: vertical; }
.bp-form fieldset { border: 1px solid #ddd; padding: 12px 16px; border-radius: 4px; }

/* P4 — required_field_color_only_indicator: red border only on required */
.bp-required-color-only {
  border: 1px solid #d33 !important;
}

/* P4 — contrast_ui_insufficient: low-contrast submit button */
.bp-btn-low-contrast {
  background: #ffffff;
  color: #ffffff;
  border: 1px solid #cccccc;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}
.bp-btn-low-contrast:hover { background: #f5f5f5; }

.bp-btn-primary {
  background: #2d6a4f;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

.bp-icon-button {
  background: transparent;
  border: 1px solid #c0c0c0;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.bp-icon-button svg { width: 20px; height: 20px; }

.bp-form-sidebar {
  background: #f7f9f7;
  padding: 24px;
  border-radius: 8px;
}
.bp-form-sidebar h1 { font-size: 22px; margin: 0 0 16px; }
.bp-newsletter { display: flex; gap: 8px; margin: 16px 0; }
.bp-newsletter input { flex: 1; padding: 10px 12px; border: 1px solid #c0c0c0; border-radius: 4px; }

/* =========================
   Tables (P5)
   ========================= */
.bp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.bp-table td, .bp-table th {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e0e6e2;
}
.bp-table th { font-weight: 700; background: #f1f5f2; color: #1b4332; }

/* =========================
   Pricing & misc (P5)
   ========================= */
.bp-section { padding: 48px 0; }
.bp-section h2 { font-size: 28px; margin: 0 0 16px; }
.bp-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.bp-team-card { text-align: center; }
.bp-team-card img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; }
.bp-team-card h3 { margin: 0 0 4px; font-size: 16px; }
.bp-team-card p { margin: 0; color: #666; font-size: 14px; }

.bp-testimonial {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f7f9f7;
  padding: 24px;
  border-radius: 8px;
  margin: 24px 0;
}
.bp-testimonial img { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.bp-testimonial blockquote { margin: 0 0 8px; font-style: italic; }
.bp-testimonial cite { font-size: 13px; color: #555; }

/* P5 — link_focus_color_only: outline appears only on :focus */
.bp-focus-only-link {
  color: #2d6a4f;
  text-decoration: none;
  outline: none;
}
.bp-focus-only-link:focus {
  text-decoration: underline;
  outline: 2px solid #2d6a4f;
  outline-offset: 2px;
}

/* P5 — favorite-toggle: CSS-only icon button (info_missing_accessible_name) */
.favorite-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #c0c0c0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  position: relative;
  padding: 0;
}
.favorite-toggle::before {
  content: "♥";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #d33;
  font-size: 18px;
}

/* P5 — info_link_empty: empty <a> styled like a social icon via CSS pseudo */
.bp-social-empty-link {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2d6a4f;
  position: relative;
  margin-right: 8px;
}
.bp-social-empty-link::before {
  content: "𝕏";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 16px;
}

/* =========================
   Footer
   ========================= */
.bp-footer {
  border-top: 1px solid #e0e6e2;
  padding: 32px 24px;
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 48px;
}
.bp-footer a { color: #2d6a4f; text-decoration: underline; }

/* =========================
   Responsive
   ========================= */
@media (max-width: 768px) {
  .bp-form-page { grid-template-columns: 1fr; gap: 24px; }
  .bp-hero { height: 360px; }
  .bp-hero h1 { font-size: 32px; }
}

/* =========================
   Phase-1 Test-Module — on-brand Styles für neu eingewobene Fälle
   ========================= */
.bp-menu-toggle { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; margin-left:12px; border-radius:4px; background:#f1f5f2; color:#2d6a4f; font-size:20px; cursor:pointer; }
.bp-feature-cta { text-align:center; margin:24px 0 8px; }
.bp-toast { max-width:1200px; margin:16px auto; padding:12px 20px; background:#d8f3dc; border:1px solid #2d6a4f; border-radius:8px; color:#1b4332; font-size:15px; }
.bp-bookmark { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border:1px solid #2d6a4f; border-radius:4px; background:#fff; color:#2d6a4f; font-size:14px; cursor:pointer; }
.bp-bookmark::before { content:"☆"; }
.bp-callout { display:block; background:#f1f5f2; border-left:4px solid #2d6a4f; border-radius:4px; padding:10px 14px; margin:10px 0; color:#1b4332; font-size:14px; }
.bp-gallery-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin:16px 0 24px; }
.bp-gallery-search { flex:1; min-width:220px; padding:10px 14px; border:1px solid #e0e6e2; border-radius:4px; font-size:15px; }
.bp-gallery-status { color:#666; font-size:14px; }
.bp-gallery-featured { margin:32px 0; }
.bp-gallery-card { border:1px solid #e0e6e2; border-radius:8px; overflow:hidden; background:#fff; }
.bp-gallery-card img { width:100%; height:180px; object-fit:cover; }
.bp-gallery-card figcaption { padding:12px 16px; color:#444; font-size:14px; }
.bp-gallery-actions { display:flex; justify-content:flex-end; margin-top:16px; }
.bp-discount-grid { display:flex; gap:16px; flex-wrap:wrap; margin:16px 0; }
.bp-discount { flex:1; min-width:220px; background:#f7f9f7; border:1px solid #e0e6e2; border-radius:8px; padding:14px 18px; color:#1b4332; font-size:14px; }
.bp-discount-info { margin-top:12px; background:#2d6a4f; color:#fff; border:none; padding:8px 16px; border-radius:4px; font-size:14px; cursor:pointer; }
/* Standalone-Buttons mit .bp-btn-link (nicht in Feature-Card) an den Site-Button-Stil angleichen */
button.bp-btn-link { display:inline-block; background:#2d6a4f; color:#fff; border:none; text-decoration:none; padding:8px 16px; border-radius:4px; font-size:14px; cursor:pointer; }
button.bp-btn-link:hover { background:#1b4332; }
