/* ============================================================
   Fliesen Neubauer – main.css
   Brand palette:
     Orange:  #D4601A
     Gold:    #D4A017
     Teal:    #2E9BB5
     Dark:    #1a1a1a
     Grey:    #f5f5f5
   ============================================================ */

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

:root {
  --orange: #D4601A;
  --gold:   #D4A017;
  --teal:   #2E9BB5;
  --dark:   #1a1a1a;
  --text:   #333;
  --muted:  #666;
  --bg:     #ffffff;
  --bg-alt: #f7f7f5;
  --border: #e0e0e0;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
  --transition: 0.25s ease;
  --max-w: 960px;
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }

/* ── Container ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: .65rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .03em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary   { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: #b8521a; border-color: #b8521a; text-decoration: none; }
.btn-outline   { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; text-decoration: none; }
.btn-cta       { background: transparent; color: var(--dark); border-color: var(--orange); font-size: .85rem; padding: .5rem 1.1rem; }
.btn-cta:hover { background: var(--orange); color: #fff; text-decoration: none; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img {
  width: auto;
  height: 54px;
  object-fit: contain;
  display: block;
}

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  gap: .25rem;
  align-items: center;
}
.main-nav ul li { position: relative; }
.main-nav ul li::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 1px;
  margin-left: .6rem;
  vertical-align: middle;
}
.main-nav ul li:nth-child(1)::after { background: var(--orange); }
.main-nav ul li:nth-child(2)::after { background: var(--gold); }
.main-nav ul li:nth-child(3)::after { display: none; }

.main-nav a {
  color: var(--dark);
  font-weight: 500;
  padding: .35rem .55rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--orange);
  text-decoration: none;
}
.main-nav a.active { font-weight: 700; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ece8e2 100%);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(212,96,26,.03) 40px,
    rgba(212,96,26,.03) 41px
  );
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero-pre {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .75rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1.75rem;
}

/* ============================================================
   SLIDER
   ============================================================ */
.slider-section {
  background: var(--dark);
  padding: 0;
}
.main-swiper { width: 100%; max-height: 500px; }
.main-swiper .swiper-slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  opacity: .9;
}
.swiper-button-prev, .swiper-button-next { color: #fff; }
.swiper-pagination-bullet-active { background: var(--orange); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section {
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.about-text { max-width: 720px; margin: 0 auto; text-align: center; }
.about-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}
.about-text p { color: var(--muted); line-height: 1.8; }

/* ============================================================
   SERVICES TEASER / ACCORDION
   ============================================================ */
.services-teaser {
  background: var(--bg-alt);
  padding: 4rem 1.5rem;
}
.services-teaser h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
  text-align: center;
}
.accordion { max-width: 640px; margin: 0 auto; }
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  background: #fff;
  overflow: hidden;
}
.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  transition: background var(--transition);
}
.accordion-toggle:hover { background: #fdf6f2; }
.accordion-toggle[aria-expanded="true"] { color: var(--orange); }
.acc-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
  stroke: var(--orange);
}
.accordion-toggle[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }
.accordion-body {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
}
.accordion-body p { margin-bottom: .75rem; }

/* ============================================================
   USP / VALUE PROPS
   ============================================================ */
.usp-section {
  padding: 4rem 1.5rem;
  background: var(--bg);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.usp-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.usp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.usp-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}
.usp-card p { color: var(--muted); line-height: 1.7; font-size: .95rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, #ece8e2 100%);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--dark);
  margin-bottom: .75rem;
}
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--muted); }

/* ============================================================
   LEISTUNGEN
   ============================================================ */
.leistung-section { padding: 3.5rem 1.5rem; }
.leistung-even { background: var(--bg); }
.leistung-odd  { background: var(--bg-alt); }

.leistung-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
/* Odd sections: image right, text left (reverse order) */
.leistung-odd .leistung-img  { order: 2; }
.leistung-odd .leistung-body { order: 1; }

.leistung-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.leistung-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.leistung-img:hover img { transform: scale(1.03); }

.leistung-header {
  border-left: 4px solid var(--orange);
  padding-left: 1rem;
  margin-bottom: 1.25rem;
}
.leistung-header h2 { font-size: 1.4rem; font-weight: 700; color: var(--dark); }

.leistung-body p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; }
.leistung-body h3 { font-weight: 600; color: var(--dark); margin: 1rem 0 .5rem; }

.leistung-list { margin-bottom: 1.5rem; }
.leistung-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
  margin-bottom: .4rem;
  line-height: 1.6;
}
.leistung-list li::before {
  content: '';
  position: absolute; left: 0; top: .6rem;
  width: 7px; height: 7px;
  background: var(--orange);
  border-radius: 50%;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-section { padding: 3.5rem 1.5rem; }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.kontakt-mailto h2,
.kontakt-info h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.kontakt-mailto p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.btn-mailto {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  word-break: break-all;
}
.btn-mailto svg { flex-shrink: 0; }

.kontakt-details { display: flex; flex-direction: column; gap: .9rem; }
.kontakt-details li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: var(--text);
  line-height: 1.5;
}
.kontakt-details svg { flex-shrink: 0; color: var(--orange); margin-top: .1rem; }
.kontakt-details a { color: var(--text); }
.kontakt-details a:hover { color: var(--orange); }

/* ============================================================
   GENERIC PAGE CONTENT (Datenschutz, Impressum)
   ============================================================ */
.page-content { padding: 3.5rem 1.5rem; }
.page-content h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--orange);
  padding-bottom: .5rem;
  display: inline-block;
}
.prose h2 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 .5rem; color: var(--dark); }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.25rem 0 .4rem; }
.prose p  { margin-bottom: 1rem; color: var(--muted); line-height: 1.8; }
.prose a  { color: var(--orange); }
.prose ul { list-style: disc; margin-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .35rem; color: var(--muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 2.5rem 1.5rem;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-contact { font-size: .875rem; line-height: 1.8; }
.footer-contact strong { color: #fff; }
.footer-contact a { color: #ccc; }
.footer-contact a:hover { color: var(--orange); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.footer-nav a { color: #ccc; font-size: .875rem; }
.footer-nav a:hover { color: var(--orange); }
.footer-copy { font-size: .8rem; color: #888; width: 100%; }

/* ============================================================
   TRUST BADGE
   ============================================================ */
.trust-badge {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.trust-badge img {
  height: 70px;
  width: auto;
  object-fit: contain;
}
.trust-badge p {
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 4rem 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.gallery-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .5rem;
}
.gallery-intro {
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
  aspect-ratio: 4/3;
  background: var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,.55);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  display: flex;
  align-items: flex-end;
  padding: .75rem;
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  /* Header */
  .main-nav, .btn-cta { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }

  /* Mobile nav open */
  .main-nav.open {
    display: block;
    width: 100%;
    order: 10;
    padding: .5rem 0 .75rem;
    border-top: 1px solid var(--border);
  }
  .main-nav.open ul { flex-direction: column; gap: 0; }
  .main-nav.open ul li::after { display: none; }
  .main-nav.open a { display: block; padding: .7rem 0; border-radius: 0; }

  /* Kontakt grid */
  .kontakt-grid { grid-template-columns: 1fr; gap: 2rem; }
  /* Leistungen grid */
  .leistung-inner { grid-template-columns: 1fr; }
  .leistung-odd .leistung-img  { order: 0; }
  .leistung-odd .leistung-body { order: 0; }

  /* Slider */
  .main-swiper .swiper-slide img { height: 250px; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .usp-grid { grid-template-columns: 1fr; }
}
