/* PP-Tec Veranstaltungstechnik — helles, professionelles Design */

:root {
    --accent: #e31837;
    --accent-dark: #c41930;
    --accent-soft: #fff0f2;
    --text: #2d2d2d;
    --text-muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f7f8fa;
    --bg-warm: #fafbfc;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(45, 45, 45, 0.08);
    --shadow-lg: 0 12px 40px rgba(45, 45, 45, 0.12);
    --radius: 14px;
    --radius-lg: 20px;
    --header-h: 72px;
    --header-total: var(--header-h);
    --font: "DM Sans", system-ui, -apple-system, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg-warm);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

.container {
    width: min(1140px, calc(100% - 2rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--border);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.page-home .site-header:not(.is-scrolled) {
    background: rgba(255, 255, 255, 0.85);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 1rem;
}

.nav-toggle {
    margin-left: auto;
}

/* News-Ticker neben Logo */
.header-news-ticker {
    flex: 0 0 auto;
    width: clamp(280px, 52vw, 640px);
    margin-left: 1.35rem;
    margin-right: 1.75rem;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 0.65rem;
    background: linear-gradient(90deg, var(--accent-soft) 0%, #fff 85%);
    border: 1px solid rgba(227, 24, 55, 0.14);
    border-radius: 11px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(227, 24, 55, 0.07);
}

.header-news-ticker__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.header-news-ticker__track {
    display: inline-block;
    white-space: nowrap;
    padding: 0.15rem 0 0.15rem 100%;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-dark);
    line-height: 1.2;
    letter-spacing: 0.01em;
    will-change: transform;
    animation: header-ticker-run 18s linear infinite;
}

.header-news-ticker:hover .header-news-ticker__track {
    animation-play-state: paused;
}

@keyframes header-ticker-run {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.brand-logo-wrap {
    display: inline-flex;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    line-height: 0;
    transition: transform var(--transition);
    box-shadow: none;
}

.brand:hover .brand-logo-wrap { transform: scale(1.02); }

.brand-logo {
    height: 54px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
    margin: 0 auto;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    padding: 0.5rem 0.9rem;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta {
    margin-left: 0.5rem;
    background: var(--accent) !important;
    color: #fff !important;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: #fff !important;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    min-height: clamp(520px, 85vh, 720px);
    margin-top: var(--header-total);
    overflow: hidden;
}

.hero-slider__track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) saturate(0.95);
}

.hero-slider__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: clamp(480px, 78vh, 660px);
    padding-block: 3rem;
}

.hero-content__inner {
    max-width: 640px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.hero-eyebrow {
    display: block;
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    color: #fff;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.hero-company-name {
    white-space: nowrap;
    color: #fff;
    font-size: 0.78em;
    font-weight: 700;
}

.hero-content h1 {
    margin: 0 0 1rem;
    font-size: clamp(1.55rem, 3.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.text-accent { color: var(--accent); }

.hero-lead {
    margin: 0 0 1.75rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-actions .btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

.hero-slider__controls {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-slider__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--text);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.hero-slider__btn:hover {
    background: var(--accent);
    color: #fff;
}

.hero-slider__dots {
    display: flex;
    gap: 0.4rem;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.hero-slider__dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(227, 24, 55, 0.3);
}

.btn-primary:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 6px 20px rgba(227, 24, 55, 0.35);
}

.btn-outline {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-white {
    background: #fff;
    color: var(--accent-dark);
    border-color: #fff;
}

.btn-white:hover { background: var(--accent-soft); color: var(--accent-dark); }

.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Sections */
.section { padding: 4.5rem 0; }

.section-head {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-content .hero-eyebrow {
    color: #fff;
    text-transform: none;
    letter-spacing: 0.02em;
}

.section-head h2,
.intro-text h2 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
}

.section-lead { margin: 0; color: var(--text-muted); }

.section-intro { background: var(--bg); }

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.intro-text p { color: var(--text-muted); margin: 0 0 1rem; }

.check-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.intro-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    padding: 1.5rem;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.stat-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Service cards */
.section-services { background: var(--bg-soft); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    padding: 1.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(227, 24, 55, 0.2);
}

.service-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 1rem;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 12px;
    transition: background var(--transition), color var(--transition), transform var(--transition);
}

.service-card:hover .service-card__icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.08) rotate(-3deg);
}

.service-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}

.service-card p {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.service-card__link {
    font-weight: 600;
    font-size: 0.9rem;
}

/* CTA */
.section-cta { padding-bottom: 5rem; }

.cta-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem 3rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: var(--radius-lg);
    color: #fff;
    box-shadow: 0 12px 40px rgba(227, 24, 55, 0.25);
}

.cta-box h2 { margin: 0 0 0.5rem; font-size: 1.6rem; }
.cta-box p { margin: 0; opacity: 0.92; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Page hero (subpages) */
.page-hero {
    position: relative;
    margin-top: var(--header-total);
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.page-hero--compact { padding: 3rem 0 2rem; background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg-warm) 100%); }

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-hero--image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(105deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.45) 45%, rgba(15, 23, 42, 0.55) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, transparent 50%);
}

.page-hero--image .page-hero__bg {
    opacity: 1;
    filter: brightness(0.55) saturate(0.95);
}

.page-hero__content { position: relative; z-index: 2; }

.page-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.page-hero--image .eyebrow,
.page-hero--image h1,
.page-hero--image .page-hero__lead {
    color: #fff;
}

.page-hero__lead {
    margin: 0;
    max-width: 560px;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Leistungen detail */
.leistungen-list { display: flex; flex-direction: column; gap: 4rem; }

.leistung-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.leistung-item--reverse .leistung-item__visual { order: 2; }
.leistung-item--reverse .leistung-item__body { order: 1; }

.leistung-item__visual {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.leistung-item__visual img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.leistung-item:hover .leistung-item__visual img { transform: scale(1.04); }

.leistung-item__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 10px;
}

.leistung-item h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }

.leistung-item__teaser {
    font-size: 1.05rem;
    color: var(--accent-dark);
    font-weight: 500;
    margin: 0 0 1rem;
}

.leistung-item__body p { color: var(--text-muted); margin: 0 0 1.5rem; }

/* Contact */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.lead { font-size: 1.05rem; color: var(--text-muted); }

.contact-info { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }

.contact-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}

.contact-card:hover { box-shadow: var(--shadow); }

.contact-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 10px;
}

.contact-card strong { display: block; margin-bottom: 0.25rem; }
.contact-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

.form-card,
.admin-card {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.form-card h2 { margin: 0 0 1.5rem; font-size: 1.35rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-warm);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-hint { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--text-muted); }

.checkbox-label {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-weight: 400 !important;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.checkbox-label input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }

.alert {
    padding: 1rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* Legal */
.legal-content { max-width: 760px; }
.legal-content h1 { margin-top: 0; }
.legal-content h2 { margin-top: 2rem; font-size: 1.25rem; }
.legal-content h3 { margin-top: 1.25rem; font-size: 1.05rem; }
.legal-content p, .legal-content li { color: var(--text-muted); }
.legal-content ul { padding-left: 1.25rem; }

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: #d1d5db;
    padding: 3.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-logo-wrap {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.footer-logo { height: 36px; width: auto; }

.footer-brand p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #9ca3af; }

.site-footer h3 {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
}

.footer-links,
.footer-contact-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact-links li { margin-bottom: 0.45rem; }

.footer-links a,
.footer-contact-link {
    color: #9ca3af;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover,
.footer-contact-link:hover { color: #fff; }

.footer-address { margin: 0 0 0.75rem; font-size: 0.9rem; line-height: 1.6; }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-credits a { color: #9ca3af; }
.footer-credits a:hover { color: #fff; }

.copyright-link {
    color: inherit;
    text-decoration: none;
}

.copyright-link:hover {
    color: inherit;
}

/* Admin */
.admin-section {
    margin-top: var(--header-total);
    padding-top: 1.75rem;
}

.admin-layout { max-width: 720px; }

.admin-card {
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.admin-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.admin-card-lead {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.admin-login-card {
    max-width: 420px;
    margin: 2rem auto 0;
    text-align: center;
}

.admin-login-logo {
    margin: 0 auto 1.25rem;
    height: 48px;
    width: auto;
}

.admin-login-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.admin-login-lead {
    margin: 0 0 1.5rem;
    color: var(--text-muted);
}

.admin-login-hint { text-align: center; }

.admin-back {
    margin: 1.25rem 0 0;
    font-size: 0.9rem;
}

.admin-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-topbar h1 {
    margin: 0;
    font-size: 1.75rem;
}

.admin-topbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-topbar__meta {
    margin: 0.35rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.admin-nav__link:hover,
.admin-nav__link.is-active {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.admin-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.admin-table__badge {
    display: inline-block;
    margin-left: 0.4rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
}

.admin-table__actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 220px;
}

.admin-inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-inline-form input[type="password"] {
    flex: 1 1 140px;
    min-width: 140px;
}

.btn-sm {
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
}

.admin-btn-danger:hover {
    color: #fff;
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* Float contact buttons */
.float-actions {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1.25rem, env(safe-area-inset-bottom));
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.65rem;
}

.float-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.1rem 0.75rem 0.85rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.float-btn-label { white-space: nowrap; }

.float-email {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 6px 24px rgba(45, 45, 45, 0.14);
}

.float-email:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 28px rgba(45, 45, 45, 0.18);
}

.float-email svg { color: var(--accent); }

.float-phone {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 28px rgba(227, 24, 55, 0.45);
    animation: float-bob 3s ease-in-out infinite;
}

.float-phone:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 32px rgba(227, 24, 55, 0.5);
}

.float-phone-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 999px;
    border: 2px solid var(--accent);
    animation: phone-pulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes phone-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.35); opacity: 0; }
}

@keyframes float-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.float-phone:hover { animation: none; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Desktop: Header-Abstände */
@media (min-width: 961px) {
    .header-inner {
        padding-left: 0.5rem;
    }

    .brand {
        margin-right: 0.25rem;
    }

    .main-nav {
        margin-left: auto;
        padding-left: 0.5rem;
    }
}

/* Responsive */
@media (max-width: 960px) {
    body:has(.header-news-ticker) {
        --header-total: calc(var(--header-h) + 40px);
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        min-height: var(--header-h);
        padding: 0.4rem 0 0.5rem;
        align-content: center;
    }

    .brand {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .nav-toggle {
        order: 2;
        display: flex;
    }

    .header-news-ticker {
        order: 3;
        flex: 1 1 100%;
        width: 100%;
        height: 34px;
        margin-top: 0.15rem;
        margin-left: 0;
        margin-right: 0;
    }

    .main-nav {
        order: 4;
        position: fixed;
        top: var(--header-total);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
        margin-left: 0;
    }

    .main-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link { padding: 0.75rem 1rem; }
    .nav-cta { margin-left: 0; margin-top: 0.5rem; text-align: center; }

    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .leistung-item,
    .leistung-item--reverse { grid-template-columns: 1fr; }
    .leistung-item--reverse .leistung-item__visual,
    .leistung-item--reverse .leistung-item__body { order: unset; }
    .contact-split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-box { padding: 2rem 1.5rem; flex-direction: column; text-align: center; }
    .cta-box__actions { justify-content: center; }

    .float-btn-label { display: none; }
    .float-btn {
        padding: 0.85rem;
        border-radius: 50%;
        width: 56px;
        height: 56px;
        justify-content: center;
    }

    .hero-slider__controls { bottom: 1rem; padding: 0.4rem 0.6rem; }

}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .header-news-ticker__track {
        animation: none;
        padding-left: 0;
        white-space: normal;
        text-align: left;
    }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
