/*
Theme Name: Ferienwohnungen Brauße – Blankensee
Theme URI: https://fewo-blankensee.de/
Author: OpenAI
Description: Eine kleine, naturverbundene Website für die Ferienwohnungen Brauße in Blankensee.
Version: 1.24.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: fewo-blankensee
*/
:root{--green:#45633e;--deep:#263f2e;--sage:#edf1e8;--cream:#fbfaf5;--ink:#28342a;--muted:#667064;--gold:#d8c99e;--white:#fff;--radius:18px;--shadow:0 12px 35px rgba(38,63,46,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}a{color:var(--green)}img{max-width:100%;height:auto;display:block}.wrap{width:min(1160px,92%);margin:auto}.site-header{background:rgba(251,250,245,.96);position:sticky;top:0;z-index:20;border-bottom:1px solid #e6e9df;backdrop-filter:blur(10px)}.head-inner{min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{font-family:Georgia,serif;color:var(--deep);font-size:25px;font-weight:700;line-height:1.05;text-decoration:none}.brand small{display:block;font:italic 13px system-ui;color:var(--green);letter-spacing:2px;margin-top:5px}.nav{display:flex;gap:22px;align-items:center}.nav a{font-size:14px;text-decoration:none;color:#354635;font-weight:600}.nav a:hover{color:#8b9b66}.menu-toggle{display:none;border:0;background:var(--green);color:white;padding:10px 14px;border-radius:10px}.hero{min-height:520px;display:flex;align-items:center;position:relative;background:linear-gradient(90deg,rgba(22,42,29,.72),rgba(22,42,29,.12)),url('assets/images/blankensee-see.jpg') center 53%/cover no-repeat;color:#fff}.hero:after{content:"";position:absolute;inset:auto 0 0;height:80px;background:linear-gradient(transparent,var(--cream))}.hero-copy{position:relative;z-index:1;max-width:650px;padding:70px 0 95px}.eyebrow{text-transform:uppercase;letter-spacing:3px;font-size:12px;font-weight:700;color:#e5e9d8}.hero h1{font:500 clamp(42px,6vw,72px)/1.08 Georgia,serif;margin:16px 0}.hero p{font-size:18px;max-width:570px;color:#f5f5ec}.btn{display:inline-block;background:var(--green);color:white!important;text-decoration:none;padding:13px 22px;border-radius:999px;font-weight:700;box-shadow:0 7px 20px rgba(20,40,25,.15);transition:.2s}.btn:hover{background:var(--deep);transform:translateY(-2px)}.btn-light{background:#fff;color:var(--green)!important}.section{padding:76px 0}.section.soft{background:var(--sage)}.section-title{text-align:center;max-width:720px;margin:0 auto 38px}.section-title .eyebrow{color:#87966d}.section-title h2{font:500 clamp(32px,4vw,46px)/1.15 Georgia,serif;color:var(--deep);margin:10px 0}.section-title p{color:var(--muted);margin:0}.facts{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:18px;position:relative;z-index:1}.fact{background:#fff;padding:22px 14px;text-align:center;border-radius:14px;box-shadow:var(--shadow);font-size:14px;color:#596652}.fact strong{display:block;color:var(--deep);font:500 24px Georgia,serif;margin-bottom:4px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}.card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.card img{width:100%;height:255px;object-fit:cover}.card-body{padding:25px}.card h3{font:500 29px Georgia,serif;color:var(--deep);margin:0 0 8px}.meta{color:#7b8a6e;font-weight:700;font-size:14px;margin-bottom:12px}.price{font:500 22px Georgia,serif;color:var(--green);margin:15px 0 4px}.small{font-size:13px;color:var(--muted)}.amenities{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0}.amenities span{background:#f0f3eb;border-radius:999px;padding:6px 11px;font-size:12px;color:#53634d}.place-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center}.place-photo{width:100%;height:420px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}.place-copy h2{font:500 40px/1.12 Georgia,serif;color:var(--deep);margin:0 0 16px}.place-copy p{color:var(--muted)}.link-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:24px}.link-list a{background:#fff;padding:15px 18px;border-radius:12px;text-decoration:none;color:var(--deep);font-weight:650;box-shadow:0 5px 18px rgba(38,63,46,.06)}.link-list a:hover{background:#f2f5ed}.gallery{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:14px}.gallery img{width:100%;height:220px;object-fit:cover;border-radius:14px}.contact{background:var(--deep);color:#fff;border-radius:22px;padding:38px;display:flex;align-items:center;justify-content:space-between;gap:24px}.contact h2{font:500 34px Georgia,serif;margin:0 0 8px}.contact p{margin:0;color:#d9e0d4}.site-footer{background:#1d3325;color:#dce4d8;padding:30px 0;font-size:13px}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}.site-footer a{color:#e4ebdc}.legal{font-size:12px;color:#c5d0c0;margin-top:16px}.notice{font-size:12px;color:#7a8175;margin-top:15px}
@media(max-width:800px){.head-inner{min-height:68px}.menu-toggle{display:block}.nav{display:none;position:absolute;top:68px;left:0;right:0;background:#fbfaf5;padding:18px 4%;box-shadow:var(--shadow);flex-direction:column;align-items:flex-start}.nav.open{display:flex}.hero{min-height:490px}.hero-copy{padding:55px 0 95px}.facts{grid-template-columns:repeat(2,1fr)}.cards,.place-grid{grid-template-columns:1fr}.place-photo{height:300px}.gallery{grid-template-columns:1fr 1fr}.gallery img:first-child{grid-column:span 2}.contact{display:block}.contact .btn{margin-top:20px}}
@media(max-width:480px){.hero h1{font-size:43px}.section{padding:56px 0}.facts{gap:9px}.fact{padding:16px 8px}.fact strong{font-size:20px}.card img{height:215px}.link-list{grid-template-columns:1fr}.gallery{grid-template-columns:1fr}.gallery img:first-child{grid-column:auto}.contact{padding:28px 22px}}

.card-gallery{display:grid;grid-template-columns:1.15fr 1fr .75fr;gap:3px;height:220px;background:#eef1e8}.card-gallery img{width:100%;height:100%;object-fit:cover}.photo-credit{font-size:11px;color:#778071;text-align:right;margin-top:12px}.photo-credit a{color:#5d704f}
@media(max-width:480px){.card-gallery{height:170px}.card-gallery img{height:170px}}

.house-gallery{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.house-gallery img{width:100%;height:280px;object-fit:cover;border-radius:var(--radius);box-shadow:var(--shadow)}.house-caption{grid-column:1/-1;margin:0;color:var(--muted);font-size:14px;line-height:1.55}@media(max-width:800px){.house-gallery img{height:230px}}@media(max-width:480px){.house-gallery{grid-template-columns:1fr}.house-gallery img{height:250px}.house-caption{grid-column:auto}}

/* Kontakt und direkte Routenplanung */
.contact-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.map-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:800px){.contact-actions{margin-top:18px;flex-direction:column;align-items:stretch}.contact-actions .btn{width:100%;text-align:center;box-sizing:border-box}}

/* Ausflugsziele: klare, kompakte Kartenanordnung */
#ausflug .cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
#ausflug .card{min-width:0}
#ausflug .card img{width:100%;height:210px;object-fit:cover}
#ausflug .card-body{padding:20px}
#ausflug .card-body p{line-height:1.55}
@media(max-width:900px){#ausflug .cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#ausflug .cards{grid-template-columns:1fr}}

/* Mehr Bilder in der Galerie von Ferienwohnung 1 */
.card-gallery.gallery-many{height:300px;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:150px 150px;}
.card-gallery.gallery-many img{height:100%;}
.card-gallery.gallery-many img:nth-child(1){grid-column:span 2;grid-row:1;}
.card-gallery.gallery-many img:nth-child(2){grid-column:span 2;grid-row:1;}
.card-gallery.gallery-many img:nth-child(3){grid-column:span 2;grid-row:1;}
.card-gallery.gallery-many img:nth-child(4){grid-column:2 / span 2;grid-row:2;}
.card-gallery.gallery-many img:nth-child(5){grid-column:4 / span 2;grid-row:2;}
@media(max-width:480px){.card-gallery.gallery-many{height:240px;grid-template-rows:120px 120px;}}

/* Erweiterungen: Kontakt direkt oben, große Wohnungsbilder und Hinweise für Gäste */
.top-contact{background:#263f2e;color:#f6f7ef;font-size:13px}
.top-contact-inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding-top:6px;padding-bottom:6px}
.top-contact a{color:#fff;text-decoration:none;font-weight:650}
.top-contact a:hover{text-decoration:underline}
.card-gallery{height:340px}
.card-gallery.gallery-many{height:390px;grid-template-rows:195px 195px}
.card-gallery.gallery-many img{min-height:0}
.local-info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.local-info-card{background:#fff;border-radius:16px;padding:24px;box-shadow:var(--shadow)}
.local-info-card h3{font:500 24px Georgia,serif;color:var(--deep);margin:0 0 10px}
.local-info-card p{color:var(--muted);margin:0 0 12px}
.local-info-card a{font-weight:700}
#ausflug .card>img{height:300px;object-fit:cover}
@media(max-width:800px){.top-contact-inner{justify-content:center;text-align:center;gap:6px 16px}.card-gallery{height:290px}.card-gallery.gallery-many{height:320px;grid-template-rows:160px 160px}.local-info-grid{grid-template-columns:1fr}}
@media(max-width:480px){.card-gallery{height:230px}.card-gallery.gallery-many{height:260px;grid-template-rows:130px 130px}.top-contact-inner{font-size:11px}}

/* Neue Originalfotos der kleinen Ferienwohnung und Hausvorderseite */
.property-front{padding:24px 0 8px;background:#f7f5ef}
.property-front .wrap{max-width:1120px}
.property-front img{display:block;width:100%;max-height:430px;object-fit:cover;object-position:center 55%;border-radius:18px;box-shadow:var(--shadow)}
.property-front p{text-align:center;color:var(--muted);font-size:14px;margin:10px 0 0}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many{height:320px;grid-template-columns:repeat(6,minmax(0,1fr));grid-template-rows:160px 160px}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img:nth-child(1){grid-column:span 2;grid-row:1}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img:nth-child(2){grid-column:span 2;grid-row:1}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img:nth-child(3){grid-column:span 2;grid-row:1}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img:nth-child(n+4){display:none}
@media(max-width:800px){.property-front img{max-height:320px}}

/* Ferienwohnung 2: vollständige Galerie mit neun unterschiedlichen Ansichten */
#wohnungen .card:nth-child(2) .card-gallery.gallery-many{
  height:auto !important; display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  grid-template-rows:none !important; gap:8px; overflow:hidden;
}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img{
  display:block !important; width:100%; height:180px; min-height:0;
  object-fit:cover; grid-column:auto !important; grid-row:auto !important;
  border-radius:8px;
}
@media(max-width:800px){
 #wohnungen .card:nth-child(2) .card-gallery.gallery-many{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
 #wohnungen .card:nth-child(2) .card-gallery.gallery-many img{height:150px}
}

/* Version 1.18: keep the caption below the house photo fully clear of the facts strip */
.property-front{padding-bottom:36px!important}
.property-front p{display:block;position:relative;z-index:1;line-height:1.6;margin:14px 0 0!important;padding:0 8px}
.property-front + .wrap .facts{margin-top:24px!important;position:relative;z-index:1}

/* Version 1.19: keep apartment galleries and their descriptions in normal document flow */
#wohnungen .cards{align-items:start}
#wohnungen .card{display:flex;flex-direction:column;min-width:0}
#wohnungen .card-gallery{position:relative;display:grid;flex:0 0 auto;width:100%;height:auto!important;overflow:hidden}
#wohnungen .card-body{display:block;position:relative;flex:0 0 auto;width:auto;clear:both;z-index:1}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:150px!important;grid-template-rows:none!important;
  gap:8px;padding:8px;box-sizing:border-box;
}
#wohnungen .card:nth-child(2) .card-gallery.gallery-many img{
  display:block!important;width:100%;height:150px!important;min-height:0;
  object-fit:cover;grid-column:auto!important;grid-row:auto!important;
}

/* Version 1.20: balanced, consistent six-photo nature gallery */
.section.soft .gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.section.soft .gallery img{display:block;width:100%;height:220px;object-fit:cover;border-radius:14px}
@media(max-width:700px){.section.soft .gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.section.soft .gallery img{height:170px}}
@media(max-width:420px){.section.soft .gallery{grid-template-columns:1fr}.section.soft .gallery img{height:210px}}

/* Version 1.21: rebuilt house intro and apartment galleries in normal document flow */
.property-front{padding:24px 0 34px!important}
.property-front .wrap{display:block}
.property-front img{display:block;width:100%;height:auto;max-height:430px;object-fit:cover}
.property-front p{display:block;position:static;clear:both;text-align:center;line-height:1.6;margin:14px 0 22px!important;padding:0 8px}
.property-front .facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0!important;position:static}
#wohnungen .cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;align-items:start}
#wohnungen .card{display:flex;flex-direction:column;min-width:0;overflow:hidden}
#wohnungen .card-gallery.gallery-four{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:170px;gap:8px;padding:8px;height:auto!important;min-height:0;overflow:hidden;flex:none}
#wohnungen .card-gallery.gallery-four img{display:block;width:100%;height:170px!important;min-height:0;object-fit:cover;grid-column:auto!important;grid-row:auto!important}
#wohnungen .card-body{display:block;position:static;clear:both;width:auto;flex:none;padding:25px}
@media(max-width:760px){
 .property-front .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 #wohnungen .cards{grid-template-columns:1fr}
 #wohnungen .card-gallery.gallery-four{grid-auto-rows:160px}
 #wohnungen .card-gallery.gallery-four img{height:160px!important}
}


/* Version 1.23: six photos per apartment; descriptions start at the same height */
#wohnungen .card-gallery.gallery-four{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:170px!important;grid-template-rows:none!important;
  gap:8px;padding:8px;box-sizing:border-box;height:auto!important;
}
#wohnungen .card-gallery.gallery-four img{
  display:block!important;width:100%;height:170px!important;min-height:0;
  object-fit:cover;grid-column:auto!important;grid-row:auto!important;
}
@media(max-width:760px){
  #wohnungen .card-gallery.gallery-four{grid-auto-rows:160px!important}
  #wohnungen .card-gallery.gallery-four img{height:160px!important}
}


/* Version 1.24: mobile layout without sideways scrolling; clearly visible caption below the red house photo */
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { overflow-wrap:anywhere; }
img, video, iframe { max-width:100%; }
.wrap { width:min(1160px, calc(100% - 32px)); min-width:0; }
.site-header, .head-inner, .top-contact, .top-contact-inner,
main, section, .cards, .card, .card-gallery, .card-body,
.place-grid, .house-gallery, .place-copy, .contact, .contact-actions,
.local-info-grid, .gallery, .link-list { min-width:0; max-width:100%; }
.top-contact-inner { flex-wrap:wrap; }
.top-contact-inner > * { min-width:0; overflow-wrap:anywhere; }
#wohnungen .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
#wohnungen .card { width:100%; min-width:0; }
#wohnungen .card-gallery.gallery-four { grid-template-columns:repeat(2,minmax(0,1fr))!important; }
#wohnungen .card-gallery.gallery-four img { min-width:0; }
.property-front { overflow:visible; }
.property-front .wrap { min-width:0; }
.property-front img { width:100%; height:auto; }
.property-front p {
  display:block!important; visibility:visible!important; opacity:1!important;
  position:relative!important; z-index:2; clear:both; width:100%;
  margin:16px 0 22px!important; padding:15px 18px!important;
  color:#263f2e!important; background:#e9efe3!important;
  border-left:5px solid #45633e; border-radius:10px;
  text-align:center; font-size:16px; font-weight:650; line-height:1.55;
}
@media(max-width:760px){
  .wrap { width:calc(100% - 28px); }
  .head-inner { gap:10px; }
  .brand { min-width:0; max-width:calc(100% - 92px); font-size:clamp(18px,5vw,23px); overflow-wrap:normal; }
  .brand small { font-size:10px; letter-spacing:1.2px; }
  .menu-toggle { flex:0 0 auto; white-space:nowrap; }
  .top-contact-inner { justify-content:center; text-align:center; }
  #wohnungen .cards { grid-template-columns:minmax(0,1fr)!important; gap:22px; }
  #wohnungen .card-gallery.gallery-four { grid-template-columns:repeat(2,minmax(0,1fr))!important; grid-auto-rows:clamp(125px,39vw,170px)!important; }
  #wohnungen .card-gallery.gallery-four img { width:100%; height:clamp(125px,39vw,170px)!important; }
  #wohnungen .card-body { padding:20px; }
  #wohnungen .card-body h3, #wohnungen .card-body p,
  #wohnungen .meta, #wohnungen .price, #wohnungen .small { overflow-wrap:anywhere; }
  .property-front .facts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .place-grid { grid-template-columns:minmax(0,1fr); }
  .house-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .house-gallery img { width:100%; min-width:0; }
  .link-list { grid-template-columns:minmax(0,1fr); }
  .contact { padding:24px 18px; }
  .contact-actions .btn { white-space:normal; overflow-wrap:anywhere; }
}
@media(max-width:420px){
  .wrap { width:calc(100% - 24px); }
  .top-contact-inner { font-size:10px; }
  .house-gallery { grid-template-columns:minmax(0,1fr); }
  .house-gallery .house-caption { grid-column:1; }
  .property-front p { font-size:15px; padding:13px 12px!important; }
}
