
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ScribblewinkBold";
  src: url("../fonts/ScribblewinkBold.woff") format("woff");
  font-style: normal;
  font-display: swap;
}

/* Basis */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  background: #fff8e9;
  color: #1e1c28;
  line-height: 1.6;
}
h1 {
  font-family: 'ScribblewinkBold', sans-serif;
  font-size: 5rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
  padding-bottom: 20px;

}

h2, h3 { font-weight: 700; }
a { text-decoration: none; color: inherit; transition: color .3s, border-bottom .3s; }
a:focus { outline: none; }
a:hover { color: #f6a841; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

p, li, a, span {
  letter-spacing: 0.02em; /* dezenter Wert */
}

/* Header */
.header {
  background: #fff8e9;
  border-bottom: 2px solid #f6a841;
  position: sticky; top: 0; z-index: 1000;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
}
.logo-img { height: 70px; max-height: 70px; width: auto; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav a.active-link { border-bottom: 2px solid #f6a841; color: #f6a841; }
.burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; width: 30px; height: 25px; background: none; border: none;
}
.burger span {
  height: 3px; width: 100%; background: #1e1c28; border-radius: 2px; transition: all .3s ease;
}
.burger.active span:nth-child(1){ transform: rotate(45deg) translate(5px,5px); }
.burger.active span:nth-child(2){ opacity: 0; }
.burger.active span:nth-child(3){ transform: rotate(-45deg) translate(5px,-5px); }

/* Hero */
.hero { background: #1e1c28; color: #fff8e9; padding: 60px 0; }
.hero-content { display: flex; gap: 40px; align-items: flex-end; flex-wrap: wrap; }
.hero-image { width: 600px; height: auto; border-radius: 8px; display: block; }
.hero-text { flex: 1; }

/* Portfolio */
.portfolio { background: #fcd4a2; padding: 60px 0; }
.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Spalten Desktop */
  gap: 20px;
  margin-top: 30px;
}
.portfolio-card {
  position: relative; display: block; border-radius: 3px; overflow: hidden;
  background: #f6a841;
}
.portfolio-card img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 1180 / 720; object-fit: cover;
}
.portfolio-card .overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(30,28,40, .45);
  color: #fff8e9; opacity: 0; transition: opacity .2s ease;
  padding: 16px; text-align: center;
}
.portfolio-card:hover .overlay { opacity: 1; }
.overlay-text { font-weight: 700; }

/* Services */
.leistungen { padding: 60px 0; }
.services-horizontal { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.service-box-h { flex: 1 1 30%; display: flex; flex-direction: column; align-items: flex-start; }
.service-img-h { width: 100%; height: auto; border-radius: 3px; margin-bottom: 10px; display: block; }

/* Kontakt */
.kontakt { background: #fcd4a2; padding: 48px 0; }
.kontakt-content {
  display: grid;
  grid-template-columns: minmax(0,1fr) 420px;
  grid-template-areas: "text image";
  column-gap: 40px;
  align-items: start;
}
/* erzwungener Zeilenumbruch NUR auf Desktop */
.br-desktop { display: none; }
.form-section p {
  margin-top: 8px;
  margin-bottom: 12px;     /* weniger Luft unter dem Intro */
}
.form-section { grid-area: text; }
.kontakt-image { grid-area: image; align-self: start; justify-self: end; padding-left: 0; }
.kontakt-image img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
}

.kontakt-buttons--stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
}
.kontakt-buttons {
  margin-top: 12px;
}
/* Basis-Button */
.btn-cta {
  display: inline-flex;         
  align-items: center;          
  gap: 12px;
  padding: 12px 20px;
  background: #1e1c28;
  color: #fff8e9;
  border-radius: 8px;
  font-family: "Lato", sans-serif;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .06s ease;
  min-height: 48px;
}

/* Hover/Fokus */
.btn-cta:hover,
.btn-cta:focus-visible {
  background: #f6a841;       /* orange */
  color: #1e1c28;            /* dunkelblau – gilt auch fürs SVG dank currentColor */
  outline: none;
}

/* Kleines Click-Feedback */
.btn-cta:active {
  transform: translateY(1px);
}
.btn-cta__icon {
  display: flex;                 
  align-items: center;
  justify-content: center;
  line-height: 0;                
}
/* Icon-Größe & Farbe übernimmt currentColor */
.btn-cta__icon svg {
  width: 36px;                   
  height: 36px;
  display: block;
}

/* Mobile mittig */
@media (max-width: 50px) {
  .kontakt-image img {
    margin: 20px auto 0;
  }
}

/* Hero Footer */
.footer--hero {
  background: #1e1c28;        /* Dunkler Hintergrund */
  color: #fff8e9;             /* Heller Text */
  text-align: center;
  padding: 60px 20px 40px;
}

.footer--hero .footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
}

.footer--hero .footer-claim {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: 24px;
}

.footer--hero .socials {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 24px;
}

.footer--hero .socials a {
  font-size: 22px;
  color: #fff8e9;
  transition: color 0.2s;
}
.footer--hero .socials a:hover {
  color: #f6a841; /* Akzentfarbe */
}

.footer--hero .footer-legal {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer--hero .footer-legal a {
  color: #fff8e9;
}
.footer--hero .footer-legal a:hover {
  color: #f6a841;
}

/* Mobile Anpassung */
@media (max-width: 480px) {
  .footer--hero {
    padding: 40px 20px 30px;
  }
  .footer--hero .footer-claim {
    font-size: 1rem;
  }
}

/* Floating Back-to-Top */
.back-to-top {
  position: fixed; right: 20px; bottom: 24px; width: 48px; height: 48px;
  border: none; border-radius: 999px; background: #f6a841; color: #fff8e9;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.2);
  cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .25s, transform .25s, background-color .2s, color .2s; z-index: 1200;
}
.back-to-top:hover { background: #1e1c28; color: #f6a841; }
.back-to-top--visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (max-width: 420px) { .back-to-top { right: 14px; bottom: 16px; width: 42px; height: 42px; } }

/* Scroll Animation */
.animate { opacity: 0; transform: translateY(30px); transition: all .6s ease-out; will-change: transform, opacity; }
.animate.in-view { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(30,28,40,.92);
  display: none; align-items: center; justify-content: center; gap: 16px;
  z-index: 1300; padding: 24px;
}
.lightbox--open { display: flex; }
.lightbox__figure { max-width: 90vw; max-height: 85vh; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox__figure img { max-width: 100%; max-height: 75vh; border-radius: 8px; display: block; }
.lightbox__figure figcaption { color: #fff8e9; text-align: center; }
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff8e9; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; transition: background .2s;
}
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,.22); }

/* Responsive */
@media (max-width: 900px) {
  .services-horizontal { flex-direction: column; }
     .kontakt-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "text"
      "image";
    row-gap: 24px;
  }
  .kontakt-image {
    justify-self: center;
    display: block;
    margin-top: 12px;
  }
  .kontakt-image img {
    max-width: 320px;   
    width: 100%;
    height: auto;
  }
  .br-desktop { display: none; } 
}
@media (max-width: 768px) {
  .hero-content, .kontakt-content { flex-direction: column; padding: 0 20px; }
  .footer-inner { flex-direction: column; align-items: center; }
  .footer-columns { flex-direction: column; align-items: flex-start; }
  .nav {
    display: none; flex-direction: column; background: #fff8e9;
    position: absolute; top: 70px; right: 20px; padding: 10px; border: 1px solid #ddd;
  }
  .nav.active { display: flex; }
  .burger { display: flex; }
  h1 {
    font-size: 3rem;  
    line-height: 1.05; 
  }
  .header-inner {
    padding: 8px 16px;         
  }
  .logo-img {
    height: 50px;              
    max-height: 50px;
  }
  .burger {
    width: 24px;
    height: 20px;
  }
  .burger span {
    height: 2px;                
  }
  /* Mobile: alles zentrieren */
  .hero-text, .portfolio, .leistungen, .kontakt, .footer { text-align: center; }
  .hero-image, .service-img-h { margin-left: auto; margin-right: auto; }
  .service-box-h { align-items: center; }
  .form-section { text-align: center; }
  .socials { justify-content: center; }

  /* Portfolio: 1 Spalte auf Mobile */
  .grid-layout { grid-template-columns: 1fr; }

  .kontakt-buttons--stack {
    flex-direction: column;
    align-items: center;
  }
}
@media (min-width: 1024px) {
  .br-desktop { display: inline; }
  .hero-content { 
    align-items: flex-end;      
  }
  .hero-image {
    margin-bottom: -60px;       
    display: block;
  }
}

.hero { --hero-pad-y: 60px; padding: var(--hero-pad-y) 0; }


@media (min-width: 1024px) {
  .hero-content { align-items: flex-end; }
  .hero-image {
    width: clamp(360px, 34vw, 600px); 
    height: auto;
    border-radius: 8px;
    display: block;
    margin-bottom: calc(var(--hero-pad-y) * -1); 
  }
}


@media (max-width: 1023.98px) {
  .hero-content { align-items: center; }
  .hero-image {
    width: min(80vw, 500px);
    margin: 0 auto;          /* mittig */
  }
}