/* ==========================================================================
   styles.css - Shared Base Styles
   Used by all pages in the portfolio
   ========================================================================== */

/* CSS Custom Properties / Design Tokens */
:root {
    /* Basiswerte */
    --base-font-size: 24px;
    --golden-ratio: 1.618;

    /* Schriftfamilien */
    --font-headings: 'Anton', sans-serif;
    --font-body: 'Slabo 27px', serif;

    /* Typografie-Skala basierend auf dem Goldenen Schnitt */
    --font-size-base: 32px;
    --font-size-h6: 24px;
    --font-size-h5: 39px;
    --font-size-h4: 63px;
    --font-size-h3: 102px;
    --font-size-h2: 165px;
    --font-size-h1: 267px;

    --font-size-footnote: 16px;
    --font-size-small: 15px;
    --font-size-tiny: 9px;

    /* Zeilenhöhen */
    --line-height-tight: 1.1;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.8;

    /* Abstände */
    --space-xs: 6px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 39px;
    --space-xl: 63px;
    --space-2xl: 102px;

    /* Farben - Coolors Palette */
    --color-yellow: #FFF275;
    --color-cyan: #9AE5E6;
    --color-orange: #FF8C42;
    --color-red: #FF3C38;
    --color-burgundy: #A23E48;

    /* Funktionale Farben */
    --color-primary: #FF8C42;
    --color-secondary: #9AE5E6;
    --color-accent: #FFF275;
    --color-highlight: #cc2b5e;
    --color-dark: #753a88;

    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-background: #FFFDFC;
    --color-surface: #FCF9F7;
    --color-border: #e5e7eb;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 32px;
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    cursor: none;
}

::selection {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

::-moz-selection {
    background-color: var(--color-secondary);
    color: var(--color-text);
}

* {
    cursor: none !important;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, opacity 0.15s ease-out, width 0.15s ease-out, height 0.15s ease-out, border-radius 0.15s ease-out;
}

.cursor.hover {
    transform: scale(2);
    opacity: 0.5;
}

.cursor.text-hover {
    width: 2px;
    height: 24px;
    border-radius: 1px;
    border: none;
    background: var(--color-secondary);
    transform: rotate(15deg);
    opacity: 1;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    line-height: var(--line-height-tight);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -2px;
}

h1 {
    font-size: clamp(48px, 10vw, var(--font-size-h1));
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(40px, 8vw, var(--font-size-h2));
    margin-bottom: var(--space-lg);
}

h3 {
    font-size: clamp(32px, 6vw, var(--font-size-h3));
    margin-bottom: var(--space-lg);
}

h4 {
    font-size: clamp(28px, 4vw, var(--font-size-h4));
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

h5 {
    font-size: clamp(24px, 3vw, var(--font-size-h5));
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
}

h6 {
    font-size: clamp(20px, 2vw, var(--font-size-h6));
    margin-bottom: var(--space-sm);
    letter-spacing: 0;
}

p {
    margin-bottom: var(--space-md);
    max-width: 50%;
}

/* Container */
.container {
    width: 80vw;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) 0 var(--space-2xl);
}

/* Footer */
.footer {
    margin-top: var(--space-2xl);
    padding: var(--space-lg) 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    list-style: none;
}

.footer-links a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-highlight);
}

/* Floating Action Panel */
.floating-actions {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    z-index: 9998;
    background: var(--color-surface);
    border-radius: 24px;
    padding: var(--space-sm);
    border: 1px solid var(--color-text);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    padding: var(--space-sm);
    border-radius: 12px;
}

.action-button:hover {
    background: #F9F4F0;
    color: var(--color-highlight);
}

.action-button svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1;
    transition: transform 0.3s ease;
}

.action-button:hover svg {
    transform: scale(1.1);
}

.action-label {
    font-size: var(--font-size-footnote);
    font-family: var(--font-body);
    color: var(--color-text-light);
}

.action-button:hover .action-label {
    color: var(--color-highlight);
}

/* Theme Switcher */
.theme-switcher {
    position: relative;
    width: 100%;
}

.theme-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s ease;
    padding: var(--space-sm);
    border-radius: 12px;
    background: none;
    border: none;
    width: 100%;
}

.theme-button:hover {
    background: #F9F4F0;
}

.theme-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(to bottom right, var(--color-highlight), var(--color-dark));
    transition: transform 0.3s ease;
}

.theme-button:hover .theme-circle {
    transform: scale(1.1);
}

/* Color Options */
.color-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
    padding: 0;
}

.color-options.active {
    opacity: 1;
    max-height: 200px;
    padding: var(--space-sm) 0;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
    align-self: center;
}

.color-option:hover {
    transform: scale(1.3);
    opacity: 0.8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Predefined Color Schemes */
.color-option[data-scheme="scheme1"] {
    background: linear-gradient(to bottom right, #cc2b5e, #753a88);
}

.color-option[data-scheme="scheme2"] {
    background: linear-gradient(to bottom right, #fea858, #ED765E);
}

.color-option[data-scheme="scheme3"] {
    background: linear-gradient(to bottom right, #50d5b7, #067d68);
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    h1, h2, h3, h4, h5, h6 {
        letter-spacing: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .cursor {
        display: none;
    }

    body {
        cursor: auto;
    }

    * {
        cursor: auto !important;
    }

    /* Mobile Panel Styles */
    .floating-actions {
        transform: translateX(200%);
        transition: transform 0.3s ease;
    }

    .floating-actions.active {
        transform: translateX(0);
    }

    /* Burger Menu */
    .burger-menu {
        display: flex;
        flex-direction: column;
        gap: 6px;
        position: fixed;
        right: var(--space-lg);
        bottom: var(--space-lg);
        width: 32px;
        height: 32px;
        z-index: 9997;
        cursor: pointer;
        padding: 4px;
    }

    .burger-line {
        width: 100%;
        height: 2px;
        background: var(--color-text);
        transition: all 0.3s ease;
    }

    .burger-menu.active .burger-line:first-child {
        transform: rotate(45deg) translateY(8px);
    }

    .burger-menu.active .burger-line:last-child {
        transform: rotate(-45deg) translateY(-8px);
    }
}

/* Hide cursor on desktop */
@media (min-width: 769px) {
    .cursor {
        display: block;
    }

    .burger-menu {
        display: none;
    }
}
