/* =========== GRUNDEINSTELLUNGEN & FARBPALETTE =========== */
:root {
    --color-bg: #1a1a1d;
    --color-bg-card: #2c2c30;
    --color-text: #e1e1e1;
    --color-text-muted: #9a9a9a;
    --color-accent: #007aff;
    --color-border: #444;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Light Mode Variables */
[data-theme="light"] {
    --color-bg: #f5f6f8;
    --color-bg-card: #ffffff;
    --color-text: #2c3e50;
    --color-text-muted: #6c757d;
    --color-accent: #007aff;
    --color-border: #e9ecef;
}

/* Theme Toggle Button */
.theme-toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
    z-index: 1000;
}

.theme-toggle {
    background: var(--color-bg-card);
    border: 2px solid var(--color-border);
    border-radius: 25px;
    width: 120px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    color: var(--color-text);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding: 0 14px;
}

[data-theme="light"] .theme-toggle {
    border-color: #bfc2c9;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.toggle-text {
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    transition: color 0.3s ease;
}

.toggle-slider {
    position: absolute;
    top: 50%;
    left: 6px;
    width: 36px;
    height: 36px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 1.5px solid #fff;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    z-index: 1;
    box-sizing: border-box;
    transform: translateY(-50%);
}

[data-theme="light"] .toggle-slider {
    border-color: #bfc2c9;
}

[data-theme="light"] .toggle-slider {
    transform: translateY(-50%) translateX(72px);
}

[data-theme="light"] .toggle-text:first-child {
    color: var(--color-text);
}

[data-theme="light"] .toggle-text:last-child {
    color: var(--color-accent);
}

/* Mobile optimization for theme toggle */
@media (max-width: 600px) {
    .theme-toggle {
        width: 100px;
        height: 35px;
    }
    
    .toggle-slider {
        width: 27px;
        height: 27px;
    }
    
    [data-theme="light"] .toggle-slider {
        transform: translateY(-50%) translateX(65px);
    }
    
    .toggle-text {
        font-size: 0.8rem;
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; }
.container { max-width: 900px; margin: 0 auto; padding: 2rem; }
h1, h2, h3, h4 { line-height: 1.2; margin-bottom: 0.5rem; }
h1 { font-size: 2.8rem; font-weight: 700; color: #fff; }

[data-theme="light"] h1 {
    color: var(--color-text-muted);
}

[data-theme="light"] .collapsible.active {
    color: var(--color-text-muted);
}

[data-theme="light"] .collapsible {
    color: var(--color-accent);
}
h2 { 
    font-size: 2rem; 
    font-weight: 600; 
    color: var(--color-accent); 
    padding-bottom: 0.5rem; 
    border-bottom: none; 
    margin-bottom: 30px; 
    margin-top: 80px;
}
h3 { font-size: 1.25rem; color: var(--color-accent); }
h4 { font-size: 1rem; color: var(--color-text-muted); font-weight: 400; }
a { color: var(--color-accent); text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.8; }
ul { list-style: none; padding-left: 1.2rem; }
ul:not(.hobby-list):not(.skill-card-wide ul) li { position: relative; margin-bottom: 0.5rem; }
ul:not(.hobby-list):not(.skill-card-wide ul) li::before { content: '+'; position: absolute; left: -1.2rem; color: var(--color-accent); font-weight: 600; }

/* HERO / HEADER */
.hero {
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  max-width: 1300px;
  width: 100%;
  padding: 4rem 0 2rem 0;
  padding-bottom: 0;
}
.hero > * {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.profile-picture { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 4px solid var(--color-accent); margin-bottom: 1.5rem; box-shadow: 0 4px 20px rgba(0, 122, 255, 0.2); }
.subtitle { font-size: 1.2rem; color: var(--color-text-muted); margin-bottom: -50px; }
.contact-info {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.contact-info span, .contact-info a {
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.2s, font-size 0.2s, text-decoration 0.2s;
}

[data-theme="light"] .contact-info span,
[data-theme="light"] .contact-info a {
  color: var(--color-text-muted);
}

[data-theme="light"] .contact-info span:hover,
[data-theme="light"] .contact-info a:hover {
  color: var(--color-accent);
}
.contact-info a {
  text-decoration: none;
}
.contact-info span:hover, .contact-info a:hover {
  color: var(--color-accent);
  font-size: 1.2rem;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

[data-theme="light"] .contact-info span:hover,
[data-theme="light"] .contact-info a:hover {
  color: var(--color-accent);
  font-size: 1.2rem;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 2px;
}

.contact-icon {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
  margin-right: 0.4em;
  transition: transform 0.2s ease;
  filter: brightness(0) invert(1); /* Macht SVG weiß im dunklen Modus */
}

[data-theme="light"] .contact-icon {
  filter: brightness(0) invert(0); /* Macht SVG schwarz im hellen Modus */
}

.contact-info span:hover .contact-icon,
.contact-info a:hover .contact-icon {
  transform: scale(1.1);
}

/* =========== NEU: INTRO / ANSPRACHE =========== */
.intro-bg {
  background: rgba(0,122,255,0.08);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-top: 50px;
  padding-bottom: 30px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero, .intro-section {
  max-width: 1300px;
  width: 100%;
}
.intro-section {
  text-align: left;
  margin: 0 auto 54px auto;
  align-items: center;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}
.intro-section > * {
  width: 100%;
  max-width: 700px;
}
.intro-section .greeting {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 2rem;
}
.intro-section p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}
.intro-section .signature {
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  padding-bottom: 0;
}

/* SEKTIONEN & KARTEN */
section { margin-bottom: 30px; }
.card {
  background-color: var(--color-bg-card);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-top: 0;
}
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.skill-card { background-color: var(--color-bg-card); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--color-border); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
.skill-card h3 { margin-bottom: 1rem; }
.skill-card p { font-size: 0.9rem; color: var(--color-text-muted); }
.skill-card-wide {
  grid-column: 1 / -1;
  background-color: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.skill-card-wide:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.skill-card-wide h3 {
  margin-bottom: 1rem;
}
.skill-card-wide p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.skill-card-wide ul {
  list-style: none;
  padding-left: 1.2rem;
}
.skill-card-wide li {
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--color-text);
}
.skill-card-wide li::before {
  content: '+';
  position: absolute;
  left: -1.2rem;
  color: var(--color-accent);
  font-weight: 600;
}
.skill-card-wide strong {
  color: var(--color-text);
  font-weight: 600;
}

/* TIMELINE */
.timeline { 
  position: relative; 
  padding-left: 0; 
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item { 
  position: relative; 
  margin-bottom: 2.5rem; 
  text-align: left;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-date { 
  max-width: 800px;
  margin: 0 auto 0.5rem auto;
  text-align: left;
  font-weight: 600;
  color: var(--color-text-muted);
}
.timeline-content {
  background-color: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  text-align: left;
}
.timeline-content h3 { margin-top: 0; }

/* HOBBY LISTE */
.hobby-list { display: flex; flex-wrap: wrap; gap: 1rem; padding-left: 0; }
.hobby-list li { background-color: var(--color-bg-card); padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.9rem; border: 2px solid var(--color-accent); color: var(--color-text); }

/* HOBBYS SEKTION */
section[data-aos="fade-up"]:last-of-type {
  margin-top: 100px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
}

/* FAKTEN SEKTION */
.facts-section {
  margin-bottom: 30px;
  text-align: center;
  padding: 3rem 2rem;
  background-color: transparent;
  border-radius: 12px;
  border: 1px solid var(--color-bg-card);
}

.facts-section h2 {
  margin-bottom: 2rem;
  color: var(--color-text-muted);
  border-bottom: none;
  padding-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 0;
}

.fact-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.fact-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 0;
  transition: opacity 0.5s ease;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .container {
    padding: 1rem;
  }
  
  .intro-bg {
    padding-left: 0;
    padding-right: 0;
  }
  
  .hero, .intro-section {
    max-width: 98vw;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .intro-section > * {
    max-width: 98vw;
  }
  
  .profile-picture {
    width: 180px;
    height: 180px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.6rem;
    margin-top: 50px;
    margin-bottom: 20px;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .skill-card {
    padding: 1.2rem;
  }
  
  .skill-card-wide {
    padding: 1.2rem;
  }
  
  .timeline {
    padding-left: 0;
    max-width: 100%;
  }
  
  .timeline-content {
    padding: 1.2rem;
  }
  
  .hobby-list {
    gap: 0.8rem;
  }
  
  .hobby-list li {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  
  .download-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .fact-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .facts-section {
    padding: 2rem 1rem;
  }
  
  .contact-info-top {
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 1.2rem;
    font-size: 1rem;
  }
  
  .contact-info span, .contact-info a {
    font-size: 1rem;
  }
  
  .contact-icon {
    width: 1.1em;
    height: 1.1em;
  }
  
  .intro-section p {
    font-size: 1rem;
  }
  
  .intro-section .greeting {
    font-size: 1.3rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.4rem;
    margin-top: 35px;
    margin-bottom: 15px;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .profile-picture {
    width: 210px;
    height: 210px;
  }
  
  .timeline {
    padding-left: 0;
  }
  
  .fact-text {
    font-size: 0.9rem;
  }
  
  .facts-section {
    padding: 1.5rem 0.8rem;
  }
  
  .contact-icon {
    width: 1em;
    height: 1em;
  }
}

.collapsible {
  background: var(--color-bg-card);
  color: var(--color-accent);
  cursor: pointer;
  padding: 1rem 1.5rem;
  width: 100%;
  border: 2px solid var(--color-border);
  text-align: left;
  outline: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  margin: 2rem 0 0.5rem 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.7em;
  position: relative;
  transition: all 0.3s ease;
}
.collapsible::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
  transition: all 0.3s;
  position: relative;
  top: -3px;
}
.collapsible.active::before {
  width: 2px;
  height: 18px;
}
.collapsible:hover {
  background: var(--color-bg-card);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.collapsible.active {
  background: var(--color-bg-card);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0,122,255,0.2);
}

/* EINZIGE Regel für hellen Modus - direkt und einfach */
html[data-theme="light"] .collapsible.active {
  background: #f1f3f6 !important;
  color: #6c757d !important;
}
html[data-theme="light"] .collapsible.active *,
html[data-theme="light"] button.collapsible.active,
html[data-theme="light"] button.collapsible.active *,
html[data-theme="light"] .timeline-block .collapsible.active,
html[data-theme="light"] .timeline-block .collapsible.active * {
  color: #6c757d !important;
  fill: #6c757d !important;
}

.collapsible-content {
  display: none;
  overflow: hidden;
  background: rgba(0,122,255,0.08);
  border-left: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,122,255,0.06);
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem 1.5rem 0.6rem 1.5rem;
}

.timeline-block {
  position: relative;
  margin-bottom: 2rem;
}
.timeline-block::before {
  content: none;
}
.timeline-block .collapsible {
  border: none;
  display: block;
  margin: 0 auto;
  width: 90%;
}
.timeline-block .category-dot {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,122,255,0.15);
  z-index: 3;
}

.contact-info-top {
  justify-content: center;
  align-items: center;
  display: flex;
  gap: 2.2rem;
  font-size: 1.15rem;
  margin: 0 auto 2.5rem auto;
  max-width: 1140px;
  padding-top: 2.2rem;
}
@media (max-width: 900px) {
  .contact-info-top {
    flex-direction: column;
    gap: 0.7rem;
    padding-top: 1.2rem;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0 auto;
  max-width: 700px;
  width: 100%;
}

.personal-info-label {
  color: #8a8a8a;
  font-weight: 600;
}

/* DOWNLOAD SEKTION */
.download-section {
  text-align: left;
  margin-bottom: 30px;
}

.download-section .card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
}
.download-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.download-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-card);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 2.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  gap: 0.7em;
  margin: 0;
}
.download-btn span {
  display: block;
}
.download-btn:hover,
.download-btn.active {
  background: #fff;
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 4px 15px rgba(0,122,255,0.08);
}

/* =========== IMPRESSUM =========== */
.impressum-section {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.impressum-content {
    display: grid;
    gap: 2rem;
}

.impressum-block {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.5rem;
}

.impressum-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.impressum-block h3 {
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.impressum-block h4 {
    color: var(--color-text);
    margin: 1.5rem 0 0.5rem 0;
    font-size: 1rem;
}

.impressum-block p {
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.impressum-block strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left {
    text-align: left;
    flex: 1;
    min-width: 200px;
}

.footer-right {
    text-align: right;
    flex-shrink: 0;
}

footer p {
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

/* Mobile optimization for footer */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-left {
        text-align: center;
        order: 2;
    }
    
    .footer-right {
        text-align: center;
        order: 1;
    }
}

.impressum-link {
    color: var(--color-accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.impressum-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Mobile optimization for impressum */
@media (max-width: 600px) {
    .impressum-content {
        gap: 1.5rem;
    }
    
    .impressum-block {
        padding-bottom: 1rem;
    }
    
    .impressum-block h3 {
        font-size: 1rem;
    }
    
    .impressum-block h4 {
        font-size: 0.9rem;
    }
    
    .impressum-block p {
        font-size: 0.9rem;
    }
}

html[data-theme="light"] button.collapsible.active,
html[data-theme="light"] button.collapsible.active *,
html[data-theme="light"] .collapsible.active,
html[data-theme="light"] .collapsible.active * {
  background: #f1f3f6 !important;
  color: #6c757d !important;
  fill: #6c757d !important;
}

[data-theme="light"] .collapsible-content {
  background: #e3e5ea;
}
[data-theme="light"] .intro-bg {
  background: #e3e5ea;
}

[data-theme="light"] .timeline-item {
  background: #e3e5ea;
}
[data-theme="light"] .timeline-date {
  background: transparent;
}

[data-theme="light"] .collapsible,
[data-theme="light"] .collapsible.active {
  box-shadow: 0 2px 12px #bfc2c9;
}
[data-theme="light"] .collapsible:hover {
  box-shadow: 0 4px 15px #bfc2c9;
}
[data-theme="light"] .download-btn,
[data-theme="light"] .download-btn:hover,
[data-theme="light"] .download-btn.active {
  box-shadow: 0 2px 12px #bfc2c9;
}
[data-theme="light"] .download-btn:hover,
[data-theme="light"] .download-btn.active {
  box-shadow: 0 4px 15px #bfc2c9;
}
[data-theme="light"] .timeline-block .category-dot {
  box-shadow: 0 2px 8px #bfc2c9;
}
