/* Maler Service Basel — shared stylesheet */

:root {
  --color-primary: #1F3A5F;
  --color-primary-dark: #14283f;
  --color-accent: #D9622B;
  --color-accent-dark: #b64f1f;
  --color-bg: #F7F5F0;
  --color-bg-alt: #EFEBE2;
  --color-text: #2B2B2B;
  --color-text-light: #5a5a5a;
  --color-white: #ffffff;
  --color-green: #4C7A5E;
  --color-border: #e2ddd0;

  --font-base: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1180px;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(31, 58, 95, 0.10);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

h1, h2, h3 { line-height: 1.2; color: var(--color-primary); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.section-alt { background: var(--color-bg-alt); }

.section-intro {
  max-width: 760px;
  margin-bottom: 2.25rem;
}
.section-intro p { color: var(--color-text-light); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 6px 18px rgba(217, 98, 43, 0.35);
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn-outline-dark:hover { background: rgba(31,58,95,0.08); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.9rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-primary);
}
.brand-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-sub {
  display: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-primary);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.primary-nav a {
  font-weight: 600;
  color: var(--color-text);
  padding-block: 0.25rem;
  border-bottom: 2px solid transparent;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}
.nav-call {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-call:hover { background: var(--color-primary-dark); color: var(--color-white) !important; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: 0.75rem 0; width: 100%; }
  .site-header.nav-open .primary-nav { max-height: 420px; }
  .site-header.nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .site-header.nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero {
  position: relative;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-primary) 0%, #2c4f7c 55%, var(--color-accent) 140%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 60px);
  pointer-events: none;
}
.hero .container {
  position: relative;
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 820px;
}
.hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255,255,255,0.16);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.hero h1 { color: var(--color-white); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.92);
  max-width: 620px;
}
.hero-small {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}
.hero-small .container { max-width: 900px; }

.hero-split .container {
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-split .hero-text { min-width: 0; }
.hero-split .hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
  aspect-ratio: 16 / 9;
}
.hero-split .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 860px) {
  .hero-split .container { grid-template-columns: 1fr; }
  .hero-split .hero-image { order: -1; }
}

/* Trust bullets */
.trust-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}
.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-weight: 600;
}
.trust-list li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 800;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.9rem;
  color: var(--color-accent);
}
.card p { color: var(--color-text-light); }

.audience-split {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  margin-top: 1rem;
}
@media (min-width: 760px) {
  .audience-split { grid-template-columns: 1fr 1fr; }
}
.audience-card {
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-border);
}
.audience-card.owner { background: var(--color-white); }
.audience-card.tenant {
  background: var(--color-primary);
  color: var(--color-white);
}
.audience-card.tenant h3, .audience-card.tenant h2 { color: var(--color-white); }
.audience-card ul { margin-top: 0.75rem; }
.audience-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.audience-card.tenant li { border-bottom-color: rgba(255,255,255,0.15); }

/* Gallery placeholder tiles */
.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}
.gallery-tile .swatch {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.gallery-tile .info { padding: 1rem 1.1rem; }
.gallery-tile .info p { color: var(--color-text-light); font-size: 0.92rem; }
.swatch-1 { background: linear-gradient(135deg, #1F3A5F, #4C7A5E); }
.swatch-2 { background: linear-gradient(135deg, #D9622B, #b64f1f); }
.swatch-3 { background: linear-gradient(135deg, #4C7A5E, #1F3A5F); }
.swatch-4 { background: linear-gradient(135deg, #2c4f7c, #D9622B); }
.swatch-5 { background: linear-gradient(135deg, #b64f1f, #2B2B2B); }
.swatch-6 { background: linear-gradient(135deg, #1F3A5F, #D9622B); }

/* Area / town links */
.area-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-top: 1rem;
}
.area-grid a {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-weight: 600;
  text-align: center;
}
.area-grid a:hover { border-color: var(--color-accent); color: var(--color-accent); }

.neighbor-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.neighbor-links a {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.neighbor-links a:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* Contact / NAP */
.nap-block {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.nap-block h3 { margin-bottom: 0.9rem; }
.nap-block a { color: var(--color-primary); font-weight: 700; }
.nap-block .nap-line {
  display: flex;
  gap: 0.6rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.nap-block .nap-line:last-child { border-bottom: none; }
.placeholder-flag {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  background: #fdf1ea;
  border: 1px dashed var(--color-accent);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem;
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2rem;
}
.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}
.site-footer address { font-style: normal; }
.site-footer .nap-line { padding: 0.2rem 0; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--color-white); text-decoration: underline; }
.footer-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.9rem;
}
.footer-legal a { font-size: 0.85rem; }

/* Legal pages */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 2.25rem; }
.legal-content h2:first-child { margin-top: 0; }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}
.breadcrumbs a { color: var(--color-text-light); font-weight: 600; }
.breadcrumbs a:hover { color: var(--color-accent); }
.breadcrumbs .sep { margin: 0 0.4rem; opacity: 0.6; }
.breadcrumbs .current { color: var(--color-text); }
.hero .breadcrumbs { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }
.hero .breadcrumbs a { color: rgba(255,255,255,0.9); }
.hero .breadcrumbs a:hover { color: var(--color-white); }

/* FAQ accordion (native details/summary, no JS) */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-list details {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.faq-list summary {
  font-weight: 700;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin-top: 0.75rem; color: var(--color-text-light); }

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.blog-card .blog-date {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
  font-weight: 700;
}
.blog-card h3 { margin-bottom: 0; }
.blog-card p { color: var(--color-text-light); }
.blog-card .read-more { font-weight: 700; color: var(--color-primary); }
.blog-card .read-more:hover { color: var(--color-accent); }
.post-meta {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
}

/* Price table, calculator, steps (cost / Treppenhaus / Fensterläden pages) */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.price-table { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { text-align: left; padding: 0.8rem 1rem; border-bottom: 1px solid var(--color-border); }
.price-table th { background: var(--color-primary); color: var(--color-white); font-weight: 700; }
.price-table td:nth-child(2) { font-weight: 700; white-space: nowrap; color: var(--color-primary); }
.price-table tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.85rem; color: var(--color-text-light); margin-top: 0.75rem; }
.calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; background: var(--color-white); padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1.5rem; }
.calc label { display: flex; flex-direction: column; gap: 0.4rem; font-weight: 600; color: var(--color-primary); }
.calc input, .calc select { font: inherit; padding: 0.6rem 0.7rem; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg); }
.calc-result { grid-column: 1 / -1; font-size: 1.2rem; font-weight: 700; color: var(--color-accent-dark); margin: 0.5rem 0 0; }
.steps, .checklist { margin: 1rem 0 1.5rem 1.25rem; display: grid; gap: 0.6rem; }
.grid + p { margin-top: 1.5rem; }
.checklist { list-style: disc; }
