/* ==========================================================================
   Base Design System & Custom Properties
   ========================================================================== */
:root {
    --primary-color: #b9a686;
    /* Gold/Tan */
    --text-color: #000000;
    --text-light: #575757;
    /* Dark Gray */
    --bg-light: #ffffff;
    --bg-gray: #ebebeb;
    /* Light Gray */
    --bg-profile: #b8b8b8;
    /* Medium Gray */
    --input-bg: #d9d9d9;

    --font-serif: 'Noto Serif Display', serif;
    --font-sans: 'Nunito Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

section,
.table-edge {
    /* Prevents anchor links and JS smooth scrolling from hiding underneath the sticky navbar */
    scroll-margin-top: 5.5rem;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color) !important;
}

/* Typography Utilities */
.section-title-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 600;
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 7rem;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
}

/* ==========================================================================
   Header & Navigation (Default Desktop)
   ========================================================================== */
.main-header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

.header-container {
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-shrink: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 1.02rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    color: var(--primary-color) !important;
}

/* Language Switcher Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.35rem 0.6rem;
    border-radius: 0px;
    cursor: pointer;
    color: var(--text-light);
    font-family: var(--font-sans);
    transition: all 0.25s ease;
}

.lang-btn:hover,
.lang-dropdown:hover .lang-btn,
.lang-dropdown.is-open .lang-btn {
    color: var(--primary-color);
    background: rgba(185, 166, 134, 0.08);
    border-color: rgba(185, 166, 134, 0.25);
}

.lang-flag-img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 0px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: block;
    flex-shrink: 0;
}

.lang-code {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lang-arrow {
    width: 8px;
    height: 5px;
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.lang-dropdown:hover .lang-arrow,
.lang-dropdown.is-open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(0);
    background: #ffffff;
    border: 1px solid rgba(185, 166, 134, 0.3);
    border-radius: 0px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    min-width: 145px;
    padding: 0.35rem 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 1200;
}

/* Invisible bridge so mouse hover never drops between button and dropdown */
.lang-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.lang-dropdown:hover .lang-menu,
.lang-dropdown.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lang-option {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1rem !important;
    font-size: 0.88rem !important;
    color: var(--text-color) !important;
    text-transform: none !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap;
    text-align: left !important;
    border-bottom: none !important;
    border-radius: 0px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-option:hover {
    background-color: #f8f6f2 !important;
    color: var(--primary-color) !important;
}

.lang-option.active {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    background-color: #faf9f6;
}

.lang-option .lang-flag-img {
    width: 22px;
    height: 14px;
    border-radius: 0px;
}

.btn-kontakt {
    background-color: var(--primary-color);
    color: var(--text-color) !important;
    padding: 0.6rem 1.7rem;
    border-radius: 0px;
    font-size: 1.02rem;
    font-weight: 300 !important;
}

.main-nav a.btn-kontakt:hover {
    background-color: #a39276;
    color: var(--text-color) !important;
}

/* ==========================================================================
   Hero Section (Default Desktop)
   ========================================================================== */
.hero {
    position: relative;
    padding: clamp(2.5rem, 6vh, 6.5rem) 3rem clamp(6rem, 10vh, 10rem) 3rem;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background-image: url('hero bg 0.png');
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('hero bg 1.png');
    background-size: cover;
    background-position: center bottom;
    z-index: 3;
    pointer-events: none;
}

.table-edge {
    width: 100%;
    height: 4px;
    background-color: #ffffff;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.8), 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 5;
    filter: blur(2px);
    margin-top: -2px;
    margin-bottom: -2px;
}

.hero-content {
    position: sticky;
    top: calc(5.5rem + clamp(2.5rem, 6vh, 6.5rem));
    z-index: 2;
    margin: 0 auto clamp(2.5rem, 4vh, 4rem) auto;
    width: 94%;
    max-width: 2400px;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 3.8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    color: #000000;
    white-space: nowrap;
}

.hero .subtitle {
    font-family: var(--font-sans);
    color: var(--primary-color);
    letter-spacing: clamp(0.4rem, 1.4vw, 1rem);
    font-size: clamp(0.95rem, 1.3vw, 1.25rem);
    font-weight: 400;
    margin-left: clamp(0.4rem, 1.4vw, 1rem);
    white-space: nowrap;
}

/* ==========================================================================
   Services Section (Default Desktop)
   ========================================================================== */
.services {
    padding: 10rem 2rem;
    background-image: url('sevices bg.png');
    background-size: cover;
    background-position: center;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

.services>* {
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6.5rem 4rem;
    width: 92%;
    max-width: 1250px;
    margin: 0 auto 6rem auto;
    position: relative;
    z-index: 2;
}

.service-card {
    perspective: 1500px;
    z-index: 1;
    min-height: 480px;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-card-inner:not(.is-flipped) {
    transform: translateY(-5px);
}

.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #f6f5f3;
    padding: 3.5rem 3.5rem;
    box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.service-card-front {
    transform: rotateY(0deg);
}

.service-card-back {
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: var(--bg-light);
    box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.3);
    align-items: flex-start;
}

.service-card-back h3 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 2rem;
    font-weight: 900;
    color: white;
}

.service-card-back ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-back li {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 300;
    opacity: 0.8;
}

.close-modal-btn:hover {
    opacity: 1;
}

/* FLIP Modal Active State */
.service-card.is-modal-active {
    position: fixed;
    top: 0;
    left: 0;
    width: 90vw;
    max-width: 600px;
    height: 80vh;
    max-height: 700px;
    z-index: 1001;
    margin: 0;
}

.service-card.is-modal-active .service-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-backdrop.is-active {
    opacity: 1;
    pointer-events: auto;
}

.services:has(.is-modal-active),
.services-grid:has(.is-modal-active) {
    z-index: 2000 !important;
}

.card-accent {
    width: 80px;
    height: 10px;
    min-height: 10px;
    flex-shrink: 0 !important;
    display: block;
    background-color: var(--primary-color);
    margin-bottom: 2rem;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    opacity: 0.85;
    flex-shrink: 0 !important;
}

.service-card p {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.8;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
    line-height: 1.6;
    flex-grow: 1;
    overflow: hidden;
}

.card-link {
    align-self: flex-end;
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 200;
    font-size: 1.25rem;
    letter-spacing: 0.35em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 6px;
    text-transform: uppercase;
    margin-top: auto;
    flex-shrink: 0 !important;
}

.services-footer {
    text-align: center;
    position: relative;
    z-index: 2;
}

.view-all-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 200;
    font-size: 1.4rem;
    letter-spacing: 0.35em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 6px;
}

/* ==========================================================================
   Profile Section (Default Desktop)
   ========================================================================== */
.profile {
    background-color: #cccccc;
    padding: 10rem 2rem;
}

.profile-container {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
}

.profile-body {
    display: flex;
    gap: 5rem;
    align-items: stretch;
}

.profile-text {
    flex: 1;
    min-width: 0;
}

.profile-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 5rem;
    text-align: left;
    color: black;
    white-space: nowrap;
}

/* Subpage Profile Heading (Refined hierarchy to prevent clashing with Subpage Hero) */
.profile-subpage {
    padding: 6rem 2rem;
}

.profile-subpage .profile-title {
    font-size: 2.8rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 1.5px;
    margin-bottom: 2.5rem;
}

.profile-text h4 {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0;
    opacity: 0.8;
}

.profile-text p {
    font-size: 1.25rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    opacity: 0.8;
}

.stats-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 4rem;
    align-items: stretch;
}

.stat-box {
    background: #f5f5f5;
    padding: 2rem 1.5rem;
    min-height: 140px;
    flex: 1;
    text-align: center;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-box:hover {
    transform: translateY(-5px);
}

/* 3D Flip Card Styles */
.stat-box.flip-card {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    perspective: 1000px;
    display: flex;
    flex-direction: column;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
    .stat-box.flip-card:hover:not(.is-unflipped) .flip-card-inner {
        transform: rotateY(180deg);
    }
}

.stat-box.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg) !important;
}

.stat-box.flip-card.is-unflipped .flip-card-inner {
    transform: rotateY(0deg) !important;
}

.flip-card-front,
.flip-card-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background: #f5f5f5;
    padding: 2rem 1.5rem;
    box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    min-height: 140px;
    box-sizing: border-box;
}

.flip-card-front {
    position: relative;
    flex: 1;
}

.flip-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotateY(180deg);
    background: var(--primary-color);
    color: var(--bg-light);
}

.flip-card-back p {
    font-size: 1.15rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-style: normal;
    color: white;
    text-align: center;
}

.flip-card-back p:last-child {
    margin-bottom: 0;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 4rem;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.stat-plus,
.stat-percent {
    font-size: 2rem;
    line-height: 0.8;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #777;
    font-weight: 300;
    white-space: nowrap;
}

.profile-image {
    flex: 0 0 450px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 15px 15px 0px 0px var(--primary-color);
}

/* ==========================================================================
   Contact Section (Default Desktop)
   ========================================================================== */
.contact {
    padding: 10rem 2rem;
    background-color: white;
}

.contact-wrapper {
    width: 92%;
    max-width: 1250px;
    margin: 0 auto;
}

.contact-container {
    width: 100%;
    display: flex;
    gap: 5rem;
    align-items: stretch;
}

.contact-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 3.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 4rem;
    text-align: left;
    color: black;
    white-space: nowrap;
}

.contact-form-section {
    flex: 1;
    padding-top: 0;
    min-width: 0;
}

.contact-info-section {
    flex: 0 0 450px;
    padding-top: 0;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1.5rem;
}

.form-group label {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 2px;
    display: block;
}

.form-group input,
.form-group textarea {
    background-color: #e5e5e5;
    border: none;
    padding: 1.25rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    width: 100%;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.15);
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 178px;
    height: 178px;
}

.btn-submit {
    margin-top: 1.8rem;
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 1.25rem 2.5rem;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-submit:hover {
    background-color: #a39276;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.2);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0px 0px rgba(0, 0, 0, 0.15);
}

.contact-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #555555;
    color: white;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 15px 15px 0px 0px #cccccc;
}

.contact-box h3 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: 4px;
    text-align: center;
}

.contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-details p {
    font-size: 1.15rem;
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.contact-details p:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-details span {
    text-align: right;
}

.contact-details strong {
    color: white;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ==========================================================================
   Page Transitions & Navigation Active State
   ========================================================================== */
@view-transition {
    navigation: auto;
}

.page-main {
    opacity: 1;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-main.is-exiting {
    opacity: 0;
    transform: translateY(10px);
}

.main-nav a:not(.btn-kontakt).active {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.main-nav a.btn-kontakt.active {
    background-color: #a39276;
    color: var(--text-color) !important;
    font-weight: 600 !important;
}

/* ==========================================================================
   Subpage Hero Banner (Default Desktop)
   ========================================================================== */
.subpage-hero {
    background-image: url('hero bg 0.png');
    background-size: cover;
    background-position: center 20%;
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    z-index: 1;
}

.subpage-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1800px;
    width: 92%;
    margin: 0 auto;
}

.subpage-hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 3.8vw, 4.8rem);
    font-weight: 600;
    font-style: italic;
    letter-spacing: 2px;
    color: #000000;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    line-height: 1.15;
}

.subpage-hero .subpage-subtitle {
    font-family: var(--font-sans);
    color: var(--primary-color);
    letter-spacing: 0.4em;
    font-size: clamp(0.95rem, 1.1vw, 1.35rem);
    font-weight: 400;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ==========================================================================
   FAQ Section (Default Desktop)
   ========================================================================== */
.faq-section {
    padding: 8rem 2rem;
    background-color: #f6f5f3;
    position: relative;
    border-top: 1px solid #e5e3de;
}

.faq-container {
    width: 86%;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 4.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 4.5rem;
    letter-spacing: 2px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-item {
    background: #ffffff;
    border-left: 6px solid var(--primary-color);
    box-shadow: 6px 6px 0px 0px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    transform: translateX(4px);
    box-shadow: 8px 8px 0px 0px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.01em;
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 2rem;
}

.faq-item.is-open .faq-answer {
    padding: 0 2rem 1.8rem 2rem;
}

.faq-answer p {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Footer (Default Desktop)
   ========================================================================== */
.main-footer {
    background-color: #1e1e1e;
    color: #a0a0a0;
    padding: 2.5rem 0;
    border-top: 2px solid var(--primary-color);
    font-size: 1rem;
    font-weight: 200;
    letter-spacing: 0.1em;
}

.footer-container {
    width: 92%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.main-footer p {
    margin: 0;
}

.main-footer strong {
    color: #ffffff;
    font-weight: 400;
}

/* ==========================================================================
   High-Resolution Displays (2K & Ultra-Wide: min-width: 2000px)
   ========================================================================== */
@media (min-width: 2000px) {
    .main-header {
        padding: 1.8rem 0;
    }

    .header-container {
        max-width: 1800px;
    }

    .logo-img {
        height: 48px;
    }

    .main-nav {
        gap: 2.8rem;
    }

    .main-nav a {
        font-size: 1.2rem;
        letter-spacing: 0.18em;
    }

    .btn-kontakt {
        padding: 0.75rem 2.4rem;
        font-size: 1.2rem;
    }

    .hero {
        padding-top: clamp(3.5rem, 7vh, 8rem);
        padding-bottom: clamp(8rem, 12vh, 14rem);
    }

    .hero-content {
        top: calc(6.5rem + clamp(3.5rem, 7vh, 8rem));
        max-width: 2600px;
        margin-bottom: clamp(3rem, 5vh, 6rem);
    }

    .hero h1 {
        font-size: clamp(3.8rem, 3.8vw, 5.8rem);
        letter-spacing: 3px;
        margin-bottom: 1.5rem;
        white-space: nowrap;
    }

    .hero .subtitle {
        font-size: clamp(1.2rem, 1vw, 1.8rem);
        letter-spacing: clamp(0.6rem, 1vw, 1.4rem);
        margin-left: clamp(0.6rem, 1vw, 1.4rem);
        white-space: nowrap;
    }

    .section-title-italic {
        font-size: 6.8rem;
    }

    /* Subpage Hero 2K Scaling */
    .subpage-hero {
        padding: 5rem 2rem;
    }

    .subpage-hero-content {
        max-width: 2200px;
    }

    .subpage-hero h1 {
        font-size: clamp(4.2rem, 4.2vw, 6.8rem);
        letter-spacing: 3px;
        margin-bottom: 0.8rem;
        white-space: nowrap;
    }

    .subpage-hero .subpage-subtitle {
        font-size: clamp(1.25rem, 1.1vw, 1.75rem);
        letter-spacing: 0.5em;
        white-space: nowrap;
    }

    /* Services Section 2K Scaling */
    section.services {
        padding: 6rem 3rem;
    }

    .services .services-grid {
        max-width: 1600px;
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem 4rem;
        margin: 0 auto 3.5rem auto;
    }

    .services .service-card {
        min-height: 560px;
    }

    .services .service-card-front,
    .services .service-card-back {
        padding: 4.5rem 4rem;
        overflow: hidden;
    }

    .services .card-accent {
        width: 85px;
        height: 10px;
        min-height: 10px;
        flex-shrink: 0 !important;
        margin-bottom: 2rem;
    }

    .services .service-card h3 {
        font-size: 2.6rem;
        margin-bottom: 1.2rem;
        flex-shrink: 0 !important;
    }

    .services .service-card p {
        font-size: 1.35rem;
        margin-bottom: 2rem;
        line-height: 1.65;
        flex-grow: 1;
    }

    .services .card-link,
    .services .view-all-link {
        font-size: 1.45rem;
    }

    .services .service-card-back h3 {
        font-size: 3.6rem;
    }

    .services .service-card-back li {
        font-size: 1.8rem;
        margin-bottom: 1.4rem;
    }

    .services .service-card.is-modal-active {
        max-width: 1000px;
        max-height: 1000px;
    }

    .services .close-modal-btn {
        top: 2.5rem;
        right: 3rem;
        font-size: 3.2rem;
    }

    /* Profile Section 2K Scaling */
    section.profile {
        padding: 6rem 3rem;
    }

    .profile .profile-container {
        max-width: 1600px;
    }

    .profile .profile-body {
        gap: 7rem;
    }

    .profile .profile-title {
        font-size: 6.8rem;
        margin-bottom: 3rem;
        white-space: nowrap;
    }

    .profile-subpage {
        padding: 5rem 3rem;
    }

    .profile-subpage .profile-title {
        font-size: 4.2rem;
        margin-bottom: 2.5rem;
    }

    .profile .profile-text h4 {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }

    .profile .profile-text p {
        font-size: 1.55rem;
        margin-bottom: 1.8rem;
        line-height: 1.7;
    }

    .profile .profile-image {
        flex: 0 0 600px;
    }

    .profile .stats-container {
        margin-top: 4rem;
        gap: 2rem;
    }

    .profile .stat-box:not(.flip-card),
    .profile .flip-card-front,
    .profile .flip-card-back {
        padding: 2.2rem 1.6rem;
        min-height: 160px;
        box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 0.2);
    }

    .profile .stat-number {
        font-size: 4.2rem;
    }

    .profile .stat-plus,
    .profile .stat-percent {
        font-size: 2.2rem;
    }

    .profile .stat-label {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .profile .flip-card-back p {
        font-size: 1.25rem;
        font-weight: 200;
        margin-bottom: 0.7rem;
        letter-spacing: 0.18em;
        line-height: 1.3;
        text-align: center;
    }

    .profile .flip-card-back p:last-child {
        margin-bottom: 0;
    }

    /* Contact Section 2K Scaling */
    section.contact {
        padding: 6rem 3rem;
    }

    .contact .contact-wrapper {
        max-width: 1600px;
    }

    .contact .contact-container {
        max-width: none;
        width: 100%;
        gap: 7rem;
    }

    .contact .contact-title {
        font-size: 6.8rem;
        margin-bottom: 3rem;
    }

    .contact .contact-info-section {
        flex: 0 0 600px;
        padding-top: 0;
    }

    .contact .form-group label {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .contact .form-group input,
    .contact .form-group textarea {
        font-size: 1.4rem;
        padding: 1.6rem;
    }

    .contact .form-group textarea {
        height: 220px;
    }

    .contact .btn-submit {
        margin-top: 2.5rem;
        font-size: 1.4rem;
        padding: 1.6rem 3.2rem;
    }

    .contact .contact-box {
        padding: 3.5rem;
    }

    .contact .contact-box h3 {
        font-size: 3.6rem;
        margin-bottom: 2.5rem;
    }

    .contact .contact-details p {
        font-size: 1.45rem;
        margin-bottom: 0;
        padding-bottom: 1.8rem;
    }

    /* FAQ Section 2K Scaling */
    section.faq-section {
        padding: 6rem 3rem;
    }

    .faq-section .faq-container {
        max-width: 1300px;
    }

    .faq-section .faq-title {
        font-size: 6.5rem;
        margin-bottom: 3.5rem;
    }

    .faq-section .faq-list {
        gap: 2rem;
    }

    .faq-section .faq-question {
        padding: 2rem 2.8rem;
        font-size: 1.75rem;
    }

    .faq-section .faq-icon {
        font-size: 2.4rem;
    }

    .faq-section .faq-answer p {
        font-size: 1.5rem;
        line-height: 1.8;
    }

    .faq-section .faq-item.is-open .faq-answer {
        padding: 0 2.8rem 2.5rem 2.8rem;
    }

    /* Footer 2K Scaling */
    footer.main-footer {
        padding: 3.5rem 0;
        font-size: 1.35rem;
    }

    .main-footer .footer-container {
        max-width: 1800px;
        padding: 0 3rem;
    }
}

/* ==========================================================================
   4K Ultra-High Resolution Displays (min-width: 3200px)
   ========================================================================== */
@media (min-width: 3200px) {
    .main-header {
        padding: 2.4rem 0;
    }

    .header-container {
        max-width: 2800px;
    }

    .logo-img {
        height: 64px;
    }

    .main-nav {
        gap: 4rem;
    }

    .main-nav a {
        font-size: 1.6rem;
        letter-spacing: 0.2em;
    }

    .lang-flag-img {
        width: 38px;
        height: 24px;
    }

    .btn-kontakt {
        padding: 1rem 3.2rem;
        font-size: 1.6rem;
    }

    .hero {
        padding-top: clamp(4.5rem, 8vh, 9rem);
        padding-bottom: clamp(10rem, 14vh, 18rem);
    }

    .hero-content {
        top: calc(8.5rem + clamp(4.5rem, 8vh, 9rem));
        max-width: 3600px;
        margin-bottom: clamp(4rem, 6vh, 7rem);
    }

    .hero h1 {
        font-size: clamp(4.5rem, 3.8vw, 7.8rem);
        letter-spacing: 4px;
        margin-bottom: 2rem;
        white-space: nowrap;
    }

    .hero .subtitle {
        font-size: clamp(1.4rem, 1.1vw, 2.2rem);
        letter-spacing: clamp(0.8rem, 1.1vw, 1.8rem);
        margin-left: clamp(0.8rem, 1.1vw, 1.8rem);
        white-space: nowrap;
    }

    .section-title-italic {
        font-size: 8.6rem;
        margin-bottom: 4rem;
    }

    /* Subpage Hero 4K Scaling */
    .subpage-hero {
        padding: 6.5rem 3rem;
    }

    .subpage-hero-content {
        max-width: 2800px;
        width: 90%;
    }

    .subpage-hero h1 {
        font-size: clamp(5.5rem, 4.8vw, 9.5rem);
        letter-spacing: 4px;
        margin-bottom: 1.2rem;
        white-space: nowrap;
    }

    .subpage-hero .subpage-subtitle {
        font-size: clamp(1.5rem, 1.2vw, 2.4rem);
        letter-spacing: 0.5em;
        white-space: nowrap;
    }

    /* Services Section 4K Scaling */
    section.services {
        padding: 7rem 4rem;
    }

    .services .services-grid {
        max-width: 2200px;
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem 5rem;
        margin: 0 auto 4rem auto;
    }

    .services .service-card {
        min-height: 700px;
    }

    .services .service-card-front,
    .services .service-card-back {
        padding: 5.5rem 5rem;
        box-shadow: 22px 22px 0px 0px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    .services .service-card h3 {
        font-size: 3.2rem;
        margin-bottom: 1.6rem;
        flex-shrink: 0 !important;
    }

    .services .service-card p {
        font-size: 1.65rem;
        margin-bottom: 2.5rem;
        line-height: 1.7;
        flex-grow: 1;
    }

    .services .card-accent {
        width: 90px;
        height: 12px;
        min-height: 12px;
        flex-shrink: 0 !important;
        margin-bottom: 2.4rem;
    }

    .services .card-link,
    .services .view-all-link {
        font-size: 1.65rem;
    }

    .services .service-card-back h3 {
        font-size: 4.8rem;
        margin-bottom: 2.5rem;
    }

    .services .service-card-back li {
        font-size: 2.2rem;
        margin-bottom: 1.6rem;
        padding-bottom: 0.8rem;
    }

    .services .service-card.is-modal-active {
        max-width: 1300px;
        max-height: 1200px;
    }

    .services .close-modal-btn {
        top: 3rem;
        right: 4rem;
        font-size: 4rem;
    }

    /* Profile Section 4K Scaling */
    section.profile {
        padding: 7rem 4rem;
    }

    .profile .profile-container {
        max-width: 2200px;
    }

    .profile .profile-body {
        gap: 9rem;
    }

    .profile .profile-title {
        font-size: 8.6rem;
        margin-bottom: 3.5rem;
        white-space: nowrap;
    }

    .profile-subpage {
        padding: 5.5rem 4rem;
    }

    .profile-subpage .profile-title {
        font-size: 5.2rem;
        margin-bottom: 3rem;
    }

    .profile .profile-text h4 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .profile .profile-text p {
        font-size: 2.1rem;
        margin-bottom: 2.2rem;
        line-height: 1.75;
    }

    .profile .profile-image {
        flex: 0 0 800px;
    }

    .profile .profile-img {
        box-shadow: 25px 25px 0px 0px var(--primary-color);
    }

    .profile .stats-container {
        margin-top: 4.5rem;
        gap: 2.5rem;
    }

    .profile .stat-box:not(.flip-card),
    .profile .flip-card-front,
    .profile .flip-card-back {
        padding: 2.5rem 1.8rem;
        min-height: 180px;
        box-shadow: 15px 15px 0px 0px rgba(0, 0, 0, 0.2);
    }

    .profile .stat-number {
        font-size: 4.8rem;
        margin-bottom: 0.8rem;
    }

    .profile .stat-plus,
    .profile .stat-percent {
        font-size: 2.4rem;
    }

    .profile .stat-label {
        font-size: 1.2rem;
        letter-spacing: 5px;
    }

    .profile .flip-card-back p {
        font-size: 1.55rem;
        font-weight: 200;
        margin-bottom: 0.9rem;
        letter-spacing: 0.2em;
        line-height: 1.3;
        text-align: center;
    }

    .profile .flip-card-back p:last-child {
        margin-bottom: 0;
    }

    /* Contact Section 4K Scaling */
    section.contact {
        padding: 7rem 4rem;
    }

    .contact .contact-wrapper {
        max-width: 2200px;
    }

    .contact .contact-container {
        max-width: none;
        width: 100%;
        gap: 9rem;
    }

    .contact .contact-title {
        font-size: 8.6rem;
        margin-bottom: 3.5rem;
    }

    .contact .contact-info-section {
        flex: 0 0 800px;
        padding-top: 0;
    }

    .contact .form-row {
        gap: 3rem;
        margin-bottom: 2.2rem;
    }

    .contact .form-group {
        margin-bottom: 2.2rem;
    }

    .contact .form-group label {
        font-size: 1.9rem;
        margin-bottom: 1rem;
        letter-spacing: 3px;
    }

    .contact .form-group input,
    .contact .form-group textarea {
        font-size: 1.9rem;
        padding: 2.2rem;
        box-shadow: 7px 7px 0px 0px rgba(0, 0, 0, 0.15);
    }

    .contact .form-group textarea {
        height: 280px;
    }

    .contact .btn-submit {
        margin-top: 3rem;
        font-size: 1.9rem;
        padding: 2.2rem 4.4rem;
        box-shadow: 7px 7px 0px 0px rgba(0, 0, 0, 0.15);
    }

    .contact .contact-box {
        padding: 4.5rem;
        box-shadow: 22px 22px 0px 0px #cccccc;
    }

    .contact-box h3 {
        font-size: 4.8rem;
        margin-bottom: 3rem;
        letter-spacing: 5px;
    }

    .contact .contact-details p {
        font-size: 2.0rem;
        margin-bottom: 0;
        padding-bottom: 2.2rem;
    }

    /* FAQ Section 4K Scaling */
    section.faq-section {
        padding: 7rem 4rem;
    }

    .faq-section .faq-container {
        max-width: 1600px;
    }

    .faq-section .faq-title {
        font-size: 8.2rem;
        margin-bottom: 4rem;
    }

    .faq-section .faq-list {
        gap: 2.8rem;
    }

    .faq-section .faq-item {
        border-left: 12px solid var(--primary-color);
        box-shadow: 12px 12px 0px 0px rgba(0, 0, 0, 0.08);
    }

    .faq-section .faq-question {
        padding: 2.8rem 3.6rem;
        font-size: 2.4rem;
    }

    .faq-section .faq-icon {
        font-size: 3.2rem;
    }

    .faq-section .faq-answer p {
        font-size: 2.0rem;
        line-height: 1.8;
    }

    .faq-section .faq-item.is-open .faq-answer {
        padding: 0 3.6rem 3.2rem 3.6rem;
    }

    /* Footer 4K Scaling */
    footer.main-footer {
        padding: 4.5rem 0;
        font-size: 1.8rem;
        border-top: 4px solid var(--primary-color);
    }

    .main-footer .footer-container {
        max-width: 2800px;
        padding: 0 4rem;
    }
}

/* ==========================================================================
   Navigation Breakpoint: Laptops & Tablets (max-width: 1050px)
   ========================================================================== */
@media (max-width: 1050px) {
    .main-header {
        padding: 1rem 0;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.99);
        box-shadow: 0 15px 25px rgba(0, 0, 0, 0.12);
        gap: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-bottom: 1px solid #eaeaea;
    }

    .main-nav.is-open {
        max-height: 580px;
    }

    .main-nav a {
        width: 100%;
        padding: 1.2rem 2rem;
        border-bottom: 1px solid #f2f2f2;
        text-align: center;
        font-size: 1.15rem !important;
        letter-spacing: 0.2em !important;
        white-space: normal;
    }

    .main-nav a.btn-kontakt {
        margin: 1.5rem 2rem 2rem 2rem;
        width: calc(100% - 4rem);
        text-align: center;
    }

    .lang-dropdown {
        width: 100%;
        justify-content: center;
        border-bottom: 1px solid #f2f2f2;
        background: #fcfbf9;
    }

    .lang-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
        font-size: 1.05rem;
        border: none;
        border-radius: 0;
    }

    .lang-menu {
        left: 50%;
        transform: translateX(-50%) translateY(4px);
        width: 90%;
        max-width: 240px;
    }

    .lang-dropdown.is-open .lang-menu {
        transform: translateX(-50%) translateY(0);
    }
}

/* ==========================================================================
   Tier 1: Tablet / Small Desktop (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {

    /* Header & Navigation */
    .header-container {
        padding: 0 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: clamp(3rem, 6vh, 5.5rem) 2rem 8rem 2rem;
        min-height: 70vh;
        justify-content: flex-start;
    }

    .hero-content {
        position: sticky;
        top: calc(4.5rem + clamp(3rem, 6vh, 5.5rem));
        max-width: 880px;
        margin: 0 auto 4rem auto;
    }

    .hero h1 {
        font-size: clamp(3.6rem, 6vw, 5.2rem);
        line-height: 1.1;
        letter-spacing: 1.5px;
        margin-bottom: 1.2rem;
        white-space: normal;
    }

    .hero .subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.7rem;
        margin-left: 0.7rem;
    }

    /* Services Section */
    .services {
        padding: 3.5rem 1.5rem;
    }

    .section-title-italic {
        font-size: 4.4rem;
        margin-bottom: 2.2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
        gap: 2.5rem 2rem;
        margin-bottom: 2.5rem;
    }

    .service-card-front,
    .service-card-back {
        padding: 3rem 2.5rem;
    }

    .service-card h3 {
        font-size: 2.1rem;
    }

    .service-card p {
        font-size: 1.05rem;
        line-height: 1.5;
        margin-bottom: 1.8rem;
    }

    .service-card-back h3 {
        font-size: 2.2rem;
    }

    .service-card-back li {
        font-size: 1.05rem;
    }

    /* Profile Section */
    .profile {
        padding: 3rem 1.5rem;
    }

    .profile-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .profile-title {
        font-size: 4.2rem;
        margin-bottom: 2.2rem;
        text-align: center;
        white-space: normal;
    }

    .profile-text {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }

    .profile-info {
        width: 100%;
    }

    .stats-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 1.5rem;
        margin: 2.5rem auto 0 auto;
    }

    .stat-box,
    .flip-card-front,
    .flip-card-back {
        min-height: 135px;
        padding: 1.5rem 1.2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .flip-card-back p {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-bottom: 0.4rem;
        letter-spacing: 0.2em;
    }

    .flip-card-back p:last-child {
        margin-bottom: 0;
    }

    .profile-image {
        flex: 0 0 auto !important;
        width: 100%;
        max-width: 550px;
        min-height: 0 !important;
        margin: 0 auto;
    }

    .profile-img {
        width: 100%;
        height: auto !important;
    }

    /* Contact Section */
    .contact {
        padding: 3rem 1.5rem;
    }

    .contact-container {
        flex-direction: column;
        gap: 2.2rem;
    }

    .contact-title {
        font-size: 4.0rem;
        margin-bottom: 2.2rem;
        text-align: center;
        white-space: normal;
    }

    .contact-info-section {
        flex: auto;
        width: 100%;
        max-width: 650px;
        padding-top: 0;
        margin: 0 auto;
    }

    .form-row {
        gap: 1.5rem;
    }

    /* Subpages & FAQ */
    .faq-title {
        font-size: 3.6rem;
        margin-bottom: 3rem;
    }

    .subpage-hero h1 {
        font-size: 4rem;
        white-space: normal;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 0 1.5rem;
    }
}

/* ==========================================================================
   Tier 2: Mobile & Tablet Portrait (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {

    /* Hero Section (iOS Performance & Touch Optimization) */
    .hero,
    .hero::after {
        background-attachment: scroll !important;
    }

    .hero {
        padding: 3.5rem 1.5rem 12rem 1.5rem;
        min-height: 75vh;
        justify-content: flex-start;
    }

    .hero-content {
        position: static !important;
        top: auto !important;
        margin: 1rem auto 0 auto;
        max-width: 680px;
        z-index: 4;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 8.5vw, 4.5rem);
        line-height: 1.12;
        margin-bottom: 1rem;
        letter-spacing: 1px;
        word-wrap: break-word;
        white-space: normal;
    }

    .hero .subtitle {
        font-size: 0.95rem;
        letter-spacing: 0.5rem;
        margin-left: 0.5rem;
        white-space: nowrap;
    }

    /* Services Section */
    .services {
        padding: 3rem 1.2rem 4rem 1.2rem;
    }

    .section-title-italic {
        font-size: 3.6rem;
        margin-bottom: 1.8rem;
        letter-spacing: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2.2rem;
        max-width: 520px;
        margin: 0 auto 3.5rem auto;
    }

    .service-card {
        min-height: auto;
        height: auto;
        perspective: none;
    }

    .service-card .service-card-inner {
        position: relative;
        width: 100%;
        height: auto;
        transform: none !important;
    }

    .service-card .service-card-front {
        position: relative;
        width: 100%;
        height: auto;
        padding: 2.2rem 1.8rem 1.8rem 1.8rem;
        box-shadow: 10px 10px 0 0 rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow: visible;
    }

    .service-card .service-card-back {
        display: none;
    }

    .service-card h3 {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
    }

    .service-card p {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.6rem;
        flex-grow: 0;
    }

    .service-card .card-link {
        align-self: flex-end;
        margin-top: 0;
    }

    /* Modal Active State on Mobile */
    .service-card.is-modal-active {
        position: fixed;
        top: 0;
        left: 0;
        width: 94vw;
        max-width: 450px;
        height: 85vh;
        max-height: 580px;
        perspective: 1500px;
        z-index: 1001;
        margin: 0;
    }

    .service-card.is-modal-active .service-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card.is-modal-active .service-card-inner.is-flipped {
        transform: rotateY(180deg) !important;
    }

    .service-card.is-modal-active .service-card-front,
    .service-card.is-modal-active .service-card-back {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        overflow: hidden;
    }

    .service-card.is-modal-active .service-card-back {
        display: flex;
        overflow-y: auto;
        transform: rotateY(180deg);
    }

    .service-card-back h3 {
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
    }

    .service-card-back li {
        font-size: 1.0rem;
        margin-bottom: 0.7rem;
    }

    /* Profile Section */
    .profile {
        padding: 2rem 1.2rem;
    }

    .profile-body {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.6rem;
    }

    .profile-title {
        font-size: 3.4rem;
        margin-bottom: 1.6rem;
        white-space: normal;
    }

    .profile-text {
        display: contents;
        text-align: center;
    }

    .profile-image {
        order: 1;
        flex: 0 0 auto !important;
        width: 100%;
        max-width: 450px;
        min-height: 0 !important;
        margin: 0 auto;
    }

    .profile-img {
        width: 100%;
        height: auto !important;
        box-shadow: 8px 8px 0 0 var(--primary-color);
    }

    .profile-info {
        order: 2;
        width: 100%;
        text-align: center;
    }

    .profile-text h4 {
        font-size: 1.15rem;
    }

    .profile-text p {
        font-size: 1.15rem;
        margin-bottom: 1rem;
    }

    .stats-container {
        order: 3;
        display: flex;
        flex-direction: column;
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        gap: 1.2rem;
    }

    .stat-box,
    .flip-card-front,
    .flip-card-back {
        min-height: 120px;
        padding: 1.2rem 1rem;
        box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .flip-card-back {
        padding: 0.8rem 0.6rem !important;
    }

    .flip-card-back p {
        font-size: 0.92rem;
        line-height: 1.25;
        margin-bottom: 0.35rem;
        letter-spacing: 0.16em;
    }

    .flip-card-back p:last-child {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 3.2rem;
    }

    /* Contact Section */
    .contact {
        padding: 2rem 1.2rem;
    }

    .contact-container {
        gap: 2rem;
    }

    .contact-title {
        font-size: 3.2rem;
        margin-bottom: 1.8rem;
        white-space: normal;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

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

    .form-group label {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        letter-spacing: 1px;
    }

    /* Minimum 16px font size avoids iOS Safari form focus zoom */
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 16px;
        box-shadow: 4px 4px 0 0 rgba(0, 0, 0, 0.15);
    }

    .btn-submit {
        margin-top: 1.5rem;
        width: 100%;
        padding: 1.2rem;
        font-size: 1rem;
    }

    .contact-box {
        padding: 2.2rem 1.8rem;
        box-shadow: 10px 10px 0 0 #cccccc;
    }

    .contact-box h3 {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
        letter-spacing: 2px;
    }

    .contact-details p {
        font-size: 1.05rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .contact-details span {
        text-align: left;
        opacity: 0.95;
    }

    /* Footer, FAQ & Subpages */
    .main-footer {
        padding: 2rem 0;
        font-size: 0.95rem;
    }

    .faq-section {
        padding: 2.8rem 1.2rem;
    }

    .faq-title {
        font-size: 3.0rem;
        margin-bottom: 1.8rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        font-size: 1.2rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.is-open .faq-answer {
        padding: 0 1.5rem 1.4rem 1.5rem;
    }

    .subpage-hero {
        padding: 2.5rem 1.2rem;
    }

    .subpage-hero h1 {
        font-size: 3.2rem;
        letter-spacing: 1px;
        white-space: normal;
    }

    .subpage-hero .subpage-subtitle {
        display: none;
    }
}

/* ==========================================================================
   Tier 3: Small Mobile Phones (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {

    /* Header */
    .main-header {
        padding: 0.8rem 0;
    }

    .header-container {
        padding: 0 1.2rem;
    }

    .logo-img {
        height: 30px;
    }

    .main-nav a {
        padding: 1rem 1.5rem;
        font-size: 1.05rem !important;
    }

    .main-nav a.btn-kontakt {
        margin: 1.2rem 1.5rem 1.5rem 1.5rem;
        width: calc(100% - 3rem);
    }

    /* Hero Section */
    .hero {
        min-height: 68vh;
        padding: 2.5rem 1.2rem 14rem 1.2rem;
        justify-content: flex-start;
    }

    .hero-content {
        margin: 0.5rem auto 0 auto;
        max-width: 420px;
        z-index: 4;
    }

    .hero h1 {
        font-size: clamp(2.8rem, 10.5vw, 3.6rem);
        line-height: 1.15;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
    }

    .hero .subtitle {
        font-size: 0.85rem;
        letter-spacing: 0.38rem;
        margin-left: 0.38rem;
    }

    /* Services Section */
    .services {
        padding: 2.5rem 1.2rem 3.5rem 1.2rem;
    }

    .section-title-italic {
        font-size: 2.9rem;
        margin-bottom: 1.5rem;
    }

    .services-grid {
        gap: 2rem;
        margin: 0 auto 3rem auto;
    }

    .service-card {
        min-height: auto;
        height: auto;
    }

    .service-card .service-card-front {
        padding: 1.8rem 1.4rem 1.5rem 1.4rem;
        box-shadow: 8px 8px 0 0 rgba(0, 0, 0, 0.15);
    }

    .service-card h3 {
        font-size: 1.45rem;
        margin-bottom: 0.7rem;
    }

    .service-card p {
        font-size: 0.9rem;
        line-height: 1.45;
        margin-bottom: 1.4rem;
    }

    .service-card-back h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card-back li {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.6rem;
    }

    .card-accent {
        margin-bottom: 1rem;
        width: 50px;
        height: 5px;
        min-height: 5px;
        flex-shrink: 0 !important;
    }

    .card-link {
        font-size: 1.0rem;
        letter-spacing: 0.2em;
    }

    .view-all-link {
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    .close-modal-btn {
        top: 1rem;
        right: 1.2rem;
        font-size: 1.6rem;
    }

    /* Profile Section */
    .profile-body {
        gap: 1.4rem;
    }

    .profile-title {
        font-size: 2.8rem;
        margin-bottom: 1.2rem;
    }

    .stat-box,
    .flip-card-front,
    .flip-card-back {
        min-height: 115px;
        padding: 1rem 0.8rem;
        box-shadow: 6px 6px 0 0 rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .flip-card-back {
        padding: 0.7rem 0.5rem !important;
    }

    .flip-card-back p {
        font-size: 0.85rem;
        line-height: 1.2;
        margin-bottom: 0.3rem;
        letter-spacing: 0.12em;
    }

    .flip-card-back p:last-child {
        margin-bottom: 0;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        letter-spacing: 2px;
        font-size: 0.8rem;
    }

    .profile-image {
        flex: 0 0 auto !important;
        min-height: 0 !important;
    }

    .profile-img {
        height: auto !important;
        box-shadow: 8px 8px 0 0 var(--primary-color);
    }

    /* Contact Section */
    .contact-title {
        font-size: 2.7rem;
        margin-bottom: 1.4rem;
    }

    .contact-box {
        padding: 1.8rem 1.2rem;
        box-shadow: 8px 8px 0 0 #cccccc;
    }

    .contact-box h3 {
        font-size: 1.8rem;
    }

    /* Footer & FAQ & Subpage */
    .main-footer {
        font-size: 0.85rem;
        letter-spacing: 0.05em;
    }

    .footer-container {
        padding: 0 1rem;
        gap: 0.8rem;
    }

    .faq-title {
        font-size: 2.5rem;
    }

    .subpage-hero h1 {
        font-size: 2.7rem;
    }

    .faq-question {
        font-size: 1.1rem;
        padding: 1rem 1.2rem;
    }

    .faq-icon {
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}