/*
Theme Name: TELLOG Website Theme
Theme URI: https://webterminal.de/
Author: TELLOG / OpenAI assisted build
Description: Responsives TELLOG-Theme mit zentral verwalteter WordPress-Navigation, Elementor-kompatiblem Grundgerüst, Rechtsfooter sowie Datenschutz- und Cookie-Einstellungen ohne Analyse-Tracking.
Version: 1.5.1
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{
  position:relative;
  z-index:80;
  isolation:isolate;
  width:100%;
  margin:0;
  background:#EAF2F7;
  border-top:1px solid rgba(18,58,90,.12);
  box-shadow:0 -10px 34px rgba(18,58,90,.035);
  color:#334A59;
}
.tellog-footer-shell{
  width:100%;
  max-width:var(--tellog-shell);
  min-height:150px;
  margin:0 auto;
  padding:34px var(--tellog-gutter) 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.tellog-footer-legal{
  display:flex;
  justify-content:center;
  width:100%;
}
.tellog-footer-menu{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  column-gap:0;
  row-gap:10px;
  margin:0;
  padding:0;
  list-style:none;
  text-align:center;
}
.tellog-footer-menu li{
  display:flex;
  align-items:center;
  justify-content:center;
}
.tellog-footer-menu li+li::before{
  content:"•";
  margin:0 16px;
  color:#8FA8B8;
  font-size:11px;
}
.tellog-footer-menu a{
  color:var(--tellog-navy);
  text-decoration:none;
  font-size:14px;
  line-height:1.3;
  font-weight:650;
  transition:color .16s ease;
}
.tellog-footer-menu a:hover,
.tellog-footer-menu a:focus-visible{
  color:var(--tellog-blue);
}
.tellog-footer-copyright{
  margin:15px 0 0;
  color:#5E7483;
  font-size:12.5px;
  line-height:1.5;
  font-weight:500;
}
.tellog-cookie-settings-link{
  margin:8px 0 0;
  padding:2px 4px;
  border:0;
  background:transparent;
  color:#6A7F8D;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
  font-size:11.5px;
  line-height:1.4;
  cursor:pointer;
}
.tellog-cookie-settings-link:hover,
.tellog-cookie-settings-link:focus-visible{
  color:var(--tellog-blue);
}

/* Cookie consent */
.tellog-cookie-banner[hidden],.tellog-cookie-preferences[hidden]{display:none!important}
.tellog-cookie-banner{
  position:fixed;left:20px;right:20px;bottom:20px;z-index:99999;max-width:980px;margin:0 auto;
  background:#fff;border:1px solid rgba(18,58,90,.14);border-radius:16px;box-shadow:0 22px 70px rgba(18,43,62,.20);
  color:var(--tellog-text)
}
.tellog-cookie-inner{padding:22px 24px}
.tellog-cookie-title{margin:0 0 7px;color:var(--tellog-navy);font-size:22px;line-height:1.2}
.tellog-cookie-text{margin:0;color:#526978;font-size:14px;line-height:1.55}
.tellog-cookie-text a{color:var(--tellog-blue);text-decoration:underline;text-underline-offset:2px}
.tellog-cookie-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:18px}
.tellog-cookie-btn{
  min-height:42px;padding:10px 15px;border-radius:8px;border:1px solid rgba(18,58,90,.16);background:#fff;
  color:var(--tellog-navy);font-size:13px;font-weight:700;cursor:pointer
}
.tellog-cookie-btn:hover{border-color:var(--tellog-blue);color:var(--tellog-blue)}
.tellog-cookie-btn--primary{background:var(--tellog-blue);border-color:var(--tellog-blue);color:#fff}
.tellog-cookie-btn--primary:hover{background:var(--tellog-blue-dark);border-color:var(--tellog-blue-dark);color:#fff}
.tellog-cookie-btn:focus-visible,.tellog-cookie-settings-link:focus-visible{
  outline:3px solid var(--tellog-blue);outline-offset:3px
}
.tellog-cookie-preferences{margin-top:16px;padding:15px;border-radius:10px;background:#F6FAFC;border:1px solid rgba(18,58,90,.08)}
.tellog-cookie-category{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:10px 0}
.tellog-cookie-category+.tellog-cookie-category{border-top:1px solid rgba(18,58,90,.08)}
.tellog-cookie-category strong{display:block;color:var(--tellog-navy);font-size:14px}
.tellog-cookie-category p{margin:3px 0 0;color:#657985;font-size:12.5px;line-height:1.45}
.tellog-cookie-switch{display:flex;align-items:center;gap:8px;color:#526978;font-size:12px;font-weight:700}
.tellog-cookie-switch input{width:20px;height:20px;accent-color:var(--tellog-blue)}
.tellog-cookie-note{margin:10px 0 0;color:#71848F;font-size:11.5px;line-height:1.45}

/* 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{padding-top:22px;padding-bottom:22px}
  .tellog-footer-menu{display:flex;flex-wrap:wrap;row-gap:8px}
  .tellog-cookie-banner{left:10px;right:10px;bottom:10px}
  .tellog-cookie-inner{padding:18px}
  .tellog-cookie-actions{align-items:stretch;flex-direction:column}
  .tellog-cookie-btn{width:100%}
}

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

@media(max-width:767px){
  .tellog-site-footer{z-index:80}
  .tellog-footer-shell{min-height:142px;padding:28px 20px 24px}
  .tellog-footer-menu li+li::before{margin:0 11px}
  .tellog-footer-menu a{font-size:13.5px}
  .tellog-footer-copyright{margin-top:14px;font-size:12px}
  .tellog-cookie-settings-link{margin-top:7px;font-size:11px}
}

@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}
}
