/* ==========================================================================
   CaNS GmbH – cans.de
   Modern redesign · Brand colours: signal red + charcoal + white
   ========================================================================== */

:root {
  --red:        #e50e0f;
  --red-d:      #c00b0c;
  --red-soft:   #fdecec;
  --ink:        #18181a;   /* near-black charcoal */
  --ink-2:      #232327;
  --charcoal:   #424242;
  --text:       #1f1f22;
  --muted:      #6b6f76;
  --muted-2:    #9a9ea6;
  --line:       #e8e8eb;
  --bg:         #ffffff;
  --bg-soft:    #f6f6f8;
  --shadow-sm:  0 1px 3px rgba(20,20,25,.06), 0 1px 2px rgba(20,20,25,.04);
  --shadow-md:  0 10px 30px -12px rgba(20,20,25,.18);
  --shadow-lg:  0 24px 60px -20px rgba(20,20,25,.30);
  --radius:     14px;
  --radius-sm:  10px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --max-w:      1180px;
  --ease:       cubic-bezier(.4,.0,.2,1);
  --t:          .25s var(--ease);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:86px; -webkit-text-size-adjust:100%; background:var(--bg); }
body {
  font-family:var(--font);
  background:transparent;
  color:var(--text);
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
/* dezentes globales Hintergrund-Wasserzeichen (Kugel-Netzwerk) */
body::before {
  content:'';
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:url('../img/bg-hero.jpg') center 12% / cover no-repeat;
  opacity:.09;
}
img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
::selection { background:var(--red); color:#fff; }

.container { max-width:var(--max-w); margin:0 auto; padding:0 28px; }
.section { padding:104px 0; }
.section--soft { background:rgba(246,246,248,.82); }

h1,h2,h3,h4 { line-height:1.14; font-weight:800; color:var(--ink); letter-spacing:-.02em; }
h2 { font-size:clamp(1.85rem,3.4vw,2.6rem); }
h3 { font-size:1.12rem; letter-spacing:-.01em; }
p  { color:var(--muted); }

.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.72rem; font-weight:700; letter-spacing:.16em;
  text-transform:uppercase; color:var(--red); margin-bottom:16px;
}
.eyebrow::before { content:''; width:22px; height:2px; background:var(--red); display:inline-block; }
.section-head { max-width:640px; margin:0 auto 60px; text-align:center; }
.section-head .eyebrow { justify-content:center; }
.section-head h2 { margin-bottom:16px; }
.section-head p { font-size:1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display:inline-flex; align-items:center; gap:9px;
  padding:14px 28px; border-radius:9px;
  font-size:.93rem; font-weight:650; cursor:pointer;
  border:1.5px solid transparent; transition:all var(--t);
  white-space:nowrap; font-family:var(--font);
}
.btn svg { width:16px; height:16px; transition:transform var(--t); }
.btn:hover svg { transform:translateX(3px); }
.btn-primary { background:var(--red); color:#fff; box-shadow:0 8px 22px -10px rgba(229,14,15,.7); }
.btn-primary:hover { background:var(--red-d); transform:translateY(-2px); box-shadow:0 14px 30px -10px rgba(229,14,15,.65); }
.btn-dark { background:var(--ink); color:#fff; }
.btn-dark:hover { background:#000; transform:translateY(-2px); }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--ink); }
.btn-on-dark { background:#fff; color:var(--ink); }
.btn-on-dark:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }
.btn-outline-light { background:transparent; color:#fff; border-color:rgba(255,255,255,.3); }
.btn-outline-light:hover { border-color:#fff; background:rgba(255,255,255,.08); }

/* ---------- HEADER ---------- */
.site-header {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color var(--t), box-shadow var(--t);
}
.site-header.scrolled { border-bottom-color:var(--line); box-shadow:var(--shadow-sm); }
.nav { display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand img { height:34px; width:auto; }
.main-nav ul { display:flex; align-items:center; gap:2px; }
.main-nav a {
  font-size:.92rem; font-weight:550; color:var(--charcoal);
  padding:9px 15px; border-radius:8px; transition:color var(--t), background var(--t);
}
.main-nav a:hover { color:var(--ink); background:var(--bg-soft); }
.nav-right { display:flex; align-items:center; gap:14px; }
.nav-phone { font-size:.9rem; font-weight:650; color:var(--ink); display:inline-flex; align-items:center; gap:7px; }
.nav-phone svg { width:15px; height:15px; color:var(--red); }
.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:6px; }
.nav-toggle span { width:24px; height:2px; background:var(--ink); border-radius:2px; transition:transform var(--t),opacity var(--t); }

/* ---------- HERO ---------- */
.hero {
  position:relative; overflow:hidden;
  background:var(--ink);
  color:#fff;
  padding:130px 0 120px;
}
.hero-bg { position:absolute; inset:0; z-index:0; }
.hero-bg::before {
  content:''; position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(229,14,15,.32), transparent 60%),
    radial-gradient(700px 500px at 8% 110%, rgba(229,14,15,.14), transparent 55%);
}
.hero-bg::after { /* subtle grid */
  content:''; position:absolute; inset:0; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
                   linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:54px 54px;
  -webkit-mask-image:radial-gradient(80% 70% at 50% 30%,#000,transparent 80%);
          mask-image:radial-gradient(80% 70% at 50% 30%,#000,transparent 80%);
}
.hero .container { position:relative; z-index:1; }
.hero-inner { display:grid; grid-template-columns:1.15fr .85fr; gap:64px; align-items:center; }
.hero-badge {
  display:inline-flex; align-items:center; gap:9px;
  background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.16);
  color:rgba(255,255,255,.9); font-size:.78rem; font-weight:600;
  letter-spacing:.03em; padding:7px 16px; border-radius:100px; margin-bottom:26px;
}
.hero-badge .dot { width:7px; height:7px; border-radius:50%; background:var(--red); box-shadow:0 0 0 4px rgba(229,14,15,.25); }
.hero h1 {
  font-size:clamp(2.3rem,4.6vw,3.7rem); color:#fff; line-height:1.06;
  letter-spacing:-.03em; margin-bottom:22px;
}
.hero h1 .accent { color:var(--red); }
.hero-sub { color:rgba(255,255,255,.7); font-size:1.12rem; line-height:1.7; max-width:540px; margin-bottom:36px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }
.hero-meta { display:flex; gap:38px; flex-wrap:wrap; }
.hero-meta-item .n { font-size:1.9rem; font-weight:800; color:#fff; letter-spacing:-.02em; line-height:1; }
.hero-meta-item .n span { color:var(--red); }
.hero-meta-item .l { font-size:.8rem; color:rgba(255,255,255,.55); margin-top:5px; letter-spacing:.02em; }

/* hero visual – impossible-triangle motif card */
.hero-visual { position:relative; }
.hero-panel {
  background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.14);
  border-radius:20px; padding:30px; backdrop-filter:blur(6px);
  box-shadow:var(--shadow-lg);
}
.hero-panel-top { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.hero-tri { width:46px; height:46px; flex-shrink:0; }
.hero-panel-top .t { font-size:.72rem; text-transform:uppercase; letter-spacing:.14em; color:rgba(255,255,255,.55); font-weight:700; }
.hero-panel-top .s { font-size:1.02rem; font-weight:700; color:#fff; }
.hero-list { display:flex; flex-direction:column; gap:2px; }
.hero-list li {
  display:flex; align-items:center; gap:13px; padding:13px 4px;
  border-top:1px solid rgba(255,255,255,.08); font-size:.93rem; color:rgba(255,255,255,.85);
}
.hero-list li:first-child { border-top:none; }
.hero-list .chk {
  width:22px; height:22px; flex-shrink:0; border-radius:50%;
  background:rgba(229,14,15,.18); color:var(--red);
  display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800;
}

/* ---------- MARQUEE / TRUST ---------- */
.trust { border-bottom:1px solid var(--line); background:rgba(255,255,255,.78); }
.trust-inner { display:flex; align-items:center; gap:14px 40px; flex-wrap:wrap; justify-content:center; padding:24px 0; }
.trust-item { display:inline-flex; align-items:center; gap:9px; font-size:.86rem; font-weight:550; color:var(--charcoal); }
.trust-item svg { width:17px; height:17px; color:var(--red); flex-shrink:0; }

/* ---------- SERVICES (bento) ---------- */
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.service-card {
  position:relative; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:30px; overflow:hidden;
  transition:border-color var(--t), box-shadow var(--t), transform var(--t);
}
.service-card::after {
  content:''; position:absolute; left:0; top:0; height:3px; width:0; background:var(--red); transition:width .35s var(--ease);
}
.service-card:hover { border-color:transparent; box-shadow:var(--shadow-md); transform:translateY(-4px); }
.service-card:hover::after { width:100%; }
.service-num { position:absolute; top:24px; right:26px; font-size:.85rem; font-weight:800; color:var(--line); letter-spacing:.05em; }
.service-icon {
  width:50px; height:50px; border-radius:13px; margin-bottom:20px;
  background:var(--red-soft); color:var(--red);
  display:flex; align-items:center; justify-content:center;
}
.service-icon svg { width:24px; height:24px; }
.service-card h3 { color:var(--ink); margin-bottom:9px; }
.service-card p { font-size:.92rem; line-height:1.65; }

/* ---------- PORTFOLIO ---------- */
.portfolio-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.pf-item {
  display:flex; align-items:center; gap:13px; width:100%; text-align:left;
  font-family:var(--font); cursor:pointer;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:18px 18px; font-size:.92rem; font-weight:600; color:var(--ink);
  transition:border-color var(--t), transform var(--t), box-shadow var(--t);
}
.pf-item:hover { border-color:var(--red); transform:translateY(-3px); box-shadow:var(--shadow-sm); }
.pf-item:focus-visible { outline:2px solid var(--red); outline-offset:2px; }
.pf-ic { width:38px; height:38px; flex-shrink:0; border-radius:9px; background:var(--bg-soft); color:var(--red); display:flex; align-items:center; justify-content:center; transition:background var(--t); }
.pf-ic svg { width:19px; height:19px; }
.pf-item:hover .pf-ic { background:var(--red-soft); }
.pf-label { flex:1; line-height:1.25; }
.pf-more { flex-shrink:0; width:22px; height:22px; border-radius:50%; background:var(--bg-soft); color:var(--muted-2); font-size:1.1rem; font-weight:400; line-height:1; display:flex; align-items:center; justify-content:center; transition:background var(--t), color var(--t), transform var(--t); }
.pf-item:hover .pf-more { background:var(--red); color:#fff; transform:rotate(90deg); }
.section--soft .pf-item { background:#fff; }

/* ---------- MODAL ---------- */
.modal { position:fixed; inset:0; z-index:200; display:none; }
.modal.open { display:block; }
.modal-overlay { position:absolute; inset:0; background:rgba(20,20,25,.55); backdrop-filter:blur(3px); opacity:0; transition:opacity .25s var(--ease); }
.modal.open .modal-overlay { opacity:1; }
.modal-dialog {
  position:absolute; left:50%; top:50%; transform:translate(-50%,-46%);
  width:min(640px,calc(100vw - 40px)); max-height:calc(100vh - 64px); overflow:auto;
  background:#fff; border-radius:18px; padding:34px; box-shadow:var(--shadow-lg);
  opacity:0; transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.modal.open .modal-dialog { opacity:1; transform:translate(-50%,-50%); }
.modal-close {
  position:absolute; top:18px; right:18px; width:38px; height:38px; border:none; cursor:pointer;
  background:var(--bg-soft); color:var(--charcoal); border-radius:50%;
  display:flex; align-items:center; justify-content:center; transition:background var(--t), color var(--t);
}
.modal-close:hover { background:var(--red-soft); color:var(--red); }
.modal-close svg { width:19px; height:19px; }
.modal-head { display:flex; align-items:center; gap:16px; margin-bottom:22px; padding-right:40px; }
.modal-ic { width:52px; height:52px; flex-shrink:0; border-radius:13px; background:var(--red-soft); color:var(--red); display:flex; align-items:center; justify-content:center; }
.modal-ic svg { width:26px; height:26px; }
.modal-eyebrow { display:block; font-size:.7rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--red); margin-bottom:4px; }
.modal-head h3 { font-size:1.5rem; color:var(--ink); }
.modal-body { color:var(--text); font-size:.96rem; line-height:1.72; }
.modal-body p { color:var(--text); margin-bottom:14px; }
.modal-body p:last-child { margin-bottom:0; }
.modal-body h4 { color:var(--ink); font-size:1rem; margin:20px 0 8px; }
.modal-body ul { display:grid; gap:9px; margin:6px 0 16px; }
.modal-body ul li { display:flex; align-items:flex-start; gap:10px; }
.modal-body ul li::before { content:'✓'; flex-shrink:0; width:20px; height:20px; margin-top:1px; background:var(--red-soft); color:var(--red); font-size:.7rem; font-weight:800; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.modal-foot { margin-top:26px; padding-top:22px; border-top:1px solid var(--line); }
body.modal-open { overflow:hidden; }

/* ---------- ABOUT ---------- */
.about-grid { display:grid; grid-template-columns:1fr 420px; gap:72px; align-items:center; }
.about-text h2 { margin-bottom:18px; }
.about-text .lead { font-size:1.12rem; color:var(--text); line-height:1.7; margin-bottom:16px; font-weight:500; }
.about-text > p { margin-bottom:24px; }
.check-list { display:grid; gap:12px; }
.check-list li { display:flex; align-items:flex-start; gap:12px; font-size:.95rem; color:var(--text); }
.check-list .chk {
  width:22px; height:22px; flex-shrink:0; border-radius:50%; margin-top:1px;
  background:var(--red-soft); color:var(--red);
  display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:800;
}
.about-visual { position:relative; }
.about-card {
  background:var(--ink); color:#fff; border-radius:20px; padding:40px;
  position:relative; overflow:hidden; box-shadow:var(--shadow-lg);
}
.about-card::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(420px 300px at 110% -10%, rgba(229,14,15,.4), transparent 60%);
}
.about-card-inner { position:relative; z-index:1; }
.about-quote { font-size:1.18rem; font-weight:600; line-height:1.5; color:#fff; margin-bottom:30px; letter-spacing:-.01em; }
.about-quote .accent { color:var(--red); }
.about-metrics { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding-top:26px; border-top:1px solid rgba(255,255,255,.12); }
.about-metric .n { font-size:2.3rem; font-weight:800; color:#fff; line-height:1; letter-spacing:-.02em; }
.about-metric .n span { color:var(--red); }
.about-metric .l { font-size:.78rem; color:rgba(255,255,255,.55); margin-top:6px; text-transform:uppercase; letter-spacing:.05em; }

/* ---------- INDUSTRIES ---------- */
.industry-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.industry-card {
  position:relative; background:#fff; border:1px solid var(--line);
  border-radius:var(--radius); padding:34px 28px; overflow:hidden;
  transition:border-color var(--t), box-shadow var(--t), transform var(--t);
}
.industry-card:hover { border-color:transparent; box-shadow:var(--shadow-md); transform:translateY(-4px); }
.industry-icon { width:54px; height:54px; border-radius:14px; background:var(--ink); color:#fff; display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.industry-icon svg { width:26px; height:26px; }
.industry-card h3 { color:var(--ink); margin-bottom:11px; }
.industry-card p { font-size:.92rem; line-height:1.65; margin-bottom:18px; }
.industry-tag { display:inline-block; background:var(--red-soft); color:var(--red); font-size:.68rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase; padding:4px 11px; border-radius:100px; }

/* ---------- CTA BAND ---------- */
.cta-band { position:relative; overflow:hidden; background:var(--ink); padding:90px 0; text-align:center; }
.cta-band::before { content:''; position:absolute; inset:0; background:radial-gradient(700px 400px at 50% -30%, rgba(229,14,15,.35), transparent 60%); }
.cta-band .container { position:relative; z-index:1; }
.cta-band h2 { color:#fff; margin-bottom:16px; }
.cta-band p { color:rgba(255,255,255,.72); max-width:520px; margin:0 auto 34px; font-size:1.06rem; }

/* ---------- CONTACT ---------- */
.contact-grid { display:grid; grid-template-columns:1fr 1.4fr; gap:64px; align-items:start; }
.contact-info h2 { margin-bottom:14px; }
.contact-info > p { margin-bottom:34px; }
.contact-items { display:grid; gap:16px; }
.contact-item { display:flex; align-items:flex-start; gap:15px; }
.contact-ic { width:44px; height:44px; flex-shrink:0; border-radius:11px; background:var(--red-soft); color:var(--red); display:flex; align-items:center; justify-content:center; }
.contact-ic svg { width:20px; height:20px; }
.contact-item .k { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted-2); font-weight:700; margin-bottom:2px; }
.contact-item .v { font-size:.98rem; color:var(--ink); font-weight:550; }
.contact-item a.v:hover { color:var(--red); }
.contact-form { background:#fff; border:1px solid var(--line); border-radius:18px; padding:38px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:18px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field label { font-size:.82rem; font-weight:650; color:var(--ink); }
.field input,.field select,.field textarea {
  background:var(--bg-soft); border:1.5px solid transparent; border-radius:9px;
  color:var(--ink); font-family:var(--font); font-size:.94rem; padding:12px 14px;
  outline:none; width:100%; transition:border-color var(--t), background var(--t);
}
.field input::placeholder,.field textarea::placeholder { color:var(--muted-2); }
.field input:focus,.field select:focus,.field textarea:focus { border-color:var(--red); background:#fff; }
.field textarea { resize:vertical; min-height:120px; }
.form-note { font-size:.78rem; color:var(--muted-2); }
.form-success { display:none; background:#ecfdf3; border:1px solid #86efac; color:#15803d; padding:15px; border-radius:9px; font-size:.92rem; text-align:center; font-weight:550; }

/* ---------- FOOTER ---------- */
.site-footer { background:var(--ink); color:#fff; padding:72px 0 0; }
.footer-grid { display:grid; grid-template-columns:1.7fr 1fr 1fr 1.2fr; gap:44px; padding-bottom:52px; }
.footer-brand img { height:36px; margin-bottom:18px; }
.footer-brand p { color:rgba(255,255,255,.5); font-size:.9rem; line-height:1.7; max-width:300px; }
.footer-col h4 { font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.4); margin-bottom:18px; }
.footer-col ul { display:grid; gap:11px; }
.footer-col a { color:rgba(255,255,255,.66); font-size:.9rem; transition:color var(--t); }
.footer-col a:hover { color:var(--red); }
.footer-col li.plain { color:rgba(255,255,255,.5); font-size:.9rem; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); padding:22px 0; }
.footer-bottom-inner { display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap; font-size:.82rem; color:rgba(255,255,255,.4); }
.footer-bottom a { color:rgba(255,255,255,.55); transition:color var(--t); }
.footer-bottom a:hover { color:#fff; }

/* ---------- REVEAL ---------- */
.reveal { opacity:0; transform:translateY(22px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity:1; transform:none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:1024px){
  .hero-inner { grid-template-columns:1fr; gap:48px; }
  .hero-visual { max-width:480px; }
  .about-grid { grid-template-columns:1fr; gap:44px; }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .portfolio-grid { grid-template-columns:repeat(3,1fr); }
  .footer-grid { grid-template-columns:1fr 1fr; gap:36px; }
}
@media (max-width:768px){
  .section { padding:72px 0; }
  .nav-phone { display:none; }
  .main-nav { display:none; }
  .main-nav.open {
    display:flex; position:absolute; top:74px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--line); box-shadow:var(--shadow-md); padding:14px 20px;
  }
  .main-nav.open ul { flex-direction:column; align-items:stretch; gap:2px; }
  .main-nav.open a { padding:12px 14px; }
  .nav-toggle { display:flex; }
  .services-grid { grid-template-columns:1fr; }
  .industry-grid { grid-template-columns:1fr; }
  .portfolio-grid { grid-template-columns:repeat(2,1fr); }
  .contact-grid { grid-template-columns:1fr; gap:40px; }
  .form-row { grid-template-columns:1fr; }
  .about-metrics { grid-template-columns:1fr 1fr; }
}
@media (max-width:480px){
  .container { padding:0 20px; }
  .hero { padding:96px 0 84px; }
  .hero-meta { gap:24px; }
  .portfolio-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-bottom-inner { justify-content:center; text-align:center; }
  .contact-form { padding:26px; }
}
