/*
Theme Name: TT Modulbau Berlin-Brandenburg
Description: Regionalgruppen-Theme mit Originalfotos, Galerie und responsivem Layout.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tt-modulbau
*/
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f5f4ef;color:#182b35;font:16px/1.6 system-ui,sans-serif}header,footer{background:#182b35;color:white;padding:22px max(5vw,20px)}header{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}strong.logo{font-size:23px;line-height:1.2;display:block}small{letter-spacing:2px}nav{display:flex;gap:22px;flex-wrap:wrap}a{color:inherit;text-decoration:none}nav a:hover{text-decoration:underline}.hero{min-height:520px;display:flex;align-items:center;padding:7vw;background-image:linear-gradient(90deg,rgba(10,24,30,.88),rgba(10,24,30,.12)),url(bilder/tt-01.jpg);background-size:cover;background-position:center;color:white}.hero div{max-width:620px}h1{font-size:clamp(38px,5vw,76px);line-height:1.05;margin:18px 0}h2{font-size:clamp(28px,3vw,42px);line-height:1.15;margin:12px 0}p{max-width:750px}.tag{letter-spacing:3px;font-size:13px;font-weight:bold}.btn{display:inline-block;background:#a64b35;color:white;padding:12px 22px;border-radius:5px;margin:12px 10px 0 0}.outline{background:transparent;border:1px solid white}main section{padding:55px max(6vw,20px)}.cards,.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;border-radius:8px;overflow:hidden}.card img,.gallery img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}.card div{padding:20px}.card h3{margin:0}.gallery button{padding:0;border:0;background:none;cursor:zoom-in;border-radius:6px;overflow:hidden}.dark{background:#263e49;color:white}dialog{border:0;background:#182b35;color:white;max-width:95vw;padding:12px}dialog img{max-width:88vw;max-height:80vh;display:block}dialog button{float:right;padding:8px;cursor:pointer}dialog::backdrop{background:#000c}footer a{text-decoration:underline}@media(max-width:700px){.cards,.gallery{grid-template-columns:repeat(2,1fr)}.hero{min-height:440px}nav{gap:12px;font-size:14px}}@media(max-width:420px){.cards{grid-template-columns:1fr}}
nav ul{display:flex;gap:18px;flex-wrap:wrap;list-style:none;padding:0;margin:0}nav ul ul{display:block}.entry a{text-decoration:underline}.entry img{max-width:100%;height:auto}.entry{max-width:1000px;margin:auto}.entry h1{font-size:clamp(30px,4vw,48px)}.custom-logo{max-width:160px;height:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:10px;top:10px;background:white;color:black;z-index:9999}a:focus-visible,button:focus-visible{outline:3px solid #e8a65b;outline-offset:3px}
/* Kompakte Navigation */
.tt-header{background:#19365d;padding:0 clamp(16px,4vw,70px);display:block;position:relative;z-index:100;overflow:visible}
.tt-header nav{display:flex;align-items:center;justify-content:flex-start;gap:0;min-height:64px;flex-wrap:wrap;font-size:17px}
.tt-header nav ul{list-style:none;margin:0;padding:0;gap:0}
.tt-header nav > ul{display:flex;align-items:center;flex-wrap:wrap}
.tt-header nav li{position:relative;margin:0}
.tt-header nav a{display:block;padding:18px 17px;color:#fff;text-decoration:none;line-height:28px}
.tt-header nav a:hover,.tt-header nav a:focus-visible{background:#ffffff18;text-decoration:none}
.tt-header nav .menu-item-has-children > a::after,.tt-header nav .page_item_has_children > a::after{content:"";display:inline-block;width:10px;height:10px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:0 0 4px 12px}
.tt-header nav ul ul{display:none;position:absolute;top:100%;left:0;min-width:190px;width:max-content;max-width:85vw;background:#19365d;box-shadow:0 8px 18px #0004;z-index:110;max-height:70vh;overflow-y:auto}
.tt-header nav li:hover > ul,.tt-header nav li:focus-within > ul,.tt-header nav li.tt-open > ul{display:block}
.tt-header nav ul ul a{padding:7px 17px;line-height:23px;font-size:15px}
@media(max-width:700px){.tt-header{padding:0 8px}.tt-header nav{min-height:52px;font-size:14px}.tt-header nav a{padding:12px 9px;line-height:24px}.tt-header nav ul ul{min-width:145px}.tt-header nav > ul > li:last-child > ul{left:auto;right:0}}

/* Typografie 1.4.1: lokal installierte Schriften oder selbst bereitgestellte Webfonts */
body{font-family:"Open Sans", "Segoe UI", Arial, sans-serif;font-size:17px;line-height:1.75}
h1,h2,h3,h4,h5,h6,.tt-header nav,.btn,.tag,strong.logo{font-family:Montserrat,"Segoe UI",Arial,sans-serif}
h1{font-size:clamp(34px,4.5vw,56px);font-weight:700;line-height:1.15}
h2{font-size:clamp(26px,3vw,32px);font-weight:600;line-height:1.3}
h3{font-size:21px;font-weight:600;line-height:1.4}
.tt-header nav{font-size:16px;font-weight:500}
.btn{font-size:16px;font-weight:600;line-height:1.5}
figcaption,.caption{font-size:14px;line-height:1.5}
button,input,textarea,select{font-family:inherit}
@media(max-width:700px){body{font-size:16px}.tt-header nav{font-size:14px}.btn{font-size:15px}}
