/* Grundlegende Variablen */
:root {
   --bg: #ffffff;
   --text: #222222;
   --card: #f8f9fa;
   --border: #dee2e6;
   --text-muted: #5a5a5a;
   --accent: #0056b3;
}

/* Dark-Mode-Variablen */
body.dark-mode {
   --bg: #333;
   --text: #fff;
   --card: #444;
   --border: #555;
   --text-muted: #adb5bd;
   --accent: #6ea8fe;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Layout-Struktur für Sticky Footer */
.page-container {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.about-main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

/* Allgemeine Element-Stile */
.about-header {
    width: 100%;
    background-color: var(--card);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.content {
    text-align: center;
    max-width: 800px;
}

.content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.content h3 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content .disclaimer {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h2 {
    margin-bottom: 1.5rem;
}

.contact-form ul { list-style: none; padding: 0; }
.contact-form li { margin-bottom: 1rem; }
.contact-form a { color: var(--accent); font-weight: bold; }

.about-footer {
    width: 100%;
    background-color: var(--card);
    padding: 1rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 1rem;
}

.footer-content a {
    color: var(--accent);
}


/* Stile für den Werbe-Platzhalter */
.ad-placeholder {
  display: none; /* Standardmäßig versteckt */
  margin-top: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background-color: var(--card);
  max-width: 500px; /* Passt zur Breite der Kontakt-Box */
  margin-left: auto;
  margin-right: auto;
}

/* Macht den Platzhalter sichtbar, wenn die Klasse am body-Tag ist */
body.ads-enabled .ad-placeholder {
  display: block;
}
body.dark-mode {
    background-color: var(--bg); /* Erzwingt dunklen Hintergrund für die Seite */
}

body.dark-mode .about-header,
body.dark-mode .about-footer,
body.dark-mode .contact-form {
    background-color: var(--card); /* Erzwingt dunklen Hintergrund für Karten */
    border-color: var(--border);   /* Erzwingt dunkle Ränder */
    color: var(--text);            /* Erzwingt hellen Text */
}

/* Stellt sicher, dass die Texte im Hauptteil die richtigen Farben haben */
body.dark-mode .content h2 { color: var(--text); }
body.dark-mode .content h3 { color: var(--text-muted); }
body.dark-mode .content .disclaimer { color: var(--text-muted); }

/* Stellt sicher, dass die Links die helle Akzentfarbe haben */
body.dark-mode .contact-form a,
body.dark-mode .footer-content a {
    color: var(--accent);
}

/* Dark Mode Toggle Stile */
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: #2196F3; }
input:focus + .slider { box-shadow: 0 0 1px #2196F3; }
input:checked + .slider:before { transform: translateX(26px); }
.dark-mode-lable { position: absolute; top: 50%; right: 70px; transform: translateY(-50%); pointer-events: none; }

 .about-link,
 .about-link1 {
   color: #0056b3 !important;
   /* dunkleres Blau für besseren Kontrast */
 }

 body.dark-mode .about-link,
 body.dark-mode .about-link1 {
   color: #ffffff !important;
   /* weißer Text für besseren Kontrast */
 }

 body.dark-mode .ad-placeholder p {
    color: var(--text);
}

body.dark-mode .contact-form a,
body.dark-mode .footer-content a {
   color: #ffffff !important;
}

.about-header-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}

.about-section {
    margin-bottom: 0.5rem;
    text-align: left;
}

.about-section h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.about-section p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.quote-line {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.about-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
    opacity: 0.5;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ── Project Cards ── */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.pcard {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pcard-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 0.3rem;
}

.pcard h3 {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text);
    margin: 0;
}

.pcard p {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin: 0;
    line-height: 1.5;
}

.pcard-link {
    font-size: 0.82rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
    margin-top: 0.4rem;
    transition: opacity 0.2s;
}

.pcard-link:hover { opacity: 0.75; }

body.dark-mode .pcard {
    background-color: var(--card);
    border-color: var(--border);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .project-cards {
        grid-template-columns: 1fr;
    }
}