/*
Theme Name: Samstag Maschinentechnik
Theme URI: https://www.samstag-maschinen.de
Author: Samstag Maschinentechnik GmbH
Author URI: https://www.samstag-maschinen.de
Description: Modernes Dark-Theme für Samstag Maschinentechnik GmbH
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
    --bg: #101216;
    --bg-soft: #16181d;
    --surface: #1c1f25;
    --surface-2: #23262e;
    --surface-3: #2b2f38;

    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --text: #f4f5f8;
    --text-2: #b7bdc8;
    --text-3: #7d8492;

    --accent: #f4f5f8;
    --accent-2: #ffffff;
    --accent-soft: rgba(255, 255, 255, 0.07);
    --accent-border: rgba(255, 255, 255, 0.28);
    --accent-glow: rgba(255, 255, 255, 0.16);
    --gradient: linear-gradient(110deg, #ffffff 0%, #c7cdd8 100%);
    --on-accent: #14161a;

    --success: #30d158;
    --error: #ff453a;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --container: 1240px;
    --gutter: clamp(20px, 4vw, 40px);
    --section-y: clamp(72px, 10vw, 140px);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;

    --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 30px var(--accent-glow);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 0.25s var(--ease);
    --t-med: 0.45s var(--ease);

    --header-h: 76px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

ul,
ol {
    list-style: none;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

::selection {
    background: #f4f5f8;
    color: #14161a;
}

body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
body::-webkit-scrollbar-thumb:hover { background: #3a4150; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

.section {
    position: relative;
    padding: var(--section-y) 0;
}

.section--soft {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-head {
    max-width: 760px;
    margin: 0 auto clamp(40px, 6vw, 80px);
    text-align: center;
}

.section-head--left {
    margin-left: 0;
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-2);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 3.2rem);
    margin: 18px 0 14px;
    color: var(--text);
}

.section-sub {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto;
}

.section-head--left .section-sub {
    margin-left: 0;
}

.grad-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    white-space: nowrap;
    transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), border-color var(--t-fast), filter var(--t-fast);
}

.btn:active {
    transform: scale(0.97);
}

.btn--primary {
    position: relative;
    overflow: hidden;
    background: var(--gradient);
    color: var(--on-accent);
    box-shadow: var(--shadow-glow);
}

.btn--primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 45px var(--accent-glow);
}

.btn--primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
}

.btn--primary:hover::after {
    left: 140%;
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-strong);
    color: var(--text);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
