:root{
  --bg: #0b0f14;
  --text: rgba(255,255,255,0.93);
  --muted: rgba(255,255,255,0.72);
  --stroke: rgba(255,255,255,0.16);
  --shadow: 0 12px 45px rgba(0,0,0,0.40);
  --accent: #ff7a1a;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page{
  min-height: calc(100vh - 54px);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 980px){
  .page{ grid-template-columns: repeat(3, 1fr); }
}

.panel{
  position: relative;
  padding: 26px 22px 22px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  min-height: 380px;
}

.bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  z-index:0;
}

.bg img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.05);
}

.overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    radial-gradient(900px 600px at 30% 10%, rgba(255,122,26,0.18), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.74), rgba(0,0,0,0.58) 45%, rgba(0,0,0,0.76));
}

.panel[data-theme="kanzlei"] .overlay{
  background:
    radial-gradient(850px 560px at 25% 10%, rgba(231,243,239,0.18), transparent 60%),
    radial-gradient(900px 560px at 85% 15%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,0.74), rgba(0,0,0,0.58) 45%, rgba(0,0,0,0.76));
}

.panel[data-theme="werkeln"] .overlay{
  background:
    radial-gradient(900px 600px at 35% 10%, rgba(255,122,26,0.22), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.76), rgba(0,0,0,0.60) 45%, rgba(0,0,0,0.78));
}

.content{
  position: relative;
  z-index:2;
  width: 100%;
  max-width: 560px;
  display:flex;
  flex-direction: column;
  gap: 14px;
}

.content.center{
  align-items: center;
  text-align: center;
  max-width: 640px;
}

.titleBlock{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.titleBlock h1, .titleBlock h2{
  margin:0;
  font-size: 18px;
  letter-spacing: -0.2px;
}

.titleBlock p{
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

/* Kanzlei Blocks */
.cardBlock{
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--stroke);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.logoWide{
  width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.22);
}

.nameLine{
  font-size: 13px;
  color: rgba(255,255,255,0.84);
  line-height: 1.35;
}

.links{ display:flex; flex-direction: column; gap: 10px; }

.btn{
  display:block;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.35;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, background 0.12s ease, border-color 0.12s ease;
  word-break: break-word;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

/* Social Icon Buttons */
.iconRow{
  display:flex;
  gap: 10px;
  align-items:center;
}

.iconBtn{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  text-decoration:none;
  transition: transform 0.06s ease, background 0.12s ease, border-color 0.12s ease;
}

.iconBtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

.iconBtn svg{
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.90);
}

.miniDivider{
  height: 1px;
  background: rgba(255,255,255,0.16);
  margin: 2px 0 2px;
}

/* Werkeln Hero */
.logoHero{
  width: min(260px, 70%);
  height: auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: var(--shadow);
  margin-top: 6px;
}

.ytLink{
  display:inline-flex;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,122,26,0.55);
  background: rgba(255,122,26,0.16);
  color: var(--text);
  text-decoration:none;
  box-shadow: var(--shadow);
  transition: transform 0.06s ease, background 0.12s ease, border-color 0.12s ease;
}

.ytLink:hover{
  transform: translateY(-1px);
  background: rgba(255,122,26,0.19);
  border-color: rgba(255,122,26,0.70);
}

.ytIcon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}

.ytIcon svg{
  width: 26px;
  height: 26px;
  fill: rgba(255,255,255,0.95);
}

.ytText{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

/* Smarthome */
.panelSmart{
  background:
    radial-gradient(900px 600px at 25% 10%, rgba(0, 198, 255, 0.16), transparent 58%),
    radial-gradient(900px 600px at 80% 15%, rgba(255, 122, 26, 0.10), transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    #0b0f14;
}

.panelSmart .bg{ display:none; }

.panelSmart::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.35;
  mask-image: radial-gradient(900px 600px at 30% 10%, #000 35%, transparent 72%);
}

.logoLink{
  display:inline-block;
  text-decoration:none;
}

.logoSmartHero{
  max-width: min(360px, 84%);
  height: auto;
  background: rgba(255,255,255,0.92);
  border-radius: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: var(--shadow);
}

.subHint{
  margin-top: 4px;
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}

/* Footer */
.footer{
  height: 54px;
  display:flex;
  align-items:center;
  border-top: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.55);
}

.footerInner{
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display:flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 12px;
}

.footerInner a{
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.22);
  padding-bottom: 2px;
}

.footerInner a:hover{
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.45);
}

.spacer{ flex: 1; }

/* Mobile */
@media (max-width: 420px){
  .btn{ font-size: 12.5px; }
  .logoWide{ max-height: 64px; }
  .ytText{ font-size: 15px; }
}
