/* ==========================================================================
   LJN GROUP – Global Stylesheet
   ========================================================================== */

:root {
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-bg-dark: #0c0f12;
  --color-card-bg: rgba(18, 22, 27, 0.9);
  --color-border: rgba(255, 255, 255, 0.15);
  --color-text-main: #f5f5f7;
  --color-text-muted: #a1a1a6;
  --color-link: #ffffff;
  --color-link-hover: #b0b0b8;
  --text-shadow-hero: 0 1px 4px rgba(0, 0, 0, 0.95), 0 2px 10px rgba(0, 0, 0, 0.85);
}

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

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-main);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

/* ==========================================================================
   HOME PAGE (Full-Screen Cologne Background & Hero Overlay)
   ========================================================================== */

body.home-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
  background-image: url('../images/bg-cologne.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

/* Subtle dark vignette over the photo for optimal text readability */
body.home-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.home-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 820px;
  width: auto;
  padding: 30px 48px;
  background-color: rgba(18, 22, 28, 0.52);
  border-radius: 0;
  border: none;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}

/* Logo Box */
.logo-wrapper {
  flex-shrink: 0;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 172px;
  text-decoration: none;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo-box:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.logo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85));
}

/* Hero Content & Typography */
.content-box {
  color: #ffffff;
  text-shadow: var(--text-shadow-hero);
}

.company-name {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 3px;
  white-space: nowrap;
}

.company-address {
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1.45;
  color: #f0f0f2;
}

.company-contact {
  margin-top: 16px;
  font-size: 1.15rem;
  line-height: 1.45;
}

.company-contact a,
.company-address a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.company-contact a:hover,
.company-address a:hover {
  color: #e0e0e0;
  text-decoration: underline;
}

.nav-links {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  font-size: 0.82rem;
}

.nav-links a {
  color: #c8c8ce;
  text-decoration: none;
  letter-spacing: 0.03em;
  position: relative;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: #ffffff;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:focus-visible,
.company-contact a:focus-visible,
.logo-box:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* ==========================================================================
   SUBPAGES (Impressum & Datenschutz)
   ========================================================================== */

body.subpage {
  background-color: #000000;
  background-image: url('../images/bg-cologne.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Dark vignette over the background photo for subpages */
body.subpage::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(10, 12, 15, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.header-logo-img {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.05);
}

.header-brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.page-main {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 80px 24px;
}

.legal-card {
  background-color: rgba(16, 20, 26, 0.70);
  border-radius: 0;
  border: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 48px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.7);
}

.legal-card h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 16px;
}

.legal-card h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
  color: #ffffff;
}

.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 10px;
  color: #e5e5ea;
}

.legal-card p {
  color: #d1d1d6;
  margin-bottom: 16px;
  line-height: 1.65;
  font-size: 1rem;
}

.legal-card ul {
  margin-left: 24px;
  margin-bottom: 16px;
  color: #d1d1d6;
  line-height: 1.65;
}

.legal-card li {
  margin-bottom: 6px;
}

.legal-card a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: var(--color-link-hover);
}

.placeholder-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
  color: #ffd166;
}

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(10, 12, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 24px;
  margin-top: auto;
}

.footer-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-nav a:hover,
.footer-nav a.active {
  color: #ffffff;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Tablets & Mobile)
   ========================================================================== */

@media (max-width: 768px) {
  body.home-page {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .home-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    width: 100%;
    max-width: 350px;
    margin: auto;
    padding: 28px 20px;
    background: rgba(18, 22, 28, 0.55);
    border-radius: 0;
    border: none;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
  }

  .logo-box {
    width: 140px;
    height: 140px;
  }

  .content-box {
    width: 100%;
  }

  .company-name {
    font-size: 1.1rem;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.35;
  }

  .company-address,
  .company-contact {
    font-size: 1rem;
  }

  .nav-links {
    justify-content: center;
    gap: 20px;
    font-size: 0.82rem;
  }

  .legal-card {
    padding: 24px 18px;
  }

  .legal-card h1 {
    font-size: 1.75rem;
  }

  .header-brand-name {
    display: none;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
