/* ======================================================
   METHODIO — GLOBAL FOUNDATION
====================================================== */

/* ---------- Reset ---------- */

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

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

body {
    min-height: 100vh;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
picture,
svg,
canvas {
    display: block;
    max-width: 100%;
}

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

button {
    border: 0;
    background: none;
}

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

/* ---------- Design Tokens ---------- */

:root {
    --primary: #ff5722;
    --primary-dark: #e64a19;

    --text-strong: #111111;
    --text-body: #5d6672;
    --text-soft: #8a919b;

    --bg-page: #f6f7fa;
    --bg-surface: #ffffff;
    --bg-soft: #fff7f4;
    --bg-dark: #0c1221;

    --border: #e7e9ee;
    --border-strong: #d8dde6;
    --border-dark: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 6px 18px rgba(17, 17, 17, 0.04);
    --shadow-md: 0 12px 32px rgba(17, 17, 17, 0.06);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --container: 1100px;
    --content: 1040px;

    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 20px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 40px;
    --space-8: 48px;
    --space-9: 64px;
    --space-10: 80px;
}

/* ---------- Base ---------- */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-body);
    background: var(--bg-page);
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    padding: var(--space-10) 0;
}

.text-center {
    text-align: left;
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-strong);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: var(--space-5);
}

h2 {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
}

h5 {
    font-size: 0.95rem;
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

strong {
    color: var(--text-strong);
}

.page-intro {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: var(--space-6);
}

.text-small {
    font-size: 0.925rem;
}

.text-muted {
    color: var(--text-soft);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 87, 34, 0.1);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-orange {
    background: var(--primary);
    color: #ffffff;
}

.btn-orange:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #ffffff;
    border-color: var(--border-strong);
    color: var(--text-strong);
}

.btn-secondary:hover {
    background: #fbfbfc;
}

.btn-ghost {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text-strong);
}

/* ---------- Header ---------- */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: grid;
    grid-template-columns: 240px 1fr auto;
    align-items: center;
    min-height: 84px;
    column-gap: 28px;
}

		/* Zwingt den Header und Footer wieder auf die ursprüngliche Breite von 1200px */
header .container,
footer .container {
    width: min(1200px, calc(100% - 40px));
}
		
.logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
}

.logo img {
    width: auto;
    height: 36px;
    max-width: 240px;
}

.header-nav {
    justify-self: center;
}

.nav-list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}
		
.nav-list li {
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--text-strong);
    font-size: 0.97rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-list a:hover {
    color: var(--primary);
}

.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
}

.header-login {
    min-height: 34px;
    height: 34px;
    padding: 0 18px;
    font-size: 0.9rem;
    border-radius: 10px;
}

/* ---------- Mobile Navigation ---------- */

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    background: #ffffff;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 18px;
    height: 2px;
    background: var(--text-strong);
    transform: translateX(-50%);
    transition: all 0.2s ease;
}

.nav-toggle-label span {
    top: 50%;
}

.nav-toggle-label span::before {
    top: -6px;
}

.nav-toggle-label span::after {
    top: 6px;
}

.nav-toggle:checked + .nav-toggle-label span {
    background: transparent;
}

.nav-toggle:checked + .nav-toggle-label span::before {
    top: 0;
    transform: translateX(-50%) rotate(45deg);
}

.nav-toggle:checked + .nav-toggle-label span::after {
    top: 0;
    transform: translateX(-50%) rotate(-45deg);
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-inner {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
    padding: 14px 20px;
    font-size: 0.92rem;
    color: var(--text-soft);
    text-align: left;
}

.breadcrumb a {
    color: var(--text-body);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    display: inline-block;
    margin: 0 8px;
    color: var(--text-soft);
}

/* ---------- Generic Helpers ---------- */

.divider {
    border: 0;
    border-top: 1px solid var(--border);
    margin: var(--space-7) 0;
}

.subpage-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-top: var(--space-5);
}

.subpage-links a {
    font-weight: 700;
    color: var(--text-strong);
}

.subpage-links a:hover {
    color: var(--primary);
}

/* ---------- Footer ---------- */

footer {
    background: var(--bg-dark);
    color: #ffffff;
    padding: 56px 0 24px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
}

.footer-logo img {
    height: 34px;
    width: auto;
    max-width: 240px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.footer-column h5 {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
}

.footer-links-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links-list li {
    margin: 0;
    padding: 0;
}

.footer-links-list a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    margin-top: 32px;
    padding-top: 18px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.88rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
    .header-content {
        grid-template-columns: 200px 1fr auto;
        column-gap: 20px;
    }

    .nav-list {
        gap: 24px;
    }
}

@media (max-width: 960px) {
    .header-content {
        grid-template-columns: 1fr auto auto;
        min-height: 78px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 20px;
        width: min(320px, calc(100vw - 40px));
        background: #ffffff;
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 18px;
    }

    .nav-toggle-label {
        display: block;
        justify-self: end;
        order: 2;
    }

    .header-actions {
        order: 3;
    }

    .nav-toggle:checked ~ .header-nav {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .nav-list a,
    .nav-list li {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container,
    .breadcrumb-inner {
        width: calc(100% - 32px);
    }

    .breadcrumb-inner {
        padding: 12px 0;
    }

    .logo img {
        height: 32px;
    }

    .header-login {
        min-height: 30px;
        height: 30px;
        padding: 0 14px;
        font-size: 0.84rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    footer {
        padding: 44px 0 22px;
    }

    .subpage-links {
        flex-direction: column;
        align-items: flex-start;
    }
}