/* Haupt-CSS für Visitenkarte, Impressum und Datenschutzerklärung */

/* Schriftart festlegen: Einfach hier ändern */
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk-Regular.woff2') format('woff2'),
      url('../fonts/CabinetGrotesk-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --main-font: 'Cabinet Grotesk';
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--main-font);
  line-height: 1.6;
  color: #333;
}

/* Hintergrund und Logo (Visitenkarte) */
body.visitenkarte {
  background: url('../img/bg_desktop.png') no-repeat center center fixed;
  background-size: cover;
  position: relative;
  color: #fff;
}

@media (max-width: 768px) {
  body.visitenkarte {
    background-image: url('../img/bg_mobile.png');
  }
}

.logo {
  position: absolute;
  top: 33%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  height: auto;
}

.footer-links {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-size: 0.9rem;
  text-align: right;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.footer-links a + a:before {
  content: "|";
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Zentrierter Footer in der mobilen Ansicht */
@media (max-width: 768px) {
  .footer-links {
    bottom: 5px;                      /* weniger Abstand */
    left: 50%;                         /* zentrieren */
    transform: translateX(-50%);
    text-align: center;
    padding: 3px;                     /* etwas großzügiger */
    width: calc(70% - 32px);          /* Kastenbreite mit seitlichem Rand */
    max-width: 360px;                  /* Obergrenze */
    background: rgba(0, 0, 0, 0.6);    /* Hintergrund bleibt */
    border-radius: 3px;                /* abgerundete Ecken */
    white-space: normal; 
  }
  .social-links {
    position: absolute;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
}

/* Impressum und Datenschutz-Seiten */
body.impressum,
body.datenschutz {
  background: none;
  padding: 20px;
  color: #333;
}

h1, h2 {
  color: #222;
}

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.section {
  margin-bottom: 20px;
}

@media (min-width: 769px) {
  .social-links {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 0.9rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;             
    border-radius: 4px;            
    white-space: nowrap;
  }
  .social-links a {
    color: #fff;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  }
  .social-links a + a:before {
    content: "|";
    display: inline-block;
    margin: 0 10px;
    vertical-align: middle;
  }
  .social-links a:hover {
    text-decoration: underline;
  }
}

.desktop {
  display: inline;
}

.mobile {
  display: none;
}

.seo {
  display: none;
}

@media (max-width: 768px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: inline-block;
    margin: 0 5px;
  }
}


