/* =============================================
   bürowohnausbau.de — Design System
   Primär: #1C3D5A (Tiefblau)
   Akzent:  #D4832A (Bernstein / Transformation)
   BG-Alt:  #F8F6F3 (Warmes Off-White)
   ============================================= */

:root {
  --color-primary:       #1C3D5A;
  --color-primary-light: #2A5580;
  --color-accent:        #D4832A;
  --color-accent-dark:   #B8691A;
  --color-bg:            #FFFFFF;
  --color-bg-alt:        #F8F6F3;
  --color-bg-dark:       #1C3D5A;
  --color-text:          #1A1A2E;
  --color-text-muted:    #5B6778;
  --color-border:        #E2E8F0;
  --color-success:       #2D6A4F;
  --color-placeholder-before: #C8D4DF;
  --color-placeholder-after:  #A8C4B8;

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --text-h1:   clamp(2rem, 5vw, 3.25rem);
  --text-h2:   clamp(1.5rem, 3.5vw, 2.25rem);
  --text-h3:   1.25rem;
  --text-body: 1rem;
  --text-sm:   0.875rem;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-pill: 999px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.12);

  --section-py:  clamp(4rem, 8vw, 7rem);
  --container:   1200px;
  --gap:         1.5rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, select, textarea { font: inherit; }
details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---- Layout ---- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: var(--section-py); }
.section--alt { background: var(--color-bg-alt); }

/* ---- Typography ---- */
.section__title {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section__sub {
  color: var(--color-text-muted);
  max-width: 56ch;
  margin-bottom: 2.5rem;
}
.eyebrow {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin-bottom: .75rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-body);
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn--lg { padding: .8rem 1.75rem; font-size: 1.0625rem; }
.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover, .btn--primary:focus-visible {
  background: var(--color-accent-dark);
  box-shadow: 0 4px 16px rgba(212,131,42,.35);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--color-primary);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  font-size: var(--text-sm);
  padding: .5rem 1rem;
  margin-top: auto;
}
.btn--outline:hover, .btn--outline:focus-visible {
  background: var(--color-accent);
  color: #fff;
}

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.navbar--scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .9rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}
.logo-mark {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: .75rem;
  padding: .25rem .4rem;
  border-radius: var(--radius-sm);
  letter-spacing: .04em;
}
.logo-text {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}
.logo-tld { color: var(--color-accent); }
.navbar__nav { margin-inline-start: auto; }
.navbar__nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.navbar__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color .15s;
}
.navbar__nav a:hover, .navbar__nav a:focus-visible { color: var(--color-accent); }
.navbar__cta { margin-inline-start: 1rem; }
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-inline-start: auto;
  padding: .5rem;
}
.navbar__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform .2s;
}
.navbar__mobile {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 1rem var(--gap);
}
.navbar__mobile ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.navbar__mobile a {
  font-weight: 500;
  color: var(--color-text);
  padding: .25rem 0;
  display: block;
}

/* ---- HERO ---- */
.hero { padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 1.25rem; }
.hero__content h1 {
  font-size: var(--text-h1);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}
.hero__sub {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 50ch;
  line-height: 1.7;
}
.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
}
.trust-line span { display: flex; align-items: center; gap: .3rem; }

/* ---- IMAGE PLACEHOLDERS ---- */
.hero__visual { display: flex; flex-direction: column; gap: .5rem; }
.img-placeholder--hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 400px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
}
.img-placeholder--hero .img-placeholder__before,
.img-placeholder--hero .img-placeholder__after {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.img-placeholder__before {
  background: var(--color-placeholder-before);
  background-image: repeating-linear-gradient(
    -45deg, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 0, transparent 50%
  );
  background-size: 8px 8px;
}
.img-placeholder__after {
  background: var(--color-placeholder-after);
  background-image: repeating-linear-gradient(
    45deg, rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px, transparent 0, transparent 50%
  );
  background-size: 8px 8px;
}
.img-placeholder__label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(0,0,0,.4);
  background: rgba(255,255,255,.6);
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
}
.img-placeholder__divider {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
}
.img-placeholder__note {
  font-size: .75rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--color-primary);
  padding-block: 2rem;
}
.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.trust-bar__item { color: #fff; }
.trust-bar__item strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
}
.trust-bar__item span {
  font-size: var(--text-sm);
  opacity: .8;
}

/* ---- PROBLEM SEKTION ---- */
.problem__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.problem__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.problem__icon {
  font-size: 1.125rem;
  color: #C0392B;
  margin-top: .1rem;
  flex-shrink: 0;
  font-weight: 700;
}
.problem__item p { font-size: var(--text-sm); line-height: 1.6; }
.problem__transition {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gap);
}
.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .875rem;
  transition: box-shadow .2s, transform .2s;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__icon { font-size: 2rem; }
.service-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-primary);
}
.service-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.service-card ul {
  list-style: disc;
  padding-inline-start: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.service-card ul li { font-size: var(--text-sm); color: var(--color-text); }

/* ---- DIFFERENZIERUNG ---- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}
.pillar {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border-top: 3px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.pillar__icon { font-size: 1.875rem; }
.pillar h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-primary);
}
.pillar p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.65; }

/* ---- REFERENZEN / GALERIE ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  margin-bottom: 1.5rem;
}
.gallery-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}
.gallery-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 200px;
}
.img-placeholder--gallery {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.img-placeholder--after { background: var(--color-placeholder-after) !important; }
.gallery-card__info {
  padding: 1.25rem;
}
.gallery-card__info h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .4rem;
}
.gallery-card__info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.55;
}
.gallery-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- ABLAUF ---- */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
  padding-bottom: 2rem;
}
.process-step:last-child { padding-bottom: 0; }
.process-step::before {
  content: '';
  position: absolute;
  left: 1.375rem;
  top: 3.2rem;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.process-step:last-child::before { display: none; }
.process-step__num {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px rgba(212,131,42,.15);
  position: relative;
  z-index: 1;
}
.process-step h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .35rem;
  padding-top: .4rem;
}
.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ---- GARANTIE ---- */
.garantie__box {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.garantie__icon { font-size: 2.5rem; flex-shrink: 0; margin-top: .2rem; }
.garantie__box h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: #fff;
}
.garantie__box p { font-size: var(--text-sm); opacity: .9; line-height: 1.7; }
.garantie__box strong { color: var(--color-accent); font-weight: 700; }

/* ---- FAQ ---- */
.faq__inner { max-width: 760px; }
.faq__list { display: flex; flex-direction: column; gap: .5rem; }
.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.faq__item summary {
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background .15s;
}
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: var(--color-bg-alt); }
.faq__answer {
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--color-border);
}
.faq__answer p { font-size: var(--text-sm); color: var(--color-text-muted); line-height: 1.7; }

/* ---- CTA BANNER / KONTAKT ---- */
.cta-banner { background: var(--color-bg); }
.cta-banner__inner { max-width: 760px; }
.cta-banner h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .6rem;
}
.cta-banner > .cta-banner__inner > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* ---- FORM ---- */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.form-group label span { color: var(--color-accent); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: .65rem .875rem;
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28,61,90,.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group--check { flex-direction: row; align-items: flex-start; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: .15rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.checkbox-label a { color: var(--color-primary); text-decoration: underline; }

/* ---- FOOTER ---- */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.85);
  padding-top: 3.5rem;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer__col--company .navbar__logo {
  margin-bottom: .875rem;
}
.footer__col--company .logo-text { color: #fff; }
.footer__col--company .logo-mark { background: rgba(255,255,255,.15); }
.footer__col--company p {
  font-size: var(--text-sm);
  line-height: 1.7;
  opacity: .8;
  margin-bottom: 1rem;
}
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.footer__contact a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  transition: opacity .15s;
}
.footer__contact a:hover { opacity: .8; }
.footer__col h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #fff;
  margin-bottom: .875rem;
}
.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer__col a {
  font-size: var(--text-sm);
  opacity: .75;
  transition: opacity .15s;
}
.footer__col a:hover { opacity: 1; color: var(--color-accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 1.25rem;
}
.footer__bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: var(--text-sm);
  opacity: .6;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 1024px) {
  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar__nav { display: none; }
  .navbar__cta { display: none; }
  .navbar__hamburger { display: flex; }

  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__visual { order: -1; }
  .img-placeholder--hero { height: 240px; }

  .trust-bar__inner { grid-template-columns: repeat(2, 1fr); }

  .form-row { grid-template-columns: 1fr; }

  .garantie__box { flex-direction: column; gap: 1rem; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .trust-bar__inner { grid-template-columns: 1fr 1fr; }
  .cta-group { flex-direction: column; }
  .cta-group .btn { text-align: center; justify-content: center; }
}

/* ---- Focus styles ---- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}
