/* **************************************************
   Himm Immobilien – Public Stylesheet
   ************************************************** */


/* **************************************************
   1. RESET & BASE
   ************************************************** */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    background: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Index page only – no scrolling */
body:not(.public-page) {
    overflow: hidden;
}

/* **************************************************
   END 1. RESET & BASE
   ************************************************** */

/* **************************************************
   2. GENERAL 
   ************************************************** */

/* ----- Public Header / Navbar ----- */
.public-header {
    background: #35314f5c;
    color: #fff;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

.public-header .logo-link {
    position: absolute;
    left: 2.5rem;
    display: flex;
    align-items: center;
}

.public-header .header-logo {
    height: 38px;
    width: auto;
    display: block;
}

.public-header nav {
    display: flex;
    gap: 3.5rem;
    align-items: center;
}

.public-header nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.20rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    position: relative;
    padding: 0.3rem 0;
    transition: opacity 0.25s ease;
}

.public-header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.public-header nav a:hover {
    opacity: 0.85;
}

.public-header nav a:hover::after {
    width: 100%;
}

.public-header .admin-link {
    position: absolute;
    right: 2.5rem;
    color: #fff;
    opacity: 0.75;
    display: flex;
    align-items: center;
    transition: opacity 0.25s ease;
}

.public-header .admin-link:hover {
    opacity: 1;
}

/* ----- Public page base ----- */
body.public-page {
    background: #2a2a2a;
    color: #1a1a1a;
    overflow: auto;
    min-height: 100vh;
}

.page-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #fff;
}

.page-subtitle {
    color: #aaa;
    margin-bottom: 2.8rem;
}

/* ----- Shared page typography ----- */
.page-kicker {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 0.9rem;
    font-weight: 500;
}

.page-heading {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: #fff;
}

.page-heading span {
    color: #c4b5fd;
}

.page-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #b0b0b0;
    margin-bottom: 2.2rem;
}

/* Stats box */
.stats-box {
    display: flex;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.stat {
    flex: 1;
    padding: 1.3rem 1rem;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.stat:last-child {
    border-right: none;
}

.stat-number {
    font-size: 1.45rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.78rem;
    color: #999;
}

.stat-icon .stat-number {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.7rem;          /* same visual height as the other numbers */
    margin-bottom: 0.3rem;
}

.stat-icon .stat-number svg {
    width: 32px;
    height: 16px;
    stroke: currentColor;
    color: #fff;
}

/* **************************************************
   END 2. GENERAL
   ************************************************** */

/* **************************************************
   4. PAGE – ANGEBOTE (Cards)
   ************************************************** */

body.public-page.angebote-page {
    background: #0d0d0f;
}

.angebote-stage {
    position: relative;
    min-height: 100vh;
    background-image: url("../images/background-services.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.angebote-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 8, 12, 0.92) 0%,
        rgba(8, 8, 12, 0.75) 45%,
        rgba(8, 8, 12, 0.55) 100%
    );
    z-index: 0;
}

.angebote-stage .page-content {
    position: relative;
    padding-top: 3.5rem;
    z-index: 1;
}

/* Soft panel – same language as service cards */
.cards-panel {
    background: rgba(91, 91, 99, 0.24);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.4rem;
}

/* Cards – dark glass like service cards */
.property-card {
    background: rgba(12, 12, 16, 0.72);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    color: #eee;
    backdrop-filter: blur(10px);
}

.property-card:hover {
    background: rgba(20, 20, 28, 0.85);
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-3px);
}

.card-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #1a1a1a;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 45%, transparent 70%);
    pointer-events: none;
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.badge-new {
    background: #57b73d;
    color: #fff;
}

.badge-begehrt {
    background: #0f766e;
    color: #fff;
}

.card-heart {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #555;
    cursor: pointer;
    transition: background 0.2s;
}

.card-heart:hover {
    background: #fff;
}

.card-specs {
    position: absolute;
    bottom: 1.1rem;
    left: 1rem;
    right: 1rem;
    z-index: 5;
    background: rgba(12, 12, 16, 0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 12px;
    padding: 0.65rem 1rem;
    display: flex;
    justify-content: space-around;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
}

.card-specs span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.card-pin {
    display: inline-flex;
    margin-right: 0.3rem;
    color: #a0a0a0;
}

.card-pin svg {
    width: 13px;
    height: 13px;
}

.offer-type-badge {
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.offer-rent {
    background: rgba(167, 139, 250, 0.2);
    color: #c4b5fd;
}

.offer-sale {
    background: rgba(240, 164, 106, 0.2);
    color: #f0a46a;
}

.card-price {
    position: absolute;
    bottom: 5.1rem;
    left: 1rem;
    z-index: 5;
    background: #a78bfa;
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem 1.35rem 1.4rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    background: #9081b854;
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f0f0f0;
}

.card-location {
    font-size: 0.88rem;
    color: #a0a0a0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b5fd;
    font-size: 1.1rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.card-arrow:hover {
    background: rgba(167, 139, 250, 0.3);
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 5rem 1rem;
    color: #aaa;
}

a.property-card {
    text-decoration: none;
    color: inherit;
}

a.property-card .card-title {
    color: #f0f0f0;
}

.angebote-count {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1.4rem;
}

.angebote-count .count-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;          /* same violet as service numbers */
    letter-spacing: 0.05em;
}

.angebote-count .count-text {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 400;
}

/* **************************************************
   END 4. PAGE – ANGEBOTE
   ************************************************** */

/* **************************************************
   5. PAGE – DETAIL (objekt.php)
   ************************************************** */

.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
    color: #eee;
}

.back-link {
    display: inline-block;
    color: #aaa;
    text-decoration: none;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
}

.back-link:hover {
    color: #fff;
}

/* Gallery */
.gallery-section {
    margin-bottom: 2.5rem;
}

.gallery-main {
    border-radius: 16px;
    overflow: hidden;
    background: #111;
    aspect-ratio: 16/10;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    background: #222;
}

.gallery-thumbs {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 4px 2px 8px;   /* give the outline some room */
}

.gallery-thumbs img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    outline: none;
    box-shadow: 0 0 0 2px #a78bfa;   /* replaces outline – doesn’t get clipped */
}

/* Header */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.detail-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #bc914f;
    margin-bottom: 0.5rem;
}

.detail-meta {
    color: #aaa;
    font-size: 1.05rem;
}

.detail-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: #a78bfa;
    white-space: nowrap;
}

.detail-price small {
    font-size: 0.95rem;
    font-weight: 400;
    color: #999;
}

a.apply-btn {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: #a78bfa;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

a.apply-btn:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #fff;
}

.apply-wrap {
    max-width: 820px;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.apply-card {
    background: rgba(12, 12, 16, 0.78);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 1.8rem;
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.apply-card label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 500;
}

.apply-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.apply-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.apply-card input[type="text"],
.apply-card input[type="email"],
.apply-card input[type="number"],
.apply-card input[type="date"],
.apply-card select,
.apply-card textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.07);
    color: #f2f2f2;
    font: inherit;
    font-size: 0.95rem;
}

.apply-card textarea { min-height: 110px; resize: vertical; }

.apply-card input::placeholder,
.apply-card textarea::placeholder {
    color: #8a8a8a;
}

.apply-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0.6rem;
    color: #c8c8c8;
}

.apply-check input {
    width: auto;
    accent-color: #a78bfa;
}

.apply-files {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apply-card input[type="file"] {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    border: 1px dashed rgba(167, 139, 250, 0.45);
    background: rgba(167, 139, 250, 0.08);
    color: #ddd;
    font: inherit;
}

.apply-submit {
    align-self: flex-start;
    border: 0;
    border-radius: 10px;
    padding: 0.85rem 1.4rem;
    background: #a78bfa;
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.apply-submit:hover { background: #8b6ef0; }

.apply-error {
    background: rgba(254, 226, 226, 0.95);
    color: #991b1b;
    padding: 0.8rem 1rem;
    border-radius: 8px;
}

.hp { position: absolute; left: -9999px; }

/* Key facts */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.fact {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
}

.fact .label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.25rem;
}

.fact .value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #c8c8c8;
}

/* Description */
.description {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 0 1.8rem 1.8rem;
    line-height: 1.4;
    color: #c8c8c8;
    white-space: pre-line;
}

.description h2 {
    font-size: 1.2rem;
    color: #a78bfa;
    margin-bottom: 1rem;
}

/* **************************************************
   END 5. PAGE – DETAIL
   ************************************************** */

/* **************************************************
   PAGE – CONTACT
   ************************************************** */

.contact-page {
    background: #0d0d0f;
    color: #fff;
}

.contact-stage {
    position: relative;
    min-height: 100vh;
    background-image: url("../images/background-blank.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.contact-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 8, 12, 0.92) 0%,
        rgba(8, 8, 12, 0.75) 45%,
        rgba(8, 8, 12, 0.55) 100%
    );
    z-index: 0;
}

.contact-stage-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
}

/* Hero text – same language as Services / Angebote */
.contact-hero {
    max-width: 520px;
    margin-bottom: 2.2rem;
}

/* Tabs panel – own box with map grid background */
.contact-tabs-panel {
    position: relative;
    flex: 1;
    min-height: 320px;
    max-height: 800px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background-image: url("../images/background-contact9.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.contact-tabs-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 14, 0.55);
    z-index: 0;
}

.contact-tabs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.contact-tab {
    position: absolute;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: rgba(10, 10, 14, 0.82);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.95rem 1.15rem;
    text-decoration: none;
    color: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.22s ease;
    max-width: 260px;
}

.contact-tab:hover {
    background: rgba(20, 20, 28, 0.92);
    border-color: rgba(167, 139, 250, 0.4);
    transform: scale(1.03);
}

.tab-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tab-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.tab-icon svg {
    width: 20px;
    height: 20px;
}

.tab-phone .tab-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.tab-email .tab-icon {
    background: rgba(167, 139, 250, 0.15);
    color: #a78bfa;
}

.tab-whatsapp .tab-icon {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
}

.tab-address .tab-icon {
    background: rgba(240, 164, 106, 0.15);
}

.tab-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.tab-content .label {
    font-size: 0.78rem;
    color: #999;
}

.tab-content .value {
    font-size: 0.98rem;
    font-weight: 500;
}

/* **************************************************
   END PAGE – CONTACT
   ************************************************** */

/* **************************************************
   7. PAGE – INDEX (Intro / Start animation)
   ************************************************** */

#page-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

#intro {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/background-services.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

#intro::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1;
}

#intro .inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.logo-wrap {
    margin-bottom: 3.2rem;
    transform: scale(1.5);
    transform-origin: center center;
}

.logo {
    display: block;
    max-width: 220px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 18px rgba(0,0,0,0.35));
}

.start-button {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.35s ease, border-color 0.35s ease, transform 0.35s ease, opacity 0.8s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 0 0 rgba(255,255,255,0.15);
}

.start-button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: #fff;
    transform: scale(1.06);
    box-shadow: 0 0 0 8px rgba(255,255,255,0.08);
}

.start-button:active {
    transform: scale(0.97);
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.btn-loader {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.start-button.loading {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.start-button.loading .btn-text {
    opacity: 0.35;
}

.start-button.loading .btn-loader {
    opacity: 1;
    animation: spin 0.85s linear infinite;
}

.start-button.fade-out {
    opacity: 0;
    transform: scale(0.85);
    pointer-events: none;
    transition: opacity 0.9s ease, transform 0.9s ease;
}

body.started #intro::before {
    background: rgba(0, 0, 0, 0.22);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.is-preload #intro .inner {
    opacity: 0;
    transform: translateY(18px);
}

body:not(.is-preload) #intro .inner {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.1s ease, transform 1.1s ease;
}

/* **************************************************
   END 7. PAGE – INDEX
   ************************************************** */

/* **************************************************
   8. PAGE – SERVICES / LEISTUNGEN
   ************************************************** */

.services-page {
    background: #0d0d0f;
    color: #fff;
}

/* Full-screen stage with background */
.services-stage {
    position: relative;
    min-height: 100vh;
    background-image: url("../images/background-services.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.services-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8, 8, 12, 0.92) 0%,
        rgba(8, 8, 12, 0.75) 40%,
        rgba(8, 8, 12, 0.45) 100%
    );
}

.services-stage-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 0.85fr 1.4fr;
    gap: 3rem;
    align-items: center;
}

/* Left column */
.services-left {
    max-width: 550px;
}

/* Right column – 4 cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.service-card {
    background: rgba(154, 154, 194, 0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.15rem 1.4rem;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    min-width: 260px;
}

.service-card:hover {
    background: rgba(20, 20, 28, 0.85);
    border-color: rgba(167, 139, 250, 0.35);
    transform: translateY(-3px);
}

.service-card-with-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
}

.service-card-with-icon .service-card-text {
    flex: 1;
    min-width: 0;
}

.service-card-with-icon .service-icon {
    width: clamp(90px, 36%, 150px);
    height: auto;
    aspect-ratio: 1;
    flex-shrink: 0;
    background: none;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-with-icon .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(167, 139, 250, 0.12);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.service-card p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #a0a0a0;
}

/* **************************************************
   END 8. PAGE – SERVICES
   ************************************************** */

/* **************************************************
   PAGE – ABOUT / ÜBER UNS (home.php)
   ************************************************** */

.about-page {
    background: #1a1a1a;   /* old dark studio background */
    color: #fff;
}

.about-stage {
    /* position: relative;
    min-height: 100vh;
    background: #1a1a1a; */

    position: relative;
    min-height: 100vh;
    background-image: url("../images/background-blank.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.about-stage .public-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(10,10,14,0.85), rgba(10,10,14,0));
    border-top: 1px solid rgba(255,255,255,0.08);
}

.about-stage-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: minmax(280px, 820px) 1fr;
    gap: 3rem;
    align-items: center;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 2;
}

.about-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 12, 0.55);
    z-index: 0;
}

/* One shared frame – sized by the PNG */
.about-media {
    position: relative;
    width: 100%;
    line-height: 0;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    backdrop-filter: blur(8px);
    padding: 0rem;
}

.about-media.is-still {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.09);
}

.about-media .about-still,
.about-media .about-video {
    border-radius: 10px;
}

.about-still {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    z-index: 1;
}

.about-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 1;
    transition: opacity 3.5s ease;
}

/* After the video ends: morph to the still */
.about-media.is-still .about-video {
    opacity: 0;
    pointer-events: none;
}

.about-sound {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 3;
    background: rgba(10, 10, 14, 0.75);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    cursor: pointer;
}


/* **************************************************
   END PAGE – ABOUT US
   ************************************************** */

/* **************************************************
   PUBLIC FOOTER
   ************************************************** */

.public-footer {
    position: relative;
    background: #35314f5c;          /* same as header */
    color: #fff;
    padding: 1.1rem 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
    position: absolute;
    left: 2.5rem;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.8);
    white-space: nowrap;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 3.5rem;
}

.footer-badge {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #fff;
}

.footer-badge-img {
    height: 22px;
    width: auto;
    display: block;
    opacity: 0.85;
}

.footer-links {
    position: absolute;
    right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.about-stage .public-footer {
    background: #35314f5c;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* **************************************************
   END PUBLIC FOOTER
   ************************************************** */


/* **************************************************
   DESKTOP FRAME
   ************************************************** */

@media (min-width: 801px) and (min-height: 640px) {
    body.public-page.about-page,
    body.public-page.services-page,
    body.public-page.contact-page,
    body.public-page.angebote-page {
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }

    body.about-page .public-header,
    body.services-page .public-header,
    body.contact-page .public-header,
    body.angebote-page .public-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 30;
    }

    .about-stage,
    .services-stage,
    .contact-stage,
    .angebote-stage {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .about-stage .public-footer,
    .services-stage .public-footer,
    .contact-stage .public-footer,
    .angebote-stage .public-footer {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;
    }

    .about-stage-content,
    .services-stage-content,
    .contact-stage-content {
        height: 100%;
        min-height: 0;
        padding-top: 9rem;
        padding-bottom: 5.5rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    .angebote-stage .page-content {
        height: 100%;
        min-height: 0;
        padding-top: 9rem;
        padding-bottom: 5.5rem;
        box-sizing: border-box;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .angebote-stage .cards-panel {
        flex: 1;
        min-height: 0;
        overflow-y: auto;
    }

    /* Bewerbung: scroll between header and footer */
    body.contact-page:has(.apply-wrap) .public-header {
        z-index: 40;
        background: #1b1828;
    }

    .contact-stage:has(.apply-wrap) .public-footer {
        z-index: 40;
        background: #1b1828;
    }

    .contact-stage:has(.apply-wrap) .apply-wrap {
        position: absolute;
        top: 72px;
        bottom: 72px;
        left: 0;
        right: 0;
        height: auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        box-sizing: border-box;
    }
}

/* **************************************************
   END DESKTOP FRAME
   ************************************************** */


/* **************************************************
   BOTTOM RESPONSIVE
   ************************************************** */

/* Services: stack earlier than phone */
@media (max-width: 1100px) {
    .services-stage-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Contact tab positions on smaller desktops */
@media (max-width: 1600px) {
    .contact-tab {
        max-width: 230px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .tab-icon {
        width: 36px;
        height: 36px;
    }

    .tab-address  { bottom: 17% !important; left: 22% !important; top: auto !important; }
    .tab-phone    { top: 22% !important; left: 14% !important; }
    .tab-email    { top: 47% !important; left: 38% !important; }
    .tab-whatsapp { top: 32% !important; right: 15% !important; left: auto !important; }
}

/* Index */
@media (max-width: 736px) {
    .logo-wrap {
        margin-bottom: 2.6rem;
        transform: scale(1.35);
    }

    .logo { max-width: 180px; }

    .start-button {
        width: 96px;
        height: 96px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .logo-wrap { transform: scale(1.25); }
    .logo { max-width: 150px; }
}

/* Phone + landscape (short height) */
@media (max-width: 800px), (max-height: 639px) {
    body.public-page.about-page,
    body.public-page.services-page,
    body.public-page.contact-page,
    body.public-page.angebote-page,
    .about-stage,
    .services-stage,
    .contact-stage,
    .angebote-stage {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        min-height: 100dvh;
    }

    body.about-page .public-header,
    body.services-page .public-header,
    body.contact-page .public-header,
    body.angebote-page .public-header {
        position: sticky !important;
        top: 0;
        background: #1b1828;
    }

    .about-stage .public-footer,
    .services-stage .public-footer,
    .contact-stage .public-footer,
    .angebote-stage .public-footer {
        position: static !important;
        background: #1b1828;
    }

    .about-stage-content,
    .services-stage-content,
    .contact-stage-content,
    .angebote-stage .page-content {
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding-top: 5.5rem;
        padding-bottom: 2rem;
        display: block;
    }

    .page-heading {
        font-size: 2.2rem;
    }

    /* Header */
    .public-header {
        padding: 0.9rem 1.2rem;
    }

    .public-header .logo-link { left: 1.2rem; }
    .public-header .header-logo { height: 30px; }
    .public-header nav { gap: 0.5rem; }
    .public-header nav a { font-size: 0.8rem; }
    .public-header .admin-link { right: 1.2rem; }

    /* Footer */
    .public-footer {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 1.2rem;
    }

    .footer-copy,
    .footer-links {
        position: static;
    }

    .footer-badges {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links { justify-content: center; }

    /* About */
    .about-stage {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    .about-stage-content {
        grid-template-columns: 1fr;
        display: grid;
        gap: 1.5rem;
    }

    .about-media {
        max-width: 420px;
        margin: 0 auto;
    }

    /* Services */
    .services-stage {
        display: block;
        align-items: stretch;
    }

    .services-stage-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-box { flex-direction: column; }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }

    .stat:last-child { border-bottom: none; }

    /* Angebote */
    .cards-grid { grid-template-columns: 1fr; }

    .angebote-stage .cards-panel {
        max-height: none;
        overflow: visible;
    }

    /* Contact – no inner frame */
    .contact-stage-content {
        max-width: none;
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .contact-tabs-panel {
        border: none;
        border-radius: 0;
        min-height: 0;
        max-height: none;
        overflow: visible;
        background-image: none;
    }

    .contact-tabs-panel::before { display: none; }

    .contact-tabs {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0;
        pointer-events: auto;
    }

    .contact-tab {
        position: static !important;
        max-width: none;
        width: 100%;
        margin: 0;
        transform: none !important;
    }

    /* Bewerbung */
    .contact-stage:has(.apply-wrap) .apply-wrap {
        position: static !important;
        top: auto;
        bottom: auto;
        height: auto !important;
        overflow: visible !important;
        padding: 5.5rem 1.2rem 2rem;
    }

    .apply-row,
    .apply-row-3 {
        grid-template-columns: 1fr;
    }

    /* Detail */
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .cards-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* **************************************************
   END BOTTOM RESPONSIVE
   ************************************************** */