/*
Theme Name:   IWHS Child Theme
Theme URI:    https://iwh-service.de
Description:  Astra Child Theme für IWHS – Ihr Wohn & Haus Service, Göttingen
Author:       IWHS-Service
Template:     astra
Version:      1.0.0
Text Domain:  iwhs-child
*/

/* ═══════════════════════════════════════════════
   IWHS – CSS-Variablen & Grundstile
═══════════════════════════════════════════════ */
:root {
  --blau:       #003366;
  --blau-hell:  #005599;
  --gold:       #c8a84b;
  --gold-hell:  #f0d080;
  --hell:       #f4f7fa;
  --rand:       #dde4ed;
  --text:       #222222;
  --text-hell:  #555555;
  --weiss:      #ffffff;
  --schatten:   0 2px 8px rgba(0, 0, 0, 0.12);
  --radius:     4px;
}

/* ═══════════════════════════════════════════════
   BODY & BASISSCHRIFT
═══════════════════════════════════════════════ */
body {
  background-color: var(--hell) !important;
  color: var(--text);
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: var(--blau);
  text-decoration: none;
}

a:hover {
  color: var(--blau-hell);
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   SITE-HEADER (Astra überschreiben)
═══════════════════════════════════════════════ */
.site-header,
#masthead,
.ast-header-break-point .site-header {
  background-color: var(--blau) !important;
  border-bottom: 4px solid var(--gold) !important;
  padding: 0 !important;
}

.site-header .ast-container {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo-Kästchen */
.site-branding,
.ast-site-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.iwhs-logo-box {
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--blau);
  flex-shrink: 0;
  letter-spacing: -1px;
  text-decoration: none !important;
}

.site-title,
.ast-site-title-wrap .site-title {
  font-family: 'Merriweather', serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--weiss) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.site-title a,
.ast-site-title-wrap .site-title a {
  color: var(--weiss) !important;
  text-decoration: none !important;
}

.site-title a span,
.ast-site-title-wrap .site-title a span {
  color: var(--gold-hell) !important;
}

.site-description,
.ast-site-title-wrap .site-description {
  font-size: 12px !important;
  color: #aac4dd !important;
  letter-spacing: 0.5px;
  margin: 3px 0 0 !important;
}

/* ═══════════════════════════════════════════════
   HAUPTNAVIGATION
═══════════════════════════════════════════════ */
#site-navigation,
.main-navigation,
.ast-primary-header-bar,
nav.ast-flex {
  background-color: var(--blau-hell) !important;
  border-bottom: 2px solid var(--gold) !important;
}

.main-navigation ul li a,
.ast-primary-header-bar .main-header-menu > li > a,
#primary-menu > li > a {
  color: #cce0f5 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 12px 18px !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s, color 0.2s !important;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a,
#primary-menu > li:hover > a,
#primary-menu > .current-menu-item > a,
#primary-menu > .current_page_item > a {
  background-color: var(--gold) !important;
  color: var(--blau) !important;
  text-decoration: none !important;
}

/* Untermenü */
.main-navigation ul ul {
  background-color: var(--blau) !important;
  border: 1px solid var(--gold);
  box-shadow: var(--schatten);
}

.main-navigation ul ul li a {
  color: #cce0f5 !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   SEITENLAYOUT
═══════════════════════════════════════════════ */
.ast-container,
.entry-content,
#content .ast-container {
  max-width: 960px !important;
}

.site-content {
  padding: 28px 0;
}

#primary.content-area {
  width: 100%;
}

/* Mit Sidebar */
.ast-two-container-layout #primary {
  width: calc(100% - 280px);
}

/* ═══════════════════════════════════════════════
   KARTE (wiederverwendbar)
═══════════════════════════════════════════════ */
.iwhs-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  margin-bottom: 24px;
  overflow: hidden;
}

.iwhs-karte-kopf {
  background: var(--blau);
  color: var(--weiss);
  padding: 11px 18px;
  font-family: 'Merriweather', serif;
  font-size: 15px;
  font-weight: 700;
  border-bottom: 3px solid var(--gold);
}

.iwhs-karte-body {
  padding: 20px;
}

/* ═══════════════════════════════════════════════
   WILLKOMMEN-BANNER (Startseite)
═══════════════════════════════════════════════ */
.iwhs-willkommen-banner {
  background: linear-gradient(135deg, var(--blau) 60%, var(--blau-hell));
  color: var(--weiss);
  padding: 24px 24px 20px;
  border-bottom: 3px solid var(--gold);
}

.iwhs-willkommen-banner h2 {
  font-family: 'Merriweather', serif;
  font-size: 20px;
  color: var(--weiss) !important;
  margin-bottom: 6px;
}

.iwhs-willkommen-banner p {
  font-size: 14px;
  color: #b8d4ee;
  margin: 0;
}

.iwhs-willkommen-text {
  padding: 20px 24px;
  font-size: 14.5px;
  color: var(--text-hell);
}

/* ═══════════════════════════════════════════════
   NEWS-BANNER
═══════════════════════════════════════════════ */
.iwhs-news-banner {
  background: #fffbe6;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #7a4800;
}

/* ═══════════════════════════════════════════════
   LEISTUNGEN-GRID
═══════════════════════════════════════════════ */
.iwhs-leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.iwhs-leistung {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--hell);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--gold);
  border-radius: 3px;
  padding: 11px 14px;
  transition: border-color 0.2s, background 0.2s;
}

.iwhs-leistung:hover {
  border-left-color: var(--blau);
  background: #eef3fa;
}

.iwhs-leistung-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.iwhs-leistung-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--blau);
  line-height: 1.35;
}

.iwhs-badge-neu {
  display: inline-block;
  background: var(--gold);
  color: var(--blau);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
  font-family: 'Open Sans', sans-serif;
}

/* ═══════════════════════════════════════════════
   LEISTUNGEN DETAIL (Seite Leistungen)
═══════════════════════════════════════════════ */
.iwhs-leistung-detail {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--rand);
  align-items: flex-start;
  transition: background 0.15s;
}

.iwhs-leistung-detail:last-child { border-bottom: none; }
.iwhs-leistung-detail:hover { background: #f8fafd; }

.iwhs-ld-icon {
  font-size: 38px;
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  line-height: 1;
}

.iwhs-ld-titel {
  font-family: 'Merriweather', serif;
  font-size: 16px;
  color: var(--blau);
  font-weight: 700;
  margin-bottom: 7px;
}

.iwhs-ld-text {
  font-size: 14px;
  color: var(--text-hell);
  line-height: 1.65;
}

.iwhs-tags {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.iwhs-tag {
  background: var(--hell);
  border: 1px solid var(--rand);
  border-radius: 2px;
  font-size: 11.5px;
  padding: 2px 9px;
  color: var(--blau-hell);
}

/* ═══════════════════════════════════════════════
   GALERIE
═══════════════════════════════════════════════ */
.iwhs-filter-leiste {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.iwhs-filter-btn {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: 3px;
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blau);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Open Sans', sans-serif;
}

.iwhs-filter-btn:hover,
.iwhs-filter-btn.aktiv {
  background: var(--blau);
  color: var(--weiss);
  border-color: var(--blau);
}

.iwhs-foto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 14px;
}

.iwhs-foto-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
  transition: transform 0.2s;
}

.iwhs-foto-karte:hover { transform: translateY(-3px); }
.iwhs-foto-karte.versteckt { display: none; }

.iwhs-foto-karte img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.iwhs-foto-platzhalter {
  aspect-ratio: 4/3;
  background: var(--hell);
  border-bottom: 1px solid var(--rand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 12px;
  gap: 6px;
}

.iwhs-foto-platzhalter .foto-icon { font-size: 32px; opacity: 0.4; }
.iwhs-foto-info { padding: 9px 11px; }
.iwhs-foto-titel { font-size: 13px; font-weight: 600; color: var(--blau); }
.iwhs-foto-kat { font-size: 11px; color: var(--text-hell); margin-top: 2px; }

/* ═══════════════════════════════════════════════
   AKTUELLES / NEWS-ITEMS
═══════════════════════════════════════════════ */
.iwhs-news-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--rand);
  align-items: flex-start;
}

.iwhs-news-item:last-child { border-bottom: none; }

.iwhs-news-datum {
  flex-shrink: 0;
  text-align: center;
  background: var(--blau);
  color: var(--weiss);
  border-radius: var(--radius);
  padding: 9px 13px;
  min-width: 62px;
}

.iwhs-news-datum .tag { font-family: 'Merriweather', serif; font-size: 24px; font-weight: 700; line-height: 1; display: block; }
.iwhs-news-datum .mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; display: block; margin-top: 2px; }
.iwhs-news-datum .jahr { font-size: 11px; opacity: 0.6; display: block; }
.iwhs-news-badge { display: inline-block; background: var(--gold); color: var(--blau); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 2px; margin-bottom: 6px; }
.iwhs-news-titel { font-family: 'Merriweather', serif; font-size: 16px; color: var(--blau); font-weight: 700; margin-bottom: 6px; }
.iwhs-news-text { font-size: 14px; color: var(--text-hell); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   KONTAKT-SEITE
═══════════════════════════════════════════════ */
.iwhs-kdirekt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.iwhs-kdirekt-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: var(--schatten);
}

.iwhs-kdirekt-icon { font-size: 28px; flex-shrink: 0; }
.iwhs-kdirekt-label { font-size: 11px; color: var(--text-hell); display: block; margin-bottom: 2px; }
.iwhs-kdirekt-wert { font-size: 15px; font-weight: 600; color: var(--blau); }
.iwhs-kdirekt-wert a { color: var(--blau); }

/* Contact Form 7 Anpassung */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  border: 1px solid var(--rand);
  border-radius: 3px;
  background: var(--weiss);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 4px;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none;
  border-color: var(--blau-hell);
  box-shadow: 0 0 0 3px rgba(0, 85, 153, 0.1);
}

.wpcf7 textarea { resize: vertical; min-height: 130px; }

.wpcf7 input[type="submit"] {
  background: var(--blau);
  color: var(--weiss);
  border: none;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Open Sans', sans-serif;
  width: auto !important;
}

.wpcf7 input[type="submit"]:hover { background: var(--blau-hell); }

.wpcf7-form-control-wrap { display: block; margin-bottom: 14px; }
.wpcf7 .wpcf7-not-valid-tip { color: #c62828; font-size: 12px; margin-top: 3px; }
.wpcf7 .wpcf7-response-output { margin-top: 14px; padding: 12px 16px; border-radius: 3px; font-size: 14px; }
.wpcf7 .wpcf7-mail-sent-ok { background: #e8f5e9; border: 1px solid #81c784; color: #1b5e20; }
.wpcf7 .wpcf7-validation-errors { background: #fdecea; border: 1px solid #e57373; color: #b71c1c; }

/* DSGVO Checkbox */
.wpcf7 .wpcf7-acceptance {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--hell);
  border: 1px solid var(--rand);
  border-radius: 3px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════ */
#secondary,
.widget-area {
  background: transparent !important;
}

.widget {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  margin-bottom: 20px;
  overflow: hidden;
}

.widget-title,
.widgettitle {
  background: var(--blau);
  color: var(--weiss) !important;
  padding: 10px 16px;
  font-family: 'Merriweather', serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-bottom: 3px solid var(--gold);
  margin: 0 !important;
}

.widget .widget-content,
.widget .textwidget {
  padding: 16px;
}

/* Kontakt-Widget */
.iwhs-kontakt-zeile {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rand);
  font-size: 13.5px;
}

.iwhs-kontakt-zeile:last-child { border-bottom: none; }
.iwhs-kontakt-icon { width: 22px; text-align: center; flex-shrink: 0; font-size: 15px; }
.iwhs-kontakt-label { font-size: 11px; color: var(--text-hell); display: block; }

/* Abkürzungsbox Widget */
.iwhs-abk-box {
  overflow: hidden;
}

.iwhs-abk-kopf {
  background: var(--gold);
  color: var(--blau);
  padding: 10px 16px;
  font-family: 'Merriweather', serif;
  font-size: 14px;
  font-weight: 700;
}

.iwhs-abk-item {
  display: flex;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px dotted var(--rand);
  font-size: 13px;
}

.iwhs-abk-item:last-child { border-bottom: none; }
.iwhs-abk-kuerzel { font-weight: 700; color: var(--blau); width: 20px; flex-shrink: 0; }

/* Erreichbarkeit Widget */
.iwhs-oz-zeile {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dotted var(--rand);
  font-size: 13px;
}

.iwhs-oz-zeile:last-child { border-bottom: none; }

/* ═══════════════════════════════════════════════
   HINWEIS-BOXEN
═══════════════════════════════════════════════ */
.iwhs-hinweis {
  border-radius: 3px;
  padding: 13px 18px;
  margin-bottom: 22px;
  font-size: 14px;
}

.iwhs-hinweis-gold {
  background: #fffbe6;
  border: 1px solid var(--gold);
  border-left: 5px solid var(--gold);
  color: #7a4800;
}

.iwhs-hinweis-blau {
  background: #eef5ff;
  border: 1px solid #b8d0f0;
  border-left: 5px solid var(--blau-hell);
  color: var(--blau);
}

/* ═══════════════════════════════════════════════
   BUTTON
═══════════════════════════════════════════════ */
.iwhs-btn,
.wp-block-button .wp-block-button__link {
  display: inline-block;
  background: var(--blau) !important;
  color: var(--weiss) !important;
  padding: 10px 22px;
  border-radius: 3px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.iwhs-btn:hover,
.wp-block-button .wp-block-button__link:hover {
  background: var(--blau-hell) !important;
  color: var(--weiss) !important;
}

/* ═══════════════════════════════════════════════
   IMPRESSUM / DATENSCHUTZ
═══════════════════════════════════════════════ */
.iwhs-rechtsseite h3 {
  font-family: 'Merriweather', serif;
  font-size: 15px;
  color: var(--blau);
  margin: 20px 0 8px;
  border-bottom: 1px solid var(--rand);
  padding-bottom: 5px;
}

.iwhs-rechtsseite p,
.iwhs-rechtsseite address {
  font-size: 14px;
  line-height: 1.8;
  font-style: normal;
  margin-bottom: 10px;
}

.iwhs-rechtsseite ul {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════
   SITE-FOOTER
═══════════════════════════════════════════════ */
.site-footer,
#colophon {
  background: var(--blau) !important;
  border-top: 4px solid var(--gold) !important;
  color: #7aa5cc !important;
  padding: 18px 24px !important;
  text-align: center;
  margin-top: 32px;
}

.site-footer a,
#colophon a {
  color: #aac8e8 !important;
}

.site-footer a:hover,
#colophon a:hover {
  color: var(--weiss) !important;
  text-decoration: none;
}

.site-footer .ast-footer-copyright,
.site-footer .footer-copyright {
  color: #7aa5cc !important;
  font-size: 12px;
}

/* ═══════════════════════════════════════════════
   WORDPRESS BLOCK EDITOR ANPASSUNGEN
═══════════════════════════════════════════════ */
.wp-block-heading {
  color: var(--blau);
  font-family: 'Merriweather', serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  color: var(--blau);
}

.entry-title {
  font-family: 'Merriweather', serif;
  color: var(--blau);
  font-size: 24px;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .iwhs-leistungen-grid { grid-template-columns: 1fr; }
  .iwhs-foto-grid { grid-template-columns: repeat(2, 1fr); }
  .iwhs-kdirekt-grid { grid-template-columns: 1fr; }
  .iwhs-leistung-detail { flex-direction: column; gap: 10px; }

  .site-header .ast-container {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .site-title { font-size: 18px !important; }
}

@media (max-width: 480px) {
  .iwhs-foto-grid { grid-template-columns: 1fr; }
  .iwhs-news-item { flex-direction: column; gap: 10px; }
}
