/* 
Plotterliebe by Si&Sa, CSS Stylesheet
Datei:style_plotterliebe.css
Beinhaltet auch die Styles für die Galerie
mit lokalen Fonts
Stand:© 28.03.2026 Martin Glübert
*/

/* Root / Variablen ------------------------------------------------- */
:root{
  --bg:#ffffff;
  --muted-bg:#F7F6F3;
  --text:#222222;
  --accent:#7FC9C0;
  --accent-2:#F3B8B2;
  --border:#f3f3f3;
  --border-m:#ccc;
  --border-h:#999;
  --card-bg:#ffffff;
  --radius:14px;
  --shadow:0 14px 40px rgba(34,34,34,0.3);
  --max-width:1100px;
  --gap:8px;
  --thumb-size:78px;
}

/* Google Font Great Vibes & Playfair Display ------------------------ */
@font-face{
  font-family:"Great Vibes";
  src:url("../fonts/GreatVibes-Regular.ttf") format("truetype");
  font-weight:normal;
  font-style:normal;
}
@font-face{
  font-family:"Playfair Display";
  src:url("../fonts/PlayfairDisplay-VariableFont_wght.ttf") format("truetype");
  font-weight:100 900;/* Variable weight range */
  font-style:normal;
}

/* Global Reset / Base ------------------------------------------------ */
*{ box-sizing:border-box;}
html, body{ height:100%;}
body{
  margin:0;
  font-family:"Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-image:url("../../images/Hintergrund_mobile.webp");
  background-attachment:fixed;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
  padding:10px 18px;
}
  
/* Header (fixed position)--------------------------------------------- */
    header.header{
      position:sticky;top:0;z-index:40;
      backdrop-filter: blur(6px);
      box-shadow: 0 1px 0 rgba(0,0,0,0.04);
    }
  
/* Central wrapper ---------------------------------------------------- */
.wrap{
  max-width:var(--max-width);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:0px;// 8px
  align-items:center;
}

/* Header / brand ----------------------------------------------------- */
.brand{
  display:flex;
  align-items:center;
  gap:14px;
  cursor:pointer;
}
.brand-logo{
  width:70px;
  height:70px;
  border-radius:12px;
  background-image:url("../../images/Logo_klein.png");// kleines Logo im Kopf
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
}
.brand-text{
  display:flex;
  flex-direction:column;
  align-items:center;/* center title + subtitle horizontally */
  justify-content:center;
  text-align:center;
}
.brand-title{
  margin:0;
  font-family:"Great Vibes", cursive;
  font-size:34px;
  line-height:1;
  color:var(--text);
}
.brand-sub{
  margin-top:7px;
  margin-bottom:4px;
  font-size:13px;
  color:rgba(34,34,34,0.65);
  font-weight:600;
  letter-spacing:0.3px;
}

/* Card layout (master) ----------------------------------------------- */
.card{
  max-width:900px;
  width:100%;
  background:var(--card-bg);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  display:grid;
  grid-template-columns:1fr 250px;
  gap:28px;
  padding:28px;
  align-items:center;
}

/* Left content */
.card .left{padding-right:6px}
.title{font-family:"Playfair Display";font-size:28px;font-weight:700;margin:0 0 8px}
.lead{color:rgba(34,34,34,0.8);margin:0 0 16px}
.note{font-size:14px;color:rgba(34,34,34,0.72);margin-bottom:12px}

/* title content */
h1, h2, h3, h4 .title{padding:0px}

/* Actions / buttons */
.actions{display:flex;gap:12px;flex-wrap:wrap}
.btn{
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--border-m);
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  background:var(--accent);
  color:#fff;
}
.btn:hover{border:1px solid var(--border-h);box-shadow:var(--shadow)}

.btn-primary{background:var(--accent);color:#fff;box-shadow:0 6px 18px rgba(127,201,192,0.18)}
.btn-secondary{background:transparent;color:var(--text);padding:5px 7px}
.btn-secondary:hover{background:var(--accent-2);color:var(--text);box-shadow:var(--shadow)}

/* Single-column card variant (legal pages) --------------------------- */
.card.single-column{
  grid-template-columns:1fr !important;
  background:rgba(220, 220, 220, 0.7);
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
  padding:0px, 28px, 0px, 28px;// top, right, bottom, and left 
}
.card.single-column .left{
  grid-column:1 / -1;
  padding-right:0;
}
.card.single-column .visual{ display:none;}

/* Construction strip and small utilities ----------------------------- */
.construction-strip{
  height:6px;
  width:100%;
  border-radius:6px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow:0 6px 18px rgba(127,201,192,0.08);
  margin-bottom:2px;
}
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}

/* Hero */
.hero{
  display:grid;grid-template-columns:1fr 250px;gap:28px;align-items:center;padding:48px 24px;
}
.hero .kicker{display:inline-block;background:var(--muted-bg);padding:8px 12px;border-radius:999px;font-weight:600;font-size:13px;color:var(--text);margin-bottom:16px}
.hero h1{font-family:"Playfair Display";font-size:48px;margin:0 0 12px;line-height:1.02}
.hero p.lead{max-width:660px;color:rgba(34,34,34,0.75);margin-bottom:18px}
.hero .hero-ctas{display:flex;gap:12px}
.hero-visual{background:url('images/Logo.png') center/cover no-repeat;border-radius:16px;height:360px;display:flex;align-items:flex-end;padding:18px}
.hero-visual .badge{background:rgba(255,255,255,0.9);padding:6px 10px;border-radius:10px;font-weight:600;font-size:14px;margin-left:auto}
.hero .hero--single{grid-template-columns:1fr;}
.hero .hero--single .hero-content{grid-column:1 / -1}

/* Trust bar */
.trustbar{display:flex;gap:18px;justify-content:center;padding:14px 0;color:rgba(34,34,34,0.75);font-weight:600}

/* Categories */
.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:28px 0}
.cat-card{background:var(--muted-bg);border-radius:12px;padding:18px;display:flex;flex-direction:column;gap:12px;align-items:flex-start;transition:transform .18s ease,box-shadow .18s ease}
.cat-card:hover{transform:translateY(-6px);box-shadow:var(--shadow);cursor:pointer}
.cat-card img{width:100%;height:160px;object-fit:cover;border-radius:10px}
.cat-card h3{margin:0;font-family:"Playfair Display";font-size:18px}
.cat-card p{margin:0;color:rgba(34,34,34,0.7);font-size:14px}

/* Featured products */
.section-title{font-family:"Playfair Display";font-size:22px;margin:18px 0}
.products{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.product-card{background:var(--muted-bg);border-radius:12px;padding:12px;border:1px solid var(--border);transition:transform .16s ease,box-shadow .16s ease}
.product-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.product-card .imgwrap{height:220px;border-radius:10px;overflow:hidden}
.product-card h4{margin:10px 0 6px;font-size:16px}
.price{font-weight:700;color:var(--text)}

/* Process */
.process{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}
.process-card{background:var(--muted-bg);padding:18px;border-radius:12px;text-align:center;border:1px solid var(--border)}
.process-icon{width:116px;height:56px;border-radius:12px;background:var(--muted-bg);display:inline-flex;align-items:center;justify-content:center;margin-bottom:12px}

/* Gallery */
.gallery{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:22px 0}
.gallery img{width:100%;height:160px;object-fit:cover;border-radius:8px}

/* Testimonials */
.testimonials{background:linear-gradient(90deg, rgba(127,201,192,0.06), rgba(243,184,178,0.03));padding:20px;border-radius:12px;margin:28px 0}
.testimonials .item{display:flex;gap:12px;align-items:flex-start;margin-bottom:12px}
.avatar{width:48px;height:48px;border-radius:50%;background:var(--muted-bg);display:inline-block}

/* Contact */
.contact{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}
.contact-card{background:var(--muted-bg);padding:18px;border-radius:12px;text-align:center;border:1px solid var(--border)}
.contact .formular{background:var(--muted-bg);padding:18px;border-radius:12px;text-align:right;border:1px solid var(--border)}
.contact .field{background:var(--muted-bg);padding:18px;border-radius:12px;text-align:left;border:1px solid var(--border)}
/* background:linear-gradient(90deg, rgba(127,201,192,0.06), rgba(243,184,178,0.03)) */

/* Countdown */
.countdown{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap
}
.cd-item{
  background:var(--muted-bg);
  padding:10px 12px;
  border-radius:10px;
  font-weight:700;
  text-align:center;
  min-width:70px
}

/* Responsive master adjustments -------------------------------------- */
@media (max-width:980px){
  .card{grid-template-columns:1fr;padding:20px}
  .visual{order:-1;margin-bottom:6px}
  .brand-logo{height:40px}
  .brand-title{font-size:28px}
}

/* =================================================================
   Galerie styles
   .gallery .viewer, .gallery .thumbs, etc.
   ================================================================= */

/* ===== Gallery (scoped) ===== */
.gallery{
  max-width:846px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:1px;
  align-items:stretch;
}

/* Viewer (großes Bild) */
.gallery .viewer{
  position:relative;
  background:#f6f6f6;
  border-radius:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:340px;
}
.gallery .viewer img{
  width:100%;
  height:100%;
  object-fit:contain;
  transition:transform .36s ease, opacity .28s ease;
  max-height:55vh; // Größe (%) Hauptbild der Galerie
}

/* Caption overlay (nur für viewer) */
.gallery .viewer .caption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:10px 14px;
  background:rgba(0,0,0,0.62);
  color:#fff;
  font-size:14px;
  text-align:center;
  pointer-events:none;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .18s ease, transform .18s ease;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.gallery .viewer:hover .caption,
.gallery .viewer .caption.show{
  opacity:1;
  transform:translateY(0);
}

/* Prev/Next buttons (scoped) */
.gallery .btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.95);
  color:#333;
  border:0;
  padding:10px;
  border-radius:8px;
  box-shadow:0 6px 16px rgba(0,0,0,0.08);
  cursor:pointer;
  z-index:50;
}
.gallery .btn--prev{left:12px}
.gallery .btn--next{right:12px}

.btn--prev:hover{background:var(--accent-2);color:var(--text);box-shadow:var(--shadow)}
.btn--next:hover{background:var(--accent-2);color:var(--text);box-shadow:var(--shadow)}

/* Thumbnails strip */
.gallery .thumbs{
  display:flex;
  gap:var(--gap);
  overflow-x:auto;
  padding:8px 4px;
  -webkit-overflow-scrolling:touch;
}
.gallery .thumb{
  flex:0 0 auto;
  width:var(--thumb-size);
  height:var(--thumb-size);
  border-radius:8px;
  overflow:hidden;
  border:4px solid rgba(0,0,0,0.1);
  box-sizing:border-box;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
}

.thumb button{
  width:100%;
  height:100%;
  border:0;
  padding:0;
  background:none;
  cursor:pointer;
}
	
.gallery .thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .2s ease;
}

/* Active thumbnail */
.gallery .thumb.is-active{
  border-color:var(--accent, #7FC9C0);
  box-shadow:0 8px 24px rgba(127,201,192,0.18);
  transform:translateY(-3px);
}
.gallery .thumb.is-active img{transform:scale(1.03)}

/* Hover thumbnail */
.gallery .thumb:hover img{transform:scale(1.12)}

/* Thumb tooltip via data-title (non-intrusive) TODO --> top:dynamisch anpassen */
.gallery .thumb[data-title]:hover::after{
  content:attr(data-title);
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  top:90%;
  background:rgba(0,0,0,0.75);
  color:#fff;
  padding:6px 8px;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap;
  z-index:60;
  pointer-events:none;
}

/* Accessibility / focus visuals */
.gallery .thumb button:focus,
.gallery .btn:focus{
  outline:3px solid rgba(127,201,192,0.25);
  outline-offset:3px;
}

/* article request button */
.btn-article-req{
  background:var(--accent);
  color:#fff;
  box-shadow:0 6px 18px rgba(127,201,192,0.18);
  position:absolute;
  right:20%;
  top:115px;
  padding:10px 14px;
  border-radius:10px;
  border:1px solid var(--border-m);
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}
.btn-article-req:hover{border:1px solid var(--border-h);box-shadow:var(--shadow)}

/* responsive tweaks */
@media (max-width:640px){
  .gallery :root{--thumb-size:68px}
  .gallery .viewer{min-height:260px}
}

/* visually-hidden utility */
.sr-only{
  position:absolute !important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);
  white-space:nowrap;border:0;
}

/* Optional:small caption tooltip for thumbs via data-title (if you prefer) 
.thumb[data-title]:hover::after{
  content:attr(data-title);
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:calc(var(--thumb-size) - 20px);
  background:rgba(0,0,0,0.75);
  color:#fff;
  padding:6px 2px;
  border-radius:6px;
  font-size:12px;
  white-space:nowrap;
  z-index:60;
  pointer-events:none;
}*/