@charset "utf-8";

/* --- 0. FONTS (LOCAL) --- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/inter-300.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/inter-400.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/inter-600.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/playfair-400.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/playfair-400-italic.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/playfair-600.woff2') format('woff2');
    font-display: swap;
}

/* --- 1. VARIABLES & THEME --- */
:root {
    /* DARK MODE (DEFAULT) */
    --bg-color: #2f3336;
    --text-color: #f0eee9;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.15);
    --accent-light: #a2a9a4;
    --accent-dark: #5a6863;
    --divider-color: #5a6863;
    
    --section-spacing: 6rem;
    
    --grid-major: rgba(255, 255, 255, 0.04);
    --grid-minor: rgba(255, 255, 255, 0.02);
    --glow-color: rgba(162, 169, 164, 0.4);
    --spotlight: radial-gradient(circle at 50% 0%, #3a3f42 0%, transparent 70%);
    
    --switch-active-bg: #f0eee9;
    --switch-active-icon: #2f3336;
}

body.light-mode {
    --bg-color: #f0eee9;
    --text-color: #2f3336;
    --card-bg: #ffffff;
    --card-border: rgba(47, 51, 54, 0.15);
    --accent-light: #5a6863;
    --accent-dark: #a2a9a4;
    --divider-color: #a2a9a4;
    
    --grid-major: rgba(47, 51, 54, 0.06);
    --grid-minor: rgba(47, 51, 54, 0.03);
    --glow-color: rgba(47, 51, 54, 0.2);
    --spotlight: radial-gradient(circle at 50% 0%, #ffffff 0%, transparent 70%);
    
    --switch-active-bg: #2f3336;
    --switch-active-icon: #f0eee9;
}

/* --- 2. GLOBAL RESET --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.5s ease;
    
    /* Background Pattern */
    background-image:
      linear-gradient(var(--grid-major) 1px, transparent 1px),
      linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
      linear-gradient(var(--grid-minor) 1px, transparent 1px),
      linear-gradient(var(--grid-minor) 1px, transparent 1px),
      var(--spotlight);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px, 100% 100%;
    background-position: 0 0, 0 0, 10px 10px, 10px 10px, center top;
    background-attachment: fixed;
}

body.legal-page { padding: 2rem; }

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

h1, h2, h3, h4, .manifesto, .card-num { font-family: 'Playfair Display', serif; }

/* --- 3. HEADER & NAV --- */
header {
    padding: 1.5rem 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--divider-color);
}

.logo {
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-right: 1rem;
}

.ug-hint {
    font-size: 0.65rem;
    color: var(--accent-light);
    border: 1px solid var(--accent-dark);
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: 5px;
}

.header-contact {
    justify-self: end;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--text-color);
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-left: 1rem;
    transition: all 0.3s ease;
}

.header-contact:hover {
    padding-bottom: 2px;
}

/* Theme Switch */
.theme-switch-container {
    justify-self: center;
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 4px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.switch-option {
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.switch-icon { width: 14px; height: 14px; fill: currentColor; }

.switch-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background-color: var(--switch-active-bg);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    z-index: 1;
}

body:not(.light-mode) .option-dark { color: var(--switch-active-icon); }
body.light-mode .option-light { color: var(--switch-active-icon); }
body.light-mode .switch-slider { transform: translateX(100%); }

/* --- 4. HERO & LOGO LOGIC --- */
section {
    padding: var(--section-spacing) 0;
    border-top: none;
}

.hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1.5s ease-out;
    padding-top: 0;
    padding-bottom: 0;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 9vw, 7rem);
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    max-width: 900px;
    gap: 2rem;
}

.hero-logo-wrapper {
    width: 140px; 
    margin-bottom: 0; 
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-wrapper img {
    width: 100%;
    height: auto;
}

/* Logo Switching Logic */
.logo-mode-dark { 
    display: block !important;
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.4));
    transition: filter 0.3s ease;
}

.logo-mode-light { 
    display: none !important; 
}

body.light-mode .logo-mode-dark { 
    display: none !important;
}

body.light-mode .logo-mode-light { 
    display: block !important; 
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.2));
    transition: filter 0.3s ease;
}

.subline {
    flex: 1;
    font-size: 1.25rem;
    color: var(--accent-light);
    border-left: 2px solid var(--divider-color);
    padding-left: 2rem;
    line-height: 1.5;
}

/* --- 5. GRID & CARDS --- */
.portfolio-section {
    border-top: 1px solid var(--divider-color);
    padding-bottom: 6rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    border-bottom: none;
}

.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-light);
    font-weight: 600;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.card-num {
    font-size: 8rem;
    color: var(--text-color);
    opacity: 0.05;
    position: absolute;
    top: -2rem;
    right: -1rem;
    line-height: 1;
    transition: all 0.5s ease;
    z-index: 0;
    font-style: italic;
    pointer-events: none;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    margin-top: 1.5rem;
}

.card p {
    color: var(--accent-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.tag {
    font-size: 0.7rem;
    background-color: var(--card-border);
    padding: 4px 10px;
    border-radius: 50px;
    color: var(--text-color);
    transition: background 0.3s;
}

/* --- 6. PROCESS & ABOUT --- */
.process-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-top: none;
}

.process-section .section-header { border-bottom: none; margin-bottom: 2rem; }

.process-line {
    grid-column: 1 / -1;
    height: 1px;
    background-color: var(--divider-color);
    width: 100%;
    margin-bottom: 2rem;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
}

.process-step { position: relative; }

.process-step::before {
    content: '';
    position: absolute;
    top: -2.3rem;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--text-color);
    border-radius: 50%;
}

.process-step h3 { font-size: 1.5rem; margin-bottom: 1rem; color: var(--text-color); }
.process-step span { display: block; font-family: 'Inter', sans-serif; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-dark); margin-bottom: 0.5rem; }
.process-step p { color: var(--accent-light); font-size: 0.95rem; }

.about { border-top: none; padding-top: 2rem; padding-bottom: 8rem; }

.manifesto {
    font-size: clamp(1.6rem, 3.3vw, 2.6rem);
    line-height: 1.3;
    max-width: 900px;
    background: transparent;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 5px 0;
    text-shadow: 0 0 10px var(--bg-color), 0 0 20px var(--bg-color);
}

.cta-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    border: 1px solid var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    background: var(--bg-color);
    position: relative;
    z-index: 5;
}
.cta-link:hover { background-color: var(--text-color); color: var(--bg-color); }

/* --- 7. LEGAL PAGES --- */
h1.legal-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    margin-top: 2rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    border: 1px solid var(--text-color);
    padding: 0.5rem 1rem;
    transition: 0.3s;
}
.back-link:hover { background: var(--text-color); color: var(--bg-color); }

.legal-block { margin-bottom: 3rem; }
.legal-block h2 { font-size: 1.8rem; margin-top: 2rem; margin-bottom: 1rem; }
.legal-block h3 { font-size: 1.4rem; margin-top: 1.5rem; margin-bottom: 0.8rem; }
.legal-block p { margin-bottom: 1rem; }
.legal-block ul { margin-bottom: 1rem; padding-left: 1.5rem; }
.legal-block a { text-decoration: underline; }

/* Legal Grid (Top Area) */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 2rem;
    margin-bottom: 4rem;
}

.legal-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 4px;
    padding: 2rem;
    transition: border-color 0.3s ease;
    height: 100%;
}

.legal-card:hover { border-color: var(--accent-light); }

.legal-card h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 0.8rem;
}

/* Legal Plain Text (Bottom Area) */
.legal-plain-section { max-width: auto; }

.legal-plain-block {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 2rem;
}

.legal-plain-block:last-child { border-bottom: none; }

.legal-plain-block h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-card p, .legal-plain-block p {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-card a, .legal-plain-block a {
    text-decoration: none;
    border-bottom: 1px dotted var(--text-color);
    transition: color 0.3s;
}

.legal-card a:hover, .legal-plain-block a:hover {
    color: var(--accent-light);
    border-bottom-color: var(--accent-light);
}

/* --- 8. FOOTER --- */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--card-border);
    font-size: 0.85rem;
    color: var(--accent-light);
    background: transparent;
    position: relative;
    z-index: 5;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.socials a {
    margin-right: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}
.socials a:hover { opacity: 1; color: var(--text-color); }
.socials a:last-child { margin-right: 0; }

/* --- 9. ANIMATIONS & EFFECTS --- */
@media (hover: hover) {
    .card:hover {
        transform: translateY(-8px) scale(1.02);
        border-color: var(--accent-light);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 0 15px var(--glow-color);
        z-index: 10;
    }
    .card:hover .card-num {
        transform: translateX(-10px) scale(1.05);
        opacity: 0.1;
    }
    .hero-logo-wrapper:hover .logo-mode-dark {
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.7));
    }
    body.light-mode .hero-logo-wrapper:hover .logo-mode-light {
        filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.4));
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.card, .process-step { opacity: 0; animation: fadeIn 0.6s ease-out forwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.process-step { animation: fadeIn 0.8s ease-out forwards; }

/* --- 10. MEDIA QUERIES (MOBILE) --- */
@media (max-width: 768px) {
    header {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 0;
    }
    .header-contact { align-self: flex-start; border-bottom: 1px solid var(--text-color); }
    
    .hero h1 { margin-top: 6rem; margin-bottom: 8rem; line-height: 1.1; }
    .hero { padding-bottom: 5rem; }
    .portfolio-section { padding-top: 5rem; }
    
    .hero-content-wrapper { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .subline { border-left: 2px solid var(--divider-color); padding-left: 1.5rem; font-size: 1.05rem; line-height: 1.6; opacity: 0.9; }
    
    .hero-logo-wrapper { width: 100px; margin-bottom: 0; }
    
    .process-line, .process-step::before { display: none; }
    .process-grid { gap: 3rem; }
    .process-step { padding-left: 1rem; border-left: 1px solid var(--divider-color); }
    
    .legal-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .legal-card { padding: 1.5rem; }
    .legal-plain-section { padding-left: 0; padding-right: 0; }
}

/* --- 11. ACCESSIBILITY --- */

.skip-link {
    position: absolute;
    top: -1000px;
    left: 0;
    background-color: var(--text-color);
    color: var(--bg-color);
    padding: 1rem 1.5rem;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.skip-link:focus {
    top: 0;
    outline: none;
}

button:focus-visible, 
a:focus-visible, 
.theme-switch-container:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 4px;
}

h2.section-label {
    font-family: 'Inter', sans-serif; 
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-light);
    font-weight: 600;
    margin: 0; 
    display: inline-block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- 12. COOKIEBOT --- */

#CybotCookiebotDialog {
    background-color: #f0eee9 !important; /* Creme */
    color: #2f3336 !important; /* Dunkelgrau */
    font-family: 'Inter', sans-serif !important;
    border: 1px solid #2f3336 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

#CybotCookiebotDialogBodyContentTitle {
    color: #2f3336 !important;
    font-family: 'Playfair Display', serif !important;
}

#CybotCookiebotDialogBodyContentText,
.CybotCookiebotDialogBodyLink,
#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetails a {
    color: #2f3336 !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
    background-color: #2f3336 !important;
    color: #f0eee9 !important;
    border: 1px solid #2f3336 !important;
    border-radius: 0 !important;
    transition: all 0.3s ease !important;
}
#CybotCookiebotDialogFooter #CybotCookiebotDialogBodyButtonAccept, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonAccept, #CybotCookiebotDialogFooter #CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll {
    background-color: #2f3336 !important;
    border-color: #2f3336 !important;
    color: #ffffff;
}

#CybotCookiebotDialog.CybotEdge #CybotCookiebotDialogBodyEdgeMoreDetails a {
    color: #2f3336 !important;
}

#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowAll:hover {
    background-color: transparent !important;
    color: #2f3336 !important;
}

#CybotCookiebotDialogBodyButtonDecline,
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowSelection {
    background-color: transparent !important;
    color: #2f3336 !important;
    border: 1px solid #2f3336 !important;
    border-radius: 0 !important;
}

#CybotCookiebotDialogBodyButtonDecline:hover,
#CybotCookiebotDialogBodyLevelButtonLevelOptinAllowSelection:hover {
    background-color: rgba(47, 51, 54, 0.1) !important;
}

.CybotCookiebotDialogDetailBodyContentTabsItem {
    color: #2f3336 !important;
    border-color: #2f3336 !important;
}
.CybotCookiebotDialogDetailBodyContentTabsItem[data-active="true"] {
    background-color: #2f3336 !important;
    color: #f0eee9 !important;
}

#CybotCookiebotDialogHeaderLogosWrapper {
	display: none !important;
}