/* =========================================================
   IP Installationen – Shared Stylesheet (Header etc.)
   ========================================================= */

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

:root {
  --blue-900: #0A1F3F;
  --gold:      #C4A265;
  --gold-dark: #9B7A4B;

  --gray-900: #111827;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-200: #E5E7EB;
  --white:    #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 6px;
}

html { font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800, #1F2937);
  background: #f8f8f8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main, .placeholder, .legal { flex: 1; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--gold);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo__mark {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  line-height: 0;
}
.logo__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }

.logo__text { display: flex; flex-direction: column; line-height: 1.25; }
.logo__name { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.logo__tagline { font-size: 12px; color: var(--gold-dark); font-weight: 500; letter-spacing: .4px; }

/* ---- Placeholder content ---- */
.placeholder {
  text-align: center;
  padding: 6rem 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}
.placeholder p { margin: .4rem 0; }
.placeholder p[lang="en"] { color: var(--gray-500); font-size: 14px; }

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: rgba(255,255,255,.7);
  padding: 56px 0 0;
  margin-top: auto;
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .logo__name { color: var(--white); }
.footer__brand .logo__tagline { color: rgba(255,255,255,.5); }
.footer__brand .logo__mark { background: var(--white); border-radius: var(--radius-sm); padding: 3px; }
.footer__desc { margin-top: 16px; font-size: .9rem; line-height: 1.7; max-width: 320px; }
.logo__mark--sm { width: 36px; height: 36px; }

.footer__contact h4 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer__contact ul { display: flex; flex-direction: column; gap: 10px; list-style: none; }
.footer__contact a { font-size: .9rem; color: rgba(255,255,255,.6); transition: color .2s; }
.footer__contact a:hover { color: var(--white); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { color: rgba(255,255,255,.55); text-decoration: underline; transition: color .2s; }
.footer__bottom a:hover { color: var(--white); }

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
}

/* ---- Footer (compact, single-row, for sparse pages) ---- */
.footer--compact {
  padding: 16px 0;
}
.footer--compact .footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-bottom: 0;
  border-bottom: none;
}
.footer--compact .logo__mark--sm { width: 26px; height: 26px; }
.footer--compact .logo__name { font-size: 13px; color: var(--gold); }
.footer--compact .logo__tagline { font-size: 10px; }
.footer--compact .footer__social {
  display: flex;
  gap: 16px;
  list-style: none;
  font-size: .8rem;
}
.footer--compact .footer__social a { color: var(--gold); transition: color .2s; }
.footer--compact .footer__social a:hover { color: var(--white); }
.footer--compact .footer__legal {
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  white-space: nowrap;
}
.footer--compact .footer__legal a { color: rgba(255,255,255,.55); text-decoration: underline; }
.footer--compact .footer__legal a:hover { color: var(--white); }

@media (max-width: 700px) {
  .footer--compact .footer__inner { justify-content: center; text-align: center; }
  .footer--compact .footer__legal { white-space: normal; flex-basis: 100%; text-align: center; }
}
