/*
Theme Name: TELLOG Website Theme
Theme URI: https://webterminal.de/
Author: TELLOG / OpenAI assisted build
Description: Responsives TELLOG-Theme mit zentral verwalteter WordPress-Navigation, automatischer Seitenerstellung, Footer und Elementor-kompatiblem Grundgerüst.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: tellog-base
*/

:root{
  --tellog-navy:#123A5A;
  --tellog-blue:#2F80C7;
  --tellog-blue-dark:#246DAA;
  --tellog-text:#334A59;
  --tellog-muted:#6B7B86;
  --tellog-soft:#F6FAFC;
  --tellog-line:rgba(18,58,90,.10);
  --tellog-white:#FFFFFF;
  --tellog-shell:1600px;
  --tellog-gutter:90px;
  --tellog-header-left:24px;
  --tellog-header-right:48px;
  --tellog-radius:14px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--tellog-text);
  background:var(--tellog-white);
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{max-width:100%;height:auto}
a{color:inherit}
button,input,select,textarea{font:inherit}

.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0
}
.screen-reader-text:focus{
  position:fixed!important;top:12px;left:16px;z-index:10000;width:auto;height:auto;margin:0;
  clip:auto;overflow:visible;white-space:normal;padding:10px 14px;border-radius:7px;
  background:var(--tellog-navy);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 8px 24px rgba(0,0,0,.16)
}

/* Header */
.tellog-site-header{
  position:relative;z-index:1000;background:#fff;margin:0;border:0;
  box-shadow:0 4px 14px rgba(18,43,62,.05)
}
.tellog-header-shell{
  width:100%;max-width:1920px;min-height:104px;margin:0 auto;
  padding:6px var(--tellog-header-right) 6px var(--tellog-header-left);
  display:grid;grid-template-columns:360px minmax(0,1fr) 230px;align-items:center;gap:22px
}
.tellog-brand{
  display:flex;align-items:center;justify-self:start;min-width:0;text-decoration:none
}
.tellog-brand .custom-logo-link{display:block;line-height:0}
.tellog-brand .custom-logo{
  display:block;width:310px;max-width:100%;height:auto
}
.tellog-brand-fallback{display:flex;flex-direction:column;line-height:1;text-decoration:none}
.tellog-brand-fallback strong{font-size:44px;letter-spacing:.035em;color:var(--tellog-navy);font-weight:800}
.tellog-brand-fallback span{margin-top:4px;font-size:12px;letter-spacing:.22em;color:#557487;text-transform:uppercase}

.tellog-primary-nav{min-width:0;justify-self:center}
.tellog-menu-toggle{display:none}
.tellog-primary-menu,
.tellog-primary-menu ul{margin:0;padding:0;list-style:none}
.tellog-primary-menu{display:flex;align-items:center;justify-content:center;gap:26px}
.tellog-primary-menu>li{position:relative}
.tellog-primary-menu a{
  position:relative;display:flex;align-items:center;gap:7px;padding:25px 0;
  color:#1F3342;text-decoration:none;font-size:15px;font-weight:600;line-height:1.2;white-space:nowrap
}
.tellog-primary-menu>li>a::after{
  content:"";position:absolute;left:0;right:100%;bottom:15px;height:2px;background:#5E9FC9;transition:right .18s ease
}
.tellog-primary-menu>li:hover>a::after,
.tellog-primary-menu>li:focus-within>a::after,
.tellog-primary-menu>.current-menu-item>a::after,
.tellog-primary-menu>.current-menu-ancestor>a::after{right:0}
.tellog-primary-menu .sub-menu{
  position:absolute;left:-18px;top:calc(100% - 6px);z-index:1002;min-width:250px;padding:9px;
  background:#fff;border:1px solid rgba(18,43,62,.12);border-radius:10px;
  box-shadow:0 16px 38px rgba(18,43,62,.14);opacity:0;visibility:hidden;transform:translateY(7px);
  transition:opacity .16s ease,transform .16s ease,visibility .16s
}
.tellog-primary-menu li:hover>.sub-menu,
.tellog-primary-menu li:focus-within>.sub-menu,
.tellog-primary-menu li.submenu-open>.sub-menu{opacity:1;visibility:visible;transform:translateY(0)}
.tellog-primary-menu .sub-menu a{padding:11px 12px;border-radius:7px;font-size:14px;font-weight:500;white-space:normal}
.tellog-primary-menu .sub-menu a:hover,
.tellog-primary-menu .sub-menu a:focus-visible{background:#EEF5F9;color:#244E69}
.tellog-submenu-toggle{display:none}

.tellog-header-cta{justify-self:end}
.tellog-cta-button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:12px 18px;
  border-radius:8px;background:var(--tellog-blue);border:1px solid var(--tellog-blue);
  color:#fff;text-decoration:none;font-size:14px;font-weight:700;white-space:nowrap
}
.tellog-cta-button:hover{background:var(--tellog-blue-dark);border-color:var(--tellog-blue-dark)}

.tellog-primary-menu a:focus-visible,
.tellog-menu-toggle:focus-visible,
.tellog-submenu-toggle:focus-visible,
.tellog-cta-button:focus-visible,
.tellog-footer-menu a:focus-visible{
  outline:3px solid var(--tellog-blue);outline-offset:3px;border-radius:6px
}

/* Main scaffold */
.tellog-main{width:100%;margin:0;padding:0}
.tellog-content-shell{width:min(100%,var(--tellog-shell));margin:0 auto;padding:64px var(--tellog-gutter) 76px}
.tellog-page-header{max-width:900px;margin:0 0 36px}
.tellog-page-title{margin:0;color:var(--tellog-navy);font-size:clamp(40px,4vw,64px);line-height:1.05;letter-spacing:-.035em}
.tellog-content{font-size:17px;line-height:1.7}
.tellog-content>*:first-child{margin-top:0}
.tellog-content h2,.tellog-content h3,.tellog-content h4{color:var(--tellog-navy);line-height:1.18}
.tellog-content a{color:var(--tellog-blue)}

/* Elementor receives the full canvas between theme header/footer */
.elementor-page .tellog-main--elementor,
.elementor-page .tellog-main--elementor .tellog-content{width:100%;max-width:none;margin:0;padding:0}
.elementor-page .tellog-main--elementor .tellog-content-shell{max-width:none;width:100%;padding:0;margin:0}

/* Utility classes for future pages */
.tellog-section-shell{width:min(100%,var(--tellog-shell));margin:0 auto;padding-left:var(--tellog-gutter);padding-right:var(--tellog-gutter)}
.tellog-soft-section{background:linear-gradient(115deg,#fff 0%,#F7FAFC 56%,#EEF5F9 100%)}
.tellog-heading-kicker{color:var(--tellog-blue);font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase}

/* Footer */
.tellog-site-footer{
  background:linear-gradient(180deg,#fff 0%,#F7FAFC 100%);border-top:1px solid rgba(18,58,90,.06)
}
.tellog-footer-shell{
  width:100%;max-width:var(--tellog-shell);min-height:76px;margin:0 auto;padding:18px var(--tellog-gutter);
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center
}
.tellog-footer-menu{grid-column:2;display:flex;align-items:center;justify-content:center;gap:0;margin:0;padding:0;list-style:none;text-align:center}
.tellog-footer-menu li{display:flex;align-items:center}
.tellog-footer-menu li+li::before{content:"|";margin:0 14px;color:#A1B2BD}
.tellog-footer-menu a{color:#334A59;text-decoration:none;font-size:14px}
.tellog-footer-menu a:hover{color:var(--tellog-blue)}

/* Responsive */
@media(max-width:1280px){
  :root{
    --tellog-gutter:40px;
    --tellog-header-left:20px;
    --tellog-header-right:30px;
  }
  .tellog-header-shell{grid-template-columns:285px 1fr auto;min-height:88px}
  .tellog-brand .custom-logo{width:265px}
  .tellog-brand-fallback strong{font-size:38px}
  .tellog-primary-menu{gap:18px}
  .tellog-primary-menu a{font-size:14px}
}

@media(max-width:1100px){
  .tellog-header-shell{grid-template-columns:1fr auto;min-height:82px;gap:16px}
  .tellog-brand .custom-logo{width:235px}
  .tellog-primary-nav{justify-self:end;position:relative}
  .tellog-header-cta{display:none}
  .tellog-menu-toggle{
    display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;
    border:1px solid rgba(18,43,62,.20);border-radius:8px;background:#fff;color:#1F3342;font-size:24px;cursor:pointer
  }
  .tellog-primary-menu{
    display:none;position:absolute;right:0;top:58px;width:min(88vw,390px);max-height:calc(100vh - 105px);overflow:auto;
    flex-direction:column;align-items:stretch;gap:0;padding:10px;background:#fff;border:1px solid rgba(18,43,62,.12);
    border-radius:10px;box-shadow:0 16px 38px rgba(18,43,62,.14)
  }
  .tellog-primary-menu.is-open{display:flex}
  .tellog-primary-menu>li{width:100%}
  .tellog-primary-menu a{width:100%;padding:13px 12px;white-space:normal}
  .tellog-primary-menu>li>a::after{display:none}
  .tellog-primary-menu .sub-menu{
    position:static;display:none;min-width:0;margin:0 0 6px;padding:2px 0 3px 13px;border:0;border-left:2px solid #D9E8F1;
    border-radius:0;box-shadow:none;opacity:1;visibility:visible;transform:none
  }
  .tellog-primary-menu li.submenu-open>.sub-menu{display:block}
  .tellog-primary-menu li:hover>.sub-menu{display:none}
  .tellog-primary-menu li.submenu-open:hover>.sub-menu{display:block}
  .tellog-primary-menu .menu-item-has-children>a{padding-right:52px}
  .tellog-submenu-toggle{
    display:inline-flex;position:absolute;right:5px;top:5px;align-items:center;justify-content:center;width:40px;height:40px;
    border:0;border-radius:7px;background:transparent;color:#38566B;cursor:pointer
  }
  .tellog-submenu-toggle::before{content:"⌄";font-size:18px;transition:transform .15s ease}
  .submenu-open>.tellog-submenu-toggle::before{transform:rotate(180deg)}
}

@media(max-width:767px){
  :root{
    --tellog-gutter:20px;
    --tellog-header-left:16px;
    --tellog-header-right:16px;
  }
  .tellog-header-shell{
    min-height:74px;
    padding:4px var(--tellog-header-right) 4px var(--tellog-header-left);
  }
  .tellog-brand .custom-logo{width:205px}
  .tellog-brand-fallback strong{font-size:34px}
  .tellog-brand-fallback span{font-size:10px}
  .tellog-content-shell{padding-top:44px;padding-bottom:54px}
  .tellog-page-title{font-size:clamp(36px,11vw,52px)}
  .tellog-footer-shell{display:block;min-height:auto;padding-top:22px;padding-bottom:22px}
  .tellog-footer-menu{display:flex;flex-wrap:wrap;row-gap:8px}
}

@media(max-width:420px){
  :root{
    --tellog-gutter:16px;
    --tellog-header-left:12px;
    --tellog-header-right:12px;
  }
  .tellog-brand .custom-logo{width:185px}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}
