/* ==========================================================================
   Ingenieurbüro Beyer GmbH - Stylesheet
   ========================================================================== */

:root {
  --page-bg: #e0f2fe; /* Hellblau wie auf https://ing-beyer.com/cloud/ */
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-muted: #555555;
  --text-light: #777777;
  --link-color: #333333;
  --link-hover: #008dd2;
  --border-color: #e5e5e5;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --card-max-width: 540px;
  --legal-max-width: 820px;
  --card-radius: 16px;
  --card-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Links */
a {
  color: var(--link-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--link-hover);
  text-decoration-color: var(--link-hover);
  outline: none;
}

/* ==========================================================================
   Startseite Layout (index.html)
   ========================================================================== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* Weißes Rechteck mit abgerundeten Ecken für Logo & Texte */
.main-container {
  width: 100%;
  max-width: var(--card-max-width);
  margin: auto 0;
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 3.5rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo & Tagline Container - exakte Breitenabstimmung */
.brand-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.25rem;
}

.logo-wrapper {
  width: 100%;
}

.logo-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Tagline / Schwerpunkte: Exakt so breit wie die sichtbare Logobreite */
.tagline {
  width: 94.3%;
  margin: 1.25rem 3.7% 0 2%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.92rem, 3.7vw, 1.18rem);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
  padding: 0;
}

.tagline-item {
  white-space: nowrap;
}

.tagline-dot {
  color: var(--text-light);
  font-weight: 400;
  user-select: none;
  font-size: 1rem;
}

/* Kontakt- & Firmendaten */
.contact-block {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.company-name {
  font-weight: 600;
  color: var(--text-main);
}

/* Telefonnummer als separate Zeile mit Abstand nach oben und unten */
.phone-line {
  margin: 1.35rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.phone-line a {
  color: inherit;
  text-decoration: none;
}

.phone-line a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.contact-links a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: underline;
}

.contact-links a:hover {
  color: var(--link-hover);
}

/* Footer / Rechtliches */
.site-footer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.legal-link {
  color: var(--text-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Datenschutz & Impressum Layout (datenschutz.html)
   ========================================================================== */
.legal-page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem 4rem;
}

.legal-container {
  width: 100%;
  max-width: var(--legal-max-width);
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 3.5rem 3.5rem 3rem;
  text-align: left;
}

.legal-header {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-header .logo-image {
  max-width: 260px;
  margin: 0 auto 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.legal-content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.legal-content p, .legal-content ul {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ==========================================================================
   Responsive Optimierungen
   ========================================================================== */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 1.5rem 1rem;
  }

  .main-container {
    padding: 2.25rem 1.5rem 2rem;
    border-radius: 12px;
  }

  .tagline-dot {
    font-size: 0.85rem;
  }

  .legal-page-wrapper {
    padding: 1.5rem 1rem;
  }

  .legal-container {
    padding: 2rem 1.5rem 2rem;
    border-radius: 12px;
  }

  .legal-content h1 {
    font-size: 1.5rem;
  }

  .legal-content h2 {
    font-size: 1.2rem;
  }
}
