/* -------------------------------------------------------
   GLOBAL
------------------------------------------------------- */

@font-face {
  font-family: 'Oxanium';
  src: url('font.ttf') format('truetype');
  font-display: swap;
}

:root {
    --font-h1: 2.4rem;
    --font-h2: 1.7rem;
    --font-h3: 1.3rem;
    --font-body: 1.05rem;

    --color-blue: #7aa6ff;
    --color-blue-light: #9fb3ff;
    --color-white: #ffffff;
}

body {
  margin: 0;
  font-family: 'Oxanium', sans-serif;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: #05070a url('grafik/Hintergrund.png')
              no-repeat center center fixed;
  background-size: cover;
  color: var(--color-white);
}

.overlay {
  background: rgba(5, 7, 10, 0.50);
  min-height: 100vh;
  width: 100%;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

body, p, a, li, h1, h2, h3, h4, h5, h6 {
    font-family: 'Oxanium';
    font-weight: 500;
}

/* ============================================
   GLOBALE INHALTSBREITE (AUTOMATISCH)
============================================ */

main, 
section, 
article, 
.content, 
.overlay > *:not(.headline-block):not(.footer) {
    max-width: 720px; /* perfekte Lesebreite */
    margin-left: auto;
    margin-right: auto;
}

.card,
.textblock,
.positionierung,
.checklist-item {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.grid,
.grid-profil,
.grid-impressum,
.grid-checkpoint {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

:root {
    --content-width: 640px;
}

main, 
section, 
article, 
.content, 
.overlay > *:not(.headline-block):not(.footer),
.card,
.textblock,
.positionierung,
.checklist-item,
.grid,
.grid-profil,
.grid-impressum,
.grid-checkpoint{
    max-width: var(--content-width);
}

/* -------------------------------------------------------
   TYPOGRAFIE
------------------------------------------------------- */

h1, h2, h3 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00CED1;
    font-weight: unset;
    margin: 2.5rem 0 1.5rem;
}

h1 { font-size: var(--font-h1); }
h2 { font-size: var(--font-h2); }
h3 { font-size: var(--font-h3); }

/* leichte visuelle Hochstellung */
h1, h2 {
    position: relative;
    top: -0.15rem;
}

.subline {
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: none;
    color: var(--color-blue-light);
    text-align: center;
}

/* -------------------------------------------------------
   LINKS
------------------------------------------------------- */

/*
a {
    color: var(--color-white) !important;
    text-decoration: none;
    text-align: center;
}

a:hover {
    text-decoration: underline;
}
*/

/* -------------------------------------------------------
   TEXT / INHALTE
------------------------------------------------------- */

p,
.textblock,
.positionierung,
.card p,
.checklist-item p {
    font-size: var(--font-body);
    color: var(--color-white);
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.textblock,
.positionierung {
    max-width: 50%;
    margin: 2rem auto;
}

/* -------------------------------------------------------
   HEADLINE-BLOCK
------------------------------------------------------- */

.headline-block {
  text-align: center;
}

.code-line {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: white;
}

/* -------------------------------------------------------
   INTRO + EMAIL
------------------------------------------------------- */

.intro-text {
  max-width: 720px;
  text-align: center;
  margin: 0.5rem auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-white);
}

.email-line {
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 1.5rem;
  color: var(--color-blue);
  margin: 3rem 0 2rem;
}

.email-line a {
  display: block;
  color: var(--color-blue-light);
  text-decoration: none;
  padding: 0.6rem 0.6rem;
  border-radius: 6px;
  transition: 0.3s ease;
  box-shadow: 0 0 5px rgba(122,166,255,0.75);
}

.email-line a:hover,
a:hover,
.tag:hover {
  box-shadow: 0 0 12px rgba(122,166,255,1);
}

.tag a:hover{
  box-shadow: unset;
}

.tag a{
  padding:unset;
}

a {
  display: block;
  color: var(--color-blue-light);
  text-decoration: none;
  padding: 0.6rem 0.6rem;
  transition: 0.3s ease;
}

/* -------------------------------------------------------
   GRID + CARDS
------------------------------------------------------- */

.grid,
.grid-profil,
.grid-impressum,
.grid-checkpoint {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1080px;
}

.grid-profil {
  width: 30%;
  gap: 3rem;
}

.grid-impressum {
  margin: 4rem 0 2rem;
}

.grid-checkpoint {
  grid-template-columns: repeat(auto-fit, minmax(260px, 0fr));
  margin-bottom: 1rem;
}

/* --- CARD --- */

.card {
  border: 1px solid rgba(120, 180, 255, 0.25);
  border-radius: 12px;
  padding: 2rem;
  margin: 0.5rem 0;
  background: radial-gradient(circle at top left, #151b26 0, #05070a 55%);
  box-shadow: 0 0 12px rgba(80, 150, 255, 0.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  box-shadow: 0 0 18px rgba(100, 190, 255, 0.55);
  border-color: rgba(120, 190, 255, 0.85);
}

/* Adressat-Card */
.card:nth-of-type(4) {
  margin: 2rem 0;
  box-shadow: 0 0 20px rgba(80, 150, 255, 0.75);
  border-color: rgba(120, 190, 255, 0.95);
}

.card:nth-of-type(4):hover {
  box-shadow: 0 0 26px rgba(100, 190, 255, 1);
}

.card p, .card ul {
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.card ul {
  padding-left: 1.2rem;
}

/* Text-Glow */
h1, 
h2, 
p, 
a,
span,
.textblock,
.subline,
.code-line {
text-shadow:
    0 0 8px rgba(120, 180, 255, 0.65),
    0 0 15px rgba(120, 180, 255, 0.35);
}

.card h2,
.card h2 a,
.tag-row a {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #00CED1;
  text-decoration: none;
}

.grid-impressum .card h2 {
  text-align: left;
}

.card h2 a {
  padding: 0.6rem;
  border-radius: 6px;
  transition: 0.3s ease;
  box-shadow: 0 0 5px rgba(122,166,255,0.75);
}

/* -------------------------------------------------------
   TAGS
------------------------------------------------------- */

.tag-row {
  display: grid;
  grid-template-columns: repeat(1, max-content);
  gap: 1rem 1.5rem;
  justify-content: center;
}

.tag {
  font-size: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(120, 180, 255, 0.35);
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 0 6px rgba(80, 150, 255, 0.25);
  transition: 0.25s ease;
}

/* -------------------------------------------------------
   CHECKLISTE
------------------------------------------------------- */

.section-checkliste {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.section-checkliste .section-title {
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--color-blue-light);
  text-shadow:
    0 0 8px rgba(120,180,255,0.65),
    0 0 15px rgba(120,180,255,0.35);
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 0fr));
  gap: 1.5rem;
}

.checklist-item {
  border: 1px solid rgba(120, 180, 255, 0.25);
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  background: radial-gradient(circle at top left, #151b26 0, #05070a 55%);
  box-shadow: 0 0 12px rgba(80,150,255,0.35);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.checklist-item:hover {
  box-shadow: 0 0 18px rgba(100,190,255,0.55);
  border-color: rgba(120,190,255,0.85);
}

/* -------------------------------------------------------
   FOOTER (unverändert)
------------------------------------------------------- */

.footer {
  text-align: center;
  font-size: 0.9rem;
  color: #8b93a3;
  margin: 2rem 0;
}

.footer a {
  color: var(--color-blue);
  text-decoration: none;
}

.footer a:hover,
h2 a:hover,
.tag a:hover {
  text-decoration: underline;
  box-shadow: unset;
}

/* -------------------------------------------------------
   TOOLTIP
------------------------------------------------------- */

.tooltip {
  position: relative;
  align-items: center;
  gap: 0.35rem;
  cursor: default;
}

.tooltip .tooltip-icon {
  font-size: 1rem;
  color: var(--color-blue-light);
  text-shadow: 0 0 6px rgba(120,180,255,0.55);
  transition: 0.25s ease;
}

.tooltip:hover .tooltip-icon {
  color: #c8d4ff;
  text-shadow: 0 0 10px rgba(120,180,255,0.85);
}

.tooltip .tooltiptext {
  visibility: hidden;
  opacity: 0;
  width: 100%;
  background: rgba(5, 7, 10, 0.92);
  color: white;
  padding: 1rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(100, 190, 255, 0.45);
  position: absolute;
  z-index: 20;
  bottom: 135%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: justify;
  white-space: normal;
  word-break: normal;
  hyphens: auto;
  transition: opacity 0.25s ease;
  text-transform: none;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer div a{
    display: inline-flex;
}

.textblock {
  text-align: center;
}

/* ============================================
   RESPONSIVE DESIGN – GESAMTE WEBSITE
   (einfach unter die bestehende CSS einfügen)
============================================ */

/* ---------- 1. Globale Inhaltsbreite ---------- */

:root {
    --content-width: 720px;
}

@media (max-width: 1024px) {
    :root {
        --content-width: 85%;
    }
}

@media (max-width: 768px) {
    :root {
        --content-width: 90%;
    }
}

@media (max-width: 480px) {
    :root {
        --content-width: 94%;
    }
}

/* Diese Elemente nutzen automatisch die Breite */
.textblock,
.positionierung,
.card,
.checklist-item,
.grid,
.grid-profil,
.grid-impressum,
.grid-checkpoint {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}


/* ---------- 2. Typografie skalieren ---------- */

@media (max-width: 768px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
    body { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    body { font-size: 0.9rem; }
}


/* ---------- 3. Grids sauber responsiv ---------- */

.grid,
.grid-profil,
.grid-impressum,
.grid-checkpoint {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

@media (max-width: 480px) {
    .grid,
    .grid-profil,
    .grid-impressum,
    .grid-checkpoint {
        grid-template-columns: 1fr;
    }
}


/* ---------- 4. Footer responsiv ---------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 1rem;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .footer {
        gap: 0.6rem;
    }
    .footer a {
        font-size: 0.9rem;
    }
}