/* ===== Farbprofil (N26-inspiriert) ===== */
:root {
    --primary: #2b6777; /* tiefes Teal */
    --secondary: #52ab98; /* teal-gr�n */
    --accent: #c8d8e4; /* helles blau-grau */
    --surface: #ffffff; /* Karten/Fl�chen */
    --bg: #f2f2f2; /* Seitenhintergrund */
    --text: #24323a; /* Haupttext */
    --muted: #6a7a86; /* sekund�rer Text */
}

/* Global */
body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    max-width: 1700px;
    margin: 0 auto;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding: 0;
}

/* Alle Links in Sekundärfarbe */
a {
    color: var(--secondary);
    text-decoration: none; /* Unterstreichung standardmäßig aus */
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

/* Hover-Effekt für bessere UX */
a:hover {
    color: var(--primary); /* Optional: Hover in Primärfarbe */
    text-decoration: underline;
    padding: 7px;
}

section {
    max-width: 80%;
    margin: auto;
    padding: 30px;
    text-align: center;
}

html {
    background: linear-gradient(to bottom, var(--accent), var(--bg));
    font-size: 16px;
    margin: 0;
}

#shrink-sentinel {
    height: 10px;
}


/* Navigation Bar */
/* 1) nav klebt */
nav {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.about-project {
    max-width: 98%;
    padding: 5px 10px;
    text-align: left;
    display: flex;
    justify-content: right;
  }

  .about-project details{
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    max-width: 60%;
  }
  .about-project summary{
    font-weight: 700;
    color: var(--primary);
    list-style: none;
    cursor: pointer;
  }
  .about-project summary::-webkit-details-marker{display:none;}
  .about-project p{margin:10px 0 6px; line-height:1.5;}
  .btn-link{
    display:inline-block; margin-top:4px; font-weight:600;
    text-decoration: underline; color: var(--secondary);
  }

/* 2) #home ohne negatives Margin */
#home {
    /* background + padding etc. bleiben wie gehabt */
    background: linear-gradient(to right, var(--primary), var(--secondary));
    padding: 1rem;
    margin: 0 -1rem;  
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #ffffff;
    border-radius: 15px;
    transition: padding .25s ease, border-radius .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}


/* Kompakter Header */
#home.compact {
    padding: .6rem ;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    /* wichtig: alle inneren Inhalte auf eine Linie zwingen */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Bereich mit Name, Mail, Telefon nebeneinander */
#home.compact .header-left {
    padding-left: 5svw;
    display: flex;
    align-items: center;
    gap: 0.7rem; /* Abstand zwischen den Elementen */
}

/* Name im kompakten Modus etwas kleiner */
#home.compact .profile_name {
    font-size: 1.1rem;
    padding: 0;
}

/* Mail und Telefon auch kleiner */
#home.compact .contact_info {    
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    gap: 0.3rem;
}

#home.compact .topdiv{
    padding-right: 5svw;
}



.header-left{
    padding-left: 10svw;
}

.topdiv{
    padding-right: 10svw;
}

.profile_name {
    font-size: 1.8rem;
    font-weight: bold;
    padding: 30px;
}

.contact_info {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.contact_info img {
    width: 20px;
    margin-right: 10px;
}

.topmenu {
    color: #ffffff;
    margin: 0 15px;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    border-radius: 10px;
}

.topmenu:hover {
    color: #ffffff;
    font-weight: bold;
    text-decoration: underline;
    transform: scale(1.1);
    background-color: rgba(255, 255, 255, 0.15);
}

/* About Me Section */
#about-me {
    display: flex;
    align-items: center;
    text-align: left;
}

.about-me-text{
    padding: 20px;
    
}

.profile_image {
    width: 250px;
    height: 320px;
    margin-right: 2rem;
    border-radius: 5%;
    border: 1px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#about-me h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.primary-icon {
    filter: brightness(0) saturate(100%) invert(24%) sepia(28%) saturate(666%) hue-rotate(147deg) brightness(92%) contrast(91%);
}


#about-me p {
    font-size: 1.2rem;
    color: var(--text);
    line-height: 1.8;
}

/* Skills Section */

/* ----- Skills Grid (Ampel) ----- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    background-color: color-mix(in srgb, var(--primary) 15%, transparent);
    
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: .8rem .9rem;
    box-shadow: 0 3px 6px rgba(0,0,0,.08);
}

    .skill-item img {
        width: 45px;
        height: 45px;
        object-fit: contain;
        
    }

.skill-name {
    font-weight: 600;
    color: var(--text);
}

.skill-dot {
    margin-left: auto;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(0,0,0,0.04) inset;
}

/* Ampel-Farben */
:root {
    --lvl-5: #2ecc71; /* gr�n */
    --lvl-4: #a3d977; /* gr�n-gelb */
    --lvl-3: #f1c40f; /* gelb */
    --lvl-2: #cfc88a; /* grau-gelb */
    --lvl-1: #b0b7c3; /* grau */
}

.skill-item[data-level="5"] .skill-dot {
    background: var(--lvl-5);
}

.skill-item[data-level="4"] .skill-dot {
    background: var(--lvl-4);
}

.skill-item[data-level="3"] .skill-dot {
    background: var(--lvl-3);
}

.skill-item[data-level="2"] .skill-dot {
    background: var(--lvl-2);
}

.skill-item[data-level="1"] .skill-dot {
    background: var(--lvl-1);
}

/* ----- Legende oberhalb des Skill-Grids ----- */
.skills-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--surface);    
    border: 1px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.05);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .95rem;
    color: var(--text);
    font-weight: 500;
}

.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05) inset;
}

    /* Gleiche Farben wie beim Grid */
    .legend-dot[data-level="5"] {
        background: var(--lvl-5);
    }

    .legend-dot[data-level="4"] {
        background: var(--lvl-4);
    }

    .legend-dot[data-level="3"] {
        background: var(--lvl-3);
    }

    .legend-dot[data-level="2"] {
        background: var(--lvl-2);
    }

    .legend-dot[data-level="1"] {
        background: var(--lvl-1);
    }


/* Highlight wichtiger Skills */
.highlight-skill {
    background: var(--surface);
    border: 3px solid color-mix(in srgb, var(--lvl-4) 30%, transparent);
    
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

    .highlight-skill:hover {
        background-color: color-mix(in srgb, var(--secondary) 15%, transparent);
        border: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }





/* Projects Section */
.projects { 
    max-width: 85%; 
    margin: 40px auto; 
    padding: 0 16px; 
}

.projects-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: grid; 
    gap: 18px; 
}

.project {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  background: var(--surface, #fff);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
  padding: 14px;
}

.project:hover{
    border-radius: 10px;
    transform: translate(-10px, -10px);
    transform: scale(105%);
    transition: color 0.3s ease, transform 0.3s ease;
}

.project-media img {
  width: 100%; height: auto; border-radius: 10px;
  object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.project-header {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}

.project-time {
  margin-left: auto;
  font-size: .9rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--secondary) 18%, white);
  color: var(--secondary);
}

.project-desc { 
    margin: 8px 0 6px;
    text-align: left; 
}

.project-meta { 
    display: grid; 
    gap: 8px; 
    margin-top: 6px; 
    text-align: left;
}

.project-meta strong { 
    margin-right: 8px; 
    color: var(--primary); 
}

.tech-badges { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 6px; 
    margin: 6px 0 0; 
    padding: 0; 
    list-style: none; 
}

.tech-badges li {
  font-size: .85rem; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent);
}

@media (max-width: 880px) {
  .project { grid-template-columns: 1fr; }
  .project-media { order: -1; }
  .project-time { margin-left: 0; }
}


/* Zertifikate */

.certificates {
    max-width: 65%;
    margin: 40px auto;
    padding: 0 15px;
    
  }

  .cert-into{
    text-align: left;
    color: var(--primary);
  }
  
  .certificates h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    
  }
  
  .certificate-card {
    background: var(--surface);
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 12px 18px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-align: left;
    color: var(--primary);
  }
  .cert-meta{
    text-transform: capitalize;
    font-size: larger;
    font-weight: 600;
  }
  
  .certificate-card summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--secondary);
    font-size: 1.1rem;
    list-style: none;    
  }
  
  .certificate-card summary::-webkit-details-marker {
    display: none;
  }
  
  .certificate-card[open] {
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }
  
  .certificate-content {
    margin-top: 15px;
    text-align: left;
    color: var(--primary);
  }
  
  .certificate-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }
  
  .certificate-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    
  }
  
  .certificate-links {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  
  


/* Recommendations */
.all_recommendations {
    background: var(--accent);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin: 1rem;
    font-style: italic;
    color: var(--text);
    display: flex;
    gap: 1rem; 
    justify-content: center;
    flex-wrap: wrap;
}

.recommendation {
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    margin: 1rem;
    font-style: italic;
    color: var(--text);
    max-width: 25%;
    border: 1px solid var(--accent);
    position: relative;
}

.recommendation span {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

.recommendation::before {
    content: "Demo-Inhalt";
    position: absolute;
    top: 50px;
    right: 20px;
    background-color: color-mix(in srgb, var(--lvl-5) 30%, transparent);
    color: #222;
    font-size: 1.7rem;
    font-weight: bold;
    padding: 12px;
    border-radius: 10px;
    transform: translate(20px);
    transform: rotate(30deg);
}


/* Buttons */
button {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border: none;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transform: scale(1.05);
}

/* Scroll to Top Button */
.iconbutton {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.iconbutton a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
}

/* Fieldset Styling */
fieldset {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

fieldset legend {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-align: center;
}

input, textarea {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    width: calc(100% - 20px); 
    margin: 10px 0;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

textarea {
    resize: vertical;
}

/* Popup Styling */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    max-width: 400px;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    text-align: center;
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Ensure it's fully hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth show/hide */
    z-index: 1001; /* Place it above other elements */
}

.popup img {
    margin-bottom: 1rem;
}

.popup button {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    border: none;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    margin-top: 1rem;
}

.popup button:hover {
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transform: scale(1.05);
}

/* Backdrop */
.popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Ensure it's fully hidden */
    transition: opacity 0.3s ease, visibility 0.3s ease; /* Smooth fade-in/out */
    z-index: 1000; /* Place below the popup */
}


/* ===== Responsive: Layout, Typo, Grids, Header ===== */

/* 1) Große Screens etwas luftiger halten */
@media (max-width: 1400px) {
    section { max-width: 88%; }
    .projects { max-width: 90%; }
    .certificates { max-width: 72%; }
  }
  
  /* 2) Desktop → Tablet */
  @media (max-width: 1200px) {
    html { font-size: 15.5px; }
  
    /* Header-Paddings etwas enger */
    .header-left { padding-left: 6svw; }
    .topdiv { padding-right: 6svw; }
  
    /* Skills: 5 → 4 Spalten */
    .skills-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  
    /* Projekte: Bild etwas kleiner halten */
    .project { grid-template-columns: 280px 1fr; }
  }
  
  /* 3) Tablet Querformat */
  @media (max-width: 992px) {
    html { font-size: 15px; }
    section { max-width: 92%; padding: 24px; }
  
    /* Header: Menüs kompakter */
    #home { gap: .75rem; }
    .profile_name { font-size: 1.4rem; padding: 16px; }
    .topmenu { margin: 0 10px; font-size: .95rem; }
  
    /* About-me: untereinander */
    #about-me { flex-direction: column; text-align: center; }
    .about-me-text { padding: 12px; text-align: left; }
    .profile_image { width: 220px; height: 280px; margin: 0 auto 1rem; }
  
    /* Projekte: 2-Spalten → 1-Spalte */
    .project { grid-template-columns: 1fr; }
    .project-media { order: -1; }
    .project-time { margin-left: 0; }
  
    /* Zertifikate breiter und lesbarer */
    .certificates { max-width: 84%; }
  }
  
  /* 4) Tablet Hochformat / kleines Tablet */
  @media (max-width: 768px) {
    html { font-size: 14.5px; }
    section { padding: 20px; }
  
    /* Header enger, Navigation wrappt sauber */
    #home { flex-wrap: wrap; row-gap: .5rem; }
    .header-left { padding-left: 4svw; gap: .5rem; }
    .topdiv { padding-right: 4svw; }
  
    /* Skills: 4 → 3 Spalten */
    .skills-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .skill-item { padding: .7rem .8rem; }
    .skill-item img { width: 40px; height: 40px; }
  
    /* Legende dichter */
    .skills-legend { gap: 1rem; padding: .6rem .8rem; }
  
    /* Empfehlungen: Karten in voller Breite stapeln */
    .recommendation { max-width: 100%; margin: .75rem 0; }
    .all_recommendations { padding: .8rem; gap: .8rem; }
  }
  
  /* 5) Mobile groß */
  @media (max-width: 640px) {
    html { font-size: 14px; }
  
    /* Header: typografisch kleiner, Buttons enger */
    .profile_name { font-size: 1.2rem; padding: 10px; }
    .contact_info { font-size: .95rem; }
    .topmenu { font-size: .95rem; margin: 0 8px; }
  
    /* Skills: 3 → 2 Spalten */
    .skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  
    /* Projekte: Bildhöhe flexibel */
    .project-media img { border-radius: 8px; }
  
    /* Zertifikate fast full-width */
    .certificates { max-width: 92%; }
    .certificate-card { padding: 12px 14px; }
    .cert-meta { font-size: 1rem; }
  }
  
  /* 6) Mobile klein */
  @media (max-width: 480px) {
    html { font-size: 13.5px; }
    section { padding: 16px; }
  
    /* Header: noch kompakter */
    #home { padding: .7rem; border-radius: 12px; }
    #home.compact { padding: .5rem; }
    .topmenu { font-size: .9rem; margin: 0 6px; }
  
    /* About-me Typo */
    #about-me h1 { font-size: 1.8rem; }
    #about-me p { font-size: 1rem; line-height: 1.7; }
  
    /* Skills: 2 Spalten behalten, Icons kleiner */
    .skill-item img { width: 36px; height: 36px; }
  
    /* Projektkarten enger & ohne Hover-Shift */
    .project { padding: 12px; }
    .project:hover { transform: none; }
  
    /* Empfehlungen-Badge kleiner */
    .recommendation::before { font-size: 1.1rem; top: 36px; right: 10px; }
  
    /* Scroll-to-top Button kleiner */
    .iconbutton { width: 44px; height: 44px; bottom: 1.2rem; right: 1.2rem; }
  }
  
  /* 7) Sehr kleine Geräte / schmale Breite */
  @media (max-width: 360px) {
    .skills-grid { grid-template-columns: 1fr; }
    .profile_image { width: 180px; height: 230px; }
    .topmenu { font-size: .85rem; margin: 0 4px; }
  }
  
  /* 8) Reduzierte Bewegung (Zugänglichkeit) */
  @media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  }
  