/*
Theme Name: TwentyTwentyFive Child
Template: twentytwentyfive
Version: 1.0
Requires at least: 5.9
Requires PHP: 7.4
Description: Classic Child Theme (FSE disabled)
Tags: classic-theme
*/

/* ===== IPM – Einzelansicht Wohnung ===== */
/* Galerie unter der Wohnung */
.ipm-wohnung-gallery {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

.ipm-wohnung-gallery h2 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #013863;
}

.ipm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.ipm-gallery-item {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.ipm-gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Wrapper für den Seiteninhalt */
.ipm-wohnung-single-wrapper {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

/* Karte */
.ipm-wohnung-single {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-start;
  padding: 24px;
}

/* Bild links */
.ipm-wohnung-single .ipm-wohnung-image {
  position: relative;
  flex: 0 0 360px;
  max-width: 360px;
  min-width: 260px;
  overflow: hidden;
  border-radius: 20px;
}

.ipm-wohnung-single .ipm-wohnung-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Badge oben im Bild */
.ipm-wohnung-single .ipm-wohnung-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e4f7ea;
  color: #248c4b;
}

/* Status-Farben (optional) */
.ipm-wohnung-single.status-vermietet .ipm-wohnung-badge {
  background: #fde4e4;
  color: #c0392b;
}
.ipm-wohnung-single.status-reserviert .ipm-wohnung-badge {
  background: #fff6dd;
  color: #b88700;
}

/* Inhalt rechts */
.ipm-wohnung-single .ipm-wohnung-content {
  flex: 1;
}

/* Titel */
.ipm-wohnung-title {
  font-size: 28px;
  margin: 0 0 12px;
  color: #013863;
  font-weight: 700;
}

/* Zweispaltiger Fakten-Block */
.ipm-wohnung-single-fakten-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

.ipm-wohnung-fakten-block {
  flex: 1 1 220px;
}

.ipm-wohnung-block-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #013863;
}

.ipm-wohnung-fakten-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ipm-wohnung-fakten-block li {
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

/* Beschreibung */
.ipm-wohnung-single-description {
  font-size: 15px;
  color: #222;
  line-height: 1.6;
  margin-top: 8px;
}

/* Buttons unten */
.ipm-wohnung-single-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ipm-wohnung-btn {
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #014489;
  background: #ffffff;
  color: #014489;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.ipm-wohnung-btn:hover {
  background: #014489;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(1,68,137,0.25);
}

/* Zurück-zur-Übersicht-Button etwas neutraler */
.ipm-wohnung-btn-back {
  border-color: #9ca3af;
  color: #374151;
}

.ipm-wohnung-btn-back:hover {
  background: #9ca3af;
  color: #ffffff;
}

/* Mobile: untereinander */
@media (max-width: 768px) {
  .ipm-wohnung-single {
    flex-direction: column;
  }

  .ipm-wohnung-single .ipm-wohnung-image {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
  }

  .ipm-wohnung-single-fakten-rows {
    flex-direction: column;
  }
}
/* Zurück-Link oberhalb der Karte */
.ipm-wohnung-backtop {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 16px 8px;
}

.ipm-wohnung-backlink {
  font-size: 14px;
  color: #014489;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ipm-wohnung-backlink:hover {
  text-decoration: underline;
}

/* Galerie unter der Karte */
.ipm-wohnung-gallery {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 16px;
}

.ipm-wohnung-gallery h2 {
  font-size: 20px;
  margin: 0 0 16px;
  color: #013863;
}

.ipm-wohnung-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 16px;
}

.ipm-wohnung-gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* Anfrage-Karte */
.ipm-anfrage-card {
  max-width: 1100px;
  margin: 32px auto 40px;
  padding: 24px 16px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.ipm-anfrage-card h2 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #013863;
}

.ipm-anfrage-eckdaten {
  margin-bottom: 16px;
}

.ipm-anfrage-eckdaten h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.ipm-anfrage-eckdaten ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ipm-anfrage-eckdaten li {
  font-size: 14px;
  margin-bottom: 2px;
}

/* Formular */
.ipm-anfrage-form-row {
  margin-bottom: 12px;
}

.ipm-anfrage-form-row label {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.ipm-anfrage-form-row input,
.ipm-anfrage-form-row textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.ipm-anfrage-form-row textarea {
  resize: vertical;
}

/* Nachrichten */
.ipm-anfrage-message {
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.ipm-anfrage-success {
  background: #e4f7ea;
  color: #166534;
}

.ipm-anfrage-error {
  background: #fee2e2;
  color: #b91c1c;
}
/* Zurück-Link oberhalb der Karte */
.ipm-wohnung-backtop {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 16px 8px;
}

.ipm-wohnung-backlink {
  font-size: 14px;
  color: #014489;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ipm-wohnung-backlink:hover { text-decoration: underline; }

/* Anfrage-Karte unter der Wohnung */
.ipm-anfrage-card {
  max-width: 1100px;
  margin: 24px auto 40px;
  padding: 24px 16px 24px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  display: none;            /* initial zu */
}
.ipm-anfrage-card.is-open {
  display: block;
}

.ipm-anfrage-card h2 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 12px;
  color: #013863;
}

.ipm-anfrage-eckdaten {
  margin-bottom: 16px;
}
.ipm-anfrage-eckdaten h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.ipm-anfrage-eckdaten ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ipm-anfrage-eckdaten li {
  font-size: 14px;
  margin-bottom: 2px;
}

/* CF7-Felder etwas hübscher machen */
.ipm-anfrage-form input[type="text"],
.ipm-anfrage-form input[type="email"],
.ipm-anfrage-form input[type="tel"],
.ipm-anfrage-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.ipm-anfrage-form textarea { resize: vertical; }
/* ============= Einzelseite "Wohnung" – Layout ============= */

body.ipm-wohnung-single-page {
  background: #f3f4f6;
}

/* Wrapper für den Content */
.ipm-wohnung-single-wrapper {
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 16px;
}

/* Zurück-Link oberhalb der Karte */
.ipm-wohnung-backtop {
  max-width: 1100px;
  margin: 0 auto 16px;
  padding: 0 16px;
}

.ipm-wohnung-backlink {
  font-size: 14px;
  color: #014489;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ipm-wohnung-backlink:hover {
  text-decoration: underline;
}

/* Die eigentliche Wohnungskarte */
.ipm-wohnung-card {
  display: flex;
  gap: 32px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  padding: 24px;
  align-items: stretch;
}

/* Bild links */
.ipm-wohnung-image {
  flex: 0 0 40%;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 260px;
  background: #e5e7eb;
}
.ipm-wohnung-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Badge im Bild */
.ipm-wohnung-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e0fbea;
  color: #166534;
}

/* Rechte Seite – Text */
.ipm-wohnung-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ipm-wohnung-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #014489;
}

/* Zwei Info-Spalten */
.ipm-wohnung-single-fakten-rows {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 12px;
}

.ipm-wohnung-fakten-block {
  flex: 1 1 220px;
  font-size: 14px;
}

.ipm-wohnung-block-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 4px;
}

.ipm-wohnung-fakten-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ipm-wohnung-fakten-block li {
  margin: 2px 0;
}

/* Beschreibungstext */
.ipm-wohnung-single-description {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #374151;
}

/* Buttons unter der Beschreibung */
.ipm-wohnung-single-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ipm-wohnung-btn {
  border-radius: 999px;
  padding: 8px 22px;
  font-size: 14px;
  border: 1px solid #014489;
  background: #014489;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.ipm-wohnung-btn:hover {
  background: #023561;
  border-color: #023561;
  color: #ffffff;
}

.ipm-wohnung-btn-back {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #111827;
}
.ipm-wohnung-btn-back:hover {
  background: #d1d5db;
  border-color: #d1d5db;
}

/* ============= Anfrageformular-Karte ============= */

.ipm-anfrage-card {
  max-width: 1100px;
  margin: 24px auto 80px;
  padding: 24px 20px 28px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
  display: none; /* Start: zugeklappt */
}

.ipm-anfrage-card.is-open {
  display: block;
}

.ipm-anfrage-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
  color: #013863;
}

.ipm-anfrage-eckdaten {
  margin-bottom: 14px;
}
.ipm-anfrage-eckdaten h3 {
  font-size: 15px;
  margin: 0 0 4px;
}
.ipm-anfrage-eckdaten ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ipm-anfrage-eckdaten li {
  font-size: 14px;
  margin-bottom: 2px;
}

/* CF7-Felder etwas hübscher machen */
.ipm-anfrage-form input[type="text"],
.ipm-anfrage-form input[type="email"],
.ipm-anfrage-form input[type="tel"],
.ipm-anfrage-form textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 10px;
}
.ipm-anfrage-form textarea {
  resize: vertical;
}

.ipm-anfrage-form input[type="submit"],
.ipm-anfrage-form button[type="submit"] {
  border-radius: 999px;
  padding: 8px 22px;
  border: 1px solid #014489;
  background: #014489;
  color: #ffffff;
  cursor: pointer;
}
.ipm-anfrage-form input[type="submit"]:hover,
.ipm-anfrage-form button[type="submit"]:hover {
  background: #023561;
  border-color: #023561;
}

/* ============= Mobile Anpassungen ============= */

@media (max-width: 768px) {
  .ipm-wohnung-card {
    flex-direction: column;
    padding: 18px;
  }

  .ipm-wohnung-image {
    flex-basis: auto;
    min-height: 220px;
  }

  .ipm-wohnung-single-fakten-rows {
    flex-direction: column;
    gap: 16px;
  }

  .ipm-wohnung-single-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* =======================
   IPM FOOTER
======================= */

.ipm-footer {
    background: #014489;
    color: #ffffff;
    padding: 50px 20px 30px;
    margin-top: 80px;
    font-family: "Manrope", sans-serif;
}

.ipm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.ipm-footer-col {
    flex: 1 1 250px;
    min-width: 220px;
}

.ipm-footer-logo {
    width: 180px;
    margin-bottom: 16px;
}

.ipm-footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.ipm-footer-col h4 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

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

.ipm-footer-col ul li {
    margin-bottom: 6px;
}

.ipm-footer-col a {
    color: #cfe6ff;
    text-decoration: none;
    transition: 0.2s;
}

.ipm-footer-col a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.ipm-footer-bottom {
    text-align: center;
    font-size: 13px;
    padding-top: 24px;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.25);
    color: #e4efff;
}

/* Mobile */
@media (max-width: 768px) {
    .ipm-footer-inner {
        flex-direction: column;
        gap: 30px;
    }

    .ipm-footer-col {
        min-width: 100%;
    }

    .ipm-footer-bottom {
        margin-top: 40px;
    }
}
/* Header an Content-Breite anpassen */
.ipm-header,
.ipm-header-inner {
    max-width: 1200px;   /* gleiche Breite wie dein Content */
    margin: 0 auto;
    padding: 0 20px;     /* Innenabstand wie bei Inhalt */
    box-sizing: border-box;
}
/* Footer Grundlayout */
.ipm-footer {
    background: #014489;
    padding: 50px 0;
    color: #ffffff;
    font-family: "Source Sans Pro", sans-serif;
}

.ipm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
}

/* Spalten */
.footer-col {
    flex: 1;
    min-width: 250px;
}

/* Logo */
.footer-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

/* Texte */
.footer-company,
.footer-contact {
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

/* Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #E6F0FF;
    text-decoration: none;
    font-size: 16px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Header in Footer */
.ipm-footer h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #ffffff;
}

/* Responsiv */
@media (max-width: 768px) {
    .ipm-footer-inner {
        flex-direction: column;
        gap: 30px;
    }
}
/* Footer – Linkfarben überall erzwingen */
.ipm-footer a {
    color: #ffffff !important;     /* Weiß */
}

.ipm-footer a:hover {
    color: #d7e9ff !important;     /* Helles Blau beim Hover */
}

/* Optional: Der Text neben den Links soll auch weiß */
.ipm-footer p,
.ipm-footer li,
.ipm-footer div {
    color: #ffffff !important;
}
.ipm-downloads {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ipm-download-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ipm-download-icon {
    font-size: 32px;
}

.ipm-download-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ipm-download-info p {
    margin: 4px 0 0;
    color: #728093;
    font-size: 14px;
}

.ipm-download-btn {
    margin-left: auto;
    background: #014489;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: .2s;
}

.ipm-download-btn:hover {
    background: #013766;
}
/* Download-Button Textfarbe erzwingen */
.ipm-download-btn {
    color: #ffffff !important;
}
