/* ========== Mr. Smart Phone Repair – Global Styles ========== */
:root{
  --primary-start:#667eea;
  --primary-end:#764ba2;
  --secondary-bg:#f9fafb;
  --secondary-text:#e5e7eb;
  --accent-success:#10b981;
  --accent-error:#ef4444;
  --text-dark:#1f2937;
  --text-light:#ffffff;
  --shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -2px rgba(0,0,0,.05);
  --border-radius:.75rem;

  --c-bg:#111;
  --c-fg:#fff;
  --c-accent:#4f46e5;
  --c-btn:#22c55e;
}

*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text-dark);
  background:var(--secondary-bg);
  line-height:1.6;
  padding-top:35px; /* Platz für Phone-Bar */
}

.container{max-width:1200px;margin:0 auto;padding:0 1rem;}
.section-padding{padding:4rem 0;}
.section-title{
  font-size:2.5rem;font-weight:700;text-align:center;margin-bottom:1rem;
  background:linear-gradient(to right,var(--primary-start),var(--primary-end));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.section-subtitle{text-align:center;margin-bottom:2rem;color:#4b5563;}

/* =========================
Top Phone Bar
========================= */
.top-phone-bar{
  width:100%;background:#4a4a4a;color:#fff;text-align:center;
  font-size:.85rem;font-weight:600;padding:6px 10px;letter-spacing:.03em;
  position:fixed;top:0;left:0;z-index:9999;
}
.top-phone-bar a{color:#fff;font-weight:700;text-decoration:none;}
.top-phone-bar a:hover{text-decoration:underline;}

/* =========================
Header / Navigation
========================= */
.header{
  position:sticky;
  top:35px;
  z-index:6000;
  background:rgba(255,255,255,.95);
  backdrop-filter:blur(10px);
  box-shadow:0 4px 6px -1px rgba(0,0,0,.1);
}
.header-container{
  display:flex;justify-content:space-between;align-items:center;padding:1rem;
  position:relative; /* wichtig für absolute .nav auf mobile */
}
.logo img{
  max-height:100px;height:auto;width:auto;object-fit:contain;
  margin-right:25px;display:block;
}

.nav ul,.nav-list{display:flex;gap:2rem;list-style:none;}
.nav a,.nav-link{
  text-decoration:none;color:var(--text-dark);font-weight:600;
  position:relative;padding:.5rem 0;transition:color .2s ease;
}
.nav-link::after{
  content:"";position:absolute;bottom:0;left:0;width:0;height:2px;
  background:linear-gradient(to right,var(--primary-start),var(--primary-end));
  transition:width .2s ease;
}
.nav a:hover,.nav-link:hover{color:var(--primary-end);}
.nav-link:hover::after{width:100%;}

/* Hamburger (Desktop default: hidden) */
.hamburger{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:.5rem;
}
.hamburger-line{
  display:block;
  width:25px;
  height:3px;
  background:var(--text-dark);
  margin:5px 0;
  transition:all .3s ease;
}

/* =========================
HERO – MODERN (statisch)
========================= */
#hero{
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
  position:relative;
  overflow:hidden;
  color:#fff;

  background:
    radial-gradient(1200px 600px at 20% 20%, rgba(255,255,255,.18), transparent 55%),
    radial-gradient(900px 500px at 80% 10%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(135deg, var(--primary-start), var(--primary-end));

  padding:78px 0;
}
#hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:radial-gradient(circle at 1px 1px, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size:18px 18px;
  opacity:.18;
  pointer-events:none;
}
#hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-180px;
  transform:translateX(-50%);
  width:900px;
  height:420px;
  background:radial-gradient(circle, rgba(0,0,0,.18), transparent 65%);
  filter:blur(6px);
  opacity:.55;
  pointer-events:none;
}
#hero .container.hero-content{
  position:relative;
  max-width:1120px;
  padding:0 1.25rem;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}
#hero h1{
  font-size:clamp(32px, 4.5vw, 54px);
  line-height:1.08;
  letter-spacing:-0.02em;
  margin:0;
  max-width:18ch;
  font-weight:900;
  text-shadow:0 10px 30px rgba(0,0,0,.18);
}
#hero .subline{
  font-size:clamp(15px, 1.2vw, 18px);
  line-height:1.65;
  max-width:68ch;
  margin:0;
  color:rgba(255,255,255,.92);
}
.hero-cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:8px;
}
.hero-cta-row .button{
  appearance:none;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.14);
  color:#fff;
  text-decoration:none;
  padding:12px 18px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.01em;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  box-shadow:0 10px 24px rgba(0,0,0,.14);
  transition:transform .18s ease, filter .18s ease, background .18s ease, border-color .18s ease;
}
.hero-cta-row .button:hover{
  transform:translateY(-2px);
  filter:brightness(1.03);
  background:rgba(255,255,255,.18);
  border-color:rgba(255,255,255,.32);
}
.hero-cta-row .button:active{transform:translateY(0);}
.hero-cta-row .button:first-child{
  background:#111827;
  border-color:rgba(255,255,255,.14);
}
.hero-cta-row .button:first-child:hover{filter:brightness(1.05);}
.hero-cta-row .hero-dark-btn{background:rgba(255,255,255,.14);}

.security-info{
  margin-top:18px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.18);
  color:rgba(255,255,255,.92);
  font-weight:700;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}

/* HERO mobile */
@media (max-width:900px){
  #hero{padding:64px 0;}
  #hero h1{max-width:22ch;font-size:1.9rem;}
  #hero .subline{font-size:1rem;}
  #hero{min-height:460px;padding:2rem 0;}
  .security-info{
    border-radius:16px;
    text-align:center;
    max-width:92%;
    margin-top:.75rem;
    opacity:.95;
    font-weight:600;
  }
}

/* =========================
Kategorien
========================= */
.category{padding:4rem 0;}
.category-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
  gap:2rem 2.5rem;
  justify-items:center;
  align-items:start;
  margin-top:2rem;
}
.category-item{width:140px;text-align:center;cursor:pointer;text-decoration:none;}
.category-icon{
  width:110px;height:110px;border-radius:999px;
  display:grid;place-items:center;margin:0 auto .75rem;
  border:3px solid transparent;
  background:linear-gradient(#fff,#fff) padding-box,linear-gradient(45deg,var(--primary-start),var(--primary-end)) border-box;
  box-shadow:var(--shadow);
  transition:transform .25s ease,box-shadow .25s ease;
  font-size:52px; /* Emoji/Icons größer */
}
.category-item span{display:block;font-weight:600;color:#1f2937;}
.category-item small{display:block;margin-top:.15rem;color:#6b7280;font-size:.9rem;}
.category-item:hover .category-icon{transform:translateY(-4px);box-shadow:0 18px 30px -12px rgba(0,0,0,.25);}

@media (max-width:768px){
  .category-icon{font-size:46px;}
}

/* =========================
Services (alt rows)
========================= */
.services-alt{padding:4rem 0;}
.service-row{
  display:flex;gap:2.5rem;align-items:center;margin-bottom:3rem;
  background:#fff;border-radius:var(--border-radius);
  box-shadow:var(--shadow);padding:1.75rem;
}
.service-media{flex:0 0 40%;}
.service-media img{
  width:100%;height:260px;object-fit:cover;
  border-radius:var(--border-radius);display:block;
}
.service-content{flex:1;}
.service-content h3{font-size:1.6rem;margin-bottom:.5rem;}
.service-content p{margin-bottom:.75rem;color:#4b5563;}
.service-features{margin:.5rem 0 .75rem 0;padding-left:1.1rem;font-size:.95rem;color:#4b5563;}
.service-price{font-weight:700;color:var(--primary-end);margin-top:.5rem;}
.service-row:nth-child(even){flex-direction:row-reverse;}

@media (max-width:768px){
  .service-row,.service-row:nth-child(even){flex-direction:column;}
  .service-media{flex:0 0 auto;width:100%;}
}

/* =========================
Wertgarantie
========================= */
.wg{padding:4rem 0;}
.wg-wrap{display:grid;grid-template-columns:1.2fr 1fr;gap:3rem;align-items:center;}
.wg h3{font-size:2rem;letter-spacing:.02em;margin-bottom:1rem;}
.wg p{color:#4b5563;}
.wg ul{margin:1rem 0 1.5rem;list-style:none;}
.wg li{display:flex;gap:.5rem;align-items:flex-start;margin:.35rem 0;color:#374151;}
.wg li .tick{
  flex:0 0 20px;height:20px;border-radius:999px;display:grid;place-items:center;
  background:#ecfdf5;color:#059669;font-weight:700;
}
.wg-visual{text-align:center;}
.wg-visual img{max-width:520px;width:100%;height:auto;border-radius:.75rem;box-shadow:var(--shadow);}

@media (max-width:900px){
  .wg-wrap{grid-template-columns:1fr;}
  .wg-visual{order:-1;}
}

/* =========================
About
========================= */
.about-us-content{
  display:flex;flex-direction:column;align-items:center;
  gap:2rem;text-align:center;
}
.about-us-image{width:100%;max-width:600px;border-radius:var(--border-radius);box-shadow:var(--shadow);}
.about-us-text-content{max-width:600px;}
.about-stats{display:flex;justify-content:center;gap:2rem;margin-top:2rem;}
.stat-item{text-align:center;}
.stat-number{
  font-size:2.5rem;font-weight:700;
  background:linear-gradient(to right,var(--primary-start),var(--primary-end));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.stat-label{display:block;color:#6b7280;}

@media (min-width:768px){
  .header-container{padding:1rem 2rem;}
  .about-us-content{flex-direction:row;text-align:left;}
  .about-stats{justify-content:flex-start;}
}

/* =========================
CONTACT / Kontaktformular
========================= */
.contact{
  background:linear-gradient(to bottom right,var(--primary-start),var(--primary-end));
  color:#fff;
  padding:4rem 0;
}
.contact .section-title{-webkit-text-fill-color:#fff;}
.contact .section-subtitle{color:rgba(255,255,255,.80);}

.contact-form{
  max-width:980px;
  margin:0 auto;
  background:rgba(255,255,255,.12);
  padding:2.4rem;
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
}
.contact-form .form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.25rem 1.5rem;
  margin-bottom:1.25rem;
}
.contact-form .form-group{display:flex;flex-direction:column;}
.contact-form .form-group label{
  display:block;font-weight:800;margin-bottom:.55rem;letter-spacing:.01em;
}
.contact-form .form-group input,
.contact-form .form-group textarea{
  width:100%;
  padding:14px 16px;
  border:none;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  outline:none;
  font-size:.95rem;
}
.contact-form .form-group textarea{
  border-radius:18px;
  min-height:160px;
  resize:vertical;
}
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder{color:rgba(255,255,255,.75);}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus{background:rgba(255,255,255,.26);}
.contact-form .form-group.full{grid-column:1/-1;}

.contact-form .consent-label{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-align:center;
  margin-top:1rem;
  font-weight:700;
  font-size:.95rem;
}
.contact-form .consent-label input[type="checkbox"]{
  width:16px;height:16px;accent-color:#10b981;
}
.contact-form .consent-label a{
  color:rgba(255,255,255,.95);
  text-decoration:underline;
}

.contact-form .button-submit{
  width:100%;
  margin-top:1.25rem;
  background:var(--accent-success);
  color:#fff;
  border:none;
  padding:16px 18px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  transition:transform .15s ease, filter .15s ease;
}
.contact-form .button-submit:hover{
  transform:translateY(-2px);
  filter:brightness(.97);
}

#form-message-container{
  padding:1rem;
  margin-bottom:1rem;
  border-radius:14px;
  text-align:center;
  display:none;
}
.success{
  background:rgba(16,185,129,.20);
  color:#bbf7d0;
  border:1px solid rgba(16,185,129,.55);
}
.error{
  background:rgba(239,68,68,.20);
  color:#fecaca;
  border:1px solid rgba(239,68,68,.55);
}

@media (max-width:900px){
  .contact-form{padding:1.6rem;}
  .contact-form .form-grid{grid-template-columns:1fr;gap:1rem;}
  .contact-form .consent-label{align-items:flex-start;text-align:left;}
}

/* =========================
Footer
========================= */
.footer{background:var(--text-dark);color:#fff;padding:4rem 0 2rem;}
.footer-container{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem;
}
.footer-col h3{
  font-size:1.25rem;margin-bottom:1rem;
  background:linear-gradient(to right,var(--primary-start),var(--primary-end));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;
}
.footer-col p,.footer-col a,.footer-col li{color:#d1d5db;}
.footer-col ul{list-style:none;}
.footer-col ul li a{text-decoration:none;transition:color .2s ease;}
.footer-col ul li a:hover{color:var(--primary-end);}
.footer-link{display:block;text-decoration:none;margin-top:.5rem;transition:color .2s ease;}
.footer-link:hover{color:var(--primary-end);}
.social-links{display:flex;gap:1rem;margin-top:1rem;}
.social-icon{
  display:inline-flex;width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.1);color:#fff;
  align-items:center;justify-content:center;
  transition:background-color .2s ease;
}
.social-icon:hover{background:rgba(255,255,255,.2);}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.1);
  margin-top:2rem;padding-top:1rem;text-align:center;color:#6b7280;
}

/* =========================
Animations
========================= */
.fade-in{opacity:0;transform:translateY(20px);transition:opacity .6s ease-out,transform .6s ease-out;}
.fade-in.visible{opacity:1;transform:translateY(0);}
.service-card-animated{
  opacity:0;transform:translateY(50px) scale(.95);
  transition:opacity .8s ease-out,transform .8s ease-out;
}
.service-card-animated.visible{opacity:1;transform:translateY(0) scale(1);}

/* =========================
Cookie Banner
========================= */
.cc-banner{
  position:fixed;bottom:0;left:0;right:0;
  background:var(--c-bg);color:var(--c-fg);
  display:flex;flex-direction:column;gap:.5rem;
  padding:1rem;z-index:1000;font-size:.9rem;
  box-shadow:0 -2px 10px rgba(0,0,0,.3);
}
.cc-banner p{margin:0;}
.cc-btns{display:flex;gap:.5rem;flex-wrap:wrap;}
.cc-btns button{
  border:none;cursor:pointer;border-radius:.4rem;
  padding:.5rem .8rem;font-weight:600;
}
.cc-accept{background:var(--c-btn);color:#fff;}
.cc-settings{background:#333;color:#fff;}
.cc-modal{
  position:fixed;inset:0;background:rgba(0,0,0,.6);
  display:none;align-items:center;justify-content:center;
  z-index:1001;
}
.cc-modal-content{
  background:#fff;color:#000;max-width:600px;width:90%;
  padding:1.5rem;border-radius:.75rem;
  max-height:90vh;overflow-y:auto;
}
.cc-modal h2{margin-top:0;}
.cc-options label{display:block;margin:.25rem 0;}
.cc-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1rem;}
.cc-actions button{
  padding:.4rem .8rem;border-radius:.4rem;border:none;font-weight:600;cursor:pointer;
}
.cc-save{background:var(--c-accent);color:#fff;}
.cc-cancel{background:#aaa;color:#000;}

/* =========================
Mobile Bar
========================= */
.mobile-bar{
  position:fixed;left:0;right:0;bottom:0;
  background:#020617;border-top:1px solid rgba(148,163,184,.4);
  display:flex;justify-content:space-around;align-items:center;
  padding:.6rem 0;z-index:9999;
}
.mobile-bar a{color:#e5e7eb;font-size:.9rem;text-decoration:none;font-weight:600;}
@media(min-width:768px){.mobile-bar{display:none;}}

/* Consent label (global) */
.consent-label{
  display:flex;align-items:flex-start;gap:.5rem;
  font-weight:normal;font-size:.95rem;flex-wrap:wrap;max-width:100%;
}
.consent-label a{text-decoration:underline;}

/* =========================
SHOP Styles (shop.php)
========================= */
main{max-width:none;margin:0;padding:0;}
main:has(.hero-card),
main:has(.products-grid),
main:has(.filters),
main:has(.cart-hero),
main:has(.cart-wrap){
  max-width:1200px;
  margin:0 auto;
  padding:2rem 1rem 4rem;
}

.clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero Card (oben) */
.hero-card{
  background:#fff;border-radius:1rem;box-shadow:var(--shadow);
  padding:1.5rem;display:flex;gap:1.5rem;
  justify-content:space-between;align-items:flex-start;
  margin-bottom:1.25rem;
}
.hero-pill{
  display:inline-flex;align-items:center;gap:.5rem;
  font-weight:700;font-size:.9rem;color:#374151;margin-bottom:.75rem;
}
.hero-pill span{width:.6rem;height:.6rem;border-radius:99px;background:#111827;}
.hero-right strong{font-size:2rem;display:inline-block;}
.hero-right a{text-decoration:none;}
.hero-right a:hover{text-decoration:underline;}

/* Filter */
.filters{
  background:#fff;border-radius:1rem;box-shadow:var(--shadow);
  padding:1rem;display:grid;gap:1rem;
  grid-template-columns:1fr 1fr auto;
  align-items:end;margin-bottom:1rem;
}
.filter-group label{display:block;font-weight:700;margin-bottom:.35rem;color:#111827;}
.filters input,.filters select{
  width:100%;padding:.7rem .8rem;border:1px solid #e5e7eb;
  border-radius:.75rem;background:#f9fafb;outline:none;
}
.filters input:focus,.filters select:focus{
  border-color:rgba(102,126,234,.6);
  box-shadow:0 0 0 4px rgba(102,126,234,.15);
  background:#fff;
}
.filter-actions{display:flex;gap:.75rem;justify-content:flex-end;align-items:center;}
.filter-actions button{
  border:none;cursor:pointer;padding:.75rem 1rem;border-radius:.75rem;
  font-weight:800;color:#fff;
  background:linear-gradient(to right,var(--primary-start),var(--primary-end));
}
.filter-actions button:hover{filter:brightness(.97);}
.filter-actions a{color:#374151;text-decoration:none;font-weight:700;}
.filter-actions a:hover{text-decoration:underline;}

/* Flash Nachricht */
.flash{
  background:#ecfdf5;border:1px solid #10b981;color:#065f46;
  padding:.9rem 1rem;border-radius:.75rem;margin:0 0 1rem;
  font-weight:700;
}

/* Products Grid */
.products-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:16px;
}

/* Produktkarte – einheitliche Höhe */
.product-card{
  background:#fff;
  border-radius:1rem;
  box-shadow:var(--shadow);
  overflow:hidden;
  height:100%;
  display:flex;
  flex-direction:column;
}

.product-inner{
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Bildbereich – feste Höhe */
.product-right{
  width:100%;
  background:#f3f4f6;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 180px;
}
.product-right img,
.no-image{
  width:100%;
  height:100%;
  object-fit:contain;
}
.no-image{
  display:grid;
  place-items:center;
  color:#6b7280;
  font-weight:800;
}

/* Textbereich */
.product-left{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

/* Titel */
.product-title a{
  font-size:1.05rem;
  font-weight:900;
  color:#111827;
  text-decoration:none;
}
.product-title a:hover{
  text-decoration:underline;
}

.product-subline{color:#6b7280;margin:.15rem 0 .35rem;}
.product-price-row{display:flex;align-items:baseline;gap:.15rem;margin:.15rem 0 .35rem;}
.price-main{font-size:1.6rem;font-weight:900;}
.price-dec,.price-eur{font-size:1.05rem;font-weight:900;color:#111827;}

.product-ship{color:#374151;font-size:.9rem;margin:.25rem 0;}
.stock-line{
  font-weight:900;
  margin:.35rem 0;
  padding:.35rem .6rem;
  border-radius:.65rem;
  width:fit-content;
}

/* Beschreibung – max. 2 Zeilen + Ellipsis */
.product-description{
  color:#4b5563;
  font-size:.95rem;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Mehr lesen Link */
.product-more{
  color:#667eea;
  text-decoration:none;
  font-weight:600;
  display:inline-block;
  margin-top:4px;
}
.product-more:hover{
  text-decoration:underline;
}

/* Warenkorb-Button immer unten */
.buy-actions{
  margin-top:auto;
}
.buy-actions form{margin-top:.5rem;}
.btn-add{
  border:none;
  cursor:pointer;
  padding:.75rem 1rem;
  border-radius:.75rem;
  font-weight:900;
  color:#fff;
  background:#10b981;
  width:100%;
}
.btn-add:hover{filter:brightness(.96);}
.btn-add:disabled{background:#9ca3af;cursor:not-allowed;}

.img-link{display:block;width:100%;}

.empty{
  grid-column:1/-1;
  background:#fff;
  border-radius:1rem;
  box-shadow:var(--shadow);
  padding:1.25rem;
  color:#374151;
  text-align:center;
}

/* Responsive Anpassungen */
@media (max-width:900px){
  .filters{grid-template-columns:1fr;}
  .hero-card{flex-direction:column;}
  .hero-right{text-align:left;}
  .product-right{flex:0 0 200px;}
}

/* =========================
CART / CHECKOUT Styles
========================= */
.cart-hero{
  background:#fff;border-radius:1rem;box-shadow:var(--shadow);
  padding:1.5rem;display:flex;gap:1.5rem;
  justify-content:space-between;align-items:flex-start;
  margin:2rem auto 1.25rem;
}
.cart-hero h1{font-size:2.1rem;line-height:1.15;margin:0;}
.cart-hero p{color:#4b5563;margin:.5rem 0 0;}
.cart-wrap{max-width:1200px;margin:0 auto;padding:0 1rem 4rem;}

.cart-table{
  width:100%;border-collapse:separate;border-spacing:0;
  background:#fff;border-radius:1rem;overflow:hidden;
  box-shadow:var(--shadow);
}
.cart-table th,.cart-table td{
  padding:.9rem;border-bottom:1px solid #e5e7eb;
  text-align:left;vertical-align:middle;
}
.cart-table th{font-weight:900;background:#f9fafb;color:#111827;}
.cart-table tr:last-child td{border-bottom:none;}
.cart-table .muted{color:#6b7280;font-weight:600;}

.cart-actions{
  display:flex;flex-wrap:wrap;gap:.75rem;
  justify-content:space-between;align-items:center;
  margin:1rem 0 0;
}
.cart-actions .left,.cart-actions .right{
  display:flex;gap:.75rem;flex-wrap:wrap;align-items:center;
}
.btn{
  border:none;cursor:pointer;padding:.75rem 1rem;border-radius:.75rem;
  font-weight:900;text-decoration:none;display:inline-flex;
  align-items:center;justify-content:center;
}
.btn-primary{color:#fff;background:linear-gradient(to right,var(--primary-start),var(--primary-end));}
.btn-success{color:#fff;background:#10b981;}
.btn-danger{color:#fff;background:#ef4444;}
.btn-ghost{background:#fff;color:#111827;border:1px solid #e5e7eb;}
.btn:hover{filter:brightness(.97);}

.cart-total{
  background:#fff;border-radius:1rem;box-shadow:var(--shadow);
  padding:1rem 1.25rem;margin-top:1rem;
  display:flex;justify-content:space-between;align-items:center;
}
.cart-total strong{font-size:1.2rem;}

.qty{
  width:70px;padding:.55rem .6rem;border-radius:.6rem;
  border:1px solid #e5e7eb;background:#f9fafb;outline:none;
}
.qty:focus{
  border-color:rgba(102,126,234,.6);
  box-shadow:0 0 0 4px rgba(102,126,234,.15);
  background:#fff;
}

@media (max-width:900px){
  .cart-hero{flex-direction:column;}
  .cart-table{display:block;overflow-x:auto;}
}

/* =========================
Preisliste / Geräte (Icons)
========================= */
.page-preise .hero{padding:2rem 0 1rem;background:transparent;color:#111827;}
.page-preise .price-header{
  background:linear-gradient(to bottom right,#667eea,#764ba2);
  color:#fff;text-align:center;
  padding:56px 22px;
  border-radius:16px;
  margin:1.5rem auto 30px;
  box-shadow:0 14px 30px rgba(0,0,0,0.18);
  max-width:980px;
}
.page-preise .price-header .section-title{
  background:none !important;
  -webkit-background-clip:initial !important;
  background-clip:initial !important;
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
  font-size:2.2rem;
  line-height:1.15;
  margin-bottom:.75rem;
  text-shadow:0 2px 10px rgba(0,0,0,0.25);
}
.page-preise .price-header .section-subtitle{
  color:rgba(255,255,255,0.90) !important;
  font-weight:600;
  margin-bottom:.35rem;
}
.page-preise .search-container{position:relative;max-width:560px;margin:-26px auto 44px auto;}
.page-preise .search-input{
  width:100%;
  padding:16px 52px 16px 18px;
  border-radius:14px;
  background:#fff;
  border:1px solid #d1d5db;
  font-size:1.05rem;
  color:#111827;
  box-shadow:0 12px 28px rgba(0,0,0,0.10);
  outline:none;
}
.page-preise .search-input:focus{
  border-color:rgba(102,126,234,0.9);
  box-shadow:0 0 0 4px rgba(102,126,234,0.18), 0 16px 34px rgba(0,0,0,0.12);
}
.page-preise .clear-search{
  position:absolute;right:14px;top:50%;
  transform:translateY(-50%);
  font-size:1.6rem;background:none;border:none;
  cursor:pointer;color:#6b7280;line-height:1;
}
.page-preise .clear-search:hover{color:#111827;}
.page-preise .content-card{
  background:#fff;
  padding:2rem;
  border-radius:1rem;
  box-shadow:0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  margin:0 auto 2rem;
  max-width:980px;
}

/* =========================
Produkt-Detail (product.php) – Bildbox (FIX: kein Abschneiden)
========================= */
.imgbox{
  width:100%;
  border-radius:22px;
  overflow:hidden;
  background:#f3f4f6;
  max-height:420px;              /* ✅ nur max-height, keine feste Höhe */
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(148,163,184,.25);
}

.imgbox img{
  max-width:100%;
  max-height:100%;
  width:auto;                    /* ✅ nicht strecken */
  height:auto;                   /* ✅ nicht strecken */
  object-fit:contain;            /* ✅ komplett anzeigen */
  display:block;
}

/* =================================================================
MOBILE MENÜ FIX – GANZ ANS ENDE
================================================================= */
@media (max-width: 767px){

  /* Hamburger */
  .hamburger{
    display:flex !important;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    width:44px;
    height:44px;
    padding:10px !important;
    gap:6px;
  }

  .hamburger-line{
    display:block !important;
    width:28px;
    height:3px;
    margin:0 !important;
    border-radius:2px;
    background:var(--text-dark);
    transition: transform .25s ease, opacity .2s ease;
  }

  /* X */
  .hamburger.active .hamburger-line:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active .hamburger-line:nth-child(2){
    opacity:0;
  }
  .hamburger.active .hamburger-line:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Nav Dropdown */
  .nav{
    display:none !important;
    position:absolute;
    top:100% !important;
    left:0;
    width:100%;
    background:rgba(255,255,255,.98);
    box-shadow:0 10px 25px rgba(0,0,0,.12);
    padding:.75rem 0;
    z-index:6001;
  }
  .nav.active{display:block !important;}

  .nav-list{
    display:flex !important;
    flex-direction:column !important;
    gap:0 !important;
    padding:0;
    margin:0;
  }
  .nav-list li a{display:block;padding:12px 16px;}
}