/*
Theme Name: ImmobilienHub
Description: Child theme for ImmobilienHub knowledge & investment portal based on Kadence theme.
Template: kadence
Version: 2.0.0
*/

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #0f172a;
    background: white;
}

.immobilienhub-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: white;
}

/* ========================================
   Color Variables
   ======================================== */
:root {
    --ih-accent: #5d83f7;
    --ih-accent-hover: #4a6fe0;
    --ih-dark: #0f172a;
    --ih-slate-600: #475569;
    --ih-slate-500: #64748b;
    --ih-slate-400: #94a3b8;
    --ih-slate-100: #f1f5f9;
    --ih-slate-50: #f8fafc;
    --ih-blue-50: #eff6ff;
    --ih-blue-600: #2563eb;
}

/* ========================================
   Navigation
   ======================================== */
.ih-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--ih-slate-100);
}

.ih-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ih-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.ih-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--ih-dark);
    letter-spacing: -0.5px;
}

.ih-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 500;
    color: var(--ih-slate-600);
}

.ih-nav-link {
    position: relative;
    color: var(--ih-slate-600);
    text-decoration: none;
    transition: color 0.3s;
}

.ih-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--ih-accent);
    transition: width 0.3s;
}

.ih-nav-link:hover {
    color: var(--ih-blue-600);
}

.ih-nav-link:hover::after {
    width: 100%;
}

.ih-nav-cta {
    background-color: var(--ih-accent);
    color: white;
    padding: 10px 24px;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 600;
    transition: box-shadow 0.3s, transform 0.2s;
}

.ih-nav-cta:hover {
    box-shadow: 0 10px 25px -5px rgba(93, 131, 247, 0.4);
    transform: translateY(-1px);
}

.ih-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ih-dark);
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   Hero Section
   ======================================== */
.ih-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7ff 100%);
    padding: 80px 24px 112px;
    text-align: center;
}

.ih-hero-inner {
    max-width: 896px;
    margin: 0 auto;
}


.ih-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ih-blue-50);
    color: var(--ih-blue-600);
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ih-hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 32px;
    letter-spacing: -1.5px;
    color: var(--ih-dark);
}

.ih-hero h1 .ih-accent {
    color: var(--ih-accent);
}

.ih-hero-text {
    font-size: 20px;
    color: var(--ih-slate-600);
    margin-bottom: 40px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.ih-hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

.ih-btn-primary {
    display: inline-block;
    background: var(--ih-dark);
    color: white;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, box-shadow 0.3s;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ih-btn-primary:hover {
    background: #000;
}

.ih-btn-secondary {
    display: inline-block;
    background: white;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s;
}

.ih-btn-secondary:hover {
    background: var(--ih-slate-50);
}

/* ========================================
   Knowledge / Articles Section
   ======================================== */
.ih-articles {
    padding: 96px 24px;
    background: white;
}

.ih-articles-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ih-articles-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 64px;
    gap: 16px;
    border-bottom: 1px solid var(--ih-slate-100);
    padding-bottom: 32px;
}

.ih-articles-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ih-dark);
}

.ih-articles-header p {
    color: var(--ih-slate-500);
}

.ih-articles-header-link {
    color: var(--ih-blue-600);
    font-weight: 700;
    text-decoration: none;
}

.ih-articles-header-link:hover {
    text-decoration: underline;
}

.ih-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ih-article-card {
    cursor: pointer;
}

.ih-article-card:hover .ih-article-image img {
    transform: scale(1.05);
}

.ih-article-card:hover .ih-article-title {
    color: var(--ih-blue-600);
}

.ih-article-image {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: var(--ih-slate-100);
    border: 1px solid var(--ih-slate-100);
}

.ih-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    display: block;
}

.ih-article-category {
    color: var(--ih-blue-600);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

.ih-article-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color 0.3s;
    color: var(--ih-dark);
}

.ih-article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ih-article-excerpt {
    color: var(--ih-slate-500);
    font-size: 14px;
    line-height: 1.6;
}

.ih-article-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ih-slate-100);
}

.ih-no-articles {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    color: var(--ih-slate-400);
    font-size: 16px;
}

/* ========================================
   Property Page Hero (Kaufen / Mieten)
   ======================================== */
.ih-hero-property {
    background: linear-gradient(160deg, #f0f4ff 0%, #f8fafc 40%, #ffffff 100%);
    padding: 80px 24px 64px;
    text-align: center;
    border-bottom: 1px solid var(--ih-slate-100);
}

.ih-hero-property-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ih-hero-dark-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ih-blue-50);
    color: var(--ih-blue-600);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 28px;
}

.ih-hero-property h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: var(--ih-dark);
}

.ih-hero-property-text {
    font-size: 19px;
    color: var(--ih-slate-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Tight trust (less spacing between hero and properties) */
.ih-trust--tight {
    padding: 32px 24px;
    border-bottom: none;
}

/* ========================================
   Properties List Layout (single column)
   ======================================== */
.ih-properties-list-section {
    padding: 32px 24px 96px;
    background: white;
}

.ih-properties-list-inner {
    max-width: 900px;
    margin: 0 auto;
}

.ih-properties-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ih-properties-list .ih-property-card {
    display: flex;
    flex-direction: row;
    border-radius: 20px;
}

.ih-properties-list .ih-property-image {
    width: 320px;
    min-height: 220px;
    flex-shrink: 0;
    aspect-ratio: auto;
}

.ih-properties-list .ih-property-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ih-property-card--placeholder {
    opacity: 0.7;
    position: relative;
}

.ih-property-card--placeholder::after {
    content: 'Demnächst';
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--ih-blue-50);
    color: var(--ih-blue-600);
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   Hero Signup Form
   ======================================== */
.ih-hero-signup {
    display: flex;
    flex-direction: row;
    gap: 12px;
    max-width: 520px;
    margin: 0 auto;
}

.ih-hero-signup-input {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--ih-dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ih-hero-signup-input::placeholder {
    color: var(--ih-slate-400);
}

.ih-hero-signup-input:focus {
    border-color: var(--ih-accent);
    box-shadow: 0 0 0 3px rgba(93, 131, 247, 0.15);
}

.ih-hero-signup-btn {
    background: var(--ih-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: background 0.2s, box-shadow 0.3s;
}

.ih-hero-signup-btn:hover {
    background: #000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.ih-hero-success-msg {
    display: none;
    color: #16a34a;
    font-weight: 600;
    margin-top: 16px;
    font-size: 15px;
}

.ih-hero-success-msg.is-visible {
    display: block;
}

/* ========================================
   Weitere Artikel Section
   ======================================== */
.ih-articles-more {
    padding: 80px 24px 96px;
    background: var(--ih-slate-50);
    border-top: 1px solid var(--ih-slate-100);
}

.ih-articles-more-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ih-articles-more-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

.ih-articles-more-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ih-dark);
}

.ih-articles-more-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ih-article-card-sm {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ih-slate-100);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-article-card-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06);
}

.ih-article-card-sm .ih-article-card-link {
    display: flex;
    flex-direction: row;
    gap: 0;
}

.ih-article-image-sm {
    width: 180px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--ih-slate-100);
}

.ih-article-image-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.ih-article-card-sm:hover .ih-article-image-sm img {
    transform: scale(1.05);
}

.ih-article-card-sm-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ih-article-title-sm {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ih-dark);
    line-height: 1.3;
    transition: color 0.3s;
}

.ih-article-card-sm:hover .ih-article-title-sm {
    color: var(--ih-blue-600);
}

/* ========================================
   Wohnlab Property Cards Section
   ======================================== */
.ih-wohnlab-section {
    padding: 96px 24px;
    background: var(--ih-dark);
}

.ih-wohnlab-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ih-specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.ih-wohnlab-card {
    background: white;
    padding: 48px;
    border-radius: 24px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-wohnlab-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.ih-wohnlab-card:hover .ih-wohnlab-icon {
    background: var(--ih-blue-600);
}

.ih-wohnlab-card:hover .ih-wohnlab-icon svg {
    stroke: white;
}

.ih-wohnlab-icon {
    width: 64px;
    height: 64px;
    background: var(--ih-blue-50);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: background 0.5s;
}

.ih-wohnlab-icon svg {
    transition: stroke 0.3s;
}

.ih-wohnlab-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--ih-dark);
}

.ih-wohnlab-card p {
    color: var(--ih-slate-600);
    margin-bottom: 32px;
    line-height: 1.7;
    font-size: 16px;
}

.ih-specialty-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--ih-blue-600);
    text-decoration: none;
    transition: gap 0.3s;
}

.ih-specialty-link:hover {
    gap: 16px;
}

/* ========================================
   Waitlist CTA Section
   ======================================== */
.ih-waitlist {
    padding: 96px 24px;
}

.ih-waitlist-inner {
    max-width: 1024px;
    margin: 0 auto;
    background: var(--ih-dark);
    border-radius: 48px;
    padding: 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ih-waitlist-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 256px;
    height: 256px;
    background: var(--ih-blue-600);
    opacity: 0.2;
    filter: blur(100px);
    margin-right: -128px;
    margin-top: -128px;
    pointer-events: none;
}

.ih-waitlist-content {
    position: relative;
    z-index: 10;
}

.ih-waitlist h2 {
    font-size: 40px;
    font-weight: 700;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.ih-waitlist h2 .ih-accent {
    color: var(--ih-accent);
}

.ih-waitlist-text {
    color: var(--ih-slate-400);
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
}

.ih-waitlist-form {
    display: flex;
    flex-direction: row;
    gap: 16px;
    max-width: 576px;
    margin: 0 auto;
}

.ih-waitlist-input {
    flex: 1;
    background: #1e293b;
    border: none;
    border-radius: 16px;
    padding: 20px 24px;
    color: white;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.ih-waitlist-input::placeholder {
    color: var(--ih-slate-500);
}

.ih-waitlist-input:focus {
    box-shadow: 0 0 0 2px var(--ih-accent);
}

.ih-waitlist-btn {
    background: var(--ih-accent);
    color: white;
    padding: 20px 40px;
    border-radius: 16px;
    border: none;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.ih-waitlist-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(93, 131, 247, 0.3);
}

.ih-success-msg {
    display: none;
    color: #4ade80;
    font-weight: 700;
    margin-top: 24px;
}

.ih-success-msg.is-visible {
    display: block;
}

/* ========================================
   Footer
   ======================================== */
.ih-footer {
    background: white;
    border-top: 1px solid var(--ih-slate-100);
    padding: 64px 24px;
}

.ih-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
}

.ih-footer-brand {
    margin-bottom: 24px;
}

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

.ih-footer-desc {
    color: var(--ih-slate-500);
    max-width: 384px;
    line-height: 1.6;
}

.ih-footer-col h4 {
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--ih-dark);
}

.ih-footer-col ul {
    list-style: none;
    padding: 0;
}

.ih-footer-col li {
    margin-bottom: 16px;
}

.ih-footer-col a {
    color: var(--ih-slate-500);
    text-decoration: none;
    transition: color 0.3s;
}

.ih-footer-col a:hover {
    color: var(--ih-blue-600);
}

.ih-footer-bottom {
    max-width: 1280px;
    margin: 64px auto 0;
    padding-top: 32px;
    border-top: 1px solid var(--ih-slate-50);
    text-align: center;
    color: var(--ih-slate-400);
    font-size: 14px;
}

/* ========================================
   Responsive: Tablet
   ======================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .ih-hero h1 {
        font-size: 42px;
    }

    .ih-hero-property h1 {
        font-size: 40px;
    }

    .ih-hero-property {
        padding: 64px 24px 48px;
    }

    .ih-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .ih-articles-more-grid {
        grid-template-columns: 1fr;
    }

    .ih-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .ih-specialties-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ih-trust-inner {
        gap: 32px;
    }

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

/* ========================================
   Responsive: Mobile
   ======================================== */
@media (max-width: 768px) {
    .ih-nav-links {
        display: none;
    }

    .ih-mobile-toggle {
        display: block;
    }

    .ih-nav-inner {
        padding: 0 16px;
        height: 64px;
    }

    .ih-hero {
        padding: 48px 16px 72px;
    }

    .ih-hero h1 {
        font-size: 32px;
        letter-spacing: -0.8px;
    }

    .ih-hero-text {
        font-size: 16px;
    }

    .ih-hero-property {
        padding: 48px 16px 40px;
    }

    .ih-hero-property h1 {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .ih-hero-property-text {
        font-size: 16px;
    }

    .ih-trust--tight {
        padding: 24px 16px;
    }

    .ih-properties-list-section {
        padding: 16px 16px 60px;
    }

    .ih-properties-list .ih-property-card {
        flex-direction: column;
    }

    .ih-properties-list .ih-property-image {
        width: 100%;
        min-height: 180px;
    }

    .ih-properties-list .ih-property-body {
        padding: 20px;
    }

    .ih-hero-signup {
        flex-direction: column;
    }

    .ih-articles {
        padding: 60px 16px;
    }

    .ih-articles-header {
        margin-bottom: 40px;
    }

    .ih-articles-header h2 {
        font-size: 24px;
    }

    .ih-articles-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ih-articles-more {
        padding: 48px 16px 60px;
    }

    .ih-articles-more-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        margin-bottom: 32px;
    }

    .ih-articles-more-grid {
        grid-template-columns: 1fr;
    }

    .ih-article-card-sm .ih-article-card-link {
        flex-direction: column;
    }

    .ih-article-image-sm {
        width: 100%;
        min-height: 160px;
    }

    .ih-wohnlab-section {
        padding: 60px 16px;
    }

    .ih-specialties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ih-wohnlab-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .ih-footer {
        padding: 48px 16px;
    }

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

    .ih-properties-section {
        padding: 60px 16px;
    }

    .ih-properties-header {
        margin-bottom: 40px;
    }

    .ih-properties-header h2 {
        font-size: 24px;
    }

    .ih-properties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ih-trust {
        padding: 32px 16px;
    }

    .ih-trust-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .ih-no-properties-box {
        padding: 48px 16px;
        border-radius: 16px;
    }

    .ih-footer-bottom {
        margin-top: 40px;
    }
}

/* ========================================
   Trust Indicators
   ======================================== */
.ih-trust {
    padding: 48px 24px;
    background: white;
    border-bottom: 1px solid var(--ih-slate-100);
}

.ih-trust-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.ih-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--ih-slate-600);
    font-size: 15px;
}

/* ========================================
   Properties Section (Landing Pages)
   ======================================== */
.ih-properties-section {
    padding: 96px 24px;
    background: white;
}

.ih-properties-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.ih-properties-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 64px;
    gap: 16px;
    border-bottom: 1px solid var(--ih-slate-100);
    padding-bottom: 32px;
}

.ih-properties-header h2 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ih-dark);
}

.ih-properties-header p {
    color: var(--ih-slate-500);
}

/* ========================================
   Property Cards
   ======================================== */
.ih-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.ih-property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--ih-slate-100);
    transition: transform 0.3s, box-shadow 0.3s;
}

.ih-property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.ih-property-card:hover .ih-property-image img {
    transform: scale(1.05);
}

.ih-property-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ih-slate-100);
}

.ih-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
    display: block;
}

.ih-property-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ih-slate-100);
}

.ih-property-body {
    padding: 24px;
}

.ih-property-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--ih-blue-50);
    color: var(--ih-blue-600);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.ih-property-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ih-dark);
    line-height: 1.3;
}

.ih-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.ih-property-title a:hover {
    color: var(--ih-blue-600);
}

.ih-property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ih-slate-500);
    font-size: 14px;
    margin-bottom: 8px;
}

.ih-property-details {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.ih-property-detail {
    font-size: 13px;
    color: #94a3b8;
    padding: 4px 10px;
    background: rgba(93, 131, 247, 0.08);
    border-radius: 6px;
}

.ih-property-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--ih-accent);
    margin-bottom: 16px;
}

.ih-property-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: var(--ih-blue-600);
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}

.ih-property-link:hover {
    gap: 10px;
}

/* No Properties Box */
.ih-no-properties-box {
    text-align: center;
    padding: 80px 24px;
    background: var(--ih-slate-50);
    border-radius: 24px;
    border: 1px dashed var(--ih-slate-400);
}

.ih-no-properties-box svg {
    margin-bottom: 24px;
}

.ih-no-properties-box h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ih-dark);
}

.ih-no-properties-box p {
    color: var(--ih-slate-500);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.ih-no-properties {
    text-align: center;
    padding: 48px;
    color: var(--ih-slate-500);
    font-size: 16px;
}

/* ========================================
   Large screens
   ======================================== */
@media (min-width: 1200px) {
    .ih-hero h1 {
        font-size: 72px;
    }

    .ih-hero-property h1 {
        font-size: 56px;
    }

    .ih-hero-property {
        padding: 100px 24px 80px;
    }

    .ih-articles-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }

    .ih-articles-more-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ih-footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ============================================
   SINGLE PROPERTY DETAIL PAGE
   ============================================ */

/* Article wrapper */
.ih-property-single {
  background: #ffffff;
}

/* Header section with gradient background */
.ih-property-header {
  background: linear-gradient(135deg, var(--ih-blue-50) 0%, var(--ih-slate-50) 100%);
  padding: 3rem 1.5rem;
  border-bottom: 1px solid var(--ih-slate-100);
}

.ih-property-header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

/* Status and type badges at top */
.ih-property-meta-top {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ih-property-status,
.ih-property-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.ih-property-status--verfuegbar {
  background-color: #dcfce7;
  color: #166534;
}

.ih-property-status--reserviert {
  background-color: #fef3c7;
  color: #92400e;
}

.ih-property-status--verkauft {
  background-color: #fee2e2;
  color: #991b1b;
}

.ih-property-type-badge {
  background-color: var(--ih-blue-50);
  color: var(--ih-blue-600);
}

/* Title and location in header - scoped to single property context */
.ih-property-single .ih-property-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ih-dark);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.ih-property-single .ih-property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ih-slate-600);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.ih-property-single .ih-property-location svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Large price display */
.ih-property-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ih-accent);
  margin: 0;
}

/* Main content area below header */
.ih-property-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* Images container */
.ih-property-images {
  width: 100%;
}

.ih-property-featured-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ih-property-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Gallery grid */
.ih-property-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ih-property-gallery-item {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ih-property-gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.ih-property-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

/* Property body content - scoped to avoid conflicts */
.ih-property-single .ih-property-body {
  width: 100%;
}

/* Section wrappers */
.ih-property-details-section,
.ih-property-features-section,
.ih-property-description-section {
  margin-bottom: 2.5rem;
}

.ih-property-details-section h2,
.ih-property-features-section h2,
.ih-property-description-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ih-dark);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ih-accent);
}

/* Details grid */
.ih-property-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ih-property-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ih-property-detail-label {
  font-size: 0.875rem;
  color: var(--ih-slate-500);
  font-weight: 500;
}

.ih-property-detail-value {
  font-size: 1rem;
  color: var(--ih-dark);
  font-weight: 600;
}

/* Features section */
.ih-property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ih-property-feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: var(--ih-blue-50);
  color: var(--ih-blue-600);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.ih-property-feature-tag:hover {
  background-color: #dbeafe;
}

/* Description section */
.ih-property-description {
  color: var(--ih-slate-600);
  font-size: 1rem;
  line-height: 1.75;
}

.ih-property-description p {
  margin-bottom: 1rem;
}

.ih-property-description p:last-child {
  margin-bottom: 0;
}

/* Back link */
.ih-property-back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ih-slate-100);
}

.ih-property-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ih-property-back-link a svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.2s ease;
}

.ih-property-back-link a:hover svg {
  transform: translateX(-3px);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  .ih-property-header {
    padding: 2.5rem 1.5rem;
  }

  .ih-property-single .ih-property-title {
    font-size: 2rem;
  }

  .ih-property-price-large {
    font-size: 1.75rem;
  }

  .ih-property-content {
    padding: 2.5rem 1.5rem;
  }

  .ih-property-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop (1201px+) */
@media (min-width: 1201px) {
  .ih-property-content {
    grid-template-columns: 60% 40%;
    gap: 3rem;
  }

  .ih-property-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .ih-property-header {
    padding: 4rem 1.5rem;
  }

  .ih-property-single .ih-property-title {
    font-size: 3rem;
  }

  .ih-property-price-large {
    font-size: 2.5rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .ih-property-header {
    padding: 2rem 1rem;
  }

  .ih-property-single .ih-property-title {
    font-size: 1.75rem;
  }

  .ih-property-single .ih-property-location {
    font-size: 1rem;
  }

  .ih-property-price-large {
    font-size: 1.5rem;
  }

  .ih-property-content {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .ih-property-details-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ih-property-details-section h2,
  .ih-property-features-section h2,
  .ih-property-description-section h2 {
    font-size: 1.25rem;
  }

  .ih-property-featured-image img {
    aspect-ratio: 4 / 3;
  }

  .ih-property-gallery {
    grid-template-columns: 1fr;
  }

  .ih-property-back-link {
    margin-top: 2rem;
    padding-top: 1.5rem;
  }
}
