/* ============================================
   REFERENZEN PAGE – zusätzliche Styles
   ============================================ */

/* Page Header */
.ref-header {
  background: var(--white);
  padding: 72px 40px 64px;
  border-bottom: 1px solid #eee;
}

.ref-header .inner {
  max-width: 860px;
  margin: 0 auto;
}

.ref-header .eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.ref-header h1 {
  font-family: "kings-caslon", Georgia, serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.ref-header h1 em { font-style: italic; }

.ref-header p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 32px;
}

/* ── Referenzen Section ── */
.ref-section {
  background: var(--bg);
  padding: 64px 40px 80px;
  min-height: 300px;
}

.ref-section .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 120px;
}

/* ── Referenz-Karte ── */
.ref-card {
  background: var(--white);
  border: 1px solid #e8e8e8;
  overflow: hidden;
}

.ref-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #eee;
}

.ref-name {
  font-family: "din-2014", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  margin: 0 0 4px 0;
}

.ref-location {
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.5px;
}

.ref-website {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.ref-website:hover {
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Karten-Body: Screenshot + Seiten ── */
.ref-body {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
}

.ref-screenshot {
  border-right: 1px solid #eee;
  overflow: hidden;
  max-height: 380px;
}

.ref-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── Seiten-Liste rechts ── */
.ref-pages {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fafafa;
}

.ref-page {
  padding: 24px 0;
  border-bottom: 1px solid #e0e0e0;
}

.ref-page:last-child { border-bottom: none; }

.ref-page-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-page-link {
  font-family: "kings-caslon", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
  transition: color 0.2s;
}

.ref-page-link:hover { color: var(--gold); }
.ref-page-link::after { content: ''; }

/* ── Modul-Tags ── */
.ref-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ref-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: #666666;
  color: #ffffff;
  border: 1px solid #666666;
  padding: 4px 10px;
  display: inline-block;
}

/* ── iPad Mockup (references page) ── */
.ref-ipad {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-right: 1px solid #eee;
}

.ref-ipad img {
  width: 75%;
  display: block;
}

.ref-ipad-frame {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), inset 0 0 0 1px #333;
  width: 100%;
  max-width: 420px;
  position: relative;
}

.ref-ipad-frame::before {
  content: '';
  display: block;
  width: 40px;
  height: 5px;
  background: #333;
  border-radius: 3px;
  margin: 0 auto 10px;
}

.ref-ipad-screen {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.ref-ipad-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* iPad Modul-Label */
.ref-ipad-label {
  text-align: center;
  margin-top: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  white-space: nowrap;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .ref-header { padding: 48px 20px 40px; }
  .ref-section { padding: 40px 20px 60px; }

  .ref-body { grid-template-columns: 1fr; }
  .ref-screenshot { border-right: none; border-bottom: 1px solid #eee; max-height: 240px; }
  .ref-card-header { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
  .ref-pages { padding: 20px; }
  .ref-ipad { padding: 20px; border-right: none; border-bottom: 1px solid #eee; }
}

/* ── Benefits Liste im Header ── */
.ref-benefits {
  list-style: none !important;
  padding: 0;
  margin: 0 0 32px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px !important;
  color: var(--mid);
  line-height: 1.4;
}

.ref-benefits li::before {
  content: none !important;
}

.ref-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Header ── */
.ref-header .btn {
  margin-top: 32px;
  display: inline-block;
}

/* Optiker Login Bar */
.ref-login-bar {
  background: var(--white);
  border-top: 1px solid #eee;
  padding: 40px;
}

.ref-login-bar .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Header buttons nebeneinander */
.ref-header-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ── Navbar Reference Card ── */
.ref-card-navbar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;
}

/* Linke Seite: Foto direkt auf weißem Hintergrund */
.ref-navbar-image {
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px;
  border-right: 1px solid #eee;
  overflow: hidden;
  max-height: unset;
}

.ref-navbar-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* Rechte Seite: leicht grau */
.ref-navbar-info {
  background: #fafafa;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ref-navbar-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.ref-navbar-desc {
  font-size: 15px;
  color: var(--mid);
  line-height: 1.6;
}

.ref-navbar-example {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ref-navbar-example-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
}

/* Navbar items list */
.ref-navbar-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ref-navbar-items-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 12px;
}

.ref-navbar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  transition: color 0.2s;
}

.ref-navbar-item:first-of-type { border-top: 1px solid #eee; }

.ref-navbar-item-name {
  font-family: "kings-caslon", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
}

.ref-navbar-item:hover .ref-navbar-item-name { color: var(--gold); }

.ref-navbar-item-arrow {
  font-size: 14px;
  color: var(--mid);
}

.ref-navbar-example-block {
  margin-top: 8px;
}

/* Mobile */
@media (max-width: 768px) {
  .ref-card-navbar { grid-template-columns: 1fr; }
  .ref-navbar-image { border-right: none; border-bottom: 1px solid #eee; max-height: 260px; }
}

/* Spacing between navbar cards */
#navbar-cards-container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

/* Hinweis unter Website-Link */
.ref-website-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.ref-note {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Landing Page Tag (hell) ── */
.ref-tag-page {
  background: #f0f0f0;
  color: #1a1a1a;
  border-color: #ddd;
  display: inline-block;
  padding: 4px 10px;
}

/* cache-bust */
