/* ==========================================================================
   site.css — FINAL UNIFIED VERSION WITH FOOTER
   ========================================================================== */

/* Typography */
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Light-webfont.woff') format('woff'), url('../fonts/OpenSans-Light-webfont.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-LightItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-LightItalic-webfont.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Regular-webfont.woff') format('woff'), url('../fonts/OpenSans-Regular-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Italic-webfont.woff') format('woff'), url('../fonts/OpenSans-Italic-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-Bold-webfont.woff') format('woff'), url('../fonts/OpenSans-Bold-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'OpenSans';
  src: url('../fonts/OpenSans-BoldItalic-webfont.woff') format('woff'), url('../fonts/OpenSans-BoldItalic-webfont.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}


:root {
  /* --- 1. GLOBAL SETTINGS --- */
  --wrap: 1100px;
  --bg: #ffffff;
  --text-main: #333333;
  --surface: #3C3232;          /* Main Blue */
    --surface2: #ff4400;          /* Main Blue */
  --surface-light: #EFE6DA;    /* Main Blue */
  --text-on-surface: #ffffff;
  
  /* --- 2. NAVIGATION --- */
  --nav-height: 100px;
  --nav-link: #E8EEF7; 
  --nav-bg-hover: #6C86C1; 
  --nav-link-hover: #ffffff;
  --menu-text: #E5A800;
  
  /* --- 3. LINKS --- */
  --text-link: #1F5CE0;      
  --text-link-hover: #3A61C1;
  
  /* --- 4. BUTTONS --- */
  --btn-dur: 0.3s;
  --btn-ease: ease;
  --btn-lift: translateY(-2px);
  --error-color: #dd0000;
  --form-focus-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);

  /* --- 5. FOOTER SETTINGS --- */
  --footer-bg: #353333;        
  --footer-text: #ddd;
  --footer-link: #eee;      
  --footer-link-hover: #F1B300;
  --bsky-color: #3A61C1;    
  --fb-color: #3A61C1;    
  --icon-size: 24px;

  /* --- 6. OVERLAYS & MOTION --- */
  --drawer-w: 320px;
  --scrim: rgba(0,0,0,0.5);
  --dur: 250ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  
    --gap: 20px; /* New: Standardized grid gap */
}

/* --- BASE REPAIR --- */
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text-main); font-family:  "OpenSans","Open Sans", Helvetica, Arial, sans-serif; line-height: 1.6; scroll-behavior: smooth; }

/* --- 2. ACCESSIBILITY & TYPOGRAPHY REFINEMENTS --- */

/* AA Requirement: Minimum 1.5 line-height for body text */
body { 
    margin: 0; 
    overflow-x: hidden; 
    font-size: 1.125rem; /* 18px */
    line-height: 1.6; 
}


/* AA Requirement: Clearly visible focus states */
a:focus, button:focus, input:focus, summary:focus {
    outline: 3px solid var(--text-link);
    outline-offset: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* The Container */
.main-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    align-items: start;
}

/* AUTO-SPAN: Targets elements that are NOT cards and NOT manually classed.
   Ensures standard content stays full-width. */
.main-content > *:not([class*="grid-col-"]):not(.card):not(.card2):not(.testimonial-slider) {
    grid-column: 1 / -1;
}

/* MANUAL COLUMN UTILITIES */
.grid-col-1  { grid-column: span 1;  }
.grid-col-2  { grid-column: span 2;  }
.grid-col-3  { grid-column: span 3;  } 
.grid-col-4  { grid-column: span 4;  } 
.grid-col-5  { grid-column: span 5;  }
.grid-col-6  { grid-column: span 6;  } 
.grid-col-7  { grid-column: span 7;  }
.grid-col-8  { grid-column: span 8;  } 
.grid-col-9  { grid-column: span 9;  } 
.grid-col-10 { grid-column: span 10; }
.grid-col-12 { grid-column: 1 / -1 !important; }

/* GALLERY MODIFIERS (Using the grid gap for consistency) */
.cols-4 > .card, .cols-4 > .card2 { grid-column: span 3; }
.cols-3 > .card, .cols-3 > .card2 { grid-column: span 4; }
.cols-2 > .card, .cols-2 > .card2 { grid-column: span 6; }

/* MOBILE RESPONSIVENESS: Reset grid for small screens */
@media (max-width: 768px) {
    .main-content > * {
        grid-column: 1 / -1 !important; /* Force stack on mobile */
    }
}


/* Legacy Card adjustment to fit new grid */
.contact-card, .team-card, .news-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    /* Removed fixed margins to let parent grid handle spacing */
}

/* ... [Include your Font-Face, Nav, and Footer styles here] ... */

/* Footer cleanup: Replacing .row with the new grid logic */
.footer-inner {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}
.footer-col { grid-column: span 4; }

@media (max-width: 860px) {
    .footer-col { grid-column: span 6; }
}
@media (max-width: 500px) {
    .footer-col { grid-column: span 12; }
}











/* --- TYPOGRAPHY CONSOLIDATION --- */
h1, h2, h3, h4 { 
font-family: Georgia, Times, "Times New Roman", serif;
  font-weight: 700; 
  text-transform: uppercase; 
}

h1 { font-size: 3rem; margin: 3rem 0 2rem; line-height: 1.2; color: var(--surface); }
h1.smaller { font-size: 2.4rem; }
h2 { font-size: 2rem; margin: 1rem 0 0.3rem; color: var(--surface); }
h3 { font-size: 1.5rem; margin: 0.2rem 0; color: #ee6600; }

header.hero h1 { margin-top: 1rem; }

/* --- RESPONSIVE TYPOGRAPHY --- */
@media (max-width: 980px) {
  h1, header.hero h1 { font-size: 2.1rem; margin: 2.1rem 0 1.5rem; }
  header.hero h1 { margin-top: 0.9rem; }
  h1.smaller { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; margin: 0.9rem 0 0.2rem; }
  h3 { font-size: 1.2rem; }
}

@media (max-width: 600px) {
  h1, header.hero h1 { font-size: 1.8rem; margin: 1.8rem 0 1rem; }
  header.hero h1 { margin-top: 0.8rem; margin-bottom: 1.3rem; }
  h1.smaller { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; margin: 0.8rem 0 0.2rem; }
  h3 { font-size: 1.1rem; }
}

/* --- LINKS & UTILS --- */
a { color: var(--text-link); text-decoration: none; transition: 0.2s; }
a:hover, a:active { text-decoration: underline; color: var(--text-link-hover); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.u-lnk { unicode-bidi: bidi-override; direction: rtl; cursor: pointer; color: var(--text-link); text-decoration: none; }
.u-lnk:hover { color: var(--text-link-hover); text-decoration: underline; }

/* --- NAVIGATION --- */
nav.topnav { background: var(--surface); height: var(--nav-height); width: 100%; position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; }
.nav-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 100px; width: auto; display: block; }

.navlinks { display: flex; gap: 11px; }
.navlinks .pseudo.button { color: var(--nav-link); text-decoration: none; font-weight: 600; padding: 6px 10px; }
.navlinks .pseudo.button:hover { color: var(--nav-link-hover); background: rgba(255,255,255,0.2); border-radius: 0px; border-bottom: 3px #fff; }

.skip-link { position: absolute; top: 0; left: 16px; transform: translateY(-100%); background: #111; color: #fff; padding: 10px 20px; z-index: 9999; text-decoration: none; transition: transform 0.2s; }
.skip-link:focus { transform: translateY(0); }

/* Burger & Mobile Logic */
.navbtn { display: none; align-items: center; cursor: pointer; color: #fff; z-index: 1005; }
.navbtn__icon { width: 28px; height: 28px; stroke: currentColor; }
.navchk { position: fixed; opacity: 0; pointer-events: none; }
.navmenu { position: fixed; background: #fff; visibility: hidden; opacity: 0; z-index: 1100; display: flex; flex-direction: column; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.2); transition: all var(--dur) var(--ease); }
.navitem { display: block; padding: 16px; text-decoration: none; color: var(--menu-text); font-weight: 600; border-bottom: 1px solid #eee; }

[data-navmode="dropdown"] .navmenu { top: var(--nav-height); left: 0; right: 0; transform: translateY(-10px); }
[data-navmode="drawer"] .navmenu { top: 0; right: 0; bottom: 0; width: var(--drawer-w); height: 100vh; transform: translateX(100%); }
.navchk:checked ~ .navmenu { visibility: visible; opacity: 1; transform: translate(0) !important; pointer-events: auto; }
.navscrim { display: none; position: fixed; inset: 0; background: var(--scrim); z-index: 1050; }
.navchk:checked ~ .navscrim { display: block; }

/* --- HERO --- */
/*header.hero { padding: 30px 0; color: #111; width: 100%; min-height: 50vh; background-color: var(--surface-light); }*/
/* Hero Section cleanup */
header.hero { 
color: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 0; 
    background-color: var(--surface-light); 
}

/* --- HOME & COUNTDOWN --- */
#countdown-container { display: flex; gap: 10px; font-family: sans-serif; padding-bottom: 50px; }
.time-block { background: #233973; color: white; width: 100px; aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 7px; }
.time-block span { font-size: 2rem; font-weight: bold; }
.time-block .label { font-size: 0.8rem; text-transform: uppercase; margin-top: 5px; opacity: 0.7; }

.bckgrnd { background-image: url('/assets/img/friends-bg-large.webp'); background-position: 100% 100%; background-repeat: no-repeat; background-size: 440px 440px; margin-bottom: -30px; }

@media (max-width: 1200px) { .bckgrnd { background-size: 380px 380px; } }
@media (max-width: 1000px) { .bckgrnd { background-size: 330px 330px; } }
@media (max-width: 780px) { .bckgrnd { background-image: none; background: #fff; } }

/* --- TESTIMONIAL SLIDER --- */
.testimonial-slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 2);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 0 20px;
}
.testimonial-slider::-webkit-scrollbar { height: 14px; }
.testimonial-slider::-webkit-scrollbar-track { background: var(--surface-light-alt, #e9ecef); border-radius: 18px; }
.testimonial-slider::-webkit-scrollbar-thumb { background: var(--surface); border-radius: 18px; }
.testimonial-slider::-webkit-scrollbar-thumb:hover { background: #ff5500; }

.testimonial-item {
  margin: 0; padding: 34px 20px; background-color: rgba(255, 255, 255, 0.9); border-radius: 8px; text-align: center; border: 1px solid rgba(0,0,0,0.1); box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; align-items: center; scroll-snap-align: start;
}
.testimonial-item img { border-radius: 50%; width: 150px; height: 150px; object-fit: cover; margin-bottom: 15px; border: 2px solid white; transition: transform 0.3s ease; }
.testimonial-item a:hover img { border: 0px solid #fff; transform: scale(1.1); }
.testimonial-item blockquote, .testimonial-item figcaption { margin: 0; padding: 0; border: none; font-size: 1rem; line-height: 1.4; color: #333; }

@media (min-width: 768px) {
  .testimonial-slider { grid-auto-columns: calc((100% - (3 * 20px)) / 4); }
}

/* --- FAQ --- */
.faq-container { max-width: 100%; margin: 2rem auto; font-family: sans-serif; }
.faq-item { border-bottom: 7px dotted #ddd; padding: 1rem 0; }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: bold; cursor: pointer; outline: none; color: var(--text-link); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 2.5rem; transition: transform 0.3s ease; color: var(--text-link); padding-left: 5rem; }
.faq-item[open] summary::after { content: "−"; }
.faq-content { padding: 0.1rem 0.1rem 0 0; color: #555; line-height: 1.4; }
.faq-item summary:focus-visible { outline: 2px solid #007bff; outline-offset: 5px; }

/* --- CONTACT & TEAM SHARED GRID --- */
.contact-layout, .team-container { max-width: 100%; margin: 1rem 0; font-family: system-ui, sans-serif; }
.company-info { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 7px dotted #ddd; }
.company-info address { font-style: normal; line-height: 1.6; }

.contact-card, .team-card, .news-card { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; align-items: start; }
.contact-image img, .team-image img, .news-image img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 5px; border: 1px solid #ddd; }

@media (min-width: 500px) { .contact-card { grid-template-columns: 200px 1fr; } }
@media (min-width: 600px) { .team-card, .news-card { grid-template-columns: 250px 1fr; } }

.role, .job-title { font-size: 0.85rem; font-weight: bold; color: #ff5500; text-transform: uppercase; letter-spacing: 0.05rem;  line-height: 1;margin:0;padding:0}
.team-card { border-bottom: 7px dotted #ddd; padding-bottom: 1rem; }
.team-body h2, .contact-body h2 { font-size: 1.6rem; line-height: 1; margin: 0 0 0.8rem 0; padding:0}
.contact-body p, .team-body p { font-size: 1.2rem; color: #333; margin-bottom: 1.5rem; }

.contact-link { display: inline-block; padding: 0.5rem 1rem; background-color: #007bff; border: 1px solid #007bff; border-radius: 3px; color: #eee; font-size: 0.9rem; transition: all 0.2s ease; }
.contact-link:hover { background-color: #ff6600; color: white; border-color: #ff6600; }

.text-truncate { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 1rem; position: relative; padding-right: 1ch; }

/* --- PERSON PAGE --- */
.person-container { padding: 0; margin: 2rem 0; }
.person-card { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }
@media (min-width: 768px) { .person-card { grid-template-columns: 4fr 6fr; align-items: start; } }

.job-tag { display: block; font-size: 1.5rem; text-transform: uppercase; letter-spacing: 0.05rem; color: #ff5500; margin: 0.5rem 0 0; line-height: 1.1; font-family: arial, sans-serif; }
@media (max-width: 900px) { .job-tag { font-size: 1rem; } }

.person-header h1 { line-height: 1.1; margin: 0 0 0.8rem; }
.person-text { line-height: 1.4; font-size: 1.2rem; color: #333; margin-top: -1rem; }
.person-image img { width: 100%; height: auto; aspect-ratio: 780 / 850; object-fit: cover; border-radius: 8px; border: 1px solid #dddddd; }

/* --- NEWS FEED --- */
.news-feed { max-width: 800px; margin: 2rem auto; padding: 0 1rem; font-family: system-ui, sans-serif; }
.news-body time { font-size: 0.85rem; line-height: 1; color: #666; text-transform: uppercase; letter-spacing: 0.05rem; }
.news-body h2 { font-size: 1.5rem; line-height: 1; margin: 0 0 0.7rem; }
.news-body p { line-height: 1.6; color: #444; margin-bottom: 1rem; }
.read-more { font-weight: bold; }

/* --- CALL TO ACTION & BUTTONS --- */
.call-to-action { background: #F2F0ED; padding: 50px 0; }
@media (min-width: 1365px) { .call-to-action { background-attachment: fixed; } }
.call-to-action h3 { color: var(--surface); font-size: 28px; }











/* ==========================================================================
   CONSOLIDATED BUTTONS & FORMS
   ========================================================================== */

section.get-a-quote {
background:#F2F0ED;
margin-bottom:50px;
padding:25px 20px 25px 20px;
border-left: 8px dotted #fff;
margin-left:-4px;clip-path: inset(0 0 0 3px);
border-radius: 20px	
}


/* --- 2. BUTTON SYSTEM (Consolidated) --- */

/* Base Logic for ALL Buttons: Handles height, hover motion, and transitions */
.btn, .btn-xlarge, .btn-x2large, .btn-x3large, button {
  display: inline-block;
  font-weight: bold;

  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--btn-dur) var(--btn-ease), 
              border-color var(--btn-dur) var(--btn-ease), 
              transform 0.2s ease;
  text-align: center;
  line-height: 1.3;
  border-radius: 8px;
  margin-top: 3px;
}

/* Global Hover Effect: Lift up on mouseover */
.btn:hover, .btn-xlarge:hover, .btn-x2large:hover, .btn-x3large:hover, button:hover {
  transform: var(--btn-lift);
  outline: none;
}

/* Standard Gray Button */
.btn {
  padding: 21px 26px;
  font-size: 21px;
  background-color: #9E9D9A !important;
  border-color: #9E9D9A !important;
  color: #fff !important;

}
.btn:hover {
  background-color: #6B6A68 !important;
  border-color: #6B6A68 !important;
}

/* Large Icon Buttons Shared Base */
.btn-xlarge, .btn-x2large, .btn-x3large {
  padding: 21px 34px 21px 64px;
  font-size: 21px;
  width: 13em;
  background-repeat: no-repeat;
  background-position: 0px -7px;
  background-size: 70px 73px;
  color: #fff !important;
  
}

/* Blue (Tick) Button */
.btn-xlarge {
  background-image: url('/assets/img/tick.png');
  background-color: #066cd3;
  border-color: #066cd3;
}
.btn-xlarge:hover {
  background-color: var(--surface, #233973);
  border-color: var(--surface, #233973);
}

/* Orange Buttons (Mail & Download) */
.btn-x2large, .btn-x3large {
  background-color: #ff6600;
  border-color: #ff6600;
}
.btn-x2large:hover, .btn-x3large:hover {
  background-color: #ee3311;
  border-color: #ee3311;
  text-decoration:underline;
}

/* Specific Icon Assignment */
.btn-x2large { background-image: url('/assets/img/mail.png'); }
.btn-x3large { background-image: url('/assets/img/download.png'); }

/* Mobile Optimization for Form Buttons */
@media (max-width: 799px) {
  .btn-x2large {
    background-image: none !important;
    background-size: 0;
    padding: 20px !important;
    width: 100%; /* Better UX for mobile forms */
  }
}

/* --- 3. FORM SYSTEM --- */

/* Responsive Form Group Padding */
.form-group { padding: 2px 3px; }
@media (min-width: 800px)  { .form-group { padding: 2px 120px 2px 30px; } }
@media (min-width: 1100px) { .form-group { padding: 2px 250px 2px 50px; } }
@media (min-width: 1400px) { .form-group { padding: 2px 320px 2px 60px; } }

/* Base Input Styles (Accessible 16px font to prevent iOS zoom) */
.form-control, input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem; 
  font-family: inherit;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

/* Focus States */
.form-control:focus, select:focus, textarea:focus {
  border-color: #86b7fe;
  box-shadow: var(--form-focus-shadow);
  outline: 0;
}

/* Custom Select Arrow */
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

textarea.form-control { min-height: 100px; resize: vertical; }

/* Readonly/Disabled */
.form-control:disabled, .form-control[readonly] {
  background-color: #e9ecef;
  cursor: not-allowed;
}

/* --- 4. FEEDBACK & ALERTS --- */

.status-valid, .status-error { padding: 15px; border-radius: 4px; margin-bottom: 1rem; border: 1px solid; }
.status-valid { background-color: #d4edda; color: #155724; border-color: #c3e6cb; }
.status-error { background-color: #f8d7da; color: #721c24; border-color: #f5c6cb; }

.hvezdicka { color: #ff0000; font-size: 1.5em; } /* Required field asterisk */
.text-danger { color: var(--error-color); font-weight: bold; line-height: 1; padding: 3px 0 0 0; margin-top: 3px; }
.chytak { display: none !important; } /* Honeypot field */








/*--------------------
4.6. Dlazdice
--------------------*/

#standorte {background:#EFE6DA;margin-top:0px;padding-top:40px;margin-bottom:-20px;padding-bottom:50px}

.standorte-item {
    text-align: center;
    background-color: #fff;
}

.standorte-item h3 {
font-size: 21px;
font-weight: bold;
font-family:georgia;
margin:10px 0 5px 0!important;
line-height:1.5em;
}
/*
.standorte-position h3 a {
color:#496FBC;
text-decoration:none;
	font-family:OpenSans;
}
*/
.standorte-item .standorte-phone {
    color: #3C3232;
    font-size: 16px;
	font-family:"Open Sans", OpenSans;
	padding:0;
	margin:0 0 0.5em 0;
	line-height:1em;
}
/*
.standorte-position a {
color:#496FBC;
font-size: 16px;
font-weight:bold;
}



.standorte-position a:hover,.standorte-position a:active {
text-decoration:none;
}
*/
.standorte-item p {
    font-size: 0.9em;
    padding: 5px 10px 20px 10px;
}



.standorte-image a:link img,.standorte-image a:visited img {
opacity: 1; filter: alpha(opacity=100);
}
.standorte-image a:hover img,.standorte-image a:active img {
opacity: 0.7; filter: alpha(opacity=70);
}

/* Add this to your stylesheet */
.main-content.cols-3 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

/* Ensure standorte items obey the 3-per-row rule */
.cols-3 > .standorte-item {
    grid-column: span 4;
}

/* Mobile fix: Stack them on small screens */
@media (max-width: 768px) {
    .cols-3 > .standorte-item {
        grid-column: span 12;
    }
}

/* Ensure images never overflow their container and scale to fit */
.img-fluid, 
.standorte-image img {
    max-width: 100%;
    height: auto;
    display: block;
    width: 100%;       /* Force image to fill the 4-column span */
    object-fit: cover; /* Keeps aspect ratio clean if heights vary */
}

.standorte-image a {
    display: block;
    overflow: hidden; /* Helps if you use the scale effect from your stylesheet */
    border-radius: 5px; /* Matches your news/team cards */
}

.standorte-item img {
    transition: transform 0.3s ease;
}

.standorte-item:hover img {
    transform: scale(1.05); /* Subtle hover effect */
}














/* Container Basics */
.portfolio .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

/* Accessible Screen Reader Text Class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Filter Navigation styling */
.portfolio-filters-container {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  background: #f8f9fa;
  border: 1px solid #ddd;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  outline: 2px solid #0056b3; /* Focus ring for keyboard accessibility */
}

.filter-btn.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Native CSS Grid replacement for Bootstrap Row/Cols */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Responsive Breakpoints (Tablets: 2 cols, Desktop: 3 cols) */
@media (min-width: 768px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* Portfolio Card Design & Overlay Effects */
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
  aspect-ratio: 4 / 3; /* Keeps standard grid presentation consistent */
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

/* Info Overlay Layer */
.portfolio-info {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 1rem;
  text-align: center;
}

/* Focus and Hover states trigger the layout details securely */
.portfolio-item:hover .portfolio-info,
.portfolio-item:focus-within .portfolio-info {
  opacity: 1;
}

.portfolio-info h4 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem 0;
}

.portfolio-info p {
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
  color: #ccc;
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.portfolio-links a {
  color: #fff;
  background: #007bff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background 0.2s ease;
}

.portfolio-links a:hover,
.portfolio-links a:focus-visible {
  background: #0056b3;
  outline: 2px solid #fff;
}






















/* --- WHATSAPP & FLOATING --- */
.whatsapp-link {
    position: fixed; bottom: 20px; right: 20px; background-color: #25D366; color: white;
    padding: 10px 20px; border-radius: 50px; display: flex; align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 1000; transition: transform 0.3s ease;
}
.whatsapp-link:hover { transform: scale(1.05); background-color: var(--surface2); color: #fff; }
.whatsapp-link svg { margin-right: 10px; }

@media (max-width: 480px) {
    .link-text { display: none; }
    .whatsapp-link { padding: 12px; border-radius: 50%; }
    .whatsapp-link svg { margin-right: 0; }
}




.footer {
  background: #353333;
  border-bottom: 1px solid #555555;
  padding: 35px 0 30px 0;
  color: #ddd;
  font-size: 1em;
}

.footer .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer h4 { color: #F1B300; margin-bottom: 10px; font-size: 1rem; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { position: relative; padding: 1px 0 1px 14px; line-height: 1.1; }
.footer li::before { content: "›"; position: absolute; left: 0; color: var(--surface2); }
.footer a { color: var(--footer-link); font-weight: bold; }
.footer a:hover { color: var(--footer-link-hover); text-decoration: underline; }

.contact-item { display: flex; align-items: center; gap: 6px; }
.contact-item img { height: 1.1em; }
.contact-item img.icon { width: var(--icon-size); height: var(--icon-size); }

.bsky-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--icon-size); height: var(--icon-size); background-color: var(--bsky-color);
  border-radius: 50%; transition: transform 0.2s;
}
.bsky-icon img { width: 12px; height: 12px; filter: brightness(0) invert(1); }
.bsky-icon:hover { transform: scale(1.1); }








/* --- PRIVACY BANNER --- */
.privacy-banner {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(150%);
    width: 90%; max-width: 600px; background: #333; color: #d0d0d0;
    padding: 11px 30px; z-index: 3000; display: flex; justify-content: space-between; align-items: center;
    border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transition: transform 0.5s var(--transition);
}
.privacy-banner.show { transform: translateX(-50%) translateY(0); }

/* --- GLOBAL RESPONSIVE LOGIC --- */
@media (max-width: 860px) {
  .navlinks { display: none; }
  .navbtn { display: flex; }
  .footer .row { grid-template-columns: repeat(2, 1fr); }
  .footer .col-5 { grid-column: span 2; }
}

@media (max-width: 500px) {
  .footer .row { grid-template-columns: 1fr; }
  .footer .col-4, .footer .footer-contact { grid-column: span 1; }
}

@media print {
    .person-card { display: block; }
    .person-image { margin-bottom: 1rem; }
}

html.nav-open { overflow: hidden; }