/* =========================
   Fonts
========================= */

@font-face{
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root{
  --bg:#1F1F22;
  --fg:#EDEDE9;
  --muted:#B9B9B3;

  --paper:#ECECE8;   /* leicht weicher als reinweiß */
  --ink:#1C1C1E;

  --max:1100px;
  --pad:15px;        /* dein aktueller Wert */
  --r:14px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Scrollbar stabil halten */
html{
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

/* =========================
   Base
========================= */

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  background:var(--bg);
  color:var(--fg);

  font-family: var(--font-sans);
  font-size:16px;
  line-height:1.7;
  font-weight:400;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

::selection{
  background:#8B1E2D;
  color:#fff;
}

a{
  color:inherit;
  text-decoration:none;
}

a:focus{
  outline:2px solid #8B1E2D;
  outline-offset:3px;
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* =========================
   Header
========================= */

.header{
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);

  display:flex;
  align-items:center;
  justify-content:space-between;
}

.logo{
  height:34px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  gap:26px;
  white-space:nowrap;
}

.nav a,
.footer-right a{
  font-size:14px;
  letter-spacing:0.02em;
  padding:8px 0;
  color:rgba(237,237,233,0.65);
  transition:color 0.2s ease;
}

.nav a:hover,
.footer-right a:hover{
  color:rgba(237,237,233,0.92);
}

/* =========================
   Hero
========================= */

.hero{
  padding: 28px 0 60px;
}

.hero h1{
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0 0 24px;
}

/* =========================
   Startseitenbild
========================= */

.hero-image img{
  width:100%;
  height:auto;
  opacity:0.7;
  border-radius: var(--r);
}

.lead{
  margin:0 0 18px;
  max-width: 62ch;
  font-size:18px;
  line-height:1.7;
  color: rgba(237,237,233,0.74);
}

.cta{
  display:inline-block;
  font-size:15px;
  color: rgba(237,237,233,0.78);
  transition: color 0.2s ease;
}

.cta:hover{
  color: rgba(237,237,233,0.98);
}

/* =========================
   Startseiten-Slideshow (integriert)
========================= */

.hero-slideshow{
  margin-top: 32px;
}

.slideshow{
  position: relative;
  width: 100%;
  max-width: 820px;       /* begrenzt die Breite */
  height: 44vh;           /* weniger dominant */
  max-height: 480px;
  margin: 0 auto;         /* zentriert im Wrap */
  overflow: hidden;
  border-radius: var(--r);
}

.slideshow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;

  opacity: 0;
  transition: opacity 1000ms ease;

  filter: brightness(0.94) contrast(0.98);
}

.slideshow-caption{
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(237,237,233,0.65);

  text-align: center;      /* ← mittig */
  opacity: 1;
  transition: opacity 500ms ease;
}

.slideshow-caption.is-fading{
  opacity: 0;
}

.slideshow img.is-active{
  opacity: 1;
}

@media (max-width: 720px){
  .slideshow{
    height: 40vh;
  }
}

/* =========================
   Content Pages
========================= */

.content{
  padding-top:70px;
  padding-bottom:60px;
}

.content h1,
.project-title{
  font-weight: 500;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 18px;
}

.content h2{
  font-weight:600;
  font-size:18px;
  margin: 38px 0 10px;
}

.content p{
  margin: 0 0 14px;
  color: rgba(237,237,233,0.74);
}

.claim{
  font-size: 18px;
  line-height: 1.6;
  max-width: none;        /* wichtig – keine künstliche Begrenzung */
}

/* =========================
   Projects Section
========================= */

.projects{
  background: var(--paper);
  color: var(--ink);
  padding: 64px 0 76px;
}

.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:18px;
}

.section-title{
  font-size:12px;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color: rgba(28,28,30,0.70);
}

.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:18px;
}

.card{
  background:#fff;
  border-radius: var(--r);
  overflow:hidden;
  border:1px solid rgba(28,28,30,0.10);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover{
  transform: translateY(-1px);
  border-color: rgba(28,28,30,0.18);
}

.card img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}

.card-meta{
  padding:14px;
}

.card-title{
  font-weight:600;
}

.card-sub{
  font-size:14px;
  color: rgba(28,28,30,0.58);
}

/* =========================
   Footer
========================= */

.footer{
  padding:22px 0 34px;
  color: rgba(237,237,233,0.62);
  font-size:14px;           /* wie Navi */
  letter-spacing:0.02em;    /* wie Navi */
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}

.footer-right{
  display:flex;
  gap:26px;                 /* wie Navi */
  white-space:nowrap;
}

.footer-right a{
  font-size:14px;           /* wie Navi */
  letter-spacing:0.02em;    /* wie Navi */
  padding:8px 0;            /* wie Navi */
  color:rgba(237,237,233,0.65);
  transition:color 0.2s ease;
}

.footer-right a:hover{
  color:rgba(237,237,233,0.92);
}

@media (max-width: 720px){
  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}
/* =========================
   Responsive
========================= */

@media (max-width: 720px){

  .wrap{
    padding: 0 24px;
  }

  .header{
    padding:18px 24px;
  }

  .logo{
    height:28px;
  }

  .hero{
    padding: 24px 0 50px;
  }

  .lead{
    font-size:17px;
  }

  .grid{
    grid-template-columns: 1fr;
  }

  .footer-inner{
    flex-direction: column;
    align-items:flex-start;
    gap:10px;
  }
}