/* ==========================================================================
   Ident-Datentechnik – B2B Stylesheet
   ========================================================================== */

:root {
  --color-primary-dark: #0F172A;   /* Slate 900 */
  --color-primary-body: #1E293B;   /* Slate 800 */
  --color-secondary:    #334155;   /* Slate 700 */
  --color-muted:        #64748B;   /* Slate 500 */
  --color-border:       #CBD5E1;   /* Slate 300 */
  --color-bg-light:     #F8FAFC;   /* Slate 50 */
  --color-accent:       #007791;   /* Petrol */
  --color-accent-hover: #005f73;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  color: var(--color-primary-body);
  background-color: #FFFFFF;
  /* Fallback für ältere Browser */
  min-height: 100vh;
  /* Dynamischer Viewport für Safari/iOS: passt sich live an die Adressleiste an */
  min-height: 100dvh; 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.container-legal {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ==========================================================================
   Header & Logo (Perfekt zentriert mobil & desktop)
   ========================================================================== */
header {
  padding: 36px 0 20px;
  width: 100%;
}

.header-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.header-subpage {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-container a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  height: clamp(54px, 7vw, 130px);
  width: auto;
  max-width: 88vw;
  display: block;
  margin: 0 auto;
}

.logo-subpage img {
  height: 62px;
  width: auto;
  display: block;
}

.back-link {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* ==========================================================================
   Main / Coming-Soon Card (Startseite)
   ========================================================================== */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
}

.main-content-page {
  flex: 1;
  display: block;
  padding: 50px 0 70px;
}

.coming-soon-card {
  text-align: center;
  max-width: 660px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 56px 36px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.badge {
  display: inline-block;
  background: rgba(0, 119, 145, 0.1);
  color: var(--color-accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.coming-soon-card h1 {
  font-size: 2.5rem;
  color: var(--color-primary-dark);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}

.coming-soon-card p {
  font-size: 1.15rem;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
}

.contact-preview {
  display: inline-flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  width: 100%;
}

.contact-item {
  font-size: 0.95rem;
  color: var(--color-secondary);
  text-align: left;
}

.contact-item strong {
  color: var(--color-primary-dark);
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-item a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Kontaktseite & Legal Pages Typografie
   ========================================================================== */
.page-title {
  font-size: 2.2rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
  font-weight: 800;
}

.page-subtitle {
  color: var(--color-muted);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 24px;
}

.contact-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.95rem;
  color: var(--color-secondary);
  line-height: 1.6;
}

.contact-card a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Legal Container (Impressum, Datenschutz, AGB Text) */
.legal-box {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-box h2 {
  font-size: 1.35rem;
  color: var(--color-primary-dark);
  margin: 28px 0 12px;
}

.legal-box h2:first-child {
  margin-top: 0;
}

.legal-box h3 {
  font-size: 1.1rem;
  color: var(--color-primary-dark);
  margin: 20px 0 8px;
}

.legal-box p {
  margin-bottom: 16px;
}

.legal-box ul {
  margin: 0 0 16px 20px;
}

.legal-box a {
  color: var(--color-accent);
  text-decoration: none;
}

.legal-box a:hover {
  text-decoration: underline;
}

/* Optionaler responsiver iFrame-Container */
.legal-iframe-wrapper {
  width: 100%;
  height: 70vh;
  min-height: 550px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #FFFFFF;
}

.legal-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   Footer (Optimiert für iOS Safari & SEO)
   ========================================================================== */
footer {
  background: var(--color-primary-dark);
  color: var(--color-border);
  /* Solider Puffer nach unten: 36px + dynamische iPhone Home-Bar */
  padding: 36px 0 calc(48px + env(safe-area-inset-bottom, 20px));
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin-bottom: 4px;
}

.footer-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 10px 14px; /* Vergrößerte Touch-Fläche für verlässliche Fingertipps */
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.footer-claim {
  max-width: 620px;
  color: var(--color-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0 auto;
}

.footer-copy {
  color: #475569; /* Slate 600 */
  font-size: 0.75rem;
}

/* ==========================================================================
   Mobile Anpassungen
   ========================================================================== */
@media (max-width: 640px) {
  .logo-container img {
    height: 60px;
    margin-left: auto;
    margin-right: auto;
  }
  .header-subpage {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .coming-soon-card {
    padding: 40px 20px;
  }
  .coming-soon-card h1 {
    font-size: 2rem;
  }
  .contact-preview {
    flex-direction: column;
    gap: 16px;
  }
  .contact-item {
    text-align: center;
  }
  footer {
    padding-top: 30px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 24px));
  }
  .footer-links {
    gap: 10px;
  }
  .footer-links a {
    padding: 8px 10px;
  }
  .legal-box {
    padding: 20px 16px;
  }
}