/* =========================================================
   g-neriQ – components.css
   Wiederverwendbare Bausteine (Buttons, Karten, Platzhalter …)
   ========================================================= */

/* ---------- Bild-Platzhalter -------------------------------
   Alle Grafiken sind vorerst Platzhalter. Zum Ersetzen:
   <div class="ph ph--16x9">…</div>   ->   <img src="…" alt="…">
   Übersicht aller benötigten Assets: assets/img/README.md
   ---------------------------------------------------------- */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  border-radius: var(--radius-lg);
  background-color: var(--c-surface-alt);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(51, 51, 51, .07) 0 10px,
    rgba(51, 51, 51, 0) 10px 20px
  );
  border: 1px dashed rgba(51, 51, 51, .28);
  color: var(--c-secondary-light);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.ph::before {
  content: "Platzhalter";
  position: absolute;
  top: .65rem;
  left: .65rem;
  padding: .15rem .5rem;
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-secondary);
  border-radius: var(--radius-pill);
  opacity: .85;
}
.ph--1x1  { aspect-ratio: 1 / 1; }
.ph--4x3  { aspect-ratio: 4 / 3; }
.ph--16x9 { aspect-ratio: 16 / 9; }
.ph--21x9 { aspect-ratio: 21 / 9; }
.ph--3x4  { aspect-ratio: 3 / 4; }

.ph--icon { width: 56px; height: 56px; border-radius: var(--radius-md); padding: 0; }
.ph--icon::before { position: static; content: "ICON"; font-size: .5625rem; padding: .1rem .35rem; }

.ph--avatar { width: 104px; height: 104px; border-radius: 50%; flex: none; padding: 0; }
.ph--avatar::before { position: static; content: "FOTO"; font-size: .5625rem; padding: .1rem .35rem; }

.ph--logo { aspect-ratio: 5 / 2; max-width: 190px; }

.ph--dark {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .35);
  color: rgba(255, 255, 255, .85);
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 10px, rgba(255, 255, 255, 0) 10px 20px);
}
.ph--dark::before { background: rgba(255, 255, 255, .22); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-secondary);
  --btn-fg: #fff;
  --btn-bd: var(--c-secondary);
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; }

.btn--primary { --btn-bg: var(--c-primary); --btn-bd: var(--c-primary); }
.btn--primary:hover { --btn-bg: var(--c-primary-light); --btn-bd: var(--c-primary-light); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--c-secondary); --btn-bd: var(--c-line); }
.btn--ghost:hover { --btn-bg: var(--c-secondary-dark); --btn-fg: #fff; --btn-bd: var(--c-secondary-dark); }
.btn--light   { --btn-bg: #fff; --btn-fg: var(--c-primary); --btn-bd: #fff; }
.btn--on-dark { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .55); }
.btn--on-dark:hover { --btn-bg: #fff; --btn-fg: var(--c-primary); --btn-bd: #fff; }
.btn--sm { padding: .55rem 1.15rem; font-size: .8125rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Karten ---------- */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

/* ---------- Produktkarten (produkte.html) -------------------
   Zwei gleich hohe Kacheln je Reihe, Icon und Name mittig oben.
   ---------------------------------------------------------- */
.product-grid {
  --pg-gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: minmax(0, 1fr);
  gap: var(--pg-gap);
  align-items: stretch;
}
@media (min-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Eine allein stehende letzte Kachel bleibt spaltenbreit und mittig,
     statt über die ganze Reihe gezogen zu werden. */
  .product-grid > .product:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--pg-gap) / 2);
    margin-inline: auto;
  }
}

.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  text-align: center;
  overflow-wrap: break-word;
  /* Keine automatische Silbentrennung – sonst entstehen in den schmalen
     Kacheln Trennstriche wie „Bestand-führung". Lange Wörter rücken
     stattdessen komplett in die nächste Zeile; nur wenn ein Wort allein
     schon zu breit ist, greift overflow-wrap – und zwar ohne Bindestrich. */
  hyphens: manual;
}
.product__head {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Icon der Produktkacheln – echtes SVG und Platzhalter teilen die Maße,
   damit die Kacheln einer Reihe gleich hoch bleiben. */
.product__icon,
.product .ph--icon {
  width: 64px;
  height: 64px;
  margin: 0 0 1.15rem;
}
.product .eyebrow { margin: 0 0 .35rem; text-transform: lowercase; }
.product__title { font-size: var(--fs-h3); margin: 0 0 .9rem; }
.product__lead { font-size: var(--fs-small); margin: 0; }

.product__list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--c-line);
  text-align: left;
  font-size: var(--fs-small);
  line-height: 1.6;
}
.product__list li { position: relative; padding-left: 1.35rem; }
.product__list li + li { margin-top: .55rem; }
.product__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}

.service {
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding-inline: 0;
}
/* Icon der Leistungskarten – echtes SVG und Platzhalter teilen die Maße,
   damit die drei Karten gleich hoch bleiben. */
.service__icon,
.service .ph--icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
}
.service h3 { color: var(--c-secondary); }
.service p  { font-size: var(--fs-small);
line-height: 2; }

/* ---------- Aufzählung mit Punkt ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.75rem; }
.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-top: .7rem;
  font-size: var(--fs-small);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--c-primary);
}

/* ---------- Zitat ---------- */
.quote {
  position: relative;
  margin: 0;
  padding: clamp(3.25rem, 6vw, 4rem) clamp(1.5rem, 3vw, 2.75rem)
           clamp(2rem, 4vw, 2.75rem);
  background: var(--c-surface);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Großes Anführungszeichen als Zitat-Signal */
.quote::before {
  content: "\201C";
  position: absolute;
  top: clamp(.4rem, 2vw, .8rem);
  left: clamp(1rem, 2.5vw, 1.85rem);
  font-size: clamp(5rem, 10vw, 7rem);
  line-height: 1;
  color: var(--c-primary-100);
  pointer-events: none;
  user-select: none;
}

.quote__text {
  position: relative;
  font-size: var(--fs-lead);
  font-style: italic;
  color: var(--c-body);
}
.quote__text + .quote__text { margin-top: 1rem; }

/* Schlusszeichen an den letzten Absatz hängen */
.quote__text:last-of-type::after {
  content: "\201D";
  color: var(--c-primary);
  font-style: normal;
}


/* ---------- Slider ---------- */
.slide { display: none; }
.slide.is-active { display: block; animation: fade .5s var(--ease); }
@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.slider__dots { display: flex; justify-content: center; gap: .55rem; margin-top: 2rem; }
.slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-line);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.slider__dot[aria-selected="true"] { background: var(--c-secondary); transform: scale(1.25); }

/* ---------- Kontaktangaben ---------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: .9rem; align-items: center; }
.info-list li > span:not(.info-list__icon) { font-size: var(--fs-small); }
/* 20-px-Glyph, zentriert auf einer runden 42-px-Fläche.
   Der Kreis liegt bewusst auf dem <span>, nicht auf dem <img>: border-radius
   rundet bei Ersetzt-Elementen auch die Content-Box ab (Radius minus
   Innenabstand = exakt deren Inkreis) und beschneidet damit das Bild selbst.
   Das Telefon-Icon nutzt seine viewBox diagonal voll aus und verlor dabei
   beide Hörer-Enden – mehr padding half nicht, da der Inkreis mitwächst. */
.info-list__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--c-primary-050);
  border-radius: 50%;
}
.info-list__glyph { width: 20px; height: 20px; }

/* ---------- Stellenanzeigen ---------- */
.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.job + .job { margin-top: .85rem; }
.job:hover { border-color: var(--c-primary); box-shadow: var(--shadow-md); }
.job__title { font-weight: 700; color: var(--c-ink); }
.job__meta  { font-size: var(--fs-small); color: var(--c-muted); }

/* ---------- Formular ---------- */
.form  { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--c-ink); }
.field input,
.field textarea,
.field select {
  font: inherit;
  padding: .8rem 1rem;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-100);
  outline: none;
}
.field textarea { min-height: 150px; resize: vertical; }
.form__note { font-size: .8125rem; color: var(--c-muted); }
/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-line); border-radius: var(--radius-md); }
table.data { width: 100%; border-collapse: collapse; min-width: 640px; font-size: var(--fs-small); }
table.data th,
table.data td { padding: .9rem 1.1rem; text-align: left; border-bottom: 1px solid var(--c-line); }
table.data thead th { background: var(--c-surface-alt); color: var(--c-ink); }
table.data tbody tr:last-child td { border-bottom: 0; }
