/* T Nikolov start page — colours taken from the business card (Visitenkarte_Nikolov_85x55.pdf). */
:root {
  --green: #92d050;
  --yellow: #ffff00;
  --orange-light: #f6a443;
  --orange-dark: #c55a11;
  --navy: #1f3864;
  --ink: #111;
  --paper: #fff;
  --soft: #f4f9ee;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Carlito, Calibri, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px));
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── green bands, as on the card ─────────────────────────── */
.band { background: var(--green); }
.top { padding-top: env(safe-area-inset-top, 0px); }
.bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

.brand {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 3vw, 28px);
  padding-inline-start: 0;
}

.brand-t,
.brand-name {
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--orange-light), var(--orange-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px #a0450c;
}

/* the yellow square behind the T */
.brand-box {
  display: flex;
  align-items: center;
  background: var(--yellow);
  padding: 0.1em 0.22em;
  font-size: clamp(64px, 14vw, 128px);
}

.brand-t {
  font-family: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

.brand-name {
  margin: 0;
  align-self: center;
  font-size: clamp(52px, 11vw, 104px);
}

/* ── intro ───────────────────────────────────────────────── */
.intro {
  padding-block: clamp(24px, 5vw, 44px) 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lead {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--navy);
  max-width: 34ch;
}

.cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.cta:hover, .cta:focus-visible { background: #2c4d87; }

/* QR code centred above the call button, navy like the button (owner 2026-11-05) */
.call {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-inline: auto;
}
/* phones: text, QR code and button one above the other, all centred */
@media (max-width: 600px) {
  .intro { flex-direction: column; align-items: center; text-align: center; }
  .call { width: 100%; }
}
.call .qr {
  width: 144px;
  height: 144px;
  border-radius: 8px;
  border: 1px solid #dcebc9;
  background: #fff;
  image-rendering: pixelated;
}

/* ── services ────────────────────────────────────────────── */
h2 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
  color: var(--navy);
}

.services {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  /* at most 3 columns (owner 2026-11-05); 2 on tablets, 1 on phones */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; }
}

/* long German words (Bauschuttentsorgung) wrap inside the tile, never past it */
.services li span {
  min-width: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* tiles with photos / video link into "Unsere Arbeiten" */
.services li:has(> a) { padding: 0; }
.services a.has-media {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
}
.services a.has-media span { flex: 1; }
.services a.has-media:hover,
.services a.has-media:focus-visible { background: #e8f3dc; }
.media-hint {
  flex: none;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  background: var(--navy);
  color: #fff;
}

/* ── "Unsere Arbeiten" swiper ─────────────────────────────── */
.gallery { position: relative; margin-bottom: 44px; }

.gallery-track {
  position: relative; /* offsetParent of the slides, for gallery.js */
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-block: 4px;
  border-radius: 16px;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.slide {
  flex: 0 0 min(82%, 380px);
  margin: 0;
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid #dcebc9;
  display: flex;
  flex-direction: column;
}

/* every photo AND the video in the same 3:4 frame (owner 2026-11-05: same size) */
.slide img,
.slide video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #dfe8d4;
}

/* two caption lines reserved, so a longer caption never makes its slide taller */
.slide figcaption {
  min-height: calc(2 * 1.5em + 22px);
  padding: 10px 14px 12px;
  color: var(--navy);
  font-weight: 700;
}

.gallery-nav {
  position: absolute;
  top: calc(50% - 40px);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 9999px;
  background: rgba(31, 56, 100, 0.85);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav.prev { left: 6px; }
.gallery-nav.next { right: 6px; }
.gallery-nav:disabled { opacity: 0.3; cursor: default; }

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.gallery-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 9999px;
  background: #c9d9b6;
  cursor: pointer;
}
.gallery-dot[aria-selected="true"] { background: var(--navy); width: 24px; }

/* phones swipe; the arrows only take room on larger screens */
@media (max-width: 480px) {
  .gallery-nav { display: none; }
}

.services li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  border: 1px solid #dcebc9;
  color: var(--navy);
  font-weight: 700;
  font-style: italic;
  font-size: 1.05rem;
}

.services svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 10px;
  background: var(--green);
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── contact band ────────────────────────────────────────── */
.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 18px;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
}

.contact address {
  font-style: normal;
  display: flex;
  flex-direction: column;
}

.legal-links {
  padding-block: 0 14px;
  font-size: 0.95rem;
}
.legal-links { display: flex; gap: 18px; flex-wrap: wrap; }
.legal-links a { color: var(--ink); }
.legal p + p { margin-top: 8px; }
.legal .legal-date { margin-top: 18px; color: #666; font-size: 0.85rem; }


/* ── Impressum ───────────────────────────────────────────── */
.legal {
  padding-block: 8px 40px;
  font-size: 0.95rem;
  color: #333;
}
.legal h2 { margin-top: 32px; }
.legal h3 { margin: 18px 0 4px; font-size: 1rem; color: var(--navy); }
.legal p { margin: 0; }
.legal a { color: #0563c1; }

.contact a { color: var(--ink); text-decoration: none; }
.contact .mail { margin: 0; }
.contact .mail a { color: #0563c1; text-decoration: underline; }
