/* ========================================
   ALBERTO SEJAS - PORTFOLIO WEBSITE
   Minimalistisch, S/W, Garamond, Print-inspiriert
   ======================================== */

   :root {
    /* Light Theme (Standard) */
    --bg-color: #ffffff;
    --bg-accent: #ffde79;
    --text-color: #1a1a1a;
    --accent-color: #333333;
    --border-color: #000000;
    --hover-bg: #f5f5f5;
}

/* Dark Theme */
body.dark-theme {
    --bg-color: #1a1a1a;
    --bg-accent: #1d3d8e;  /* Warmes sehr dunkles Grau */
    --text-color: #f5f5f5;
    --accent-color: #cccccc;
    --border-color: #ffffff;
    --hover-bg: #2a2a2a;
}

/* Accent Background aktiviert */
body.accent-bg {
    background-color: var(--bg-accent);
}

/* Accent Background im Light Mode (Gelb) - dunkler Text */
body.accent-bg:not(.dark-theme) {
    --text-color: #921c1c;  /* Reines Schwarz für besseren Kontrast auf Gelb */
    --accent-color: #1a1a1a;
    --border-color: #000000;
}

/* Accent Background im Dark Mode (Blau) - hellerer Text */
body.dark-theme.accent-bg {
    --text-color: #70d622;  /* Reines Weiß für besseren Kontrast auf Dunkelblau */
    --accent-color: #e0e0e0;
    --border-color: #ffffff;
}

/* ========================================
   RESET & BASICS
   ======================================== */

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

body {
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ========================================
   THEME CONTROLS (oben rechts)
   ======================================== */

   .controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;  /* Von 20px auf 10px reduziert */
    align-items: center;
    z-index: 1000;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    height: 40px;
}

.lang-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-right: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    font-family: 'EB Garamond', serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover {
    background: var(--hover-bg);
}

.lang-btn.active {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Theme Toggle Buttons */
.controls > button {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'EB Garamond', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.controls > button:hover {
    background: var(--hover-bg);
    transform: scale(1.05);
}

/* Mobile: Zentriert und vollständig sichtbar */
@media (max-width: 768px) {
    .controls {
        top: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        gap: 10px;
    }
    
    .language-switcher {
        height: 35px;
    }
    
    .lang-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
        flex-shrink: 0;  /* Verhindert Schrumpfen */
    }
    
    .controls > button {
        width: 35px !important;
        height: 35px !important;
        min-width: 35px;
        min-height: 35px;
        font-size: 18px;
        flex-shrink: 0;  /* Verhindert Schrumpfen */
    }
}

/* ========================================
   HEADER
   ======================================== */

header {
    text-align: center;
    padding: 80px 20px 60px;
    border-bottom: 2px solid var(--border-color);
}

header h1 {
    font-size: 64px;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.tagline {
    font-size: 20px;
    font-weight: 400;
    color: var(--accent-color);
    font-style: normal;
}

/* ========================================
   ACCORDION NAVIGATION
   ======================================== */

.accordion {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    background: none;
    border: none;
    font-family: 'EB Garamond', serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    color: var(--accent-color);
}

.accordion-header .icon {
    font-size: 28px;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.accordion-item.active .accordion-content {
    max-height: 2000px;
    padding: 20px 0 40px;
}

.accordion-content h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px;
}

.accordion-content p {
    margin-bottom: 15px;
}

.accordion-content ul {
    list-style: none;
    padding-left: 20px;
}

.accordion-content ul li {
    margin-bottom: 12px;
    position: relative;
}

.accordion-content ul li::before {
    content: '—';
    position: absolute;
    left: -20px;
}

.accordion-content a {
    color: var(--text-color);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.accordion-content a:hover {
    color: var(--accent-color);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 2px solid var(--border-color);
    font-size: 14px;
    color: var(--accent-color);
    margin-top: 80px;
}

/* Footer Links */
.footer-links {
    margin-top: 10px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}

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

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    header h1 {
        font-size: 42px;
    }
    
    .tagline {
        font-size: 18px;
    }
    
    .accordion-header {
        font-size: 24px;
        padding: 20px 0;
    }
    
    .controls {
        top: 10px;
        right: 10px;
    }
    
    .controls button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}
/* ========================================
   BOOK SECTION
   ======================================== */

   .book-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.book-section::before {
    display: none; /* Remove bullet point */
}

.book-container {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.book-cover {
    flex-shrink: 0;
}

.book-cover img {
    width: 200px;
    height: auto;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.book-cover img:hover {
    transform: scale(1.02);
}

.book-info h4 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 15px;
    line-height: 1.4;
}

.book-info p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.book-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.book-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-color);  /* GEÄNDERT: Hintergrund statt Text-Farbe */
    color: var(--text-color);     /* GEÄNDERT: Text statt Hintergrund-Farbe */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--text-color);
    transition: all 0.3s ease;
}

.book-btn:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.book-btn.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
}

.book-btn.secondary:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

/* Responsive */
@media (max-width: 768px) {
    .book-container {
        flex-direction: column;
    }
    
    .book-cover img {
        width: 150px;
    }
}

/* Sub-sections within accordion */
.sub-section {
    margin-bottom: 40px;
}

.sub-section:last-child {
    margin-bottom: 0;
}

.sub-section h3 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
/* ========================================
   VIDEO GRID
   ======================================== */

   .video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-left: -20px;  /* Kompensiert das li padding */
}

.video-item {
    display: flex;
    flex-direction: column;
}

/* Responsive 16:9 Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-color);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-item h5 {
    font-size: 18px;
    font-weight: 500;
    margin-top: 15px;
    margin-bottom: 8px;
}

.video-item p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--accent-color);
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}