/* Arcane Spire Beratung – Monochrome Sophisticated Design CSS */
/* --- CSS Reset & Normalize --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    background: #fff;
}
body {
    background: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    color: #161718;
    line-height: 1.65;
    font-size: 16px;
    min-height: 100vh;
}
img {
    max-width: 100%;
    display: block;
}
a {
    color: #204172;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover, a:focus {
    color: #161718;
    text-decoration: underline;
}
ul, ol {
    margin-left: 1.2em;
}
li {
    margin-bottom: 8px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
    color: #161718;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}
h1 {
    font-size: 2.5rem;
    margin-bottom: 24px;
}
h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
h3 {
    font-size: 1.4rem;
    margin-bottom: 14px;
}
h4, h5, h6 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.subheadline {
    font-family: 'Open Sans', Arial, sans-serif;
    color: #41464b;
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 24px;
}
p, address {
    margin-bottom: 18px;
    color: #232628;
}
blockquote {
    font-style: italic;
    color: #494949;
    border-left: 4px solid #161718;
    padding-left: 14px;
    margin-bottom: 10px;
}
.testimonial-meta {
    font-size: 0.98rem;
    color: #161718;
    font-weight: 500;
}

/* --- Layout Containers --- */
.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.content-wrapper {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section {
    margin-bottom: 60px;
    padding: 40px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(30,32,36,0.08);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}
.card {
    background: #fafbfb;
    border-radius: 14px;
    box-shadow: 0 2px 12px 0 rgba(30,32,36,0.09);
    padding: 32px 24px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
    flex: 1 1 300px;
}
.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.text-image-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
@media (max-width: 768px) {
    .text-image-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    background: #F5F7FA;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(18,18,18,0.07);
    border: 1.5px solid #e1e3e6;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 24px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px 0 rgba(18,18,18,0.05);
    min-width: 210px;
    max-width: 340px;
    flex: 1 1 220px;
    margin-bottom: 16px;
    border-left: 3px solid #161718;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-start;
}

/* Cards for article/event lists */
.article-list, .event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}
.article-item, .event-item {
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(20,20,20,0.05);
    padding: 24px 18px;
    flex: 1 1 280px;
    margin-bottom: 20px;
    min-width: 230px;
}

/* --- Header & Main Navigation --- */
header {
    width: 100%;
    background: #fff;
    box-shadow: 0 1px 12px 0 rgba(20, 24, 28,0.06);
    position: sticky;
    top: 0;
    z-index: 1010;
}
header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 24px;
}
.logo img {
    height: 42px;
    width: auto;
}
nav.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}
.main-nav a {
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 10px 14px;
    font-size: 1rem;
    color: #161718;
    border-radius: 6px;
    font-weight: 500;
    position: relative;
    transition: background 0.18s, color 0.18s;
}
.main-nav a[aria-current="page"] {
    color: #fff;
    background: #161718;
    font-weight: 700;
}
.main-nav a:hover,
.main-nav a:focus {
    background: #e1e3e6;
    color: #204172;
}
.cta-button {
    display: inline-block;
    background: #161718;
    color: #fff;
    font-family: 'Montserrat', Arial, sans-serif;
    padding: 13px 28px;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 2px 12px 0 rgba(20,24,28,0.07);
    border: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.2s;
    margin-left: 14px;
    text-align: center;
}
.cta-button:hover,
.cta-button:focus {
    background: #204172;
    color: #fff;
    box-shadow: 0 4px 20px 0 rgba(30,32,36,0.12);
    text-decoration: none;
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #161718;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    margin-left: 14px;
    padding: 7px 14px;
    border-radius: 6px;
    transition: background 0.14s;
    z-index: 1020;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
    background: #e6e6e9;
}
.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 2001;
    box-shadow: 0 4px 24px 0 rgba(23,23,23,0.28);
    transform: translateX(-100vw);
    transition: transform 0.35s cubic-bezier(.7,.2,.3,1);
    padding: 36px 22px 22px 22px;
    opacity: 0;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}
.mobile-menu-close {
    background: none;
    border: none;
    color: #161718;
    font-size: 2.3rem;
    cursor: pointer;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2020;
    border-radius: 6px;
    padding: 4px 10px;
    transition: background 0.14s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
    background: #222326;
    color: #fff;
}
.mobile-nav {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.mobile-nav a {
    display: block;
    padding: 16px 10px;
    color: #161718;
    font-size: 1.2rem;
    background: transparent;
    font-family: 'Montserrat', Arial, sans-serif;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.13s, color 0.13s;
    letter-spacing: 0.01em;
}
.mobile-nav a[aria-current="page"], .mobile-nav a.active {
    background: #eeeeee;
    color: #204172;
    font-weight: 700;
}
.mobile-nav a:focus, .mobile-nav a:hover {
    background: #161718;
    color: #fff;
}

@media (max-width: 991px) {
    nav.main-nav {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
}
@media (min-width: 992px) {
    .mobile-menu,
    .mobile-menu.open {
        display: none !important;
    }
    .mobile-menu-toggle {
        display: none;
    }
}

/* --- Footer --- */
footer {
    background: #161718;
    color: #fff;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    padding-top: 34px;
    padding-bottom: 24px;
}
footer .container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
    border-bottom: 1.5px solid #232528;
    padding-bottom: 22px;
}
.logo-footer img {
    height: 34px;
    width: auto;
}
.footer-menu {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-menu a {
    color: #F5F7FA;
    font-size: 1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    padding: 7px 10px;
    border-radius: 4px;
    transition: background 0.13s, color 0.13s;
}
.footer-menu a[aria-current="page"] {
    background: #fff;
    color: #161718;
}
.footer-menu a:hover, .footer-menu a:focus {
    background: #232529;
    color: #fff;
}
.footer-bottom {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    justify-content: space-between;
    padding-top: 14px;
}
.footer-bottom p {
    margin: 0;
    color: #f7f7f8;
    font-size: 0.94rem;
}
.social-links {
    display: flex;
    gap: 12px;
}
.social-links img {
    height: 24px;
    width: 24px;
    filter: grayscale(1) contrast(1.18);
    opacity: .8;
    transition: opacity .16s;
    border-radius: 4px;
}
.social-links img:hover,
.social-links img:focus {
    opacity: 1;
    filter: grayscale(0) drop-shadow(0 1px 6px rgba(0,0,0,.11));
}

@media (max-width: 600px) {
    .footer-top, .footer-bottom, .footer-menu {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .footer-menu {
        gap: 10px;
    }
}

/* --- Price Table --- */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 1rem;
}
.price-table th, .price-table td {
    padding: 14px 10px;
    border-bottom: 1.5px solid #ececec;
}
.price-table thead th {
    color: #161718;
    background: #F5F7FA;
    font-size: 1.12rem;
    font-weight: 700;
}
.price-table tbody td {
    color: #212325;
}

/* --- FAQ Accordion --- */
.faq-accordion {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.faq-item {
    background: #fafbfc;
    border-radius: 10px;
    box-shadow: 0 2px 8px 0 rgba(25,25,25,0.05);
    padding: 20px 16px;
    flex: 1 1 270px;
    margin-bottom: 20px;
}
.faq-item h3 {
    font-size: 1.22rem;
    margin-bottom: 10px;
    color: #161718;
    font-weight: 600;
}

/* --- Info Box & Highlights --- */
.info-box {
    background: #E6E8EB;
    color: #111213;
    border-left: 4px solid #161718;
    border-radius: 8px;
    padding: 18px 18px 18px 20px;
    margin-bottom: 16px;
    font-size: 1.07rem;
}
.service-highlights ul {
    list-style: disc inside;
    color: #49494b;
}
.service-highlights ul li {
    margin-bottom: 5px;
}

/* --- Contact CSS --- */
.contact-info, .anfahrt-karte {
    background: #fafbfb;
    border-radius: 10px;
    padding: 22px 18px;
    box-shadow: 0 2px 8px 0 rgba(23,23,24,0.07);
    margin-bottom: 16px;
}
.contact-info h2, .anfahrt-karte h2 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.14rem;
    font-weight: 600;
}
.contact-info address {
    font-style: normal;
    color: #232628;
}
.contact-info a {
    word-break: break-all;
}

/* --- Misc Section Tweaks --- */
.article-list, .event-list, .faq-accordion, .feature-grid {
    margin-bottom: 20px;
}
.event-details {
    margin-top: 10px;
    color: #212325;
}
.expertentipps {
    background: #E6E8EB;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 1rem;
}
.expertentipps h3 {
    margin-bottom: 6px;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    background: #222326;
    color: #fff;
    padding: 22px 20px 20px 20px;
    box-shadow: 0 -2px 20px 0 rgba(8,8,8,0.09);
    font-size: 1.08rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    z-index: 3002;
    animation: cookie-slide-in 0.75s cubic-bezier(0.52,1.16,0.42,0.98);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
    display: flex;
    gap: 17px;
    margin-top: 4px;
}
.cookie-btn, .cookie-settings-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1rem;
    border: none;
    font-weight: 700;
    cursor: pointer;
    margin: 0 2px;
    transition: background 0.17s, color 0.17s, box-shadow 0.26s;
}
.cookie-btn.accept {
    background: #222326;
    color: #fff;
    border: 2px solid #fff;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
    background: #161718;
    color: #fff;
    box-shadow: 0 2px 12px 0 rgba(20,20,20,0.12);
}
.cookie-btn.reject {
    background: #fff;
    color: #161718;
    border: 2px solid #222326;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
    background: #161718;
    color: #fff;
}
.cookie-settings-btn {
    background: #fff;
    color: #161718;
    border: 2px solid #222326;
}
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
    background: #161718;
    color: #fff;
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(20,22,24,0.68);
    z-index: 3100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.28s;
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal {
    background: #fff;
    color: #161718;
    border-radius: 16px;
    padding: 34px 26px 28px 26px;
    min-width: 300px;
    max-width: 420px;
    box-shadow: 0 4px 24px 0 rgba(24,28,32,0.16);
    animation: modal-pop 0.27s cubic-bezier(.58,-0.06,.44,1.35);
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.97) translateY(36px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
    font-size: 1.22rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}
.cookie-modal .cookie-category {
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.cookie-modal .cookie-category label {
    margin-left: 13px;
    font-weight: 500;
}
.cookie-toggle {
    width: 44px;
    height: 26px;
    border-radius: 22px;
    background: #E6E8EB;
    appearance: none;
    outline: none;
    border: 1.5px solid #b1b4b9;
    margin-right: 0;
    position: relative;
    cursor: pointer;
    transition: background 0.18s;
}
.cookie-toggle:checked {
    background: #161718;
    border-color: #161718;
}
.cookie-toggle:before {
    content: '';
    display: block;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(29,29,29,0.09);
    position: absolute;
    top: 2.5px;
    left: 2.5px;
    transition: transform 0.22s;
}
.cookie-toggle:checked:before {
    transform: translateX(18px);
    background: #232628;
}
.cookie-modal .close-cookie-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: #161718;
    font-size: 1.6rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.13s;
    padding: 4px 10px;
}
.cookie-modal .close-cookie-modal:focus,
.cookie-modal .close-cookie-modal:hover {
    background: #e1e3e6;
}

/* Hide modal/overlay by default, show with .visible */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.visible {
    display: flex;
    opacity: 1;
    pointer-events: all;
}


/* --- Spacing Utilities --- */
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }
.pt-2 { padding-top: 16px; }
.pb-2 { padding-bottom: 16px; }
.gap-20 { gap: 20px; }

/* --- Responsive --- */
@media (max-width: 1150px) {
    .container {
        max-width: 100%;
        padding: 0 10px;
    }
}
@media (max-width: 991px) {
    .content-grid, .card-container, .feature-grid, .faq-accordion, .article-list, .event-list {
        flex-direction: column;
        gap: 18px;
    }
    .feature-item, .faq-item, .event-item, .article-item, .card {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 100%;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
    }
}
@media (max-width: 768px) {
    .section {
        padding: 30px 8px;
        margin-bottom: 38px;
        border-radius: 14px;
    }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.17rem; }
    .cta-button {
        font-size: 1.07rem;
        padding: 10px 17px;
    }
    .feature-item, .card {
        padding: 16px 10px;
    }
}
@media (max-width: 600px) {
    .footer-top, .footer-menu {
        gap: 4px;
    }
    .container {
        padding: 0 5px;
    }
}

/* --- Micro-interactions & Transitions --- */
.section, .feature-item, .card, .faq-item, .testimonial-card, .info-box, .article-item, .event-item {
    transition: box-shadow 0.21s cubic-bezier(.42,0,.65,1.25), background 0.17s;
}
.section:hover, .section:focus-within,
.feature-item:hover, .feature-item:focus-within,
.card:hover, .card:focus-within,
.article-item:hover, .event-item:hover,
.faq-item:hover, .testimonial-card:hover {
    box-shadow: 0 6px 28px 0 rgba(45,50,55,0.10);
    background: #f4f6f8;
}
.card:active, .feature-item:active {
    background: #ededed;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* --- Monochrome Style Tweaks --- */
body, .section, .container {
    background: #fff;
    color: #18191B;
}
header, .footer-top, .footer-bottom {
    background: #fff;
    color: #161718;
}
footer {
    background: #161718;
    color: #fff;
}
.testimonial-card {
    background: #F5F7FA;
    color: #18191B;
    box-shadow: 0 2px 12px 0 rgba(10,10,12,0.10);
    border-left: 3px solid #161718;
}
.feature-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.70) contrast(1.30);
}

/* --- Accent Colors for Focus/Selection States --- */
.cta-button:focus, .main-nav a:focus,
.footer-menu a:focus, .mobile-nav a:focus {
    outline: 2px solid #204172;
    outline-offset: 1.5px;
}
::selection {
    background: #161718;
    color: #fff;
}

/* --- Custom Scrollbar for Sophisticated Feel --- */
::-webkit-scrollbar {
    width: 8px;
    background: #ececec;
}
::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

/* --- Accessibility & Misc --- */
[aria-current="page"] {
    pointer-events: none;
}

/* --- Hide cookie/banner for print/large screens if desired --- */
@media print {
    .cookie-banner, .cookie-modal-overlay {
        display: none !important;
    }
}
