/*
Theme Name: SCS Theme
Theme URI: https://www.schumacher-computer.de
Author: SCS – Schumacher Computersysteme
Description: Modernes, schlankes WordPress-Theme für SCS (Schumacher Computersysteme) mit großem Hero, Kachel-Layout und Service-Unterseiten.
Version: 1.0.0
Text Domain: scs-theme
*/

:root{
  --primary:#0b1f4b; /* Dunkelblau */
  --primary-2:#102a64;
  --accent:#2563eb;
  --accent-2:#1e40af;
  --bg:#ffffff;
  --surface:#f6f8fc;
  --text:#0f172a;
  --muted:#475569;
  --border:rgba(15,23,42,.10);
  --shadow:0 10px 30px rgba(15,23,42,.10);
  --radius:16px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit;}

.container{
  width:min(1180px, 92%);
  margin-inline:auto;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:linear-gradient(180deg, var(--primary), var(--primary-2));
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
}
.brand img{height:44px; width:auto; display:block;}
.brand .brand-text{display:flex; flex-direction:column;}
.brand .brand-title{font-weight:800; letter-spacing:.2px; line-height:1.1;}
.brand .brand-sub{font-size:12px; opacity:.85; line-height:1.1;}

.menu-toggle{
  display:none;
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
}

.primary-nav ul{
  list-style:none;
  display:flex;
  gap:20px;
  padding:0;
  margin:0;
  align-items:center;
}
.primary-nav a{
  text-decoration:none;
  font-weight:600;
  opacity:.95;
}
.primary-nav a:hover{opacity:1; text-decoration:underline; text-underline-offset:4px;}

.header-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  border:1px solid transparent;
  transition:transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{background:var(--accent); color:#fff;}
.btn-primary:hover{background:var(--accent-2);}
.btn-ghost{background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.18);}
.btn-ghost:hover{background:rgba(255,255,255,.12);}

/* Hero */
.hero{
  position:relative;
  padding:84px 0 64px;
  color:#fff;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(11,31,75,.88) 0%, rgba(11,31,75,.62) 55%, rgba(11,31,75,.25) 100%),
    var(--hero-image);
  background-size:cover;
  background-position:center;
  transform:scale(1.02);
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(600px 260px at 15% 10%, rgba(37,99,235,.25), transparent 60%);
  pointer-events:none;
}
.hero > .container{position:relative;}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:42px;
  align-items:center;
}

.hero h1{
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  margin:0 0 14px;
  letter-spacing:-.6px;
}
.hero p{
  font-size: clamp(16px, 1.4vw, 20px);
  margin:0 0 24px;
  opacity:.95;
}

.hero-card{
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}
.hero-card h3{margin:0 0 10px; font-size:16px; opacity:.95;}
.hero-card ul{margin:0; padding-left:18px; opacity:.95;}

/* Sections */
.section{padding:72px 0;}
.section.alt{background:var(--surface); border-top:1px solid var(--border); border-bottom:1px solid var(--border);}

.section-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:26px;
}
.section-title h2{margin:0; font-size:28px; letter-spacing:-.2px;}
.section-title p{margin:0; color:var(--muted); max-width:62ch;}

.lead{color:var(--muted); max-width:78ch;}

/* Service tiles */
.tiles{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:18px;
}
.tile{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  text-decoration:none;
  min-height:170px;
}
.tile:hover{transform:translateY(-2px); box-shadow:var(--shadow); border-color:rgba(37,99,235,.25);}
.tile .icon{
  width:46px; height:46px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(37,99,235,.10);
  border:1px solid rgba(37,99,235,.18);
  margin-bottom:12px;
}
.tile .icon svg{width:22px; height:22px;}
.tile h3{margin:0 0 8px; font-size:16px;}
.tile p{margin:0; color:var(--muted); font-size:14px;}

/* Content */
.content{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:0 1px 0 rgba(15,23,42,.04);
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:18px;
}
.kv{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:20px;
}
.kv h3{margin:0 0 10px;}
.kv p{margin:6px 0; color:var(--muted);}

form .field{display:flex; flex-direction:column; gap:6px; margin-bottom:12px;}
input, textarea{
  padding:12px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  font:inherit;
}
textarea{min-height:140px; resize:vertical;}

/* Footer */
.site-footer{
  background:linear-gradient(180deg, var(--primary), #081636);
  color:#fff;
  padding:42px 0;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
  align-items:start;
}
.footer-grid p{margin:8px 0; opacity:.92;}
.footer-nav{display:flex; gap:16px; flex-wrap:wrap; justify-content:flex-end;}
.footer-nav a{color:#fff; text-decoration:underline; text-underline-offset:4px; opacity:.95;}
.footer-nav a:hover{opacity:1;}

/* WP content tweaks */
.entry-content img{max-width:100%; height:auto;}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;}
  .tiles{grid-template-columns:repeat(2, minmax(0, 1fr));}
  .contact-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .footer-nav{justify-content:flex-start;}
}

@media (max-width: 760px){
  .menu-toggle{display:inline-flex;}
  .primary-nav{display:none;}
  .primary-nav.open{display:block;}
  .primary-nav ul{flex-direction:column; align-items:flex-start; padding:14px 0;}
  .header-cta{display:none;}
  .tiles{grid-template-columns:1fr;}
}
