/* =========================================================
   SIM-RENT — Main Stylesheet
   Dark theme with cyan accents
   ========================================================= */

:root {
    --bg-0: #07101a;
    --bg-1: #0d1620;
    --bg-2: #142231;
    --bg-3: #1c2e42;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);

    --text: #ffffff;
    --text-muted: #a4b3c4;
    --text-dim: #6b7c8f;

    --accent: #00d4e0;
    --accent-glow: rgba(0, 212, 224, 0.25);
    --accent-dark: #00a3ad;

    --warn: #ff8a3d;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --container: 1200px;
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #fff; }

h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.02em;
}

p { margin: 0 0 1em; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: #002126;
}
.btn-primary:hover {
    background: #fff;
    color: #002126;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 16, 26, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.site-logo img { height: 80px; width: auto; }

.site-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}
.site-nav a {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
    background: var(--accent);
    color: #002126;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
}
.site-nav .nav-cta:hover { background: #fff; }

@media (max-width: 767px) {
    .site-logo img { height: 56px; }
    .site-nav { display: none; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, var(--accent-glow), transparent 70%),
        linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding-left: 32px;
    position: relative;
}
.hero-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent);
}
.hero-title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    margin-bottom: 24px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line);
}
.hero-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 11;
    object-fit: cover;
}
.hero-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(7, 16, 26, 0.85);
    backdrop-filter: blur(8px);
    color: var(--text);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    border-left: 3px solid var(--accent);
}

@media (max-width: 900px) {
    .hero { padding: 60px 0 40px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* =========================================================
   Stats
   ========================================================= */
.stats {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 50px 0;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.stat {
    text-align: center;
    border-left: 2px solid var(--accent);
    padding: 8px 0 8px 24px;
    text-align: left;
}
.stat-value {
    display: block;
    font-size: clamp(40px, 5vw, 60px);
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
}
.stat-value small {
    font-size: 0.55em;
    color: var(--accent);
    font-weight: 700;
    margin-left: 4px;
}
.stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .stats-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =========================================================
   Section title
   ========================================================= */
.section-title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 900;
    margin-bottom: 48px;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 16px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: var(--accent);
}

/* =========================================================
   Benefits
   ========================================================= */
.benefits {
    padding: 80px 0;
    background: var(--bg-0);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.benefit {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s ease;
}
.benefit:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(0, 212, 224, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
}
.benefit h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.benefit p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

@media (max-width: 900px) {
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .benefits-grid { grid-template-columns: 1fr; }
    .benefits { padding: 60px 0; }
}

/* =========================================================
   Steps
   ========================================================= */
.steps {
    padding: 80px 0;
    background: var(--bg-1);
    border-top: 1px solid var(--line);
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.step {
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
}
.step-number {
    position: absolute;
    top: -20px;
    left: 32px;
    width: 44px;
    height: 44px;
    background: var(--accent);
    color: #002126;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 20px;
}
.step h3 {
    font-size: 18px;
    margin-top: 16px;
    margin-bottom: 8px;
}
.step p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

.task-callout {
    background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(255, 138, 61, 0.04));
    border: 1px solid rgba(255, 138, 61, 0.3);
    border-left: 4px solid var(--warn);
    border-radius: var(--radius-md);
    padding: 24px 32px;
}
.task-label {
    display: block;
    color: var(--warn);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.task-callout p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

@media (max-width: 900px) {
    .steps-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
    padding: 80px 0;
    background:
        radial-gradient(ellipse 50% 60% at 20% 80%, var(--accent-glow), transparent 70%),
        var(--bg-0);
}
.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.contact-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.contact-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    margin-bottom: 16px;
}
.contact-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    color: var(--text);
    transition: all 0.2s ease;
}
.contact-method:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--bg-2);
}
.contact-method-icon {
    font-size: 20px;
    color: var(--accent);
    width: 24px;
    text-align: center;
}
.contact-method-text { display: flex; flex-direction: column; }
.contact-method-label {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}
.contact-method-value {
    font-size: 16px;
    font-weight: 600;
}

.contact-form-wrap {
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.contact-form-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* SilverStripe form styling */
.contact-form .field {
    margin-bottom: 16px;
}
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    background: var(--bg-2);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    transition: border-color 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-dim);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}
.contact-form .Actions {
    margin-top: 20px;
}
.contact-form .Actions input[type="submit"],
.contact-form .Actions button {
    background: var(--accent);
    color: #002126;
    border: none;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.contact-form .Actions input[type="submit"]:hover,
.contact-form .Actions button:hover {
    background: #fff;
    transform: translateY(-1px);
}
.contact-form .message {
    background: rgba(0, 212, 224, 0.1);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 14px;
}
.contact-form .message.good {
    background: rgba(46, 213, 115, 0.1);
    border-color: rgba(46, 213, 115, 0.5);
    color: #2ed573;
}
.contact-form .message.bad,
.contact-form .message.error {
    background: rgba(255, 71, 87, 0.1);
    border-color: rgba(255, 71, 87, 0.5);
    color: #ff4757;
}
.contact-form .required {
    color: var(--accent);
    margin-left: 2px;
}

@media (max-width: 900px) {
    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact { padding: 60px 0; }
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--bg-1);
    border-top: 1px solid var(--line);
    padding: 40px 0;
    color: var(--text-muted);
    font-size: 14px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 12px; }
.footer-tagline { color: var(--text-muted); font-size: 14px; }
.footer-meta { text-align: right; }
.footer-meta p { margin: 0 0 6px; }
.footer-links a { color: var(--text-muted); margin: 0 4px; }
.footer-links a:hover { color: var(--accent); }

@media (max-width: 700px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-meta { text-align: left; }
}

/* =========================================================
   Basic page (impressum, datenschutz)
   ========================================================= */
.basic-page {
    padding: 60px 24px;
    max-width: 820px;
}
.basic-page h1 {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 32px;
}
.basic-page .content {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}
.basic-page .content a { color: var(--accent); }
.basic-page .content h2,
.basic-page .content h3 {
    color: var(--text);
    margin-top: 1.5em;
}
.basic-page .content h2 { font-size: 22px; }
.basic-page .content h3 { font-size: 18px; }
.basic-page .content ul,
.basic-page .content ol { padding-left: 1.5em; margin: 1em 0; }
.basic-page .content li { margin-bottom: 0.4em; }
.basic-page .content strong { color: var(--text); }

/* =========================================================
   Cookie Banner
   ========================================================= */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 200;
    background: var(--bg-1);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    padding: 24px 28px;
    max-width: 560px;
    margin-left: auto;
    animation: cookieSlideIn 0.4s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cookie-banner-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--text);
}
.cookie-banner-text p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}
.cookie-banner-text a {
    color: var(--accent);
    text-decoration: underline;
}
.cookie-banner-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cookie-banner-actions .btn {
    padding: 10px 20px;
    font-size: 14px;
}

@keyframes cookieSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0; left: 0; right: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-width: none;
        padding: 20px;
    }
}

/* =========================================================
   Error Page
   ========================================================= */
.error-page {
    min-height: calc(100vh - 200px);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, var(--accent-glow), transparent 70%),
        var(--bg-0);
}
.error-page .container { max-width: 640px; }
.error-code {
    font-size: clamp(80px, 16vw, 160px);
    font-weight: 900;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 16px;
    text-shadow: 0 0 40px var(--accent-glow);
}
.error-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 16px;
}
.error-message {
    color: var(--text-muted);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* =========================================================
   Mobile Hamburger (sr-* namespace)
   ========================================================= */
.sr-mobile-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
}
.sr-mobile-toggle__bar {
    display: block;
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: top 0.25s ease, transform 0.25s ease 0.25s, opacity 0.2s ease;
}
.sr-mobile-toggle__bar:nth-child(1) { top: 14px; }
.sr-mobile-toggle__bar:nth-child(2) { top: 21px; }
.sr-mobile-toggle__bar:nth-child(3) { top: 28px; }

.sr-mobile-toggle.is-active .sr-mobile-toggle__bar:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}
.sr-mobile-toggle.is-active .sr-mobile-toggle__bar:nth-child(2) {
    opacity: 0;
}
.sr-mobile-toggle.is-active .sr-mobile-toggle__bar:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

.sr-mobile-backdrop {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.sr-mobile-backdrop.is-active {
    display: block;
    opacity: 1;
}

.sr-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 85vw;
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    background: #0d1620;
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
    padding: 80px 24px 32px;
    box-sizing: border-box;
}
.sr-mobile-nav.is-active {
    transform: translateX(0);
}

.sr-mobile-nav__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.sr-mobile-nav__close:hover,
.sr-mobile-nav__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.sr-mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sr-mobile-nav__list li + li {
    margin-top: 8px;
}

.sr-mobile-nav__link {
    display: block;
    padding: 14px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.3;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}
.sr-mobile-nav__link:hover,
.sr-mobile-nav__link:focus-visible {
    background: rgba(0, 212, 224, 0.1);
    color: #00d4e0;
    outline: none;
}

.sr-mobile-nav__link--cta {
    margin-top: 24px;
    background: #00d4e0;
    color: #0d1620;
    text-align: center;
    font-weight: 700;
}
.sr-mobile-nav__link--cta:hover,
.sr-mobile-nav__link--cta:focus-visible {
    background: #00b8c2;
    color: #0d1620;
}

body.sr-mobile-open { overflow: hidden; }

@media (max-width: 767px) {
    .sr-mobile-toggle { display: block; }
}
@media (min-width: 768px) {
    .sr-mobile-toggle,
    .sr-mobile-nav,
    .sr-mobile-backdrop {
        display: none !important;
    }
}
