*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #111827;
  line-height: 1.6;
  font-size: 17px;
}

a {
  color: #478ac9;
  text-decoration: none;
}

a:hover {
  color: #3b77b0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout ogólny */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  padding-bottom: 40px;
}

/* ---------------------------------- */
/* HEADER + MENU                      */
/* ---------------------------------- */

header {
  background: #111827;
  border-bottom: 1px solid #0f172a;
}

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

.logo img {
  height: 80px;
  width: auto;
}

/* Hamburger – checkbox + label */

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none; /* na desktopie ukryty – pokażemy na mobile */
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: #f9fafb;
  display: block;
}

.nav-toggle-icon {
  font-size: 1.3rem;
  line-height: 1;
  color: #f9fafb;
}

.nav-toggle-text {
  font-size: 0.9rem;
  color: #f9fafb;
}

/* MENU – desktop */

.main-nav {
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
}

.main-nav a {
  font-size: 0.95rem;
  color: #f9fafb;
}

.main-nav a:hover {
  color: #e5e7eb;
}

/* ---------------------------------- */
/* HERO                               */
/* ---------------------------------- */

.hero {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.hero .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.hero-text,
.hero-image {
  flex: 1 1 320px;
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1rem;
}

.hero p {
  margin: 0 0 0.75rem;
  color: #111827;
}

.hero ul {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.btn-primary {
  display: inline-block;
  padding: 10px 18px;
  background: #478ac9;
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary:hover {
  background: #3b77b0;
}

/* ---------------------------------- */
/* SEKCJE OGÓLNE                      */
/* ---------------------------------- */

section {
  padding: 40px 0;
  border-top: 1px solid #f3f4f6;
}

.page-header {
  border-top: none;
}

.page-header h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.page-header p {
  margin: 0 0 0.75rem;
}

/* Sekcja usług na stronie głównej */

.services-overview {
  /* zakładamy, że ta sekcja ma klasę services-overview */
}

.services-overview h2 {
  margin-top: 0;
}

.services-overview ul {
  margin: 0.5rem 0 1rem 1.2rem;
  padding: 0;
}

/* Leistungen – 2 kolumny */

.service-section {
  padding: 40px 0;
  border-top: 1px solid #f0f0f0;
}

.service-layout {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.service-layout.service-layout-reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1 1 50%;
}

.service-image {
  flex: 1 1 50%;
}

.service-image img {
  width: 100%;
  border-radius: 4px;
}

/* FAQ */

.faq-item {
  margin-bottom: 20px;
}

.faq-item h3 {
  margin-bottom: 0.25rem;
}

/* STOPKA */

footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 0 24px;
  font-size: 0.9rem;
  color: #6b7280;
}

/* ---------------------------------- */
/* MOBILE – max-width: 768px          */
/* ---------------------------------- */

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

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

  body {
    font-size: 16px;
    line-height: 1.7;
  }

  .container {
    padding: 0 14px;
  }

  header {
    position: relative;
  }

  /* Header – logo + hamburger w jednym rzędzie */
  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .logo img {
    height: 64px;
  }

  /* Hamburger widoczny, menu ukryte */
  .nav-toggle-label {
    display: flex;
  }

  /* MENU jako zakładka pod headerem */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111827;
    padding: 12px 16px;
    border-top: 1px solid #0f172a;
    z-index: 50;
  }

  /* Po kliknięciu hamburgera pokazujemy menu pod headerem */
  .nav-toggle:checked + .nav-toggle-label + .main-nav {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  .main-nav a {
    font-size: 1rem;
  }

  /* Hero – pionowo na mobile, obrazek pod tekstem */
  .hero {
    padding: 24px 0;
  }

  .hero .container {
    flex-direction: column;
  }

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

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

  /* Page-header */
  .page-header {
    padding: 24px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  /* Leistungen – jedna kolumna na mobile */
  .service-layout,
  .service-layout.service-layout-reverse {
    flex-direction: column;
  }

  .service-image,
  .service-text {
    flex: 1 1 100%;
  }

  .service-section {
    padding: 24px 0;
  }
}


.hero-startseite {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
}

.hero-startseite img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

.hero-startseite__caption {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0.5rem;
  color: #555;
}

.hero-intro {
  margin: 2rem auto 3rem;
  max-width: 1200px;
  padding: 0 1rem;
}

.hero-intro__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.hero-intro__text {
  flex: 1 1 360px;
  min-width: 0;
}

.hero-intro__subheading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.hero-intro__image {
  flex: 1 1 360px;
  min-width: 0;
  margin: 0;
}

.hero-intro__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
}

@media (max-width: 900px) {
  .hero-intro__inner {
    flex-direction: column;
  }

  .hero-intro__image {
    order: 2;
  }
}

/* Layout strony Leistungen na mta-sts */
.leistungen-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.leistungen-intro {
  margin-bottom: 2.5rem;
}

.leistungen-intro h1 {
  margin-bottom: 1rem;
}

.leistungen-liste {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.leistung {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  align-items: flex-start;
}

.leistung__image {
  flex: 1 1 320px;
  min-width: 0;
}

.leistung__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

.leistung__text {
  flex: 1 1 380px;
  min-width: 0;
}

.leistung__text h2,
.leistung__text h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .leistung {
    flex-direction: column;
  }

  .leistung__image,
  .leistung__text {
    flex: 1 1 auto;
  }
}

/* ===========================
   Layout strony Leistungen – kafelki 2 kolumny
   =========================== */
.leistungen-page main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.leistungen-page .leistungen-liste {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.leistungen-page .leistung {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  height: 100%;
}

.leistungen-page .leistung__image {
  margin: -1.25rem -1.25rem 1rem;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  overflow: hidden;
}

.leistungen-page .leistung__image img {
  width: 100%;
  height: auto;
  display: block;
}

.leistungen-page .leistung__text {
  flex: 1 1 auto;
}

.leistungen-page .leistung__text h2,
.leistungen-page .leistung__text h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .leistungen-page .leistungen-liste {
    grid-template-columns: 1fr;
  }
}

/* =======================
   Leistungen – kafelki 2 Spalten
   ======================= */
.leistungen-intro {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

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

.leistung-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.leistung-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.leistung-card__text {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1 1 auto;
}

.leistung-card__text h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.leistung-card__text p:last-child {
  margin-bottom: 0;
}

.leistungen-link {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

/* Mobile – jedna kolumna */
@media (max-width: 900px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
  }
}

/* Trockenbau – sekcja 'Was Sie bei uns erwartet' – tylko siatka kafelków */
.usp {
  margin: 3rem 0;
}

.usp > h2 {
  margin-bottom: 1.5rem;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.usp-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  height: 100%;
}

.usp-item h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

@media (max-width: 900px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}
