@charset "utf-8";
/* CSS Document */
/*
Theme Name: Trendoptik Sopron
Theme URI: https://www.trendoptik.hu
Author: tigaman
Author URI: https://www.tigaman.hu
Description: Cégünk 1994-ben nyitotta első soproni optika üzletét, melyet 2005-ben az akkor nyíló Interspar áruházba költöztettünk, majd 2016-ban felújítottunk, hogy díjnyertes designnal és megnövelt szemészeti rendelővel fogadhassuk vásárlóinkat. Az áruházban jelenleg ingyenes parkoló üzemel, hogy vásárlóink kényelmesen tudjanak érkezni és távozni.
Version: 2.0
*/
@import url("slidingpanel.css");
@import url("header.css");
@import url("slideshow.css");
@import url("logos.css");
@import url("service-card.css");
@import url("tudastar.css");
@import url("testimonial.css");
@import url("featured.css");
@import url("cookie-bar.css");
@import url("category.css");
@import url("404.css");
 /*
@font-face {
  font-family: 'Raleway', sans-serif;
  src: url('Raleway/Raleway-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900; 
  font-stretch: 75% 125%; 
  font-style: normal;
  font-display: swap; 
} */

  html {
    scroll-behavior: smooth;    
  }


* { margin: 0; padding: 0; box-sizing: border-box; }
body {
	font-family: 'Raleway', sans-serif;
	background-color: #000000;
	font-size: 1vw;
	background-image: url(images/bg.svg);
	background-size: 100vw auto;
}
a {
	text-decoration: none;
}

.hero-container {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 6;
	overflow: hidden;
	background-color: #000;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    filter: blur(20px);
    will-change: filter;
    transition: filter 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image.animal {
    filter: blur(0px);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 5%;
    z-index: 2;
    opacity: 0;
    transform: translateY(-50%) translateX(-50px);
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image.animal + .hero-content {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}





.hero-content h1 {
	font-size: 200%;
	font-weight: 500;
	margin: 0 auto 0px auto;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 3px;

	display: block;
}
.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px; /* A csík vastagsága */
    background: rgba(255, 255, 255, 0.1); /* Halvány alapvonal, amin a fény fut */
    overflow: hidden;
}
.hero-content h1::after {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 70%, 
        transparent 100%
    );
    background-size: 200% 100%;
    animation: knightRider 2.5s linear infinite;
}

.frosted { color: #FFFFFF; background-color: rgba(0,0,0,0.3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 5px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); padding: 1em 2em; }

.content-section
{
	position: relative;
	padding: 15px 20px;
	background-color: #fff;
	color: #333;
	width: calc(90% - 42px);
	margin: 50px auto 50px auto;
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);
	border-radius: 4px;
	font-size: 140%;
	font-weight: 500;
}
.content-section strong {

	font-weight: 800;
}
.content-section ul {
    list-style-type: none; /* Kiveszi az alapértelmezett pöttyöket */
    padding-left: 0;
    margin: 15px 0;
	clear: both; /* Ez kényszeríti a listát a floatolt elemek alá */
}

.content-section ul li {
    position: relative;
    padding-left: 18px; /* Hely a saját ikonnak */
    margin-bottom: 5px;

    color: #555;
}

/* Egyéni, piros pipa vagy pont ikon a lista elemeknek */
.content-section ul li::before {
	content: ""; /* Tartalom üres */
	position: absolute;
	left: 0;
	top: 3px; /* Igazítás a szöveg közepéhez */
	width: 13px;
	height: 13px;
	background-color: #e60012; /* Piros szín */
	border-radius: 50%; /* Ez csinálja kör alakúvá */
	display: inline-block;
	transition: background-color 0.3s ease;
}

.content-section ul li:hover::before {
    background-color: #000000; /* Fekete */transition: background-color 0.6s ease;
}
.content-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* A p mérete és a sorköz */
.content-section p {
line-height: 1.6;
    margin-bottom: 1.5em;
    opacity: 0;

transform: translateY(20px); /* 20 pixelről indul lejjebb */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section p.animal {
    opacity: 1;
    transform: translateY(0); /* A helyére kerül */
}



.contact-section a {
	color: #F00;
	text-decoration: none;
}
.more-link {
	position: absolute;
	bottom: 0px;      /* A jobb alsó sarokból távolság */
	right: 0px;       /* Mivel a sorszám (kör) 35px széles + padding, ez teszi a kör mellé balra */
	background-color: #e60012;    /* Piros szín */
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 100%;
	transition: color 0.3s ease;
	color: #FFFFFF;
	padding: 10px;
	letter-spacing: 2px;
}

.more-link:hover {
    background-color: #cc0000;    /* Sötétebb piros hoverkor */


}


/* Admin szerkesztés gomb abszolút pozícionálással a jobb alsó sarokban */
.post-edit-link {
	position: absolute; /* Fixed helyett Absolute */
	bottom: 5px;
	right: 5px;
	z-index: 1;
	background-color: #e60012;
	color: #ffffff !important;
	padding: 10px 18px 10px 40px;
	font-size: 80%;
	font-weight: 600;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-radius: 4px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: all 0.2s ease-in-out;
	display: inline-flex;
	align-items: center;
	background-image: url(images/icons/pin.svg);
	background-size: 30px auto;
	background-position: 5px center;
	background-repeat: no-repeat;
}

/* Hover effekt */
.post-edit-link:hover {
	background-color: #666666;
	color: #ffffff !important;
	transform: translateY(-3px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.content-section.sorszam {
	position: relative;
	counter-increment: item-counter;
	min-height: 300px;

}
.content-section img {
	max-width: 100%;
	height: auto;
}

/* A kör stílusa a jobb alsó sarokban */
.content-section.sorszam::before {
    content: counter(item-counter);
    position: absolute;
    bottom: -30px; /* Jobb alsó sarokból távolság */
    left: -30px;  /* Jobb alsó sarokból távolság */
    
    /* Kör alakzat */
    width: 60px;
    height: 60px;
    background-color: #e60012;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%; 
    font-size: 200%;
    font-weight: 800;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.post-search-image {
    float: left;            
    margin-right: 20px;     
    margin-bottom: 10px;
    
    /* Itt adod meg a százalékot, pl. a szülő 25%-a */
    width: 25%;             
    
    /* Ez a kulcs: a szélességhez képest tartja meg a négyzetet */
    aspect-ratio: 1 / 1;    
    
    overflow: hidden;       
    border-radius: 8px;	
	max-height: 380px;
}

.post-search-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}


/* Hover: Zoom In */
.post-search-image:hover img {
    transform: scale(1.2);  /* 20%-os nagyítás */
}


.manifesto-block {
	padding: 2em 0;
	text-align: center;
margin: 0 auto;
	background-color: #000;	
	box-shadow: 0 20px 50px rgba(0,0,0,0.5);

}

        /* --- ANIMÁCIÓ ALAPÁLLAPOT --- */
        .manifesto-block h1, .manifesto-block h2,  .manifesto-block h3,
        .manifesto-block p {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease-out, transform 0.8s ease-out;
        }

        /* Amikor megkapja az osztályt a JS-től */
        .manifesto-block h1, .manifesto-block h2,  .manifesto-block h3, 
        .manifesto-block.animal p {
            opacity: 1;
            transform: translateY(0);
        }

.manifesto-block h1, .manifesto-block h2,  .manifesto-block h3{
	font-size: 190%;
	font-weight: 500;
	margin: 0 auto 0px auto;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 3px;
	max-width: 90%;
}

.manifesto-block p {
	font-size: 120%;
	margin: 0 auto;
	padding: 25px 20px 10px 20px;
	color: #CCC;
	position: relative;
	max-width: 750px;
}

        .manifesto-block p::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 300px;
            height: 1px;
            background-color: #333;
            /* A vonal csak akkor jelenjen meg, ha a szöveg is beúszott */
            opacity: 0;
            transition: opacity 1s ease-in;
        }

        .manifesto-block.animal p::before {
            opacity: 1;
        }




/* Footer alapstílus */
.main-footer {
	background-color: #111;
	color: #fff;
	padding: 60px 0 0 0;
	margin-top: 0px;
	border-top: 1px solid #999999;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 40px 40px 40px;
    gap: 40px;
}

.footer-section {
    flex: 1 1 250px;
}

/* Kereső stílusa */
.footer-logo {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-logo span {
    color: #e60012; /* A piros színed */
}

.search-section p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-search-box {
    display: flex;
    max-width: 350px;
}

.footer-search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: #222;
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.footer-search-box button {
	padding: 12px 20px;
	border: none;
	background-color: #e60012;
	color: #fff;
	cursor: pointer;
	border-radius: 0 4px 4px 0;
	transition: background 0.3s;
	font-weight: 600;
	text-transform: uppercase;
}

.footer-search-box button:hover {
    background-color: #c40a15;
}

/* Linkek és Kapcsolat */
.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: #e60012;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
	color: #ccc;
	text-decoration: none;
	transition: color 0.3s;
	text-transform: uppercase;
}

.footer-section ul li a:hover {
    color: #e60012;
    padding-left: 5px;
}






/* A teljes elem a bal alsó sarokban */
.content-section details {
    position: absolute;
    bottom: 5px;
    left: 30px;
    z-index: 999;
}

/* A háromszög stílusa */
.content-section details summary {
    cursor: pointer;
    color: #e60012;
    font-size: 24px;
    list-style: disclosure-closed;
    width: 25px;
    height: 25px;
}

/* A summary-ben lévő szöveg elrejtése, hogy csak a háromszög maradjon */
.content-section details summary strong {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* A szövegdoboz pozicionálása a háromszög FÖLÉ */
.content-section details[open] p {
    position: absolute;
    bottom: 20px; /* A háromszög felett ennyivel kezdődik */
    left: 20px;
    width: 500px; /* Szélesség igény szerint állítható */
    margin: 0;
    padding: 15px;
    background-color: #ffffff;
    border: 2px solid #e60012;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    font-size: 90%;
    line-height: 1.5;
    color: #333333;
}

/* Footer alja */
.footer-bottom {
	background-color: #000;
	text-align: center;
	padding: 20px 0;
	font-size: 12px;
	color: #949494;
	border-top: 1px solid #222;
}
.footer-bottom a {
	color: #FFFFFF;
}


.scroll-to-top {
    display: none; /* Alapból rejtve */
    position: fixed;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    cursor: pointer;
    width: 50px;
    height: 50px; /* Fontos, hogy fix legyen */
    background-color: #FF0000;
    border-radius: 50%;
    box-shadow: inset 0px 5px 25px 5px rgba(0,0,0,.1);
    filter: drop-shadow(0 0 10px rgba(0,0,0,.3));
    color: #FFFFFF;
    
    /* --- EZ RAKJA KÖZÉPRE --- */
    display: flex;             /* Bekapcsoljuk a flexbox-ot */
    justify-content: center;    /* Vízszintes középre */
    align-items: center;        /* Függőleges középre */
    font-size: 24px;            /* Itt állíthatod a nyíl méretét */
    line-height: 0;             /* Megszünteti a betűk körüli alap hézagot */
    text-decoration: none;      /* Ha <a> tag lenne, ne húzza alá */
}


.svgbutton {
	margin: 5px 10px;
	font-size: 130%;
	background-color: #666666;
	padding: 10px 25px 10px 0px;
	transform: translateZ(0);
	backface-visibility: hidden;
	transition-property: color;
	transition-duration: 0.8s;
	text-align: center;
	display: inline-flex;
    align-items: center;
    justify-content: center;
	border-radius: 5px;
	font-weight: 400;
	color: #FFFFFF;
	position: relative; 
    cursor: pointer;
    text-decoration: none;	
}
.svgbutton  a, .svgbutton a:hover {
	color: #FFFFFF;
	text-decoration: none;
}



.svgbutton:before{
	content: "";
	position: absolute;
	z-index: -1;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	-webkit-transform: scaleX(0);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition-property: transform;
	transition-duration: 0.8s;
	transition-timing-function: ease-out;
	border-radius: 5px;
}
.svgbutton:hover, 
.svgbutton:focus, 
.svgbutton:active {
  color: white;
}
.svgbutton:hover:before, 
.svgbutton:focus:before, 
.svgbutton:active:before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  -webkit-transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
  transition-timing-function: cubic-bezier(0.52, 1.64, 0.37, 0.66);
}


.svgbutton.tocall:before{
	background-color: #CC3300;
}
.svgbutton.mailto:before{
	background-color: #669966;
}
.svgbutton.vissza:before{
	background-color: #000000;
}
.svgbutton img{
	width: 30px;
	height: auto;
	margin: 0 10px;
}

.svgbutton:hover img{
 animation: ring_5825 2.4s ease infinite; transform-origin: 50% 0%; } @keyframes ring_5825 { 0% { transform: rotate(-15deg) } 1.66667% { transform: rotate(15deg) } 3.33333% { transform: rotate(-18deg) } 5% { transform: rotate(18deg) } 6.66667% { transform: rotate(-22deg) } 8.33333% { transform: rotate(22deg) } 10% { transform: rotate(-18deg) } 11.66667% { transform: rotate(18deg) } 13.33333% { transform: rotate(-12deg) } 15% { transform: rotate(12deg) } 16.66667% { transform: rotate(0deg) } 100% { transform: rotate(0deg) } }

} 

@keyframes passing-reverse_5948 { 0% { transform:translateX(50%); opacity:0 } 50% { transform:translateX(0%); opacity:1 } 100% { transform:translateX(-50%); opacity:0 } }



.show {
    display: flex; /* Válts flexre, hogy a tartalom középen maradjon! */
    opacity: 1;
    transition: opacity .6s ease;
}

.hide {
    display: flex; /* Itt is flex kell, hogy ne ugorjon el a nyíl az animáció alatt */
    opacity: 0;
    pointer-events: none;
    transition: opacity .6s ease;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  justify-content: center;
}

.gallery dl {
  flex-basis: calc(25.00% - 2%);
  margin: 1%;
  box-shadow: 0 0 5px rgba(0, 0, 0, .4);

  overflow: hidden; 
}
.gallery dl h3 {
	font-size: 100%;
	background-color: #7EB736;
	color: #FFFFFF;
	display: block;
	text-align: center;
	padding: 5px;
	font-weight: 400;
}

.gallery-icon a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  border-bottom-color: rgba(255, 255, 255, 0);
}

.gallery-icon img {
	display: block;
	width: 90%;
	height: auto;
	transition: transform 0.3s ease-in-out;
	margin: .5em 0 0 5%;
	padding: 0 0 .7em 0;
}
.gallery-icon:hover img{
	transform: scale(1.1);

}
.gallery-caption {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	text-align: center;
	transform: translateY(-50%);
	background-color: #027CCB;
	color: #fff;
	padding: 3px  5px;
	white-space: nowrap; /* Prevent text from wrapping to the next line */
	overflow: hidden; /* Hide any overflowing text */
	text-overflow: ellipsis; /* Add ellipsis (...) for overflow */
	text-transform: uppercase;
	font-size: 120%;
	transition: background-color .4s ease-in-out;
}

.gallery-item:hover .gallery-caption {
	background-color: #FF3F06;

}


/* =WordPress Core
-------------------------------------------------------------- */
/* 1. Alap keret - EZ MINDENRE ÉRVÉNYES (img vagy a) */
.alignleft, .alignright, .aligncenter {
	display: block !important;
	padding: 6px !important;
	background: #fff !important;
	border: 1px solid rgba(0,0,0,0.35) !important;
	box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
	width: 30% !important;
	margin: 10px 30px 20px 0 !important;
	box-sizing: border-box !important;
	height: auto;
}

/* 2. Irányok (float) */
.alignleft { float: left !important; }
.alignright { float: right !important; margin: 10px 0 20px 30px !important; }
.aligncenter { float: none !important; margin: 20px auto !important; }

/* 3. Kép kitöltése (bármi is van a dobozban) */
.alignleft img, .alignright img, .aligncenter img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. HOVER: A keyframe animáció indítása */
a:hover img.alignleft, 
a:hover img.alignright, 
a:hover img.aligncenter {
    animation: shine-cycle .6s ease-in-out forwards;
}

/* 3. A Keyframe: Színes -> Szürke -> Színes átmenet */
@keyframes shine-cycle {
    0% { filter: grayscale(0%) saturate(100%) brightness(1); }
    50% { filter: grayscale(100%) saturate(0%) brightness(1.3);box-shadow: 0 10px 4px rgba(0,0,0,0.75); }
    100% { filter: grayscale(0%) saturate(100%) brightness(1); }
}

/* 5. Mobil nézet */
@media (max-width: 600px) {
    .alignleft, .alignright, .aligncenter {
        float: none !important;
        margin: 20px auto !important;
        width: 90% !important;
    }
}

.twd-youtube-container {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 25px;
	height: 0;
}
.twd-youtube-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;		
	box-shadow: 0 10px 5px -5px #888;

}


.mobil{
	display: none;
}
.nomobil{
	display: inline;
}
@media (max-width: 768px) {
.mobil{
	display: inline;
}
.nomobil{
	display: none;
}
	body {
	font-size: 12px;
}
.top-bar {

	display: none;

 }
 
 
 .content-section {
	padding: 10px 10px;
	width: calc(96% - 22px);
	margin: 1em auto;

}
 
 
 
     .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-search-box {
        margin: 0 auto;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }
}