/* ============== Base ============== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #5f6368;
  --line: #e8eaed;
  --dark: #0f1115;
  --soft: #f7f8fa;

  --accent: #1f6feb;
  --shadow: 0 18px 45px rgba(0,0,0,0.12);
  --radius: 18px;
}

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
}

a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ============== Header ============== */
.site-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(15,17,21,0.25);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-solid{
  background: rgba(15,17,21,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #fff;
}

.brand:hover{ text-decoration: none; }

.brand-mark{ font-weight: 800; letter-spacing: -0.3px; }
.brand-sub{ font-size: 13px; opacity: 0.85; }

.nav{
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav a{
  color: #fff;
  opacity: 0.9;
  font-weight: 600;
  font-size: 14px;
}

.nav a:hover{ opacity: 1; color: var(--accent); text-decoration: none; }
.nav a.is-active{ opacity: 1; }

.nav-toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.15);
  cursor: pointer;
}

.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 4px auto;
}

/* ============== Hero ============== */
.hero--image{
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;

  background-image: url("../images/hero.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 60% 25%;
}

.hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.35) 100%
  );
}

.hero-inner{
  position: relative;
  padding: 170px 0 120px;
  display: flex;

}

.hero-panel{
  width: min(480px, 80vw);
  background: rgba(15,17,21,0.40);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
  backdrop-filter: blur(12px);

  /* Move panel left (choose ONE method) */
  transform: translateX(-100px);
}

.hero-panel h1{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.08;
  letter-spacing: -0.3px;

  /* One line title */
  white-space: nowrap;
}

.hero-panel p{
  margin: 0 0 18px;
  opacity: 0.92;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.buttons{ display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px){
  .hero-panel{
    transform: translateX(-20px);
  }
}
.buttons{ display: flex; gap: 12px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.22);
  text-decoration: none;
}

.btn:hover{ text-decoration: none; }

.btn.primary{
  background: var(--dark);
  color: #fff;
  border-color: rgba(0,0,0,0.10);
}

.btn.primary:hover{ filter: brightness(0.95); }

.btn.ghost{
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.btn.ghost:hover{ background: rgba(255,255,255,0.14); }

.hero-badges{
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
}

/* ============== Sections ============== */
.section{
  padding: 70px 0;
}

.section p{ color: var(--muted); }
h2{ color: var(--dark); margin-top: 0; }

/* ============== Services (Sanierung/Renovierung/Beratung) ============== */
.service{
  padding: 90px 0;
}

.service-grid{
  display: grid;
  grid-template-columns: 1fr 1.4fr; /* text | gallery */
  gap: 40px;
  align-items: center;
}

.service-text{ text-align: left; }

.service-text ul{
  margin: 14px 0 18px;
  padding-left: 18px;
}

.service-gallery{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
  background: #fff;
  box-shadow: var(--shadow);
  height: 420px; 
}

.gal-img{
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.gal-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.45);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.gal-btn.prev{ left: 14px; }
.gal-btn.next{ right: 14px; }

.gal-btn:hover{ background: rgba(0,0,0,0.60); }

/* Reverse section (Renovierung): gallery left, text right */
.service--reverse .service-grid{
  grid-template-columns: 1.4fr 1fr; /* gallery | text */
}
.service--reverse .service-text{ grid-column: 2; grid-row: 1; }
.service--reverse .service-gallery{ grid-column: 1; grid-row: 1; }

.site-footer{ padding-bottom: 90px; }

/* ============== Kontakt ============== */
#kontakt{
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-grid{
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 18px;
  justify-content: center;
}

.contact-box{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.contact-box h3{ margin: 0 0 10px; color: var(--dark); }

.contact-box a{
  color: var(--dark);
  font-weight: 700;
}

.contact-box a:hover{ color: var(--accent); }

/* Form */
form{
  margin: 28px auto 0;
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  text-align: left;
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  column-gap: 24px;
}

.form-grid .full{ grid-column: 1 / -1; }

label{
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

input, textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d6d9de;
  border-radius: 12px;
  outline: none;
  font-size: 15px;
}

textarea{ min-height: 160px; }

input:focus, textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(31,111,235,0.12);
}

form button[type="submit"]{
  margin-top: 14px;
  background: var(--dark);
  color: #fff;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

form button[type="submit"]:hover{
  background: var(--accent);
  border-color: var(--accent);
}

/* Center section headings + intro text */
#ueber-uns .container,
#kontakt .container{
  text-align: center;
}

/* Keep bullets readable (left-aligned) while block is centered */
#ueber-uns .bullets{
  display: inline-block;
  text-align: left;
  margin: 12px auto 0;
}

/* Keep form readable (left labels), but centered on page */
#kontakt form{
  text-align: left;
}
/* ============== Footer ============== */
.site-footer{
  border-top: 1px solid #eee;
  padding: 18px 0;
  background: #fafafa;
  text-align: center;
}

/* ============== Reveal animation (optional) ============== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.0s ease, transform 1.0s ease;
}

.reveal.show{
  opacity: 1;
  transform: translateY(0);
}

/* ============== Responsive ============== */
@media (max-width: 980px){
  .nav-toggle{ display: inline-block; }

  .nav{
    display: none;
    position: absolute;
    top: 64px;
    right: 4%;
    left: 4%;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    background: rgba(15,17,21,0.96);
    border: 1px solid rgba(255,255,255,0.10);
  }

  .nav.open{ display: flex; }

  .hero-inner{ justify-content: center; }

  .service-grid{ grid-template-columns: 1fr; }
  .gal-img{ height: 260px; }

  .contact-grid{ grid-template-columns: 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
}
/* ============== Floating Buttons (clean) ============== */
.fab-stack{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.fab{
  position: relative;
  width: 56px;
  height: 56px;
}

.fab-btn{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none; /* prevents underline */
}

.fab-btn:hover{ filter: brightness(0.98); }
.fab-btn:focus{ outline: none; }

/* Menu */
.fab-menu{
  position: absolute;
  right: 0;
  bottom: 68px;
  display: none;
  min-width: 180px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
}

/* “Hover bridge” so it doesn't disappear */
.fab-menu::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
}

/* Menu items */
.fab-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
}

.fab-menu a:hover{
  background: rgba(31,111,235,0.10);
  color: var(--accent);
}

/* Show on click (mobile + desktop) */
.fab.is-open .fab-menu{ display: block; }

/* Desktop hover (optional) */
@media (hover: hover){
  .fab:hover .fab-menu{ display: block; }
}

/* ============== Kontakt: phone underline only on hover ============== */
/* Phone should be dark normally (not muted grey), blue+underline on hover */
#kontakt .contact-box a[href^="tel"]{
  color: var(--dark);
  text-decoration: none;
}

#kontakt .contact-box a[href^="tel"]:hover{
  color: var(--accent);
  text-decoration: underline;
}
/* Never underline floating action buttons */
.fab-btn,
.fab-btn:hover,
.fab-btn:focus {
  text-decoration: none !important;
}
