:root {
  --accent: #ba7e0a;
  --muted: #b9b5ae;
  --bg-dark: #000;
  --bg-header: #111;
  --text-light: #b9b5ae;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid #222;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo img { max-height: 80px; width: auto; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.3s ease, transform 0.3s ease;
}
.main-nav a:hover {
  color: #fff;
  transform: scale(1.1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--accent);
  cursor: pointer;
  padding: 6px;
}
@media (max-width: 768px) {
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; padding-top: 8px; }
  .main-nav ul { flex-direction: column; gap: 10px; padding: 8px 0; }
  .menu-toggle { display: block; }
  .logo img { max-height: 60px; }
}

main { padding: 40px 20px; max-width: 1200px; margin: auto; }

/* Projektgalerie */
.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-thumb {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.image-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bg-header);
  box-shadow: 0 2px 8px rgba(255,255,255,0.05);
}

.image-wrapper img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.image-wrapper img.start { z-index: 1; position: relative; }
.image-wrapper img.final {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 2;
  transition: opacity 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .image-wrapper:hover img.start { opacity: 0; }
  .image-wrapper:hover img.final { opacity: 1; }
}

@media (hover: none) and (pointer: coarse) {
  .image-wrapper img.start { opacity: 0 !important; }
  .image-wrapper img.final { opacity: 1 !important; }
}

.project-title {
  text-align: center;
  padding: 10px;
  font-weight: bold;
  color: var(--accent);
  background-color: var(--bg-header);
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.lightbox {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
}

.lightbox:target {
  display: flex;
}

/* Footer */
footer {
  background-color: var(--bg-header);
  color: var(--text-light);
  padding: 20px 10px;
  text-align: center;
  border-top: 1px solid #222;
  font-size: 0.9rem;
}

footer a {
  color: var(--accent);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}


/* Zurück-Link */
.back-link {
  display: block;
  width: fit-content;
  margin: 40px auto;
  padding: 10px 20px;
  background-color: var(--bg-header);
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}
.back-link:hover {
  background-color: var(--accent);
  color: #fff;
}

/* ---------- LEISTUNGEN ---------- */
h2.page-title {
  border-bottom: 2px solid var(--accent);
  padding-bottom: 10px;
  text-align: center;
  margin-top: 30px;
  color: var(--accent);
}

.grid-services {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: var(--bg-header);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.service-card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

@media (max-width: 768px) {
  .grid-services {
    padding: 0 15px;
  }
}

/* ---------- KONTAKTFORMULAR ---------- */
.contact-section {
  max-width: 500px;
  margin: 0 auto;
  text-align: left; /* alles bündig */
}

.contact-form {
  width: 100%;
  margin: 20px 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  background: #111;
  color: var(--text-light);
  border: 1px solid #444;
  border-radius: 4px;
}

.contact-form button {
  background: var(--accent);
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #d69a00;
}

.contact-info {
  margin: 20px 0;
  font-size: 0.9em;
  text-align: left;
}

.email-link {
  display: inline-block;
  font-size: 1.2em;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.email-link span {
  color: var(--accent);
}

.email-link:hover {
  color: var(--accent);
}


