:root {
  --paper: #fdfdfd;
  --ink: #0f0f0f;
  --gray: #444;
  --lightgray: #e0e0e0;
  --transition: 0.28s ease;
}

* {
  margin: 0;
  padding: 0rem;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  font-family: 'PT Serif', 'Libre Baskerville', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.68;
  font-size: 1.075rem;
  max-width: 1100px;
  margin: 0rem auto;
  padding: 0rem 4%;
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.04);
  z-index: -2;
}

/* ── Header / Navigation ──────────────────────────────────────────────── */

header {
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  border-bottom: 2px solid var(--ink);
  padding: 1.1rem 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: block;
  line-height: 1;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  max-height: 60px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.03);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.6rem;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

nav a:hover {
  color: #222;
  transform: translateY(-1px);
}


nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--ink);
  transition: width var(--transition);
}

nav a:hover::after {
  width: 100%;
}
nav a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--ink);
  user-select: none;
}

/* ── Hero / Slideshow ─────────────────────────────────────────────────── */

#start {
  height: 30vh;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.5rem 0 0;
}

.slideshow {
  position: absolute;
  inset: 0;
  display: flex;
  width: calc(100% * 1);          /* 7 Slides (inkl. Duplicate) */
  height: 100%;
  animation: slideHold 30s linear infinite;
  z-index: -1;
}

.slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
}

.slide:nth-child(1) { background-image: url('../img/slide/1.jpg'); }
.slide:nth-child(2) { background-image: url('../img/slide/2.jpg'); }
.slide:nth-child(3) { background-image: url('../img/slide/3.jpg'); }
.slide:nth-child(4) { background-image: url('../img/slide/4.jpg'); }
.slide:nth-child(5) { background-image: url('../img/slide/5.jpg'); }
.slide:nth-child(6) { background-image: url('../img/slide/6.jpg'); }
.slide:nth-child(7) { background-image: url('../img/slide/1.jpg'); }

@keyframes slideHold {
  0%      { transform: translateX(0%); }
  14.28%  { transform: translateX(0%); }
  16.66%  { transform: translateX(-100%); }
  30.95%  { transform: translateX(-100%); }
  33.33%  { transform: translateX(-200%); }
  47.61%  { transform: translateX(-200%); }
  50%     { transform: translateX(-300%); }
  64.28%  { transform: translateX(-300%); }
  66.66%  { transform: translateX(-400%); }
  80.95%  { transform: translateX(-400%); }
  83.33%  { transform: translateX(-500%); }
  97.61%  { transform: translateX(-500%); }
  100%    { transform: translateX(-600%); }
}

/* ── Allgemeine Sections ──────────────────────────────────────────────── */

section {
  padding: 5rem 0 6rem;
}

h2 {
  font-family: 'PT Serif', serif;
  font-size: 2.0rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--ink);
  border-bottom: 3px double var(--ink);
  padding-bottom: 0.8rem;
}

/* Leistungen */

#leistungen .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 3rem 2.5rem;
}

.card {
  background: white;
  padding: 2rem 2.2rem;
  border: 1px solid var(--lightgray);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all var(--transition);
  border-radius: 4px;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  border-color: var(--ink);
}

.card h3 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  color: var(--ink);
  border-bottom: 1px solid var(--lightgray);
  padding-bottom: 0.6rem;
  transition: color var(--transition);
}

.card:hover h3 {
  color: #111;
}

/* Über uns */

#ueber-uns .content {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3.5rem;
  align-items: start;
}

#ueber-uns img {
  width: 100%;
  border: 1px solid var(--lightgray);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: transform var(--transition);
  border-radius: 4px;
}

#ueber-uns img:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}

/* Kontakt */

#kontakt .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.contact-card {
  background: var(--paper);
  padding: 2rem 2rem;
  border: 1px solid var(--lightgray);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  text-align: center;
  transition: all var(--transition);
  border-radius: 4px;
}
.contact-card p {
    color: gray;        
    font-style: italic;  
}

.contact-card p a {
    color: gray;        /* Links grau */
    text-decoration: none; /* optional: Unterstrich entfernen */
}

.contact-card p a:hover {
    color: var(--ink);    /* optional: Farbe beim Hover ändern */
}

.contact-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
  border-color: var(--ink);
  background: var(--paper);
}

.contact-card img {
  width: 90%;
  max-width: 220px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--lightgray);
  transition: transform var(--transition);
  display: block;
  border-radius: 4px;
}

.contact-card:hover img {
  transform: scale(1.02);
}

/* Footer */

footer {
  background: var(--ink);
  color: white;
  padding: 4rem 0 2.5rem;
  text-align: center;
  border-top: 8px double white;
}

footer a {
  color: white;
  text-decoration: none;
  margin: 0 1.4rem;
  transition: color var(--transition);
}

footer a:hover {
  color: gray;
}
/* MODAL*/
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.65);
}

.modal-content {
  position: relative;
  background: var(--paper);
  color: var(--ink);
  max-width: 760px;
  width: calc(100% - 2.5rem);
  max-height: 88vh;
  margin: 6vh auto;
  padding: 2.8rem 3rem 3.2rem;
  overflow-y: auto;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.12);
  border-radius: 2px;
}

/* Close-X */
.close-x {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;

  font-family: inherit;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 400;

  background: none;
  border: none;
  color: var(--gray);
  cursor: pointer;

  transition: color var(--transition), transform var(--transition);
}

.close-x:hover {
  color: var(--ink);
  transform: scale(1.1);
}


/* Schließen-Button unten */
.close-btn {
  display: inline-block;
  margin-top: 2.8rem;
  padding: 0.7rem 1.8rem;

  background: var(--ink);
  color: white;
  border: none;
  border-radius: 2px;

  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

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

@media (max-width: 600px) {
  .modal-content {
    padding: 2rem 1.6rem 2.4rem;
  }

  .close-x {
    font-size: 2.1rem;
    right: 1.2rem;
  }
}

/* ENDE MODAL*/




/* Scroll-to-Top */

#scrollTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ink);
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1000;
  display: none;
  border-radius: 50%;
}

#scrollTop:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 800px) {
  .hamburger {
    display: block;
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 1.8rem 5%;
    gap: 1.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
  }

  nav ul.active {
    display: flex;
  }
}

@media (max-width: 780px) {
  #ueber-uns .content {
    grid-template-columns: 1fr;
  }
  #ueber-uns img {
    max-width: 420px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 880px) {
  body {
    font-size: 1.05rem;
  }
  h2 {
    font-size: 2.0rem;
  }
  .logo-img {
    height: 60px;
    max-height: 60px;
  }
}