/* ============================================
   WEBMAURER — legal.css  (Complete)
   Impressum · Datenschutz · AGB
   ============================================ */

/* ====== NAV ====== */
.nav{position:fixed;top:0;left:0;width:100%;height:72px;z-index:1000;transition:all .4s ease;background:transparent}
.nav.scrolled{background:rgba(245,240,235,.94);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-shadow:0 1px 4px rgba(0,0,0,.06)}
.nav-inner{max-width:1200px;margin:0 auto;padding:0 2rem;display:flex;align-items:center;justify-content:space-between;height:100%}
.nav-logo{display:flex;align-items:center;gap:.5rem;font-family:'Playfair Display',Georgia,serif;font-size:1.5rem;font-weight:700;color:#1A1A1A;text-decoration:none;z-index:1001}
.logo-icon{width:36px;height:36px;background:#C4643A;border-radius:4px;display:grid;place-items:center;position:relative;overflow:hidden;flex-shrink:0}
.logo-icon::before,.logo-icon::after{content:'';position:absolute;background:rgba(255,255,255,.25)}
.logo-icon::before{width:60%;height:2px;top:40%}.logo-icon::after{width:2px;height:60%;left:50%}
.logo-icon svg{width:20px;height:20px;color:white;position:relative;z-index:1}
.nav .nav-links{display:flex;align-items:center;gap:2.2rem}
.nav .nav-links a{font-family:'Inter',sans-serif;font-size:.88rem;font-weight:500;color:#6B6560;text-decoration:none;position:relative;transition:color .2s}
.nav .nav-links a::after{content:'';position:absolute;bottom:-4px;left:0;width:0;height:2px;background:#C4643A;transition:width .2s}
.nav .nav-links a:hover{color:#1A1A1A}.nav .nav-links a:hover::after{width:100%}
.nav .nav-links .nav-cta{background:#C4643A;color:#fff !important;padding:.55rem 1.3rem;border-radius:4px;font-weight:600;font-size:.85rem;box-shadow:0 2px 8px rgba(196,100,58,.25)}
.nav .nav-links .nav-cta::after{display:none}
.nav .nav-links .nav-cta:hover{background:#A8522D;transform:translateY(-1px);box-shadow:0 4px 12px rgba(196,100,58,.35)}

/* Burger */
.burger{display:none;flex-direction:column;gap:5px;z-index:1001;padding:8px;cursor:pointer;background:none;border:none}
.burger-line{display:block;width:26px;height:2px;background:#1A1A1A;transition:all .25s;transform-origin:center}
.burger.active .burger-line:nth-child(1){transform:rotate(45deg) translate(5px,5px)}
.burger.active .burger-line:nth-child(2){opacity:0}
.burger.active .burger-line:nth-child(3){transform:rotate(-45deg) translate(5px,-5px)}

/* Mobile menu */
.mobile-menu{display:none;position:fixed;inset:0;background:rgba(245,240,235,.98);backdrop-filter:blur(20px);z-index:999;flex-direction:column;justify-content:center;align-items:center;opacity:0;pointer-events:none;transition:opacity .35s}
.mobile-menu.open{opacity:1;pointer-events:auto}
.mobile-menu nav{display:flex;flex-direction:column;align-items:center;gap:2rem}
.mm-link{font-family:'Playfair Display',serif;font-size:1.6rem;color:#1A1A1A;text-decoration:none;transition:color .2s}
.mm-link:hover{color:#C4643A}
.mm-cta{font-size:1.2rem !important;color:#C4643A !important;font-family:'Inter',sans-serif !important;font-weight:600}

/* ====== LEGAL HERO ====== */
.legal-hero{padding-top:calc(72px + 3.5rem);padding-bottom:2.5rem;background:#EDE7DF;position:relative}
.legal-hero::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:rgba(0,0,0,.06)}
.legal-hero-inner{max-width:900px;margin:0 auto;padding:0 2rem}

.back-link{display:inline-flex;align-items:center;gap:.4rem;font-family:'Inter',sans-serif;font-size:.85rem;font-weight:500;color:#C4643A;text-decoration:none;margin-bottom:1.5rem;transition:gap .2s}
.back-link:hover{gap:.7rem}
.back-link svg{width:16px;height:16px;flex-shrink:0}

.legal-hero .section-label{display:block;font-family:'JetBrains Mono',monospace;font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;color:#C4643A;margin-bottom:.75rem;font-weight:500}
.legal-hero .section-label::before{content:'';display:inline-block;vertical-align:middle;width:24px;height:2px;background:#C4643A;margin-right:.5rem}

.legal-hero h1{font-family:'Playfair Display',serif;font-size:clamp(1.8rem,4vw,2.8rem);color:#1A1A1A;font-weight:700;line-height:1.2;margin-bottom:.6rem}
.legal-hero-sub{font-family:'Inter',sans-serif;font-size:.92rem;color:#6B6560;max-width:50ch;line-height:1.5}

/* ====== MAIN LAYOUT ====== */
.legal-main{padding:3.5rem 0 5rem;background:#F5F0EB}
.legal-container{max-width:1100px;margin:0 auto;padding:0 2rem;display:grid;grid-template-columns:200px 1fr;gap:3.5rem;align-items:start}

/* ====== SIDEBAR TOC ====== */
.legal-toc{position:sticky;top:calc(72px + 1.5rem)}
.legal-toc .section-label{display:block;font-family:'JetBrains Mono',monospace;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#C4643A;margin-bottom:.75rem;font-weight:500}
.legal-toc .section-label::before{content:'';display:inline-block;vertical-align:middle;width:18px;height:2px;background:#C4643A;margin-right:.4rem}
.legal-toc ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.1rem}
.legal-toc li a{display:block;padding:.4rem .6rem;border-radius:5px;border-left:2px solid transparent;font-family:'Inter',sans-serif;font-size:.78rem;color:#6B6560;text-decoration:none;line-height:1.4;transition:all .2s}
.legal-toc li a:hover{color:#C4643A;background:rgba(196,100,58,.05);border-left-color:#C4643A}

/* ====== CONTENT ====== */
.legal-content{max-width:780px;min-width:0}

.legal-preamble{padding:1.25rem 1.5rem;background:#fff;border-radius:8px;border-left:4px solid #C4643A;margin-bottom:2.5rem;box-shadow:0 1px 3px rgba(0,0,0,.04)}
.legal-preamble p{font-family:'Inter',sans-serif;font-size:.92rem;color:#2C2C2C;line-height:1.7;max-width:none;margin:0}

.legal-section{margin-bottom:2.5rem;scroll-margin-top:calc(72px + 1.5rem)}
.legal-section h2{font-family:'Playfair Display',serif;font-size:1.35rem;color:#1A1A1A;font-weight:700;margin-bottom:1rem;padding-bottom:.6rem;line-height:1.3;border-bottom:1px solid rgba(0,0,0,.07)}
.legal-section h3{font-family:'Playfair Display',serif;font-size:1.05rem;color:#1A1A1A;font-weight:600;margin-top:1.5rem;margin-bottom:.6rem}
.legal-section p{font-family:'Inter',sans-serif;font-size:.92rem;color:#6B6560;line-height:1.75;margin-bottom:.85rem;max-width:none}
.legal-section a{color:#C4643A;text-decoration:none}.legal-section a:hover{text-decoration:underline}

/* Lists */
.legal-list{list-style:none;padding:0;margin:0 0 1rem}
.legal-list li{position:relative;padding-left:1.4rem;font-family:'Inter',sans-serif;font-size:.92rem;color:#6B6560;line-height:1.7;margin-bottom:.4rem}
.legal-list li::before{content:'';position:absolute;left:0;top:.6rem;width:5px;height:5px;border-radius:50%;background:#C4643A;opacity:.45}
.legal-list.styled li{padding:.9rem 1.1rem .9rem 1.4rem;background:#fff;border-radius:7px;margin-bottom:.6rem;border:1px solid rgba(0,0,0,.04)}
.legal-list.styled li::before{top:1.2rem}
.legal-list.styled li strong{display:block;font-size:.88rem;color:#1A1A1A;margin-bottom:.2rem;font-weight:600}

/* ====== INFO BLOCKS — flex layout, no overlap ====== */
.info-block{background:#fff;border-radius:8px;overflow:hidden;margin:1rem 0;border:1px solid rgba(0,0,0,.05);box-shadow:0 1px 3px rgba(0,0,0,.03)}
.info-row{display:flex;flex-wrap:wrap;gap:.4rem 1.5rem;padding:.85rem 1.25rem;border-bottom:1px solid rgba(0,0,0,.04);font-family:'Inter',sans-serif;font-size:.88rem;line-height:1.55}
.info-row:last-child{border-bottom:none}
.info-key{font-weight:600;color:#1A1A1A;font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;flex:0 0 210px}
.info-val{color:#6B6560;flex:1 1 220px}
.info-val a{color:#C4643A;text-decoration:none}.info-val a:hover{text-decoration:underline}

/* Notes */
.legal-note{font-family:'Inter',sans-serif !important;font-size:.84rem !important;color:#C4643A !important;background:rgba(196,100,58,.05);padding:.7rem 1rem;border-radius:6px;border-left:3px solid #C4643A;margin-top:.75rem;line-height:1.6}

/* Meta */
.legal-meta{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid rgba(0,0,0,.06);font-family:'JetBrains Mono',monospace;font-size:.78rem;color:#D4C9BC;letter-spacing:.03em}

/* ====== FOOTER ====== */
.footer{background:#1A1A1A;color:rgba(255,255,255,.7);padding:3.5rem 0 1.5rem}
.container{max-width:1200px;margin:0 auto;padding:0 2rem}
.footer-inner{width:100%}
.footer-top{display:grid;grid-template-columns:1.3fr 1fr;gap:3rem;margin-bottom:2.5rem}
.footer-brand .nav-logo{color:#fff;margin-bottom:.75rem;display:inline-flex;font-size:1.4rem}
.footer-brand p{font-family:'Inter',sans-serif;font-size:.88rem;color:rgba(255,255,255,.45);max-width:280px;line-height:1.6;margin:0 0 .4rem}
.footer-tagline{font-family:'Playfair Display',serif;font-style:italic;font-size:.88rem;color:rgba(255,255,255,.25)}
.footer-nav{display:flex;gap:3rem}
.footer-nav-col{display:flex;flex-direction:column;gap:.35rem}
.footer-nav-title{font-family:'Inter',sans-serif;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.85);margin-bottom:.6rem}
.footer-nav-col a{font-family:'Inter',sans-serif;font-size:.86rem;color:rgba(255,255,255,.4);text-decoration:none;transition:color .2s}
.footer-nav-col a:hover{color:#E8956A}
.footer-address{font-family:'Inter',sans-serif;font-size:.86rem;color:rgba(255,255,255,.3);margin-top:.2rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.07);padding-top:1.25rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.75rem}
.footer-bottom span{font-family:'Inter',sans-serif;font-size:.78rem;color:rgba(255,255,255,.28)}
.footer-legal{display:flex;gap:1.5rem}
.footer-legal a{font-family:'Inter',sans-serif;font-size:.78rem;color:rgba(255,255,255,.28);text-decoration:none;transition:color .2s}
.footer-legal a:hover{color:rgba(255,255,255,.65)}

/* ====== RESPONSIVE ====== */
@media(max-width:1024px){
  .legal-container{grid-template-columns:1fr;gap:0}
  .legal-toc{position:static;margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid rgba(0,0,0,.06)}
  .legal-toc ul{flex-direction:row;flex-wrap:wrap;gap:.3rem}
  .legal-toc li a{padding:.3rem .6rem;font-size:.75rem;background:#fff;border-radius:50px;border-left:none;white-space:nowrap}
  .legal-toc li a:hover{background:rgba(196,100,58,.08);border-left:none}
  .footer-top{grid-template-columns:1fr;gap:2rem}
}
@media(max-width:768px){
  .nav .nav-links{display:none}.burger{display:flex}.mobile-menu{display:flex}
  .legal-hero{padding-top:calc(72px + 2rem);padding-bottom:1.75rem}
  .legal-hero h1{font-size:1.7rem}.legal-hero-inner{padding:0 1.25rem}
  .legal-main{padding:2rem 0 3rem}.legal-container{padding:0 1.25rem}
  .info-row{flex-direction:column;gap:.15rem}.info-key{flex:unset;min-width:unset}.info-val{flex:unset;min-width:unset}
  .legal-list.styled li{padding:.75rem .9rem .75rem 1.2rem}
  .footer{padding:2.5rem 0 1.25rem}.footer-nav{flex-direction:column;gap:1.5rem}.footer-bottom{flex-direction:column;text-align:center}
}
@media(max-width:480px){
  .legal-hero h1{font-size:1.45rem}.back-link{font-size:.8rem}
  .legal-section h2{font-size:1.15rem}.legal-section p,.legal-list li{font-size:.88rem}
}
