/* =========================================================
   LATO – Self Hosted
========================================================= */

/* lato-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('fonts/lato-v25-latin-300.woff2') format('woff2');
}

/* lato-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/lato-v25-latin-regular.woff2') format('woff2');
}

/* lato-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/lato-v25-latin-700.woff2') format('woff2');
}

/* =========================================================
   TOKENS / BASE
========================================================= */

:root{
  --pink: #c31656;
  --text: #2b2b2b;
  --footer-height: 200px;
}

*{ box-sizing: border-box; }

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

a{
  text-decoration: none;
  color: inherit;
}

/* Anti horizontal scroll (Mobile/iOS safe) */
html{
  overflow-x: clip;
}
@supports not (overflow: clip){
  html{ overflow-x: hidden; }
}

body{
  overflow-x: clip;
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.4rem;

  /* Desktop: Footer fixed -> Platz unten */
  padding-bottom: var(--footer-height);
}

/* Layout Container (ohne calc-rounding issues) */
.container{
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  min-width: 0;
}

/* Sicherheitsnetz: keine Sektion darf breiter als Viewport sein */
.site-header, main, .site-footer{
  max-width: 100%;
}

/* =========================================================
   HEADER
========================================================= */

.site-header{
  padding: 60px 0 40px;
  text-align: center;
}

.header-inner{
  display: flex;
  justify-content: center;
}

.logo-main{
  max-width: 280px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* =========================================================
   CARDS
========================================================= */

.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card{
  border-radius: 26px;
  overflow: hidden;
  background: #f7f7f9;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  transition: transform .35s ease, box-shadow .35s ease;
  min-width: 0;
}

.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 28px 60px rgba(0,0,0,.18);
}

.card-media{
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  min-width: 0;
}

.card-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Verlauf darf Klicks nicht blockieren */
.card-media::after{
  content:"";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to top, rgba(191,185,177,.65), transparent);
  pointer-events: none;
}

/* Instagram Badge (dein fertiges SVG) */
.ig-badge{
  position: absolute;
  top: 16px;
  right: 16px;
  width: 50px;
  height: 50px;
  z-index: 2;
  display: block;
}

.ig-badge img{
  width: 100%;
  height: 100%;
  display: block;
}

/* Button schwebend */
.card-cta{
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
}

.btn{
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(195,22,86,.95);
  color: #fff;
  font-weight: 600;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
  transition: background .3s ease, transform .3s ease;
}

.btn:hover{
  background: #d81b63;
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: var(--pink);
  color: #fff;
  overflow: hidden;

  /* IMPORTANT: verhindert, dass Wasserzeichen/Pseudo-Elemente Scrollbreite beeinflussen */
  contain: paint;
}

/* Wasserzeichen (skalierbar auf schmalen Viewports) */
.site-footer::before{
  content:"";
  position: absolute;
  left: 20%;
  top: -40px;

  width: min(420px, 80vw);
  height: min(420px, 80vw);

  background: url("./KIMANA_Bildmarke.svg") no-repeat;
  background-size: contain;
  opacity: .15;
  pointer-events: none;
}

.footer-inner{
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: 1.2fr minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  gap: 24px;

  padding: 32px 0;
  font-size: 14px;

  align-items: start;
  justify-content: center;

  min-width: 0;
}

.footer-col{
  min-width: 0;
}

.footer-logo{
  max-width: 150px;
}

/* Footer Links */
.site-footer a{
  color: #fff;
}

/* >>> DER FIX gegen horizontalen Scroll: lange Strings dürfen umbrechen <<< */
.site-footer p,
.site-footer a{
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================================
   LEGAL (optional)
========================================================= */

.legal{
  margin-bottom: 300px;
}
.legal a{
  color: var(--pink);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px){
  /* Cards 1-spaltig */
  .cards-grid{
    grid-template-columns: 1fr;
  }

  /* Tablet/Mobile: etwas breiter wie in deinem Screenshot */
  .card-media{
    aspect-ratio: 4 / 5;
  }

  /* Footer soll scrollen (nicht fixed) */
  .site-footer{
    position: static;
    height: auto;
    margin-top: 40px;
  }

  /* Dann kein Footer-Abstand nötig */
  body{
    padding-bottom: 0;
  }

  .footer-inner{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px){
  .container{
    padding-left: 40px;
    padding-right: 40px;
  }

  .logo-main {max-width: 190px;}

  .footer-inner{
    grid-template-columns: 1fr;
	padding: 32px 24px;
	text-align: center;
  }
  .footer-logo {
    margin:auto;
  }

  /* sehr schmal: minimal storyiger 
  .card-media{
    aspect-ratio: 3 / 5;
  }*/

  .card-cta{
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .ig-badge{
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }

  /* Wasserzeichen etwas kleiner, damit es nie “drückt” */
  .site-footer::before{
    width: min(360px, 78vw);
    height: min(360px, 78vw);
    top: -30px;
  }
}
