/* =========================================================
   Pittsbörg Jeans | Fashion – statische Website (Okt. 2026)
   Ersetzt Astra-Theme, Block-Library und Plugin-CSS.
   ========================================================= */

/* ---------- Schrift (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Bitter";
  src: url("../fonts/Bitter-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("../fonts/Bitter-Italic-VariableFont_wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Farben & Maße ---------- */
:root {
  --text: #454f5e;
  --dark: #0f172a;
  --link: #1b9c85;
  --link-active: #178e79;
  --green: #166552;        /* Logo-Grün, Seitentitel */
  --red: #d91515;          /* Zwischenüberschriften */
  --mint: #edf6ee;         /* Hintergrund News */
  --mint-line: #d4f3d7;
  --footer-bg: #f9f9f9;
  --measure: 800px;        /* Lesebreite */
  --pad: 40px;             /* Seitenrand */
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Bitter", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.site-main { flex: 1 0 auto; width: 100%; }

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

a { color: var(--link); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

p { margin: 0 0 1em; }

h1, h2, h3 { font-weight: 600; line-height: 1.3; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; padding: .5em 1em; z-index: 100;
}
.skip-link:focus { left: 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 10;
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.header-bar {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 94px;
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.branding { display: flex; align-items: center; gap: 20px; }
.branding .logo img { width: 150px; height: 54px; }

.site-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  line-height: 20px;
  color: var(--dark);
}
.site-title:hover { text-decoration: none; }
.site-description { margin: 0; font-size: 15px; line-height: 1.5; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-nav a {
  display: block;
  padding: 0 20px;
  line-height: 80px;
  color: var(--text);
}
.main-nav li:last-child a { padding-right: 0; }
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--link-active); text-decoration: none; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  color: var(--link);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Inhalt ---------- */
.site-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 60px var(--pad) 80px;
}

.page-title {
  margin: 0 0 30px;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green);
}

.content > * {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}

.content h2,
.content h3 {
  color: var(--red);
  margin-top: 1.7em;
  margin-bottom: 20px;
}
.content h2 { font-size: 2.2rem; }
.content h3 { font-size: 1.8rem; }
.content > :first-child { margin-top: 0; }

.content figure { margin-top: 0; margin-bottom: 1em; }
.content hr { border: 0; border-top: 2px solid #808080; margin: 20px auto; }

/* Bild mit Markenliste */
.cover {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 430px;
  padding: 60px;
  overflow: hidden;
  color: #fff;
}
.cover > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.cover::before {
  content: "";
  position: absolute; inset: 0;
  background: #a5a2a3;
  opacity: .5;
  z-index: 1;
}

.brands-dots {
  --g: 1.2rem;
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  column-gap: var(--g);
  align-items: baseline;
  margin: 0;
  padding: 1em 0;
  list-style: none;
  font-size: 1.4em;
  line-height: 1.4;
}
.brands-dots li { position: relative; white-space: nowrap; }
.brands-dots li:not(:last-child)::after {
  content: "·";
  position: absolute;
  left: calc(100% + var(--g) / 2);
  top: 50%;
  transform: translate(-50%, -50%);
  line-height: 1;
  opacity: .65;
}
.brands-dots li.line-end::after { content: none; }

/* Kleine Linkzeile unter dem Coverbild */
.link-line { margin-top: .2em; font-size: .9rem; }
.link-line a + a::before {
  content: " | ";
  color: var(--text);
  opacity: .5;
}

/* Galerie Startseite */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1em;
}
.gallery a { display: block; cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.hours strong { font-weight: 600; }

/* ---------- Brands: Links zu den Modelabels ---------- */
.brand-links {
  list-style: none;
  padding: 0;
  margin-top: 1.5em;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6em 1em;
  text-align: center;
}
.brand-links a {
  display: block;
  padding: .3em 0;
  color: inherit;
}
.brand-links a:hover,
.brand-links a:focus-visible { text-decoration: none; }
.brand-links .brand-name {
  display: block;
  font-size: 1.4rem;
  font-style: italic;
  white-space: nowrap;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  transition: color .2s;
}
.brand-links .brand-domain {
  display: inline-block;
  margin-top: .3em;
  font-size: .7rem;
  letter-spacing: .03em;
  color: var(--link);
  opacity: .8;
  border-bottom: 1px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.brand-links a:hover .brand-name,
.brand-links a:focus-visible .brand-name { color: var(--green); }
.brand-links a:hover .brand-domain,
.brand-links a:focus-visible .brand-domain { opacity: 1; border-bottom-color: currentColor; }

/* ---------- News ---------- */
.news-card {
  max-width: var(--measure);
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 300px 1fr;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  color: inherit;
  transition: box-shadow .3s, transform .3s;
}
.news-card:hover,
.news-card:focus-visible {
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12);
  transform: translateY(-2px);
}
.news-card .body { padding: 2em 2.2em; align-self: center; }
.news-card .tag { margin: 0 0 .6em; font-size: .7rem; font-weight: 600; color: var(--link); }
.news-card h2 {
  margin: 0 0 .6em;
  font-size: 1.3rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
}
.news-card .more { margin: 0; color: var(--link); font-weight: 600; }
.news-card:hover .more { text-decoration: underline; }

/* Slideshow: drei Bilder übereinander, ganzes Motiv ohne Anschnitt */
.news-media {
  position: relative;
  align-self: start;
  aspect-ratio: 800 / 1118;
  background: #fff;
  overflow: hidden;
  isolation: isolate;
}
.news-media picture {
  position: absolute; inset: 0;
  opacity: 0;
  z-index: 1;
  animation: news-fade 15s linear infinite;
}
.news-media picture:nth-of-type(2) { animation-delay: 5s; }
.news-media picture:nth-of-type(3) { animation-delay: 10s; }
.news-media picture img { width: 100%; height: 100%; object-fit: contain; }
/* Das neue Bild blendet obenauf ein, das alte bleibt darunter voll sichtbar
   und verschwindet erst danach: kein Durchblick in der Mitte der Blende. */
@keyframes news-fade {
  0%      { opacity: 0; z-index: 3; }
  6.66%   { opacity: 1; z-index: 3; }
  6.67%   { opacity: 1; z-index: 2; }
  40%     { opacity: 1; z-index: 2; }
  40.01%  { opacity: 0; z-index: 1; }
  100%    { opacity: 0; z-index: 1; }
}
/* leichter Schleier: hält das Logo auch auf hellen Fotos lesbar */
.news-media::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 9;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0) 55%);
  pointer-events: none;
}
.news-media .insta-glyph {
  position: absolute;
  z-index: 10;
  top: 50%; left: 50%;
  width: clamp(56px, 24%, 84px);
  height: auto;
  opacity: .6;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, .35));
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.news-card:hover .insta-glyph,
.news-card:focus-visible .insta-glyph { opacity: .95; transform: translate(-50%, -50%) scale(1.08); }

/* ---------- Rechtstexte ---------- */
.legal h2 { font-size: 1.5rem; }
.legal h3 { font-size: 1.15rem; color: var(--text); margin-top: 1.5em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--mint-line);
  padding: 45px var(--pad) 30px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 20px;
}
.footer-grid p { margin: 0; }
.footer-hours { text-align: center; }
.footer-hours strong { font-weight: 600; }
.footer-social { display: flex; justify-content: center; gap: 8px; padding-top: 6px; }
.footer-social a { color: var(--dark); display: block; }
.footer-social svg { width: 18px; height: 18px; display: block; fill: currentColor; }
.footer-social a:hover { color: var(--link); }
.footer-address { text-align: right; }
.footer-legal {
  max-width: 1200px;
  margin: 30px auto 0;
  text-align: center;
  font-size: .7rem;
}
.footer-legal a { color: var(--text); }
.footer-legal a + a::before { content: "·"; margin: 0 .6em; color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1em;
  background: rgba(0, 0, 0, .85);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, .6);
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  padding: .25em .4em;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 15px; right: 20px; font-size: 1.8rem; text-shadow: 0 0 6px rgba(0, 0, 0, .5); }
.lightbox .lb-prev,
.lightbox .lb-next { top: 50%; transform: translateY(-50%); font-size: 2.2rem; }
.lightbox .lb-prev { left: 10px; }
.lightbox .lb-next { right: 10px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .content h2 { font-size: 1.8rem; }
  .content h3 { font-size: 1.5rem; }
}

/* ---------- Mobil (Astra-Umbruch bei 921 px) ---------- */
@media (max-width: 921px) {
  html { font-size: 18.24px; }
  :root { --pad: 20px; }

  .header-bar { min-height: 90px; flex-wrap: wrap; }
  .site-name { display: none; }
  .menu-toggle { display: block; }

  .main-nav {
    display: none;
    flex-basis: calc(100% + 2 * var(--pad));
    margin: 0 calc(-1 * var(--pad)) 20px;
    border-top: 1px solid #eaeaea;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    line-height: 1.5;
    padding: .7em var(--pad);
    border-bottom: 1px solid #eaeaea;
  }

  .site-main { padding-top: 0; }
  .page-title { margin-bottom: 14px; }

  .cover { min-height: 0; padding: 3em 1.5em; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .brand-links { grid-template-columns: 1fr; gap: 1.2em; }
  .brand-links .brand-name { font-size: 1.35rem; }

  .site-main.news { padding-top: 40px; }
  .news-card .body { padding: 1.5em; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-address { text-align: center; }
}

@media (max-width: 700px) {
  .news-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .content h2 { font-size: 1.4rem; }
  .content h3 { font-size: 1.2rem; }
  .content h2, .content h3 { margin-top: 1.7em; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .news-media picture { animation: none; }
  .news-media picture:first-of-type { opacity: 1; }
}
