/* Stammbrüder Website - Modern Stylesheet */

/* Local Fonts - Variable Fonts */
@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter[wght].woff2') format('woff2-variations'),
         url('/fonts/inter/Inter[wght].ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('/fonts/playfair-display/PlayfairDisplay[wght].woff2') format('woff2-variations'),
         url('/fonts/playfair-display/PlayfairDisplay[wght].ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Remove focus outlines only for mouse clicks, keep for keyboard navigation */
*:focus:not(:focus-visible) {
    outline: none !important;
}

/* Keep focus outline for keyboard navigation (accessibility) */
*:focus-visible {
    outline: 2px solid var(--color-turquoise) !important;
    outline-offset: 2px !important;
}

/* CSS Custom Properties - Theme System */
/* Default Theme (Fallback) */
:root,
[data-theme="default"] {
    /* Modern Color Palette */
    --primary: #2C3333;
    --accent: #A27B5C;
    --secondary: #DCD7C9;
    --highlight: #395B64;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Türkis-Farben (konsolidiert) */
    --color-turquoise: #00D4AA;
    --color-turquoise-light: #00B4D8;
    --color-turquoise-dark: #00A693;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-light: #F1F3F4;

    /* Türkis mit Opazität */
    --color-turquoise-08: rgba(0, 212, 170, 0.08);
    --color-turquoise-10: rgba(0, 212, 170, 0.1);
    --color-turquoise-15: rgba(0, 212, 170, 0.15);
    --color-turquoise-20: rgba(0, 212, 170, 0.2);
    --color-turquoise-25: rgba(0, 212, 170, 0.25);
    --color-turquoise-30: rgba(0, 212, 170, 0.3);
    --color-turquoise-40: rgba(0, 212, 170, 0.4);
    --color-turquoise-50: rgba(0, 212, 170, 0.5);
    --color-turquoise-60: rgba(0, 212, 170, 0.6);
    --color-turquoise-light-20: rgba(0, 180, 216, 0.2);
    --color-turquoise-light-25: rgba(0, 180, 216, 0.25);
    --color-turquoise-light-30: rgba(0, 180, 216, 0.3);
    --color-turquoise-light-40: rgba(0, 180, 216, 0.4);
    --color-turquoise-light-50: rgba(0, 180, 216, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität */
    --color-black-05: rgba(0, 0, 0, 0.05);
    --color-black-10: rgba(0, 0, 0, 0.1);
    --color-black-20: rgba(0, 0, 0, 0.2);
    --color-black-30: rgba(0, 0, 0, 0.3);
    --color-black-40: rgba(0, 0, 0, 0.4);
    --color-black-50: rgba(0, 0, 0, 0.5);
    --color-black-70: rgba(0, 0, 0, 0.7);
    --color-black-90: rgba(0, 0, 0, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(162, 123, 92, 0.3);

    /* Footer-Farbe */
    --color-footer: #0C1413;
}

/* Nature Theme */
[data-theme="nature"] {
    /* Modern Color Palette */
    /* --primary bleibt gleich wie Default für Überschriften, nur Akzente ändern sich */
    --primary: #2C3333;
    --accent: #4C8277;
    --secondary: #EFF1EC;
    --highlight: #4C8277;
    --background: #EFF1EC;
    --surface: #FFFFFF;
    /* Textfarben bleiben wie im Default-Theme für bessere Lesbarkeit */
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Grün-Farben (Nature Theme) */
    --color-turquoise: #4C8277;
    --color-turquoise-light: #5A9A8C;
    --color-turquoise-dark: #3D6B61;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #191B1D;
    --color-gray-light: #EFF1EC;

    /* Grün mit Opazität */
    --color-turquoise-08: rgba(76, 130, 119, 0.08);
    --color-turquoise-10: rgba(76, 130, 119, 0.1);
    --color-turquoise-15: rgba(76, 130, 119, 0.15);
    --color-turquoise-20: rgba(76, 130, 119, 0.2);
    --color-turquoise-25: rgba(76, 130, 119, 0.25);
    --color-turquoise-30: rgba(76, 130, 119, 0.3);
    --color-turquoise-40: rgba(76, 130, 119, 0.4);
    --color-turquoise-50: rgba(76, 130, 119, 0.5);
    --color-turquoise-60: rgba(76, 130, 119, 0.6);
    --color-turquoise-light-20: rgba(90, 154, 140, 0.2);
    --color-turquoise-light-25: rgba(90, 154, 140, 0.25);
    --color-turquoise-light-30: rgba(90, 154, 140, 0.3);
    --color-turquoise-light-40: rgba(90, 154, 140, 0.4);
    --color-turquoise-light-50: rgba(90, 154, 140, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität */
    --color-black-05: rgba(25, 27, 29, 0.05);
    --color-black-10: rgba(25, 27, 29, 0.1);
    --color-black-20: rgba(25, 27, 29, 0.2);
    --color-black-30: rgba(25, 27, 29, 0.3);
    --color-black-40: rgba(25, 27, 29, 0.4);
    --color-black-50: rgba(25, 27, 29, 0.5);
    --color-black-70: rgba(25, 27, 29, 0.7);
    --color-black-90: rgba(25, 27, 29, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(25, 27, 29, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(25, 27, 29, 0.1), 0 2px 4px -1px rgba(25, 27, 29, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(25, 27, 29, 0.1), 0 4px 6px -2px rgba(25, 27, 29, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(25, 27, 29, 0.1), 0 10px 10px -5px rgba(25, 27, 29, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(25, 27, 29, 0.25);
    --shadow-glow: 0 0 20px rgba(76, 130, 119, 0.3);

    /* Footer-Farbe */
    --color-footer: #111B19;
}

/* Olive Theme */
[data-theme="olive"] {
    /* Modern Color Palette */
    /* --primary bleibt gleich wie Default für Überschriften, nur Akzente ändern sich */
    --primary: #2C3333;
    --accent: #565E30;
    --secondary: #CCCBC2;
    --highlight: #565E30;
    --background: #CCCBC2;
    --surface: #FFFFFF;
    /* Textfarben bleiben wie im Default-Theme für bessere Lesbarkeit */
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Olivgrün-Farben (Olive Theme) */
    --color-turquoise: #565E30;
    --color-turquoise-light: #6B7540;
    --color-turquoise-dark: #454A26;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #111915;
    --color-gray-light: #CCCBC2;

    /* Olivgrün mit Opazität */
    --color-turquoise-08: rgba(86, 94, 48, 0.08);
    --color-turquoise-10: rgba(86, 94, 48, 0.1);
    --color-turquoise-15: rgba(86, 94, 48, 0.15);
    --color-turquoise-20: rgba(86, 94, 48, 0.2);
    --color-turquoise-25: rgba(86, 94, 48, 0.25);
    --color-turquoise-30: rgba(86, 94, 48, 0.3);
    --color-turquoise-40: rgba(86, 94, 48, 0.4);
    --color-turquoise-50: rgba(86, 94, 48, 0.5);
    --color-turquoise-60: rgba(86, 94, 48, 0.6);
    --color-turquoise-light-20: rgba(107, 117, 64, 0.2);
    --color-turquoise-light-25: rgba(107, 117, 64, 0.25);
    --color-turquoise-light-30: rgba(107, 117, 64, 0.3);
    --color-turquoise-light-40: rgba(107, 117, 64, 0.4);
    --color-turquoise-light-50: rgba(107, 117, 64, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität (basierend auf #111915) */
    --color-black-05: rgba(17, 25, 21, 0.05);
    --color-black-10: rgba(17, 25, 21, 0.1);
    --color-black-20: rgba(17, 25, 21, 0.2);
    --color-black-30: rgba(17, 25, 21, 0.3);
    --color-black-40: rgba(17, 25, 21, 0.4);
    --color-black-50: rgba(17, 25, 21, 0.5);
    --color-black-70: rgba(17, 25, 21, 0.7);
    --color-black-90: rgba(17, 25, 21, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(17, 25, 21, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(17, 25, 21, 0.1), 0 2px 4px -1px rgba(17, 25, 21, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(17, 25, 21, 0.1), 0 4px 6px -2px rgba(17, 25, 21, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(17, 25, 21, 0.1), 0 10px 10px -5px rgba(17, 25, 21, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(17, 25, 21, 0.25);
    --shadow-glow: 0 0 20px rgba(86, 94, 48, 0.3);

    /* Footer-Farbe */
    --color-footer: #111915;
}

/* Mint Theme */
[data-theme="mint"] {
    /* Modern Color Palette */
    /* --primary bleibt gleich wie Default für Überschriften, nur Akzente ändern sich */
    --primary: #2C3333;
    --accent: #008564;
    --secondary: #F7F7F7;
    --highlight: #008564;
    --background: #F7F7F7;
    --surface: #FFFFFF;
    /* Textfarben bleiben wie im Default-Theme für bessere Lesbarkeit */
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Mintgrün-Farben (Mint Theme) */
    --color-turquoise: #008564;
    --color-turquoise-light: #00A67A;
    --color-turquoise-dark: #006B4F;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #00231A;
    --color-gray-light: #F7F7F7;

    /* Mintgrün mit Opazität */
    --color-turquoise-08: rgba(0, 133, 100, 0.08);
    --color-turquoise-10: rgba(0, 133, 100, 0.1);
    --color-turquoise-15: rgba(0, 133, 100, 0.15);
    --color-turquoise-20: rgba(0, 133, 100, 0.2);
    --color-turquoise-25: rgba(0, 133, 100, 0.25);
    --color-turquoise-30: rgba(0, 133, 100, 0.3);
    --color-turquoise-40: rgba(0, 133, 100, 0.4);
    --color-turquoise-50: rgba(0, 133, 100, 0.5);
    --color-turquoise-60: rgba(0, 133, 100, 0.6);
    --color-turquoise-light-20: rgba(0, 166, 122, 0.2);
    --color-turquoise-light-25: rgba(0, 166, 122, 0.25);
    --color-turquoise-light-30: rgba(0, 166, 122, 0.3);
    --color-turquoise-light-40: rgba(0, 166, 122, 0.4);
    --color-turquoise-light-50: rgba(0, 166, 122, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität (basierend auf #00231A) */
    --color-black-05: rgba(0, 35, 26, 0.05);
    --color-black-10: rgba(0, 35, 26, 0.1);
    --color-black-20: rgba(0, 35, 26, 0.2);
    --color-black-30: rgba(0, 35, 26, 0.3);
    --color-black-40: rgba(0, 35, 26, 0.4);
    --color-black-50: rgba(0, 35, 26, 0.5);
    --color-black-70: rgba(0, 35, 26, 0.7);
    --color-black-90: rgba(0, 35, 26, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 35, 26, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 35, 26, 0.1), 0 2px 4px -1px rgba(0, 35, 26, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 35, 26, 0.1), 0 4px 6px -2px rgba(0, 35, 26, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 35, 26, 0.1), 0 10px 10px -5px rgba(0, 35, 26, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(0, 35, 26, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 133, 100, 0.3);

    /* Footer-Farbe */
    --color-footer: #00231A;
}

/* Earth Theme */
[data-theme="earth"] {
    /* Modern Color Palette */
    /* --primary bleibt gleich wie Default für Überschriften, nur Akzente ändern sich */
    --primary: #2C3333;
    --accent: #6B4F28;
    --secondary: #F7F7F7;
    --highlight: #6B4F28;
    --background: #F7F7F7;
    --surface: #FFFFFF;
    /* Textfarben bleiben wie im Default-Theme für bessere Lesbarkeit */
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Erdfarben (Earth Theme) */
    --color-turquoise: #6B4F28;
    --color-turquoise-light: #7A5F35;
    --color-turquoise-dark: #5A4120;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #052C2D;
    --color-gray-light: #F7F7F7;

    /* Erdfarben mit Opazität */
    --color-turquoise-08: rgba(107, 79, 40, 0.08);
    --color-turquoise-10: rgba(107, 79, 40, 0.1);
    --color-turquoise-15: rgba(107, 79, 40, 0.15);
    --color-turquoise-20: rgba(107, 79, 40, 0.2);
    --color-turquoise-25: rgba(107, 79, 40, 0.25);
    --color-turquoise-30: rgba(107, 79, 40, 0.3);
    --color-turquoise-40: rgba(107, 79, 40, 0.4);
    --color-turquoise-50: rgba(107, 79, 40, 0.5);
    --color-turquoise-60: rgba(107, 79, 40, 0.6);
    --color-turquoise-light-20: rgba(122, 95, 53, 0.2);
    --color-turquoise-light-25: rgba(122, 95, 53, 0.25);
    --color-turquoise-light-30: rgba(122, 95, 53, 0.3);
    --color-turquoise-light-40: rgba(122, 95, 53, 0.4);
    --color-turquoise-light-50: rgba(122, 95, 53, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität (basierend auf #052C2D) */
    --color-black-05: rgba(5, 44, 45, 0.05);
    --color-black-10: rgba(5, 44, 45, 0.1);
    --color-black-20: rgba(5, 44, 45, 0.2);
    --color-black-30: rgba(5, 44, 45, 0.3);
    --color-black-40: rgba(5, 44, 45, 0.4);
    --color-black-50: rgba(5, 44, 45, 0.5);
    --color-black-70: rgba(5, 44, 45, 0.7);
    --color-black-90: rgba(5, 44, 45, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(5, 44, 45, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(5, 44, 45, 0.1), 0 2px 4px -1px rgba(5, 44, 45, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(5, 44, 45, 0.1), 0 4px 6px -2px rgba(5, 44, 45, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(5, 44, 45, 0.1), 0 10px 10px -5px rgba(5, 44, 45, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(5, 44, 45, 0.25);
    --shadow-glow: 0 0 20px rgba(107, 79, 40, 0.3);

    /* Footer-Farbe */
    --color-footer: #052C2D;
}

/* Sage Theme */
[data-theme="sage"] {
    /* Modern Color Palette */
    /* --primary bleibt gleich wie Default für Überschriften, nur Akzente ändern sich */
    --primary: #2C3333;
    --accent: #286B51;
    --secondary: #F7F7F7;
    --highlight: #286B51;
    --background: #F7F7F7;
    --surface: #FFFFFF;
    /* Textfarben bleiben wie im Default-Theme für bessere Lesbarkeit */
    --text-dark: #1A1A1A;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Salbeigrün-Farben (Sage Theme) */
    --color-turquoise: #286B51;
    --color-turquoise-light: #32805F;
    --color-turquoise-dark: #1F5542;

    /* Basis-Farben */
    --color-white: #FFFFFF;
    --color-black: #1A1A1A;
    --color-gray-light: #F7F7F7;

    /* Salbeigrün mit Opazität */
    --color-turquoise-08: rgba(40, 107, 81, 0.08);
    --color-turquoise-10: rgba(40, 107, 81, 0.1);
    --color-turquoise-15: rgba(40, 107, 81, 0.15);
    --color-turquoise-20: rgba(40, 107, 81, 0.2);
    --color-turquoise-25: rgba(40, 107, 81, 0.25);
    --color-turquoise-30: rgba(40, 107, 81, 0.3);
    --color-turquoise-40: rgba(40, 107, 81, 0.4);
    --color-turquoise-50: rgba(40, 107, 81, 0.5);
    --color-turquoise-60: rgba(40, 107, 81, 0.6);
    --color-turquoise-light-20: rgba(50, 128, 95, 0.2);
    --color-turquoise-light-25: rgba(50, 128, 95, 0.25);
    --color-turquoise-light-30: rgba(50, 128, 95, 0.3);
    --color-turquoise-light-40: rgba(50, 128, 95, 0.4);
    --color-turquoise-light-50: rgba(50, 128, 95, 0.5);

    /* Weiß mit Opazität */
    --color-white-10: rgba(255, 255, 255, 0.1);
    --color-white-20: rgba(255, 255, 255, 0.2);
    --color-white-30: rgba(255, 255, 255, 0.3);
    --color-white-50: rgba(255, 255, 255, 0.5);
    --color-white-60: rgba(255, 255, 255, 0.6);
    --color-white-70: rgba(255, 255, 255, 0.7);
    --color-white-80: rgba(255, 255, 255, 0.8);
    --color-white-85: rgba(255, 255, 255, 0.85);
    --color-white-90: rgba(255, 255, 255, 0.9);
    --color-white-95: rgba(255, 255, 255, 0.95);

    /* Schwarz mit Opazität (basierend auf #1A1A1A) */
    --color-black-05: rgba(26, 26, 26, 0.05);
    --color-black-10: rgba(26, 26, 26, 0.1);
    --color-black-20: rgba(26, 26, 26, 0.2);
    --color-black-30: rgba(26, 26, 26, 0.3);
    --color-black-40: rgba(26, 26, 26, 0.4);
    --color-black-50: rgba(26, 26, 26, 0.5);
    --color-black-70: rgba(26, 26, 26, 0.7);
    --color-black-90: rgba(26, 26, 26, 0.9);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(26, 26, 26, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(26, 26, 26, 0.1), 0 2px 4px -1px rgba(26, 26, 26, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(26, 26, 26, 0.1), 0 4px 6px -2px rgba(26, 26, 26, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(26, 26, 26, 0.1), 0 10px 10px -5px rgba(26, 26, 26, 0.04);
    --shadow-xxl: 0 25px 50px -12px rgba(26, 26, 26, 0.25);
    --shadow-glow: 0 0 20px rgba(40, 107, 81, 0.3);

    /* Footer-Farbe */
    --color-footer: #1A1A1A;
}

/* Gemeinsame Variablen (nicht themenabhängig) */
:root {
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    /* Font Sizes - Base */
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.1rem;
    --font-size-xl: 1.2rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 4rem;

    /* Responsive Typography - clamp() Werte */
    --font-size-hero-title: clamp(3rem, 8vw, 5.5rem);
    --font-size-hero-subtitle: clamp(1.2rem, 3vw, 1.8rem);
    --font-size-h1: clamp(2.5rem, 5vw, 4.5rem);
    --font-size-h2: clamp(2rem, 4vw, 3rem);
    --font-size-h3: clamp(1.5rem, 3vw, 2rem);
    --font-size-h4: clamp(1.25rem, 2.5vw, 1.5rem);
    --font-size-h5: clamp(1.1rem, 2vw, 1.25rem);
    --font-size-h6: clamp(1rem, 1.5vw, 1.1rem);
    --font-size-section-title: clamp(2.5rem, 5vw, 4rem);
    --font-size-section-subtitle: clamp(1.2rem, 2.5vw, 1.4rem);
    --font-size-page-title: clamp(2.5rem, 6vw, 4rem);
    --font-size-page-subtitle: clamp(1rem, 2.5vw, 1.5rem);

    /* Spacing - Modern */
    --spacing-xs: 0.75rem;
    --spacing-s: 1.15rem;
    --spacing-sm: 1.5rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --spacing-xxl: 8rem;

    /* Border Radius - Modern */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Breakpoints */
    --mobile: 768px;
    --tablet: 1024px;
    --desktop: 1400px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    height: 100%;
    overflow-x: hidden;
}

/* Theme transition für sanfte Übergänge - nur für farbabhängige Eigenschaften */
html,
body,
.header,
.nav,
.nav-links a,
.nav-contact-btn,
.theme-switcher-btn,
button,
a,
h1, h2, h3, h4, h5, h6,
p,
.card,
.section,
.footer {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}

body {
    font-family: var(--font-primary), sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--color-white);
    font-size: var(--font-size-md);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}









/* Typography - Modern */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading), sans-serif;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }
h5 { font-size: var(--font-size-h5); }
h6 { font-size: var(--font-size-h6); }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
    font-size: var(--font-size-lg);
    line-height: 1.8;
}

a {
    color: var(--color-turquoise);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

a:hover {
    color: var(--color-turquoise);
}

/* Layout - Modern */
.container {
    max-width: var(--desktop);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Mehr Padding bei größeren Bildschirmen */
@media (min-width: 1400px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1600px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
    align-items: center;
}

.flex--column {
    flex-direction: column;
}

.flex--wrap {
    flex-wrap: wrap;
}

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-sm { font-size: var(--font-size-sm); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

/* Color Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-light); }
.text-white { color: #FFFFFF; }

.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-white { background-color: var(--color-white); }

/* Button Styles - Modern */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: var(--font-size-lg);
    line-height: 1;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--color-white-20), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--color-turquoise), var(--color-turquoise-light));
    color: white;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-white-20);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 20px var(--color-turquoise-40);
    background: linear-gradient(135deg, var(--color-turquoise), var(--color-turquoise-light));
    color: white;
}

.btn--secondary {
    background: var(--surface);
    color: var(--primary);
    border: 2px solid var(--secondary);
}

.btn--secondary:hover {
    background: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: none;
}

.btn--outline:hover {
    background: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn--large {
    padding: 1.5rem 3rem;
    font-size: var(--font-size-xl);
}

.btn--small {
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-sm);
}

/* Card Styles - Modern (zusammengeführt für .card und .project-card) */
.card,
.project-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative; /* Für absolute Positionierung der Category */
}

.card:hover,
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xxl);
    text-decoration: none;
    color: inherit;
}

/* Card Images - unterstützt sowohl .card__image als auch img in .project-card */
.card__image,
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Card Content - unterstützt sowohl .card__content als auch .project-card-content */
.card__content,
.project-card-content {
    padding: var(--spacing-lg);
}

/* Card Titles - unterstützt sowohl .card__title als auch h2/h3 in .project-card */
.card__title,
.project-card h2,
.project-card h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
}

/* Card Text - unterstützt sowohl .card__text als auch p in .project-card */
.card__text,
.project-card p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: var(--font-size-md);
    line-height: 1.6;
}

/* Category Badge */
.card .category {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

/* Category Badge in project-card: Im Bild, obere rechte Ecke, kleiner und subtiler */
.project-card .category {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 10;
    display: inline-block;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: normal;
}

/* Card Link */
.card .card-link,
.project-card .card-link {
    color: var(--color-turquoise);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
}

/* Header Styles - Modern with Glasmorphism */
.header,
header.header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    position: sticky !important;
    top: 0 !important;
    z-index: 1002 !important;
    transform: translateY(0);
    /* Spezifische Transitions statt 'all' - verhindert Konflikte */
    /* Längere Transition für smooth Überblenden */
    transition: transform 0.3s ease-in-out,
                background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                background-image 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                -webkit-backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color var(--transition-normal),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation z-index reduzieren, wenn Lightbox aktiv ist */
.lightbox-active .header,
.lightbox-active header.header {
    z-index: 1000 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.header.scrolled {
    background: var(--color-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky !important;
    /* Sicherstellen, dass background-image entfernt wird für smooth Übergang */
    background-image: none;
}

/* Header auf Startseite: position fixed, damit Hero-Section am oberen Rand startet */
body:not(.subpage) .header,
body:not(.subpage) header.header {
    position: fixed !important;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
}

/* Schwarzer Verlauf für Header im Ausgangszustand auf Startseite */
body:not(.subpage):not(.project-page):not(.error-page) .header:not(.scrolled),
body:not(.subpage):not(.project-page):not(.error-page) header.header:not(.scrolled) {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 100%);
    /* Kein Blur im initialen Zustand - nur beim Scrollen */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Beim Scrollen: Navigation-Links zurück zu normaler Farbe */
body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-links a {
    color: var(--text-dark);
    text-shadow: none;
}

body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-links a:hover {
    color: var(--color-turquoise-dark);
    text-shadow: none;
}

    /* Aktiver Link auf Startseite beim Scrollen: Behalte aktive Farbe */
body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-links a.active {
    color: var(--color-turquoise);
    text-shadow: none;
}

body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-links li:not(:last-child)::after {
    color: var(--text-dark);
    text-shadow: none;
}

body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-contact-btn {
    color: var(--text-dark);
    border-color: var(--text-dark);
    background: transparent;
    text-shadow: none;
}

body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled .nav-contact-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(44, 51, 51, 0.05);
}

/* Logo auf Startseite, Impressum und Datenschutz: Schwarz beim Scrollen */
body:not(.subpage):not(.project-page) .header.scrolled .logo {
    filter: none;
}

/* Verbesserter Übergang für Startseiten-Header beim Scrollen */
body:not(.subpage):not(.project-page):not(.error-page) .header.scrolled {
    /* Smooth Übergang vom gradient zu solid color */
    background: var(--color-white-70);
    background-image: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
}

/* Kompakte Navigation beim Scrollen */
.header.scrolled .nav {
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

/* Mobile: Padding links/rechts für gescrollte Navigation */
@media (max-width: 768px) {
    .header.scrolled .nav {
        padding-left: var(--spacing-sm);
        padding-right: var(--spacing-sm);
    }
}

.header.scrolled .logo-img {
    height: 60px;
    margin: 0;
}

/* Desktop: Kompakte Navigation beim Scrollen */
@media (min-width: 769px) {
    .header.scrolled .nav-links a {
        font-size: var(--font-size-md);
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

.header.scrolled .nav-contact-btn {
    font-size: var(--font-size-md);
    padding: 6px 14px;
}

/* Hide/Show Navigation Animation */
.header.header-hidden {
    transform: translateY(-100%);
}

/* 404-Seite: Header ohne schwarzen Verlauf, schwarzer Text/Logo */
body.error-page .header,
body.error-page header.header {
    background: transparent;
}

body.error-page .header:not(.scrolled),
body.error-page header.header:not(.scrolled) {
    background: transparent;
}

body.error-page .header .nav-links a {
    color: var(--text-dark, #1E1E1E);
    text-shadow: none;
}

body.error-page .header .nav-links a:hover {
    color: var(--color-turquoise-dark);
    text-shadow: none;
}

body.error-page .header .nav-links a.active {
    color: var(--color-turquoise);
    text-shadow: none;
}

body.error-page .header .nav-links li:not(:last-child)::after {
    color: var(--text-dark, #1E1E1E);
    text-shadow: none;
}

body.error-page .header .nav-contact-btn {
    color: var(--text-dark, #1E1E1E);
    border-color: var(--text-dark, #1E1E1E);
    background: transparent;
    text-shadow: none;
}

body.error-page .header .nav-contact-btn:hover {
    color: var(--primary, #2C3333);
    border-color: var(--primary, #2C3333);
    background: rgba(44, 51, 51, 0.05);
}

body.error-page .header .logo {
    filter: none;
}

body.error-page .header .mobile-menu-toggle .hamburger-line {
    background-color: var(--text-dark, #1E1E1E);
}

/* 404-Seite: Beim Scrollen schwarze Farben beibehalten */
body.error-page .header.scrolled {
    background: var(--color-white-70);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
}

body.error-page .header.scrolled .nav-links a {
    color: var(--text-dark, #1E1E1E);
    text-shadow: none;
}

body.error-page .header.scrolled .nav-links a:hover {
    color: var(--color-turquoise-dark);
    text-shadow: none;
}

body.error-page .header.scrolled .nav-links a.active {
    color: var(--color-turquoise);
    text-shadow: none;
}

body.error-page .header.scrolled .nav-links li:not(:last-child)::after {
    color: var(--text-dark, #1E1E1E);
    text-shadow: none;
}

body.error-page .header.scrolled .nav-contact-btn {
    color: var(--text-dark, #1E1E1E);
    border-color: var(--text-dark, #1E1E1E);
    background: transparent;
    text-shadow: none;
}

body.error-page .header.scrolled .nav-contact-btn:hover {
    color: var(--primary, #2C3333);
    border-color: var(--primary, #2C3333);
    background: rgba(44, 51, 51, 0.05);
}

body.error-page .header.scrolled .logo {
    filter: none;
}

body.error-page .header.scrolled .mobile-menu-toggle .hamburger-line {
    background-color: var(--text-dark, #1E1E1E);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-top: var(--spacing-sm);
    padding-bottom: var(--spacing-sm);
    transition: padding var(--transition-normal);
}

.logo {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    font-family: var(--font-heading), sans-serif;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1003;
}

/* Logo auf Startseite, Impressum und Datenschutz: Weiß im ersten State */
body:not(.subpage):not(.project-page):not(.error-page) .logo {
    filter: brightness(0) invert(1);
}

.logo-img {
    height: 100px;
    width: auto;
    transition: height var(--transition-normal), margin var(--transition-normal), transform var(--transition-fast);
    margin: 0.25rem 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    shape-rendering: geometricPrecision;
}

/* Logo-Animation: Sägeblatt rotiert kontinuierlich */
#Saw {
    transform-box: fill-box;
    transform-origin: 50% 50%;
    animation: rotating 10s cubic-bezier(0.505, 0.100, 0.055, 0.990);
}

/* Logo-Hover: Sägeblatt rotiert schneller */
.logo:hover #Saw,
.footer-brand:hover #Saw {
    animation: rotating 5s cubic-bezier(0.505, 0.100, 0.055, 0.990) infinite;
}

/* Schatten beim Hover über Logo entfernen */
.logo:hover {
    box-shadow: none;
    text-shadow: none;
}

@keyframes rotating {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    flex-wrap: nowrap;
}

.nav-links li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Bullet-Points auf Startseite: Weiß für bessere Sichtbarkeit */
body:not(.subpage):not(.project-page):not(.error-page) .nav-links li:not(:last-child)::after {
    color: var(--surface);
}

/* Kontakt-Link auf Desktop ausblenden (nur Button sichtbar) */
.nav-links li:last-child {
    display: none;
}

/* Bullet-Point nach vorletztem Element ausblenden, wenn letztes ausgeblendet ist */
.nav-links li:nth-last-child(2)::after {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-lg);
    transition: all var(--transition-normal);
    position: relative;
    padding: var(--spacing-xs) var(--spacing-sm);
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Balken-Effekt für Navigation-Links (expandiert von Mitte nach links/rechts) */
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4px;
    right: 4px;
    height: 3px;
    background-color: var(--color-turquoise);
    z-index: -1;
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: center;
    transform-origin: center;
    transition: -webkit-transform 0.3s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

/* Navigation-Links auf Startseite: Weiß für bessere Sichtbarkeit über Hero */
body:not(.subpage):not(.project-page):not(.error-page) .nav-links a {
    color: var(--surface);
}

/* Navigation-Links auf Detailseiten (Leistungen/Referenzen): Schwarz im Initial-State */
body.project-page .nav-links a {
    color: var(--text-dark);
}

/* Balken-Effekt: Helles Türkis für Startseite, dunkleres Türkis für normale Seiten */
body:not(.subpage):not(.project-page):not(.error-page) .nav-links a::before {
    background-color: var(--color-turquoise);
}

/* Dunkleres Türkis für normale Seiten (schwarze Links) */
body.subpage .nav-links a::before,
body.project-page .nav-links a::before {
    background-color: var(--color-turquoise-dark);
}

body:not(.subpage):not(.project-page):not(.error-page) .nav-links a:hover {
    color: #B0E8E0;
}

body:not(.subpage):not(.project-page):not(.error-page) .nav-links a.active {
    color: var(--color-turquoise);
}

.nav-links a:hover {
    color: var(--color-turquoise-dark);
}

.nav-links a:hover::before {
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
}

/* Kein Hover-Effekt für aktive Menüpunkte */
.nav-links a.active:hover::before {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
}

.nav-links a.active {
    color: var(--color-turquoise);
    font-weight: 600;
}

.nav-contact-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--font-size-lg);
    padding: 8px 16px;
    border: 1px solid var(--text-dark);
    border-radius: 50px;
    transition: all var(--transition-normal);
}

/* Kontakt-Button auf Startseite: Weiß mit transparentem Hintergrund */
body:not(.subpage):not(.project-page):not(.error-page) .nav-contact-btn {
    color: var(--surface);
    border-color: var(--surface);
    background: var(--color-white-10);
}

body:not(.subpage):not(.project-page):not(.error-page) .nav-contact-btn:hover {
    color: var(--surface);
    border-color: var(--surface);
    background: var(--color-white-20);
}

body:not(.subpage):not(.project-page):not(.error-page) .nav-contact-btn.active {
    color: var(--color-turquoise);
    border-color: var(--color-turquoise);
    background: var(--color-turquoise-10);
}

.nav-contact-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(44, 51, 51, 0.05);
}

.nav-contact-btn.active {
    color: var(--color-turquoise);
    border-color: var(--color-turquoise);
    background: var(--color-turquoise-08);
}

/* Fixed Theme Switcher */
.theme-switcher-fixed {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.theme-switcher-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-turquoise);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1001;
}

.theme-switcher-toggle:hover {
    background: var(--color-turquoise-dark);
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.theme-switcher-toggle:active {
    transform: scale(0.95);
}

.theme-switcher-toggle[aria-expanded="true"] {
    background: var(--color-turquoise-dark);
}

.theme-switcher-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.theme-switcher-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all var(--transition-normal);
    pointer-events: none;
    border: 1px solid var(--color-black-10);
}

.theme-switcher-menu[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.theme-switcher-options {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.theme-switcher-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.theme-switcher-btn:hover {
    background: var(--color-turquoise-08);
    color: var(--color-turquoise);
}

.theme-switcher-btn.active {
    background: var(--color-turquoise-10);
    color: var(--color-turquoise);
    font-weight: 600;
}

.theme-preview {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    display: inline-block;
    flex-shrink: 0;
    background: var(--theme-preview-color);
}

.theme-label {
    display: inline-block;
    flex: 1;
}

/* Mobile: Anpassung der Position */
@media (max-width: 768px) {
    .theme-switcher-fixed {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .theme-switcher-toggle {
        width: 44px;
        height: 44px;
    }

    .theme-switcher-icon {
        width: 18px;
        height: 18px;
    }

    .theme-switcher-menu {
        min-width: 160px;
        bottom: 56px;
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    transition: all var(--transition-fast);
    transform-origin: center;
    position: absolute;
    left: 5px;
}

/* Burger-Menü auf Startseite: Weiß im initialen Zustand */
body:not(.subpage):not(.project-page):not(.error-page) .mobile-menu-toggle .hamburger-line {
    background: var(--surface);
}

/* Burger-Menü beim Scrollen: Schwarz (auf allen Seiten) */
.header.scrolled .mobile-menu-toggle .hamburger-line {
    background: var(--text-dark) !important;
}

.hamburger-line:nth-child(1) {
    top: 6px;
}

.hamburger-line:nth-child(2) {
    top: 14px;
}

.hamburger-line:nth-child(3) {
    top: 22px;
}

.mobile-menu-toggle:hover .hamburger-line {
    background: var(--accent);
}

/* X-Animation wenn aktiv */
.mobile-menu-toggle.nav-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg);
    top: 14px;
}

.mobile-menu-toggle.nav-open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.nav-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg);
    top: 14px;
}

/* Hero Section - Modern Fullscreen */
.hero {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--surface);
    position: relative;
    overflow: visible;
    padding: var(--spacing-xxl) 0;
}

/* Hero auf Startseite: Navigation überlagert, daher volle Höhe */
body:not(.subpage) .hero {
    min-height: 100vh;
    padding: 0 0 var(--spacing-xxl) 0;
}

.hero__slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 4s ease-in-out;
    z-index: -1;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}

.hero__slide picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    display: block;
    z-index: -1;
}

.hero__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero__slide--active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 51, 51, 0.3), rgba(57, 91, 100, 0.2));
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(162, 123, 92, 0.1), rgba(57, 91, 100, 0.1));
    animation: heroGradient 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGradient {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 12rem var(--spacing-md) var(--spacing-xl);
    min-height: 50vh;
    width: 100%;
    max-width: 100%;
}

.hero__content h1 {
    font-size: var(--font-size-hero-title);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    color: var(--surface);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero__content h1 small {
    display: block;
    font-size: var(--font-size-hero-subtitle);
    font-weight: 400;
    color: var(--surface);
    opacity: 0.9;
    letter-spacing: 0.01em;
    line-height: 1.4;
    margin-top: 0.5rem;
}

.hero__content p {
    font-size: var(--font-size-hero-subtitle);
    margin-bottom: var(--spacing-xl);
    opacity: 0.95;
    color: var(--surface);
    font-weight: 300;
    line-height: 1.6;
}

.hero__cta {
    margin-top: var(--spacing-lg);
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    color: var(--surface);
    font-size: var(--font-size-4xl);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px var(--color-black-70);
    background: var(--color-black-30);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-white-30);
}

.scroll-indicator:hover {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
    background: var(--color-black-50);
    border-color: var(--color-white-60);
    box-shadow: 0 4px 12px var(--color-black-40);
}

.scroll-indicator:active {
    transform: translateX(-50%) scale(0.95);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles - Modern */
.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

/* Erste Content-Section auf Subpages transparent (nach page-header), danach Wechsel: grau - weiß - grau - weiß... */
/* page-header ist bereits transparent, erste Content-Section (.section) auch transparent */
body.subpage main > .section:first-of-type {
    background: transparent !important;
}

/* Ab 2. Content-Section: grau - weiß - grau - weiß... */
/* Nur .section Elemente werden berücksichtigt (nicht tile-section oder page-header) */
body.subpage main > .section:not(.tile-section):not(:first-of-type):nth-child(even) {
    background: var(--color-gray-light) !important;
}

body.subpage main > .section:not(.tile-section):not(:first-of-type):nth-child(odd) {
    background: var(--color-white) !important;
}

/* Sections auf Startseite: hero + erste Section transparent, danach grau - weiß - grau - weiß... */
/* Struktur: hero (1), section (2), section (3), ... */
body:not(.subpage):not(.project-page) main > .section:first-of-type {
    background: transparent !important;
}

/* Ab 2. Section: grau - weiß - grau - weiß... */
body:not(.subpage):not(.project-page) main > section:nth-of-type(3),
body:not(.subpage):not(.project-page) main > section:nth-of-type(5),
body:not(.subpage):not(.project-page) main > section:nth-of-type(7),
body:not(.subpage):not(.project-page) main > section:nth-of-type(9) {
    background: var(--color-gray-light) !important;
}

body:not(.subpage):not(.project-page) main > section:nth-of-type(4),
body:not(.subpage):not(.project-page) main > section:nth-of-type(6),
body:not(.subpage):not(.project-page) main > section:nth-of-type(8),
body:not(.subpage):not(.project-page) main > section:nth-of-type(10) {
    background: var(--color-white) !important;
}

/* First section after hero should have normal top padding but reduced bottom padding */
#next-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-sm);
}

.section__header--full-width {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.section__cta {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.section__content {
    margin: 2rem 0 0;
    text-align: left;
}

.section__title {
    font-size: var(--font-size-section-title);
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section__subtitle {
    font-size: var(--font-size-section-subtitle);
    color: var(--text-light);
    line-height: 1.7;
    font-weight: 300;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }


/* Responsive Design - Modern */
@media (max-width: 1024px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xs: 0.5rem;
        --spacing-sm: 1rem;
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 4rem;
        --spacing-xxl: 5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .nav {
        padding: var(--spacing-md) var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .logo {
        margin-right: auto;
    }

    .logo-img {
        margin: 0;
    }

    .mobile-menu-toggle {
        margin-left: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--color-white-95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-lg);
        transform: translateY(-100%);
        transition: transform var(--transition-normal);
        z-index: 1001;
        list-style: none;
        margin: 0;
        padding: 0 var(--spacing-md);
    }

    .nav-links.nav-open {
        transform: translateY(0);
    }

    /* Scrollen im Hintergrund verhindern, wenn Menü geöffnet ist */
    body:has(.nav-links.nav-open) {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Navigationslinks im geöffneten Menü: Schwarz */
    .nav-links.nav-open a {
        color: var(--text-dark) !important;
        text-shadow: none !important;
    }

    /* Aktive Links im geöffneten Menü: Türkis */
    .nav-links.nav-open a.active {
        color: var(--color-turquoise) !important;
    }

    .nav-links li {
        display: block;
    }

    /* Kontakt-Link auf Mobile wieder anzeigen */
    .nav-links li:last-child {
        display: block;
    }

    .nav-links li:not(:last-child)::after {
        display: none;
    }

    .nav-links a {
        font-size: var(--font-size-2xl);
        font-weight: 600;
        padding: var(--spacing-sm) var(--spacing-md) !important;
        width: 100%;
        text-align: center;
    }

    /* Sicherstellen, dass gescrollte Navigation auf Mobile genug Abstand hat */
    .header.scrolled .nav-links a {
        padding: var(--spacing-sm) var(--spacing-md) !important;
    }

    .nav-contact-btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1004;
    }

    .mobile-menu-toggle.nav-open {
        position: relative;
        top: auto;
        right: auto;
    }

    /* Burger-Menü beim Öffnen: Schwarz (auf allen Seiten) */
    .mobile-menu-toggle.nav-open .hamburger-line {
        background: var(--text-dark) !important;
    }

    /* Logo beim Öffnen des Menüs: Schwarz (Filter entfernen) */
    .nav-links.nav-open ~ .logo,
    .header:has(.nav-links.nav-open) .logo,
    body:not(.subpage):not(.project-page) .nav-links.nav-open ~ .logo {
        filter: none !important;
    }

    .hero__content {
        padding: 8rem var(--spacing-md) var(--spacing-lg);
        min-height: 40vh;
    }

    .hero__content h1 {
        font-size: var(--font-size-page-title);
    }

    .hero__content h1 small {
        font-size: var(--font-size-2xl);
    }

    .hero__content p {
        font-size: var(--font-size-page-subtitle);
    }

    .section__title {
        font-size: var(--font-size-h2);
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .flex--between {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .card__content,
    .project-card-content {
        padding: var(--spacing-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer {
        padding: var(--spacing-lg) 0;
    }

    .footer-brand {
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-links li {
        margin-bottom: var(--spacing-xs);
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-bottom p {
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .filter-section {
        margin-bottom: var(--spacing-lg);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: var(--spacing-xs);
    }

    .filter-buttons {
        flex-direction: row;
        justify-content: flex-start;
        gap: var(--spacing-sm);
        flex-wrap: nowrap;
        padding: 0 var(--spacing-sm);
        min-width: max-content;
    }

    .filter-btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-md);
        white-space: nowrap;
        min-width: fit-content;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }

    .hero__content {
        padding: 6rem var(--spacing-md) var(--spacing-lg);
        min-height: 35vh;
    }

    .hero__content h1 {
        font-size: var(--font-size-h2);
    }

    .hero__content h1 small {
        font-size: var(--font-size-2xl);
    }

    .section {
        padding: var(--spacing-lg) 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .container {
        max-width: none;
        padding: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: var(--color-black-30);
        --shadow-hover: var(--color-black-40);
    }
}



/* Content Pages */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}



.content-main p {
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}


.contact-info {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-black-05);
}

.contact-info p {
    margin-bottom: var(--spacing-sm);
}

.contact-info a {
    color: var(--color-turquoise);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--color-turquoise);
    text-decoration: underline;
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border: 2px solid #4caf50;
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.privacy-notice h2 {
    color: #2e7d32;
    margin-top: 0;
}

.privacy-notice p {
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

/* No Tracking Section */
.no-tracking {
    background: var(--surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.no-tracking h3 {
    color: #d32f2f;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.no-tracking p {
    color: var(--text-muted);
    font-style: italic;
}


/* Footer Styles */
.footer {
    background: var(--color-footer);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-lg);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    height: 110px;
    width: auto;
    margin-bottom: var(--spacing-sm);
    opacity: 0.3;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    shape-rendering: geometricPrecision;
}



.footer-brand p {
    color: var(--color-white-70);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin: 0;
}

.footer-links h3,
.footer-contact h3 {
    color: white;
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    font-family: var(--font-heading);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--spacing-md);
}

.footer-links li {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--color-white-80);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: var(--color-white-80);
    font-size: var(--font-size-sm);
    line-height: 1.5;
    margin-bottom: var(--spacing-xs);
}

.footer-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--secondary);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-bottom p {
    color: var(--color-white-60);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer-made-with {
    color: var(--color-white-70);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;

    text-align: left;

}

.footer-made-with svg {
    color: var(--color-white-80);
    transition: transform 0.3s ease;
}

.footer-made-with:hover .footer-heart-icon {
    animation: heartPulse 0.6s ease-in-out infinite;
}

.footer-heart-icon {
    display: inline;
    vertical-align: middle;
    margin: 0 2px;
    transform-origin: center;
}

@keyframes heartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-bottom-links a {
    color: var(--color-white-60);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--color-white-80);
}



/* Project Cards - Styles sind jetzt in .card zusammengeführt */


/* Project Pages - Kreative Teaser-Varianten */
/* Option 6: Organischer Türkis-Verlauf auf Body-Level (aktuell aktiv) */
.project-header {
    text-align: center;
    margin-bottom: 0;
    padding: var(--spacing-xxl) 0 0 0;
    background: transparent;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    position: relative;
    z-index: 2;
}

/* Mehr Abstand zum Header auf Referenzdetailseiten */
body.project-page .project-header {
    padding-top: calc(var(--spacing-xxl) + var(--spacing-xl));
}

.project-header-content {
    margin-bottom: var(--spacing-lg);
}


@keyframes organicBlob {
    0%, 100% {
        transform: translateZ(0) translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateZ(0) translate(-20px, -15px) rotate(2deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateZ(0) translate(15px, -25px) rotate(-1deg) scale(0.9);
        opacity: 0.7;
    }
    75% {
        transform: translateZ(0) translate(-10px, -10px) rotate(1.5deg) scale(1.05);
        opacity: 0.85;
    }
}


.project-header .category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-white-50);
    box-shadow: 0 4px 15px var(--color-black-10);
}

.project-header h1 {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}


.project-gallery {
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
    position: relative;
    z-index: 2;
    background: transparent;
}

/* Gallery Slider Wrapper */
.gallery-slider-wrapper {
    position: relative;
    width: 100%;
}

/* Gallery Grid - Standard Grid Layout (wenn ≤2 Bilder) */
.gallery-grid:not([data-slider]) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 100%;
}

/* Gallery Grid - Slider Layout (wenn >3 Bilder) */
.gallery-grid[data-slider] {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: var(--spacing-xs);
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-grid[data-slider] .gallery-item {
    flex: 0 0 33.333%;
    min-width: 33.333%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    margin-right: var(--spacing-lg);
}

.gallery-grid:not([data-slider]) .gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-black-70);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Gallery Slider Navigation */
.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white-90);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
    color: var(--text-dark);
}

.gallery-slider-btn:hover {
    background: var(--color-white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.gallery-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.gallery-slider-prev {
    left: var(--spacing-md);
}

.gallery-slider-next {
    right: var(--spacing-md);
}

.gallery-slider-btn svg {
    width: 24px;
    height: 24px;
}

/* Gallery Slider Dots */
.gallery-slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-md);
    padding: 0;
}

.gallery-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-black-20);
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.gallery-slider-dot:hover {
    background: var(--color-black-40);
    transform: scale(1.2);
}

.gallery-slider-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 5px;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black-90);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox picture,
.lightbox img,
.lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.lightbox picture {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
}

.lightbox picture img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.lightbox.active picture,
.lightbox.active img,
.lightbox.active video {
    transform: scale(1);
}

.lightbox video {
    background: var(--color-black);
}

.lightbox-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
    background: var(--color-white-10);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10002;
}

.lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.lightbox-close:hover {
    background: var(--color-white-20);
    transform: scale(1.1);
}

.lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-images {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.lightbox-picture,
.lightbox-video {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: none;
    position: relative;
    z-index: 1;
}

.lightbox-picture[style*="display: block"],
.lightbox-video[style*="display: block"] {
    display: block !important;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-white-10);
    border: none;
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-size: 0;
    line-height: 0;
}

.lightbox-nav svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: var(--color-white-20);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black-70);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    backdrop-filter: blur(10px);
    max-width: 80%;
    text-align: center;
    z-index: 10;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 50px;
        height: 50px;
        padding: 0;
        margin: 0;
        font-size: 0;
        line-height: 0;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    .lightbox-prev {
        left: 15px;
    }

    .lightbox-next {
        right: 15px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    .lightbox-close svg {
        width: 16px;
        height: 16px;
    }

    .lightbox-caption {
        bottom: 20px;
        font-size: var(--font-size-sm);
        padding: 8px 15px;
    }
}

/* Lightbox Loading Indicator */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    pointer-events: none;
}

.lightbox-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-white-30);
    border-top-color: var(--color-turquoise);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.project-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    margin-bottom: 0;
    padding: var(--spacing-xl) 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

/* Verstecke Besonderheiten-Sektion für Kardiermaschine */
.hide-besonderheiten h2:has(+ ul),
.hide-besonderheiten h2:nth-of-type(2) {
    display: none;
}
.hide-besonderheiten h2:nth-of-type(2) + ul {
    display: none;
}

.project-description h2 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.project-description p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.project-description ul,
.content-main ul {
    margin: var(--spacing-md) 0;
    padding-left: 0;
    list-style: none;
}

.project-description li,
.content-main li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.project-description li::before,
.content-main li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

/* Kundenstimme / Blockquote Styling */
.project-description blockquote {
    position: relative;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md) calc(var(--spacing-xl) + var(--spacing-md));

    font-style: italic;
    line-height: 1.8;
    color: var(--text-dark);
}

.project-description blockquote::before {
    content: '"';
    position: absolute;
    left: var(--spacing-lg);
    top: var(--spacing-md);
    font-size: 6rem;
    font-family: var(--font-heading);
    color: var(--color-turquoise);
    line-height: 1;
    font-style: normal;
}

.project-description blockquote p {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
    line-height: 1.8;
    color: var(--text-dark);
}

.project-description blockquote p:last-of-type {
    margin-bottom: var(--spacing-sm);
}

.project-description blockquote strong,
.project-description blockquote em {
    display: block;
    margin-top: var(--spacing-xs);
    font-style: normal;
    font-weight: 600;
    color: var(--text-dark);
    font-size: var(--font-size-md);
    text-align: left;
}

.project-description blockquote strong::before,
.project-description blockquote em::before {
    content: '– ';
    color: var(--color-turquoise);
    font-weight: 400;
}

.project-specs {
    background: var(--background);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    height: fit-content;
    box-shadow: var(--shadow-sm);
}

.project-specs h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-black-10);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    width: 100%;
    margin-bottom: 0.25rem;
}

.spec-value {
    color: var(--text-light);
    width: 100%;
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    background: white;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--surface);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 500;
    transition: all var(--transition-fast);
    border: 1px solid var(--color-black-10);
    box-shadow: var(--shadow-sm);
}

.nav-button:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* Responsive Gallery Slider */
/* Mobile: 1 Bild */
@media (max-width: 768px) {
    .gallery-grid[data-slider] .gallery-item {
        flex: 0 0 calc(100% - var(--spacing-md));
        min-width: calc(100% - var(--spacing-md));
        margin-right: var(--spacing-md);
    }

    .gallery-slider-btn {
        width: 40px;
        height: 40px;
    }

    .gallery-slider-btn svg {
        width: 20px;
        height: 20px;
    }

    .gallery-slider-prev {
        left: var(--spacing-sm);
    }

    .gallery-slider-next {
        right: var(--spacing-sm);
    }
}

/* Tablet: 2 Bilder */
@media (min-width: 769px) and (max-width: 1023px) {
    .gallery-grid[data-slider] .gallery-item {
        flex: 0 0 calc(50% - var(--spacing-lg) / 2);
        min-width: calc(50% - var(--spacing-lg) / 2);
    }
}

/* Desktop: 3 Bilder (bereits in Standard-Styles definiert) */

@media (max-width: 768px) {
    .project-details {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .project-navigation {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .nav-button {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Items */
.contact-item {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: none;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--color-black-05);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item .icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item .content h3 {
    color: var(--primary);
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    margin-top: 0;
}

.contact-item .content p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.contact-item .content a {
    color: var(--color-turquoise);
    text-decoration: none;
    font-weight: 500;
}

.contact-item .content a:hover {
    color: var(--color-turquoise);
    text-decoration: underline;
}




/* Contact Page Two-Column Layout */
.section .content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

@media (max-width: 768px) {
    .section .content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}



/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

/* Page Header */
.page-header {
    background: linear-gradient(0deg, var(--color-gray-light) 0%, var(--color-white) 100%);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
}

/* Transparenter page-header für Subpages, damit Hintergrundmuster sichtbar bleibt */
body.subpage .page-header {
    background: linear-gradient(0deg, var(--color-gray-light) 0%, var(--color-white) 100%);

    text-align: center;
    margin-bottom: 0;
    padding: var(--spacing-xl) 0 var(--spacing-xl) 0;

    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    position: relative;
    z-index: 2;
}

body.subpage .page-header h1 {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    letter-spacing: -0.02em;
}


.page-header h1 {
    font-size: var(--font-size-section-title);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
    color: white;
}

.page-subtitle {
    font-size: var(--font-size-section-subtitle);
    color: var(--text-light);
    max-width: none;
    margin: var(--spacing-md) 0 0 0;
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--spacing-lg);
}

.content-section h2 {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.content-section p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.team-member {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
}

.team-member h3 {
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.team-member p {
    color: var(--text-light);
    font-size: var(--font-size-md);
}

.team-image-wrapper {
    margin: var(--spacing-xl) 0;
    text-align: center;
}

.team-image {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

/* Leistungen Grid - 50/50 Layout */
.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

@media (max-width: 768px) {
    .leistungen-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Grundrisse Grid - Card-Ansicht für Campergrundrisse */
.grundrisse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    justify-content: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .grundrisse-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        max-width: 100%;
    }
}

/* Grundriss Card - Einzigartiges Design mit Text-Overlay auf Bild */
.grundriss-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
}

.grundriss-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xxl);
    text-decoration: none;
    color: inherit;
}

.grundriss-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.grundriss-card__image-wrapper img,
.grundriss-card__image-wrapper picture,
.grundriss-card__image-wrapper picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grundriss-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-md);
    display: flex;
    align-items: flex-end;
}

.grundriss-card__title {
    color: var(--color-white);
    font-size: var(--font-size-3xl);
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.grundriss-card:hover .grundriss-card__title {
    color: var(--color-white);
}

@media (max-width: 768px) {
    .grundriss-card__image-wrapper {
        height: 300px;
    }

    .grundriss-card__title {
        font-size: var(--font-size-xl);
    }
}

/* CTA Section */
.cta-section {
    text-align: center;
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-xs);
}

.cta-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.cta-text {
    font-size: var(--font-size-h5);
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Process List */
.process-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.process-list li {
    margin-bottom: var(--spacing-lg);
    padding-left: calc(var(--spacing-xl) + var(--spacing-md));
    position: relative;
}

.process-list li > :first-child {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--spacing-xl);
    height: var(--spacing-xl);
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 28px;
}

.process-list li > :first-child :deep(svg) {
    width: 18px;
    height: 18px;
    display: block;
}

.process-list li strong {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-lg);
}

.process-list li p {
    margin: 0;
    color: var(--text-light);
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-lg) 0;
}

.features-list li {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
    position: relative;
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: var(--font-size-xl);
}

.features-list li strong {
    color: var(--text-dark);
}

.optional-note {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--surface);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    font-style: italic;
    color: var(--text-light);
}

/* Tile Row - Bild-Text-Wechsel Layout */
.tile-section {
    padding: var(--spacing-xl) 0;
}

.tile-section:nth-child(even) {
    background: var(--color-gray-light);
}

.tile-section:nth-child(odd) {
    background: #FFFFFF;
}

/* Sections nach tile-section Elementen folgen dem Farbwechsel */
/* Da die Anzahl der tile-section Elemente variabel ist, verwenden wir einen allgemeinen Ansatz */
/* Alle Sections mit class="section" nach den tile-section Elementen erhalten den Farbwechsel */
/* Die erste Section (Einleitungstext) bleibt transparent */
/* Da tile-section Elemente bereits alternieren (nth-child(odd) = weiß, nth-child(even) = grau), */
/* müssen wir die Sections nach den tile-section Elementen entsprechend stylen */
/* Da wir nicht wissen, wie viele tile-section Elemente es gibt, verwenden wir einen allgemeinen Ansatz: */
/* Alle Sections nach den tile-section Elementen alternieren basierend auf ihrer Position */
/* Wir verwenden einen Selektor, der alle Sections nach den tile-section Elementen erfasst */
body.project-page main > .section:not(.tile-section):not(:first-of-type) {
    /* Standard: weiß, wird durch spezifischere Selektoren überschrieben */
    background: #FFFFFF;
}

/* Alternierender Hintergrund für Sections nach tile-section Elementen */
/* Da tile-section Elemente bereits alternieren (nth-child(odd) = weiß, nth-child(even) = grau), */
/* und die erste Section (Einleitungstext) nth-child(2) ist, */
/* müssen wir die Sections nach den tile-section Elementen entsprechend stylen */
/* Da wir nicht wissen, wie viele tile-section Elemente es gibt, verwenden wir einen allgemeinen Ansatz: */
/* Alle Sections nach den tile-section Elementen alternieren: grau - weiß - grau - weiß... */
/* Wir verwenden nth-child, um die Position relativ zu allen Sections zu bestimmen */
/* Da die erste Section (Einleitungstext) transparent bleibt, beginnen wir mit der zweiten Section */
/* Da tile-section Elemente bereits alternieren, müssen wir die Sections nach ihnen entsprechend stylen */
/* Da die letzte tile-section immer ungerade oder gerade ist (abhängig von der Anzahl), */
/* müssen wir die erste Section nach den tile-section Elementen entsprechend stylen */
/* Da wir nicht wissen, wie viele tile-section Elemente es gibt, verwenden wir einen allgemeinen Ansatz: */
/* Alle Sections nach den tile-section Elementen alternieren basierend auf ihrer Position */
/* Wir verwenden nth-child, um die Position relativ zu allen Sections zu bestimmen */
body.project-page main > .section:not(.tile-section):not(:first-of-type):nth-child(even) {
    background: var(--color-gray-light);
}

body.project-page main > .section:not(.tile-section):not(:first-of-type):nth-child(odd) {
    background: #FFFFFF;
}

.tile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.tile-section--reverse .tile-row {
    direction: rtl;
}

.tile-section--reverse .tile-row > * {
    direction: ltr;
}

.tile--content h2 {
    margin-bottom: var(--spacing-md);
    color: var(--primary);
    font-size: var(--font-size-h2);
}

.tile-content {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--font-size-h5);
}

.tile-content p {
    margin-bottom: var(--spacing-md);
}

.tile-content ul {
    margin: var(--spacing-md) 0;
    padding-left: 0;
    list-style: none;
}

.tile-content li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    font-size: var(--font-size-lg);
    color: var(--text-light);
    padding-left: 1.5rem;
    position: relative;
}

.tile-content li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: var(--font-size-lg);
}

.tile--image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.tile--image img,
.tile--image picture,
.tile--image picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Grundriss-Bilder vollständig anzeigen ohne Beschneidung */
.tile--image.grundriss-image {
    aspect-ratio: auto;
    height: auto;
}

.tile--image.grundriss-image img,
.tile--image.grundriss-image picture,
.tile--image.grundriss-image picture img {
    object-fit: contain;
    height: auto;
    max-height: 600px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

@media (max-width: 768px) {
    .tile-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .tile-section--reverse .tile-row {
        direction: ltr;
    }

    .tile--image {
        aspect-ratio: 1 / 1;
    }
}


/* Filter Section */
.filter-section {
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--surface);
    border: 2px solid var(--secondary);
    color: var(--text-dark);
    padding: var(--spacing-s) var(--spacing-md);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Leistungsdetailseite Hero Styles */
.hero-section {
    padding: var(--spacing-xxl) 0;
    background: transparent;
}

/* Mehr Abstand zum Header auf Leistungsdetailseiten */
body.project-page .hero-section {
    padding-top: calc(var(--spacing-xxl) + var(--spacing-xl));
}

.hero-content {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-subtitle {
    font-size: var(--font-size-section-subtitle);
    color: var(--text-light);
    margin-top: var(--spacing-md);
}

/* Smooth Filter Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-card:not(.hidden) {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card.hidden {
    display: none !important;
}


/* Contact Grid Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}

.contact-item h3 {
    /* Standard h3-Styling ohne Border */
    margin-top: 0; /* Kein Margin-top innerhalb der Boxen */
    text-align: left; /* Links ausgerichtet */
}

.contact-item .contact-info {
    padding: 0; /* Kein extra Padding, wird durch die Box gegeben */
    margin-bottom: 0; /* Kein Margin-bottom */
    margin-top: var(--spacing-xs); /* Kleinerer Margin-top */
    box-shadow: none; /* Schatten entfernen, nur äußere Box hat Schatten */
    background: transparent; /* Transparenter Hintergrund, da äußere Box bereits weiß ist */
    border: none; /* Kein Border, da äußere Box bereits Border hat */
}

.contact-item .contact-info p:last-child {
    margin-bottom: 0; /* Letztes p-Element hat kein Margin-bottom */
}

/* Gleiche Abstände für normale contact-info (Datenschutz-Seite) */
.contact-info p:last-child {
    margin-bottom: 0; /* Letztes p-Element hat kein Margin-bottom */
}

/* Info Cards für Kontakt-Seite */
.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.info-card {
    background: var(--bg-light);
    box-shadow: none;
}

.info-card h3 {
    color: var(--text-dark);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0 0 var(--spacing-md) 0;
    border-bottom: 2px solid var(--color-turquoise);
    padding-bottom: var(--spacing-xs);
}

.info-card ul,
.info-card ol {
    margin: 0;
    padding-left: var(--spacing-md);
}

.info-card li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .info-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

.contact-item {
    display: flex;
    flex-direction: column;
    height: 100%; /* Gleiche Höhe für beide Boxen */
    margin-bottom: 0; /* Kein Margin-bottom */
}