:root {
    --bg-dark: #2E4057;
    /* tiefes Blau-Grau */
    --bg-light: #FAF5F0;
    /* sanftes Warmweiß mit leichtem Beige */
    --accent: #E76F51;
    /* warmes Korallenrot */
    --text: #3B3B3B;
    /* sattes Dunkelgrau */
    --text-light: #A8DADC;
    /* weiches Aqua */

    /* Ergänzungen */
    --accent-dark: #C45A3C;
    /* dunklere Koralle für Hover */
    --accent-light: #FFD6BA;
    /* helles Pfirsichrosa */
    --bg-muted: #E0E1DD;
    /* warmes Hellgrau */
    --highlight: #F4A261;
    /* sonniges Orange */
    --shadow: rgba(0, 0, 0, 0.1);
    /* weicher Schatten */
    --modal-shadow: rgba(0, 0, 0, 0.3);
    /* stärkerer Schatten */
    --white: #ffffff;
}

/* Allgemeine Layout-Styles */
body {
    background-color: var(--bg-light);
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 20px;
}

html {
    scroll-behavior: smooth;
}

/* Header */
header {
  position: relative;
  background: url('header_background.jpg');
  background-size: cover;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-light);
  min-height: 300px;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

header > * {
  position: relative;
  z-index: 1;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2em;
}

.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px var(--shadow);
}

.cta:hover {
    transform: translateY(-2px);
    background-color: var(--accent-dark);
}

/* Sections */
section {
    padding: 20px 20px;
    max-width: 1200px;
    margin: auto;
}

section:nth-child(even) {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--bg-dark);
}

/* Listen */
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    position: relative;
    padding-left: 2em;
    line-height: 1.6;
}

ul li::before {
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.checklist li::before {
    content: "✔️";
}

.pointlist li::before {
    content: '•';
}

.leistungen-abschluss {
    margin-top: 30px;
    font-size: 1.1em;
    color: var(--text);
}

/* Über mich */
.ueber-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}
.profilfoto {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 100px;
    box-shadow: 0 4px 12px var(--shadow);
    flex-shrink: 0;
}

.ueber-text {
    flex: 1;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--shadow);
    padding: 0px 20px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--accent);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow);
}

/* Footer */
footer {
    background: var(--bg-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Modal overlay */
#impressum-overlay {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5000;
}

#impressum-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#impressum-card {
    border: 2px solid var(--bg-dark);
    background-color: var(--bg-light);
    color: var(--bg-dark);
    background: var(--white);
    max-width: 600px;
    width: 90%;
    max-height: calc(100% - 40px);
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 0 20px var(--modal-shadow);
    border-radius: 8px;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#impressum-overlay.active #impressum-card {
    border: 2px solid var(--bg-dark);
    background-color: var(--bg-light);
    color: var(--bg-dark);
    transform: scale(1);
    opacity: 1;
}

nav {
    background-color: var(--bg-dark);
    text-align: center;
    padding: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: var(--white);
    margin: 0 20px;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: var(--accent-light);
}

#close-impressum {
    background-color: var(--bg-dark);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
}

#close-impressum:hover {
    background-color: var(--accent);
}