*,
*::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: #d66e38;
}

.main-nav a.nav-active {
  color: #478ac9;
  font-weight: 700;
}

/* ---------------------------------- */
/* 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: #000000;
  color: #ffffff;
}


/* ---------------------------------- */
/* 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: 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;
  }
}


/* bez max-height i bez object-fit: cover – pokazujemy cały kadr 1200x450 */
}


/* UWAGA: żadnego max-height, żadnego object-fit: cover */
}


/* Hero-Obraz na podstronach usług – stała wysokość */
.service-hero {
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.service-hero img {
  width: 100%;
  height: 450px;
  display: block;
  border-radius: 18px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-hero img {
    height: 300px;
  }
}

/* ==========================================
   Galerie – Kacheln mit Referenzbildern
   ========================================== */
.gallery-intro {
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.gallery-item {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.95rem;
}


/* Galerie – wyrównanie nagłówka jak na innych podstronach */
.gallery-page {
  padding: 3rem 0 1rem;
}

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

.gallery-grid {
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.gallery-grid-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* ==========================================
   Projekte & Referenzen
   ========================================== */
.projekte-intro {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  padding: 0 1rem;
}

.projekte-intro p + p {
  margin-top: 0.75rem;
}

.projekte-highlight {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
}

.project-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.project-location {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
}
.project-address {
  font-size: 0.9rem;
  color: #555;
  margin: 0 0 0.35rem;
}


.project-card ul {
  padding-left: 1.3rem;
  margin-bottom: 0.75rem;
}

.project-tags {
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
}

.projekte-list {
  max-width: 1200px;
  margin: 0 auto 3rem;
  padding: 0 1rem;
}

.projekte-list-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.projekte-list ul {
  padding-left: 1.2rem;
}

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

.kundenstimmen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.25rem 1.5rem;
}

.testimonial-stars {
  font-size: 1.1rem;
  color: #f4b400;
  margin-bottom: 0.5rem;
}

.testimonial-text {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.testimonial-author {
  font-size: 0.85rem;
  color: #555;
}

.testimonial-location {
  font-size: 0.85rem;
  color: #555;
  margin: 0.15rem 0 0;
}

.bewertungen-hinweis {
  font-size: 0.9rem;
  color: #555;
  margin-top: 1.5rem;
}

.projekte-cta {
  max-width: 900px;
  margin: 0 auto 3rem;
  padding: 0 1rem 3rem;
  text-align: center;
}

.projekte-cta p {
  margin: 0.75rem 0 1.5rem;
}

.projekte-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.projekte-cta .btn-primary,
.projekte-cta .btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
}

.projekte-cta .btn-primary {
  background: #f07a00;
  color: #fff;
}

.projekte-cta .btn-secondary {
  border: 1px solid #ccc;
  color: #333;
  background: #fff;
}


.projekte-hero {
  max-width: 1100px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}


.projekte-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* =======================
   Kontakt – 2 kolumny + formularz
   ======================= */
.contact-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.contact-col {
  flex: 1 1 280px;
  min-width: 280px;
}

.contact-info ul {
  padding-left: 1.2rem;
}

.contact-info ol {
  padding-left: 1.2rem;
}

.contact-form-wrapper form {
  max-width: 640px;
}

.contact-form-wrapper label {
  display: block;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea,
  .contact-form-wrapper input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}

.contact-form-wrapper textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-wrapper button,
.contact-form-wrapper input[type="submit"] {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  background: #478ac9;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
}

.contact-form-wrapper button:hover,
.contact-form-wrapper input[type="submit"]:hover {
  background: #3b77b0;
}

.contact-form-wrapper .form-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #4b5563;
}

.form-row {
  margin-bottom: 0.75rem;
}

.form-status {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.form-status.success {
  background: #ecfdf3;
  color: #14532d;
  border: 1px solid #86efac;
}

.form-status.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-actions {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-layout {
    flex-direction: column;
  }
}

/* Layout 2 kolumn dla bloga */
.blog-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 2rem;
}

.blog-main {
  flex: 2 1 60%;
  min-width: 280px;
}

.blog-sidebar {
  flex: 1 1 35%;
  min-width: 260px;
}

.blog-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  background: #fff;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 1rem;
  align-items: start;
}

.blog-card-thumb {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0;
  grid-row: 1 / 4;
  grid-column: 1;
}

.blog-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  grid-column: 2;
}

.blog-card-more {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: underline;
  grid-column: 2;
}

.blog-pagination {
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
}

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

  .blog-card {
    display: block;
  }

  .blog-card-thumb {
    max-height: 180px;
    margin-bottom: 0.75rem;
  }
}
