/* ==========================================================================
   barkow druck studio – gemeinsames Stylesheet
   Aufbau: 1. Schriften  2. Variablen  3. Basis  4. Layout  5. Kopfbereich
           6. Abschnitte  7. Referenzen  8. Unterseiten  9. Fußbereich
   ========================================================================== */

/* 1. Schriften (lokal eingebunden, keine Verbindung zu Adobe/Google) ------- */
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/ubuntu-v21-latin-300.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-v21-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/ubuntu-v21-latin-italic.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ubuntu-v21-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-v21-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Ubuntu"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/ubuntu-v21-latin-700italic.woff2") format("woff2"); }
/* fuzzy-bubbles-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fuzzy Bubbles';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/fuzzy-bubbles-v9-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* kalam-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Kalam';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/kalam-v18-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* 2. Variablen ------------------------------------------------------------- */
:root {
  --text: #646464;
  --text-dark: #323232;
  --yellow: #ffcc00;
  --pink: #646464;
  --pink-hover: #646464;
  --pink-visited: #333;

  --bg-light: #f0f0f0;   /* helle Abschnitte */
  --bg-mid: #d2d2d2;     /* abwechselnde Abschnitte */
  --bg-header: #323232;  /* Navigationsleiste, Logo-Kreis */
  --bg-hero: #646464;
  --bg-dark: #464646;    /* Zitatband, Seitenhintergrund */
  --bg-footer: #484848;

  --font: "Ubuntu", sans-serif;
  --font-quote: "Fuzzy Bubbles", Times, serif;
  --font-statement: "Kalam", sans-serif;

  --content: 984px;      /* Inhaltsbreite wie im Original */
  --gutter: 20px;
  --section-space: 80px;
}

/* 3. Basis ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg-dark);
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-light);
}

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

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }

h1, h2 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 18px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
}

p { padding-bottom: 18px; }

a:link { color: var(--pink); }
a:visited { color: var(--pink-visited); }
a:hover, a:focus-visible { font-weight: 700; color: var(--pink-hover); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

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

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 12px; background: var(--yellow); color: var(--text-dark) !important;
}
.skip-link:focus { top: 8px; }

/* 4. Layout ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main#inhalt {
  border-top: 10px solid var(--text);
}

.section { padding: var(--section-space) 0; background: var(--bg-light); }
.section--mid { background: var(--bg-mid); }

/* Zwei Spalten: Text + Bild. Auf schmalen Bildschirmen untereinander. */
.split {
  display: grid;
  gap: 40px;
  align-items: start;
}
.split__media {
  padding-top: 0;
}
@media (min-width: 769px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split__media { padding-top: 60px;}
  .split--img-left  { grid-template-columns: 5fr 5fr; }
  .split--img-right { grid-template-columns: 5fr 5fr; }
}

.split__media img { margin: 0 auto; }
@media (max-width: 768px) { .split__media img { max-width: min(100%, 360px); } }

/* 5. Kopfbereich ----------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
}

.site-header__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 148px;
  padding-bottom: 14px;
  position: relative;
}

.logo {
  position: absolute;
  left: var(--gutter);
  top: 58px;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: var(--bg-header);
  display: grid;
  place-items: center;
  overflow: visible;
}
.logo img {
  width: 234px;
  max-width: none;
  margin-left: -65px;
  margin-top: -43px;
}

.nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 18px;
  margin-left: 270px;
}

.nav a {
  color: var(--yellow);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { text-decoration: underline; }

.nav-toggle { display: none; }

/* Mobil: Logo kleiner, Menü über Button */
@media (max-width: 900px) {
  .site-header__inner { min-height: 64px; align-items: center; padding: 8px var(--gutter); }
  .logo { position: static; width: auto; height: auto; background: none; }
  .logo img { width: 110px; margin: 0; }

  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
    color: var(--yellow);
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    display: block; width: 28px; height: 3px; background: currentColor; content: ""; position: relative;
  }
  .nav-toggle__bar::before { position: absolute; top: -8px; }
  .nav-toggle__bar::after  { position: absolute; top: 8px; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-header);
    display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; margin: 0; padding: 8px var(--gutter) 20px; gap: 0; }
  .nav a { display: block; padding: 10px 0; }
}

/* Bühne mit Bildwechsel (reines CSS, 6 Bilder à 5 Sekunden) */
.hero {
  position: relative;
  height: 563px;
  background: var(--bg-hero);
  overflow: hidden;
}
.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #4f4f4f;   /* Slide-Hintergrund wie im Muse-Master */
  opacity: 0;
  animation: hero-fade 30s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 5s; }
.hero__slide:nth-child(3) { animation-delay: 10s; }
.hero__slide:nth-child(4) { animation-delay: 15s; }
.hero__slide:nth-child(5) { animation-delay: 20s; }
.hero__slide:nth-child(6) { animation-delay: 25s; }

@keyframes hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  17%  { opacity: 1; }
  21%  { opacity: 0; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide { animation: none; }
  .hero__slide:first-child { opacity: 1; }
}

.hero__claim {
  position: absolute;
  left: 43%;
  bottom: 24px;
  transform: translateX(-50%);
  width: min(864px, 90%);
}

@media (max-width: 768px) {
  .hero { height: 56vw; min-height: 220px; }
}

/* Unterseiten: kürzere Bühne ohne Claim */
.hero--small { height: 420px; }
@media (max-width: 768px) { .hero--small { height: 45vw; min-height: 180px; } }

/* 6. Abschnitte Startseite ------------------------------------------------- */
.intro__title {
  font-size: 53px;
  color: var(--text-dark);
  margin-bottom: 40px;
}
.intro__subtitle { font-size: 22px; }

@media (max-width: 768px) {
  .intro__title { font-size: 34px; }
}

/* Zitat des Inhabers */
.statement {
  position: relative;
  background: var(--bg-dark);
  color: var(--yellow);
  padding: 108px 0 102px;
}
.statement::before {               /* Raute links im Band */
  content: "";
  position: absolute;
  top: 137px;
  left: max(var(--gutter), calc(50% - var(--content) / 2 - 120px));
  width: 70px;
  height: 70px;
  /* vertikal geteilt: links weiß, rechts gelb (45deg gleicht die Drehung aus) */
  background: linear-gradient(45deg, #fff 50%, var(--yellow) 50%);
  transform: rotate(45deg);
  box-shadow: 8px 0 8px rgba(0, 0, 0, 0.5);
}
.statement .container { padding-left: max(var(--gutter), 60px); }
@media (max-width: 1240px) {
  .statement::before { top: -35px; left: var(--gutter); }
}
.statement blockquote p {
  font-family: var(--font-statement);
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 3%;
}
.statement figcaption {
  text-align: right;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .statement { padding: 72px 0 60px; }
  .statement blockquote p { font-size: 22px; }
}

/* Team */
.team-member + .team-member { margin-top: 60px; }

/* Umweltpartnerschaft */
.environment h2 { font-size: 28px; }

/* Fester Telefon-Button am rechten Browserrand (button_1.png) */
.call-button {
  position: fixed;
  right: 0;
  top: min(695px, calc(100vh - 160px));   /* wie im Original, rutscht bei niedrigen Fenstern hoch */
  z-index: 45;
  width: 222px;
}
@media (max-width: 768px) {
  .call-button { width: 170px; }
}

/* Nach-oben-Button */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 64px;
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top img { display: block; }
.to-top span {                    /* Text unten im gelben Dreieck */
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  line-height: 1;
}

/* 7. Referenzen ------------------------------------------------------------ */
.references { background: var(--yellow); padding: 60px 0; }
.references h2 { text-align: left; margin-bottom: 40px; }

.quotes {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }

.quote {
  flex: 0 0 100%;
  scroll-snap-align: start;
  padding: 0 10px;
}
.quote blockquote p {
  font-family: var(--font-quote);
  font-size: 30px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  padding-bottom: 12px;
}
.quote figcaption {
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
}

.quotes-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.quotes-dots button {
  width: 60px;
  height: 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.quotes-dots button[aria-current="true"] { background: var(--text); }

@media (max-width: 768px) {
  .quote blockquote p { font-size: 22px; }
  .quotes-dots button { width: 32px; }
}

/* 8. Unterseiten ----------------------------------------------------------- */
.page-content h1 { margin-bottom: 24px; }
.page-content h2 { font-size: 16px; margin: 24px 0 0; padding-bottom: 8px; }
.page-content h3 { padding-top: 8px; }
.page-content p { padding-bottom: 8px; }
.page-content ul { padding-left: 24px; padding-bottom: 8px; }
.page-content .muted { padding-top: 24px; }

.legal-text { overflow-wrap: anywhere; }
.legal-text h2 { font-size: 18px; margin-top: 36px; }

/* Kontakt: links Karte (2/3), rechts Text (1/3) wie im Original */
.contact__grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 54px;
  align-items: start;
}
.contact__map {
  position: relative;
  min-height: 492px;
  padding: 33px 20px;
  background: #fff url("../images/barkow-druck-studio-marcus--schwarz.webp") no-repeat right bottom / cover;
}
.contact__map-note {
  position: absolute;
  bottom: 10px;
  right: 10px;
  max-width: 402px;
  margin: 0 auto;
  padding: 10px 20px 8px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-dark);
}
.contact__map-note p { padding-bottom: 8px; }
.contact address { font-style: normal; }

@media (max-width: 768px) {
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .contact__map { min-height: 320px; }
}


/* Impressum: Bilder rechts neben dem Text */
.imprint__images { 
  position: relative;
  display: grid; gap: 24px; justify-items: center;
}
img.lupe {
    position: absolute;
    transform: rotate(10deg);
    top: 9%;
    left: 16%;
}

/* 9. Fußbereich ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-footer);
  color: #fff;
  padding: 20px 0;
  font-size: 12px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a {
  color: var(--yellow);
  font-size: 15px;
  font-weight: 300;
  text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav a:focus-visible { text-decoration: underline; }
.site-footer p { padding: 0; text-align: right; line-height: 1.6; }
