/* 1. Entfernt die riesige Lücke unter den Slider-Navigationspfeilen */
.mateslider-container, 
.slider-wrapper, 
#home-slider {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* 2. Zwingt das leere Widget-Band unter dem Slider, komplett auf 0 zu schrumpfen */
#homepage-widgets, 
.home-widgets, 
#headline,
#top-ads {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 3. Zwingt das Portfolio-Raster (die Bilder), direkt nach oben zu rücken */
#main, 
#container, 
#content,
.main-inside {
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: -250px !important; /* Drückt die Bilder aktiv nach oben an die Pfeile heran */
}

/* Blendet die leere Pagination-Box an dieser Stelle komplett aus */
.pagination, 
div.pagination {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
}

/* Zwingt den gesamten Inhaltsbereich mit den Bildern, nach oben nachzurücken */
#main, 
#container, 
#content,
.main-inside {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
}

/* --- Radikaler Layout-Kollaps für die Kontaktseite --- */

/* 1. Zwingt das gesamte Haupt-Fenster, ganz oben unter dem Header anzufangen */
#main, 
#container, 
#content, 
.main-content, 
.entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 2. Spricht die inneren Strukturelemente des Interstellar-Themes an */
#main-inside, 
.main-inside, 
#content-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* 3. Falls das Loch immer noch da ist: Wir schieben den Inhalt aktiv mit Gewalt nach oben */
article.page, 
.type-page {
    margin-top: -150px !important;
    position: relative !important;
    top: 0 !important;
}
/* =======================================================
   REPARATUR FÜR DIE KONTAKTSEITE (ID 95)
====================================================== */

/* 1. Zwingt die Boxen untereinander und hebt das Nebeneinander-Stehen auf */
.page-id-95 .ufo-shortcode.half, 
.page-id-95 .ufo-shortcode.half-last,
.page-id-95 div.ufo-shortcode.half,
.page-id-95 div.ufo-shortcode.half-last {
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    height: auto !important; /* Löst das unnatürliche height: 100% auf */
    min-height: 0 !important;
}

/* 2. Hier überschreiben wir die 40px aus dem Theme jetzt direkt und sauber */
.page-id-95 div.ufo-shortcode.half-last,
.page-id-95 .ufo-shortcode.half-last {
    margin-bottom: 0px !important; /* Hier wird aus der 40 jetzt eine 0! Erhöhen für mehr Abstand */
    margin-top: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* 3. Setzt die Abstände der Überschrift zurück */
.page-id-95 .ufo-shortcode.half-last h1,
.page-id-95 h1 {
    margin-top: 5px !important;
    padding-top: 0px !important;
    clear: both !important;
    display: block !important;
}