/* ============================================
   ARCHITEKTURBÜRO TICHACEK – Modern Industrial Style
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: #2c2c2c;
  line-height: 1.6;
  background-image: url('../img/beton-optimized.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 100vh;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #1a1a1a;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
  color: #444;
}

a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #2e7d32;
}

/* --- Header (Box in Inhaltsbreite, Betonstruktur links/rechts sichtbar) --- */
.site-header {
  background: rgba(245, 245, 243, 0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  max-width: calc(1200px - 4rem);
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
  border-bottom: 3px solid #2e7d32;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-area img,
.logo-area .logo-svg {
  height: 72px;
  width: auto;
}

/* --- Logo-Zeichenanimation (SVG-Maske über den Logo-Ebenen) --- */
.logo-svg {
  display: block;
  aspect-ratio: 123 / 120;
}

.logo-stroke {
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-stroke-spiral { stroke-width: 8; }
.logo-stroke-wave { stroke-width: 10; }
.logo-stroke-house { stroke-width: 13; }

body.logo-animate .logo-stroke {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: logo-draw linear forwards;
}

body.logo-animate .logo-stroke-spiral {
  animation-duration: 1.1s;
  animation-delay: 0.2s;
}

body.logo-animate .logo-stroke-wave {
  animation-duration: 0.45s;
  animation-delay: 1.35s;
}

body.logo-animate .logo-stroke-house {
  animation-duration: 1.3s;
  animation-delay: 1.85s;
}

@keyframes logo-draw {
  to { stroke-dashoffset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.logo-animate .logo-stroke {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
  }
}

/* --- Scroll-Hinweis – Liquid Glass Stil (grünlicher Schimmer) --- */
.scroll-down-hint {
  position: fixed;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  pointer-events: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;

  /* Leicht grünlich getöntes Glas */
  background: rgba(46, 125, 50, 0.07);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);

  /* Grün getönter Glasrand */
  border: 1px solid rgba(80, 160, 80, 0.30);

  /* Liquid-Glass Schatten-Stack: grüner Highlight-Reflex oben */
  box-shadow:
    0 0 14px rgba(46, 125, 50, 0.10),
    0 6px 20px rgba(0,0,0,0.10),
    0 2px 5px  rgba(0,0,0,0.05),
    inset 0  1px 0 rgba(160, 240, 160, 0.50),
    inset 0 -1px 0 rgba(0,0,0,0.06),
    inset 1px  0 0 rgba(180, 255, 180, 0.12),
    inset -1px 0 0 rgba(180, 255, 180, 0.06);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 1;
  transition: opacity 0.6s ease;
  animation: scroll-hint-float 2.4s ease-in-out infinite;
}
.scroll-down-hint.hidden {
  opacity: 0;
}
.scroll-down-hint svg {
  display: block;
  margin-top: 3px; /* optische Zentrierung des Chevrons */
}
@keyframes scroll-hint-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    box-shadow:
      0 0 16px rgba(46, 125, 50, 0.12),
      0 8px 28px rgba(0,0,0,0.11),
      0 2px 6px  rgba(0,0,0,0.06),
      inset 0  1px 0 rgba(160, 240, 160, 0.50),
      inset 0 -1px 0 rgba(0,0,0,0.06),
      inset 1px  0 0 rgba(180, 255, 180, 0.12),
      inset -1px 0 0 rgba(180, 255, 180, 0.06);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
    box-shadow:
      0 0 8px  rgba(46, 125, 50, 0.07),
      0 2px 8px  rgba(0,0,0,0.07),
      0 1px 3px  rgba(0,0,0,0.03),
      inset 0  1px 0 rgba(160, 240, 160, 0.50),
      inset 0 -1px 0 rgba(0,0,0,0.06),
      inset 1px  0 0 rgba(180, 255, 180, 0.12),
      inset -1px 0 0 rgba(180, 255, 180, 0.06);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-down-hint { animation: none; }
}

.logo-text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #3a3a3a;
  font-size: 2.4rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Adresse & Telefon rechts im Header */
.header-contact {
  display: flex;
  gap: 3.5rem;
  margin-left: auto;
  padding-left: 2rem;
}

/* Telefonblock: Labels linksbündig, Nummern rechtsbündig */
.header-phone {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0.6rem;
}

.header-phone span:nth-child(even) {
  text-align: right;
}

.header-contact p {
  margin: 0;
  color: #3a3a3a;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: nowrap;
}

/* --- Navigation (Leiste unterhalb des Headers, bündig mit dem Seiteninhalt) --- */
.main-nav {
  margin: 0 auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  background: #4a4a4a;
}

.main-nav a {
  color: #d6d6d6;
  padding: 0.9rem 1.5rem;
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #2e7d32;
  transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: #333;
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem;
}

.hero-content {
  background: rgba(80, 80, 80, 0.75);
  backdrop-filter: blur(8px);
  padding: 4rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: #2e7d32;
}

.hero h1 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero h1 span {
  color: #fff;
}

.hero .subtitle {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 600px;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.hero .hero-text {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  font-weight: 300;
  white-space: nowrap;
  line-height: 1.7;
  margin-top: 0.5rem;
}

.hero-action {
  margin-top: 1.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* --- Main Content --- */
.main-content {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}

/* --- Content Cards --- */
.card {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(5px);
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid transparent;
  transition: border-color 0.3s ease;
}

.main-content > .card:last-child,
.main-content > section:last-child,
.main-content > *:last-child {
  margin-bottom: 0 !important;
}

.card:hover {
  border-left-color: #2e7d32;
}

.card h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #2e7d32;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-item {
  background: rgba(245, 245, 245, 0.8);
  padding: 1.8rem;
  position: relative;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.service-item:hover {
  background: rgba(255, 255, 255, 1);
  border-bottom-color: #2e7d32;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

body.home-page .card {
  background: rgba(240, 240, 237, 0.94);
}

body.projekte-page .card {
  background: rgba(210, 210, 207, 0.94);
}

body.home-page .service-item {
  background: rgba(224, 224, 220, 0.86);
}

body.home-page .service-item:hover,
body.home-page .service-item:active {
  background: rgba(232, 232, 228, 0.96);
}

.service-item .icon {
  margin-bottom: 1rem;
  display: block;
  color: #2e7d32;
}

.service-item .icon svg {
  display: block;
  width: 48px;
  height: 48px;
  stroke: #2e7d32;
}

.service-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.9rem;
  color: #666;
}

/* --- Project Gallery --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(30%);
}

.project-card:hover img {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* --- Project Card Slideshow (Einblicke auf der Startseite) --- */
.card-slides {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.card-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out, transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(30%);
}

.card-slide.active {
  opacity: 1;
}

.project-card:hover .card-slide.active {
  transform: scale(1.1);
  filter: grayscale(0%);
}

.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  padding: 2rem 1.5rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.project-card:hover .overlay {
  transform: translateY(0);
}

.project-card .overlay h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

.project-card .overlay p {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.project-card .overlay .link-arrow {
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.project-card:hover .overlay .link-arrow {
  gap: 0.8rem;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item .icon {
  color: #2e7d32;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 125, 50, 0.1);
  border-radius: 8px;
}

.contact-item .icon svg {
  display: block;
  width: 28px;
  height: 28px;
}

.contact-item h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: #333;
  margin: 0;
}

/* --- Contact Form --- */
.contact-form {
  margin-top: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e0e0e0;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2e7d32;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.hidden-field {
  display: none;
}

.contact-form-status {
  margin-top: 1rem;
  color: #2e7d32;
  font-size: 0.9rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background: #2e7d32;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #1b5e20;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
  margin-top: 1rem;
  font-size: 0.8rem;
}

.unstyled-link {
  text-decoration: none;
  color: inherit;
}

.centered-actions {
  margin-top: 2rem;
  text-align: center;
}

.flush-card {
  padding: 0;
  overflow: hidden;
}

.map-frame {
  position: relative;
  width: 100%;
  height: 400px;
}

.map-embed {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- About Page --- */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-section img {
  width: 100%;
  height: auto;
  filter: grayscale(20%);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.leitbild-list {
  list-style: none;
  margin-top: 1.5rem;
}

.leitbild-list li {
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid #eee;
  position: relative;
  font-size: 1rem;
  color: #444;
}

.leitbild-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: 700;
}

/* --- Footer --- */
.site-footer {
  background: rgba(70, 70, 70, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #e0e0e0;
  max-width: calc(1200px - 4rem);
  margin: 0 auto !important;
}

.footer-contact {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: start;
  justify-items: center;
}

.footer-contact .contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-contact .contact-item .icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;

  /* Milchglas */
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}

.footer-contact .contact-item .icon svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: #a5d6a7;
}

.footer-contact .contact-item h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.footer-contact .contact-item p {
  color: #ccc;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact .contact-item a {
  color: #ccc;
}

.footer-contact .contact-item a:hover {
  color: #fff;
}

/* QR-Code (vCard) als 4. Element der Kontaktleiste */
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.7rem;
}

.footer-qr h4 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0;
}

.footer-qr-img {
  width: 92px;
  height: 92px;
  background: #fff;
  padding: 2px;
  border-radius: 6px;
  box-sizing: content-box;
  display: block;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.8rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2e7d32;
}

.footer-col p,
.footer-col a {
  color: #888;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col a:hover {
  color: #fff;
}

.footer-phone {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  row-gap: 0;
  margin: 0;
}

.footer-phone span:nth-child(odd) {
  text-align: left;
  color: #888;
}

.footer-phone span:nth-child(even) {
  text-align: right;
  color: #888;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li a {
  display: block;
  padding: 0.2rem 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #ccc;
}

.footer-bottom a {
  color: #ddd;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Referenz-Tabellen (Projekte) --- */
.ref-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.ref-table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #888;
  padding: 0.6rem 1rem 0.9rem;
  border-bottom: 1px solid #e5e5e5;
  background: transparent;
}

.ref-table thead th:last-child {
  text-align: right;
}

.ref-table tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  vertical-align: top;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ref-table tbody tr:last-child td {
  border-bottom: none;
}

.ref-table tbody tr {
  position: relative;
}

.ref-table tbody tr:hover td {
  background: rgba(46, 125, 50, 0.04);
  color: #2c2c2c;
}

.ref-table td:first-child {
  font-weight: 600;
  color: #1a1a1a;
  width: 55%;
  padding-left: 1.1rem;
  box-shadow: inset 3px 0 0 transparent;
  transition: box-shadow 0.2s ease;
}

.ref-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 #2e7d32;
}

.ref-table td small {
  display: block;
  font-weight: 400;
  color: #888;
  font-size: 0.82rem;
  margin-top: 0.2rem;
  letter-spacing: 0.2px;
}

.ref-table td:last-child {
  text-align: right;
  color: #777;
  font-size: 0.9rem;
}

/* Section intro (optional untertitel unter Kategorie-\u00dcberschriften) */
.card .section-intro {
  color: #777;
  font-size: 0.95rem;
  margin-top: -0.4rem;
  margin-bottom: 0.2rem;
}

/* --- Responsive --- */
/* --- Responsive: kleine Desktops (max 1200px) --- */
@media (max-width: 1200px) {
  .logo-text {
    font-size: 1.7rem;
  }

  .header-contact p {
    font-size: 0.8rem;
  }
}

/* --- Responsive: Tablet (max 900px) --- */
@media (max-width: 900px) {
  body {
    background-attachment: scroll; /* fixed breaks on iOS */
  }

  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
    padding: 0.75rem;
    min-width: 44px;
    min-height: 44px;
  }

  .main-nav {
    display: none;
    max-width: none;
    padding: 0;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 0;
  }

  .main-nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero {
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .hero-content {
    padding: 2.5rem 2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .main-content {
    padding: 0 1rem;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

/* --- Responsive: Mobile (max 600px) --- */
@media (max-width: 600px) {
  html { font-size: 14px; }

  .header-inner {
    padding: 0.6rem 1rem;
  }

  .logo-area img,
  .logo-area .logo-svg {
    height: 44px;
  }

  .logo-text {
    font-size: 1rem;
    letter-spacing: 1.5px;
    white-space: normal;
    line-height: 1.2;
  }

  .hero {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .main-content {
    padding: 0 0.75rem;
    margin: 1.5rem auto;
  }

  .card {
    padding: 1.5rem 1.2rem;
    margin-bottom: 1.5rem;
  }

  .card h2 {
    font-size: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-item {
    padding: 1.4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    aspect-ratio: 16/10;
  }

  .btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.5rem;
  }

  /* Reference tables mobile */
  .ref-table thead th { font-size: 0.65rem; padding: 0.5rem 0.6rem 0.7rem; }
  .ref-table tbody td { padding: 0.7rem 0.6rem; font-size: 0.85rem; }
  .ref-table td:first-child { padding-left: 0.75rem; width: 60%; }
  .ref-table td:last-child { font-size: 0.8rem; }

  /* Leitbild list */
  .leitbild-list li {
    padding: 0.8rem 0 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* About section image */
  .about-section img {
    max-height: 300px;
    object-fit: cover;
  }
}

/* --- Responsive: Small phones (max 380px) --- */
@media (max-width: 380px) {
  .logo-text {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero .subtitle {
    font-size: 0.9rem;
  }

  .card {
    padding: 1.2rem 1rem;
  }

  .header-inner {
    padding: 0.5rem 0.75rem;
  }
}

/* --- Touch targets & accessibility --- */
@media (hover: none) and (pointer: coarse) {
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .project-card .overlay {
    padding: 1.5rem 1.2rem 1.2rem;
  }

  .project-card img {
    filter: grayscale(0%);
  }

  .project-card:hover img {
    transform: none;
  }

  .service-item:hover {
    transform: none;
  }

  .service-item:active {
    background: rgba(255, 255, 255, 1);
    border-bottom-color: #2e7d32;
  }
}


/* ============================================
   AUSGELAGERTE INLINE-STYLES (aus HTML-Seiten)
   ============================================ */


/* --- Service-Detail-Seiten: Layout (.leistung-*, .highlight-box) --- */

.leistung-section {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: center;
      margin-bottom: 2rem;
    }
    .leistung-section.reverse {
      direction: rtl;
    }
    .leistung-section.reverse > * {
      direction: ltr;
    }
    .leistung-section img {
      width: 100%;
      height: 350px;
      object-fit: cover;
    }
    .leistung-text h3 {
      font-size: 1.3rem;
      margin-bottom: 0.8rem;
      color: #1a1a1a;
    }
    .leistung-text p {
      color: #555;
      line-height: 1.8;
    }
    .leistung-list {
      list-style: none;
      padding: 0;
      margin-top: 1rem;
    }
    .leistung-list li {
      padding: 0.8rem 0;
      border-bottom: 1px solid #eee;
      padding-left: 1.5rem;
      position: relative;
      color: #444;
    }
    .leistung-list li::before {
      content: '✓';
      position: absolute;
      left: 0;
      color: #2e7d32;
      font-weight: 700;
    }
    .highlight-box {
      background: rgba(46, 125, 50, 0.06);
      border-left: 4px solid #2e7d32;
      padding: 1.5rem 2rem;
      margin-top: 2rem;
    }
    .highlight-box p {
      margin-bottom: 0;
      color: #333;
      font-style: italic;
    }
    @media (max-width: 900px) {
      .leistung-section, .leistung-section.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
      }
    }

/* --- Planung-Seite: Prozess-Schritte --- */

.process-steps {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1.5rem;
      margin-top: 2rem;
    }
.process-step {
      text-align: center;
      padding: 1.5rem 1rem;
      background: rgba(46, 125, 50, 0.05);
      border-top: 3px solid #2e7d32;
    }
.process-step .step-number {
      font-size: 2rem;
      font-weight: 700;
      color: #2e7d32;
      margin-bottom: 0.5rem;
    }
.process-step h4 {
      font-size: 0.95rem;
      margin-bottom: 0.5rem;
    }
.process-step p {
      font-size: 0.85rem;
      color: #666;
      margin-bottom: 0;
    }
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

/* --- Team-Seite --- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-member {
  background: rgba(245, 245, 245, 0.8);
  padding: 1.5rem 1.5rem 1.8rem;
  text-align: center;
  border-bottom: 3px solid #2e7d32;
}

.team-photo {
  aspect-ratio: 3 / 4;
  background: #e4e4e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b5b5ad;
  margin-bottom: 1.2rem;
  overflow: hidden;
}

.team-photo svg {
  width: 45%;
  height: auto;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.team-role {
  color: #2e7d32;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.9rem;
}

.team-contact {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 0;
}

.team-placeholder {
  color: #999;
  font-style: italic;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* --- Impressum-Seite --- */

.impressum-section {
      margin-bottom: 2rem;
    }
    .impressum-section h3 {
      font-size: 1.1rem;
      color: #2e7d32;
      margin-bottom: 0.6rem;
      text-transform: uppercase;
      letter-spacing: 1px;
    }
    .impressum-section p {
      line-height: 1.7;
      color: #333;
      margin-bottom: 0.8rem;
    }
    .impressum-section a {
      color: #2e7d32;
      text-decoration: none;
    }
    .impressum-section a:hover {
      text-decoration: underline;
    }


/* --- Projekt-Detailseiten: Slideshow + Project-Info-Grid --- */

/* Slideshow */
    .slideshow {
      position: relative;
      max-width: 100%;
      margin: 0;
      background: #111;
      overflow: hidden;
    }

    .slideshow-container {
      position: relative;
      width: 100%;
    }

    .slide {
      display: none;
      width: 100%;
      text-align: center;
      animation: fadeIn 0.6s ease;
      padding: 1rem 1rem 0 1rem;
    }

    .slide.active {
      display: block;
    }

    .slide img {
      max-width: 100%;
      height: 70vh;
      object-fit: contain;
      margin: 0 auto;
      display: block;
    }

    .slide-caption {
      background: rgba(0, 0, 0, 0.8);
      color: #ccc;
      padding: 0.8rem 1.5rem;
      font-size: 0.9rem;
      text-align: center;
      margin: 1rem -1rem 0 -1rem;
    }

    /* Navigation Arrows – Liquid Glass, grün schimmernd (wie Scroll-Hinweis) */
    .slide-nav {
      position: absolute;
      top: calc(35vh + 1rem); /* vertikale Mitte der 70vh-Bildbühne */
      transform: translateY(-50%);
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      font-size: 1.7rem;
      line-height: 1;
      cursor: pointer;
      z-index: 10;
      color: rgba(20, 90, 35, 0.88);

      /* Leicht grünlich getöntes Glas */
      background: rgba(46, 125, 50, 0.07);
      backdrop-filter: blur(18px) saturate(1.5);
      -webkit-backdrop-filter: blur(18px) saturate(1.5);

      /* Grün getönter Glasrand */
      border: 1px solid rgba(80, 160, 80, 0.30);

      /* Liquid-Glass Schatten-Stack: grüner Highlight-Reflex oben */
      box-shadow:
        0 0 14px rgba(46, 125, 50, 0.10),
        0 6px 20px rgba(0,0,0,0.10),
        0 2px 5px  rgba(0,0,0,0.05),
        inset 0  1px 0 rgba(160, 240, 160, 0.50),
        inset 0 -1px 0 rgba(0,0,0,0.06),
        inset 1px  0 0 rgba(180, 255, 180, 0.12),
        inset -1px 0 0 rgba(180, 255, 180, 0.06);

      transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
      animation: slide-nav-float 2.4s ease-in-out infinite;
    }

    .slide-nav:hover {
      background: rgba(46, 125, 50, 0.16);
      box-shadow:
        0 0 18px rgba(46, 125, 50, 0.16),
        0 8px 26px rgba(0,0,0,0.12),
        0 2px 6px  rgba(0,0,0,0.06),
        inset 0  1px 0 rgba(170, 250, 170, 0.60),
        inset 0 -1px 0 rgba(0,0,0,0.06),
        inset 1px  0 0 rgba(190, 255, 190, 0.16),
        inset -1px 0 0 rgba(190, 255, 190, 0.08);
    }

    .slide-prev { left: 1rem; }
    .slide-next { right: 1rem; }

    /* Sanftes Auf-/Ab-Schweben (wie der Scroll-Hinweis), Zentrierung bleibt erhalten */
    @keyframes slide-nav-float {
      0%, 100% { transform: translateY(calc(-50% - 4px)); }
      50%      { transform: translateY(calc(-50% + 4px)); }
    }
    @media (prefers-reduced-motion: reduce) {
      .slide-nav { animation: none; }
    }

    /* Dots */
    .slide-dots {
      text-align: center;
      padding: 1rem 0;
      background: rgba(0, 0, 0, 0.8);
    }

    .slide-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      margin: 0 5px;
      background: rgba(255, 255, 255, 0.3);
      border-radius: 50%;
      cursor: pointer;
      transition: background 0.3s ease;
      border: none;
    }

    .slide-dot.active {
      background: #2e7d32;
    }

    /* Thumbnail strip */
    .slide-thumbs {
      display: flex;
      gap: 0.5rem;
      padding: 1rem;
      background: rgba(0, 0, 0, 0.9);
      overflow-x: auto;
      justify-content: center;
    }

    .slide-thumb {
      width: 100px;
      height: 70px;
      object-fit: cover;
      cursor: pointer;
      opacity: 0.5;
      transition: opacity 0.3s ease;
      border: 2px solid transparent;
      flex-shrink: 0;
    }

    .slide-thumb.active,
    .slide-thumb:hover {
      opacity: 1;
      border-color: #2e7d32;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Project info grid */
    .project-info-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-top: 1.5rem;
    }

    .project-info-grid dt {
      font-size: 0.8rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: #999;
      margin-bottom: 0.2rem;
    }

    .project-info-grid dd {
      font-size: 1rem;
      color: #333;
      margin-bottom: 1.2rem;
    }

    @media (max-width: 600px) {
      .project-info-grid {
        grid-template-columns: 1fr;
      }
      .slide-nav {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
      }
      .slide-thumbs {
        gap: 0.3rem;
        padding: 0.5rem;
      }
      .slide-thumb {
        width: 60px;
        height: 42px;
      }
      .slide-caption {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
      }
    }


/* --- Moosleerau-Seite: View-Tabs, PDF-View, Scroll-Hint --- */

.view-tabs {
      display: flex;
      background: #111;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
.view-tab {
      flex: 1;
      background: transparent;
      border: none;
      color: #999;
      font-family: inherit;
      font-size: 0.85rem;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      padding: 1.2rem 1rem;
      cursor: pointer;
      transition: color 0.25s ease, background 0.25s ease;
      border-bottom: 3px solid transparent;
    }
.view-tab:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.03);
    }
.view-tab.active {
      color: #fff;
      border-bottom-color: #2e7d32;
      background: rgba(46, 125, 50, 0.08);
    }
.view {
      display: none;
    }
.view.active {
      display: block;
    }
.pdf-view-container {
      position: relative;
      background: #111;
    }
.pdf-pages {
      max-height: 85vh;
      overflow-y: auto;
      background: #1a1a1a;
      scrollbar-width: thin;
      scrollbar-color: #2e7d32 #1a1a1a;
    }
.pdf-pages::-webkit-scrollbar {
      width: 10px;
    }
.pdf-pages::-webkit-scrollbar-track {
      background: #1a1a1a;
    }
.pdf-pages::-webkit-scrollbar-thumb {
      background: #2e7d32;
      border-radius: 5px;
    }
.pdf-page {
      display: block;
      width: 100%;
      height: auto;
      background: #fff;
    }
.pdf-page + .pdf-page {
      margin-top: 6px;
    }
.scroll-hint {
      position: absolute;
      bottom: 1.5rem;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 0.6rem;
      color: #fff;
      background: rgba(46, 125, 50, 0.92);
      padding: 0.7rem 1.4rem;
      border-radius: 30px;
      font-size: 0.8rem;
      letter-spacing: 2px;
      text-transform: uppercase;
      font-weight: 600;
      pointer-events: none;
      transition: opacity 0.4s ease;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      z-index: 5;
      animation: bounceHint 2s ease-in-out infinite;
    }
.scroll-hint.hidden {
      opacity: 0;
    }
.scroll-hint-arrow {
      font-size: 1.1rem;
      line-height: 1;
    }
@keyframes bounceHint {
      0%, 100% { transform: translateX(-50%) translateY(0); }
      50% { transform: translateX(-50%) translateY(-8px); }
    }
.pdf-embed-caption {
      background: rgba(0, 0, 0, 0.8);
      color: #ccc;
      padding: 0.8rem 1.5rem;
      font-size: 0.9rem;
      text-align: center;
    }
.pdf-embed-caption a {
      color: #fff;
      text-decoration: underline;
    }

/* === FOOTER-GAP FIX (am Ende – höchste Priorität) === */
main, .main-content {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
main > *:last-child,
.main-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
.site-footer {
  margin-top: 2rem !important;
}

/* Letzte Karte vor Footer – kein Abstand nach unten, Rahmen bleibt */
.card.card--last {
  margin-bottom: 0 !important;
  padding-bottom: 3rem !important;
}

/* Betonrahmen unterhalb Footer beim Scrollen sichtbar */
body {
  padding-bottom: 3rem !important;
}

/* Abstand oberhalb Einblicke-Block */
.card--gap-top {
  margin-top: 3rem !important;
}

/* --- Bild-Zoom (Über uns – Bürofoto) --- */
.img-zoom-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  border-radius: 2px;
}
.img-zoom-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}
.img-zoom-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(46, 125, 50, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}
.img-zoom-wrap:hover img {
  transform: scale(1.05);
}
.img-zoom-wrap:hover::after {
  background: rgba(46, 125, 50, 0.12);
}
.img-zoom-icon {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.img-zoom-icon svg {
  width: 18px;
  height: 18px;
}
.img-zoom-wrap:hover .img-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.img-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.img-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.92);
  transition: transform 0.3s ease;
  cursor: default;
}
.img-lightbox.active img {
  transform: scale(1);
}
.img-lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.img-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
}
.img-lightbox-close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
