Files
hofmann-wintergarten-website/styles.css
2026-01-30 09:21:13 +01:00

1073 lines
18 KiB
CSS

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-snap-type: y mandatory;
scroll-behavior: smooth;
}
:root {
--primary-color: #003366;
--primary-dark: #002244;
--secondary-color: #f5f5f5;
--text-color: #333;
--text-light: #666;
--white: #fff;
--black: #000;
--border-color: #ddd;
--shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
--shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
--transition: all 0.3s ease;
--navbar-height: 80px;
--bg-color: #f0f0f0;
}
html {
scroll-behavior: smooth;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--bg-color);
}
a {
color: var(--primary-color);
text-decoration: none;
transition: var(--transition);
}
a:hover {
color: var(--primary-dark);
}
img {
max-width: 100%;
height: auto;
display: block;
}
/* Container */
.container {
max-width: 1400px;
margin: 0 auto;
padding: 0 20px;
width: 100%;
}
/* Buttons */
.btn {
display: inline-block;
padding: 12px 24px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
font-weight: 500;
transition: var(--transition);
text-align: center;
}
.btn-primary {
background-color: var(--primary-color);
color: var(--white);
}
.btn-primary:hover {
background-color: var(--primary-dark);
color: var(--white);
}
.btn-secondary {
background-color: transparent;
color: var(--text-color);
border: 1px solid var(--border-color);
}
.btn-secondary:hover {
background-color: var(--secondary-color);
}
/* Segment Separator */
.segment-separator {
height: 4px;
background-color: var(--primary-color);
width: 100%;
}
/* Cookie Banner */
.cookie-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: var(--white);
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
z-index: 10000;
padding: 20px;
}
.cookie-banner.hidden {
display: none;
}
.cookie-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 20px;
}
.cookie-content p {
flex: 1;
min-width: 300px;
margin: 0;
}
.cookie-buttons {
display: flex;
gap: 10px;
}
/* Navigation - Transparent with grey font and black outline */
.navbar {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(10px);
z-index: 1000;
transition: var(--transition);
height: var(--navbar-height);
border-bottom: 1px solid rgba(0, 51, 102, 0.2);
}
.nav-container {
max-width: 1400px;
margin: 0 auto;
padding: 0 40px;
display: flex;
justify-content: space-between;
align-items: center;
height: 100%;
position: relative;
}
.nav-container {
padding: 0 20px 0 0;
}
.nav-container .logo-link {
margin-left: -100px;
}
.logo-link {
display: flex;
align-items: center;
flex-shrink: 0;
}
.logo-img {
height: 65px;
width: auto;
object-fit: contain;
}
.nav-links {
display: flex;
list-style: none;
gap: 60px;
margin: 0;
padding: 0;
flex: 1;
justify-content: flex-end;
position: relative;
}
.nav-links li {
position: relative;
}
.nav-links a {
color: #ff6600;
font-weight: 400;
font-size: 16px;
position: relative;
transition: var(--transition);
padding: 8px 16px;
display: block;
z-index: 1;
}
.nav-links a:hover {
color: #ff8800;
}
/* Sliding highlight bubble */
.nav-highlight {
position: absolute;
background-color: rgba(200, 200, 200, 0.3);
border-radius: 20px;
pointer-events: none;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 0;
opacity: 0;
}
.nav-highlight.active {
opacity: 1;
}
/* Mobile Menu Toggle */
.mobile-menu-toggle {
display: none;
flex-direction: column;
gap: 5px;
background: none;
border: none;
cursor: pointer;
padding: 5px;
}
.mobile-menu-toggle span {
display: block;
width: 25px;
height: 3px;
background-color: var(--text-color);
transition: var(--transition);
}
.mobile-menu {
display: none;
position: fixed;
top: var(--navbar-height);
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
z-index: 999;
padding: 20px;
}
.mobile-menu.active {
display: block;
}
.mobile-menu ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 15px;
}
.mobile-menu a {
color: #ff6600;
font-weight: 400;
font-size: 18px;
display: block;
padding: 10px 0;
}
/* Segments - Fullscreen with uniform background */
.segment {
min-height: 100vh;
padding: 10px 40px 40px;
display: flex;
flex-direction: column;
background-color: var(--bg-color);
scroll-snap-align: start;
}
.section-header {
font-size: 28px;
font-weight: 700;
color: var(--primary-color);
margin-bottom: 10px;
text-align: left;
position: relative;
padding-left: 10px;
}
/* Segment 1: Hero Carousel */
.segment-hero {
padding: 0;
margin-top: var(--navbar-height);
min-height: calc(100vh - var(--navbar-height));
}
.carousel {
position: relative;
width: 100%;
height: calc(100vh - var(--navbar-height));
overflow: hidden;
}
.carousel-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1s ease-in-out;
}
.carousel-slide.active {
opacity: 1;
}
.carousel-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Carousel Text Overlay */
.carousel-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
z-index: 10;
opacity: 0;
transform: translate(-100%, -50%);
transition: all 0.8s ease-out;
}
.carousel-slide.active .carousel-text {
opacity: 1;
transform: translate(-50%, -50%);
}
.carousel-title {
font-size: 64px;
font-weight: 800;
color: #ff6600;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
margin-bottom: 20px;
letter-spacing: 3px;
}
.carousel-content {
font-size: 28px;
color: #003366;
font-weight: 600;
text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
line-height: 1.5;
}
.carousel-indicators {
position: absolute;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 10px;
}
.indicator {
width: 12px;
height: 12px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
cursor: pointer;
transition: var(--transition);
}
.indicator.active {
background-color: var(--white);
}
/* Segment 2: Text */
.segment-text {
justify-content: flex-start;
padding-top: 40px;
}
.text-content {
max-width: 800px;
margin: 0 auto;
text-align: center;
}
.text-content p {
margin-bottom: 20px;
font-size: 18px;
line-height: 1.8;
color: var(--text-light);
}
/* Segment 3: Leistungen - Carousel with arrows */
.segment-leistungen {
justify-content: flex-start;
padding: 10px 0 40px;
}
.segment-leistungen .container {
display: flex;
flex-direction: column;
height: 100%;
max-width: 100%;
padding: 0;
}
.segment-leistungen .section-header {
padding-left: 40px;
}
.leistungen-carousel-wrapper {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
flex: 1;
position: relative;
min-height: calc(100vh - 150px);
}
.leistungen-carousel {
flex: 1;
height: 100%;
overflow: hidden;
}
.leistungen-track {
display: flex;
height: 100%;
transition: transform 0.5s ease;
}
.leistung-slide {
min-width: 100%;
display: grid;
grid-template-columns: 50% 50%;
height: calc(100vh - 150px);
opacity: 0;
transition: opacity 0.3s ease;
}
.leistung-slide.active {
opacity: 1;
}
.leistung-image {
width: 100%;
height: 100%;
overflow: hidden;
padding: 20px;
}
.leistung-image img {
width: 100%;
height: 100%;
object-fit: cover;
border-radius: 8px;
box-shadow: var(--shadow);
}
.leistung-content {
display: flex;
flex-direction: column;
justify-content: center;
padding: 40px;
height: 100%;
}
.leistung-logo {
max-width: 200px;
margin-bottom: 20px;
}
.leistung-logo img {
max-height: 60px;
width: auto;
object-fit: contain;
}
.leistung-content h3 {
font-size: 36px;
color: var(--primary-color);
margin-bottom: 20px;
}
.leistung-content p {
font-size: 20px;
color: var(--text-light);
line-height: 1.8;
}
.carousel-arrow {
background-color: var(--white);
border: 2px solid var(--primary-color);
width: 50px;
height: 50px;
border-radius: 50%;
cursor: pointer;
font-size: 20px;
color: var(--primary-color);
transition: var(--transition);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
z-index: 10;
}
.carousel-arrow:hover {
background-color: var(--primary-color);
color: var(--white);
}
.leistungen-indicators {
display: flex;
justify-content: center;
gap: 10px;
margin-top: 10px;
}
.leistungen-indicators .indicator {
background-color: rgba(0, 51, 102, 0.3);
}
.leistungen-indicators .indicator.active {
background-color: var(--primary-color);
}
/* Segment 4: Referenzen */
.segment-slideshow {
padding: 10px 40px 40px;
}
.fullscreen-slideshow {
position: relative;
width: 100%;
height: calc(100vh - 200px);
min-height: 400px;
overflow: hidden;
border-radius: 8px;
}
.slideshow-slide {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
transition: opacity 1.5s ease-in-out;
}
.slideshow-slide.active {
opacity: 1;
}
.slideshow-slide img {
width: 100%;
height: 100%;
object-fit: cover;
}
.slideshow-indicators {
position: absolute;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
max-width: 90%;
z-index: 10;
}
.slideshow-indicators .indicator {
width: 10px;
height: 10px;
background-color: rgba(255, 255, 255, 0.5);
}
.slideshow-indicators .indicator.active {
background-color: var(--white);
}
/* Segment 5: Showroom (3D Viewer) */
.segment-3d {
padding: 10px 40px 40px;
}
.segment-3d .slideshow-wrapper {
flex: 1;
display: flex;
flex-direction: column;
border-radius: 8px;
/*padding: 0px;
background-color: var(--white);*/
margin: 0;
}
.viewer-container {
position: relative;
background-color: var(--white);
overflow: hidden;
flex: 1;
display: flex;
flex-direction: column;
height: calc(100vh - 200px);
border-radius: 8px;
}
.viewer-container iframe {
display: block;
border: none;
flex: 1;
width: 100%;
height: 100%;
}
.cookie-notice {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
background-color: var(--secondary-color);
text-align: center;
padding: 40px;
}
.cookie-notice.hidden {
display: none;
}
.cookie-notice p {
font-size: 18px;
color: var(--text-light);
margin-bottom: 20px;
}
/* Segment 6: Partner */
.segment-partner {
justify-content: flex-start;
padding: 10px 40px 40px;
}
.partner-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(4, 1fr);
gap: 20px;
flex: 1;
min-height: calc(100vh - 150px);
}
.partner-item {
background-color: var(--white);
border: 1px solid var(--border-color);
border-radius: 8px;
overflow: hidden;
transition: var(--transition);
display: flex;
}
.partner-item:hover {
box-shadow: var(--shadow-hover);
transform: translateY(-5px);
}
.partner-item a,
.partner-no-link {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
color: var(--text-color);
width: 100%;
height: 100%;
}
.partner-item img {
width: 100%;
max-width: 220px;
max-height: 120px;
object-fit: contain;
margin-bottom: 15px;
}
.partner-item span {
font-weight: 500;
text-align: center;
font-size: 16px;
}
/* Segment 7: Aktuelles */
.segment-news {
justify-content: flex-start;
padding-top: 40px;
}
.news-content {
max-width: 800px;
margin: 0 auto;
}
.news-item {
background-color: var(--white);
padding: 40px;
border-radius: 8px;
box-shadow: var(--shadow);
}
.news-item h3 {
font-size: 24px;
color: var(--primary-color);
margin-bottom: 10px;
}
.news-date {
color: var(--text-light);
font-size: 14px;
margin-bottom: 20px;
}
.news-item p {
color: var(--text-color);
line-height: 1.8;
margin-bottom: 15px;
}
/* Segment 8: Kontakt */
.segment-contact {
justify-content: flex-start;
padding-top: 40px;
padding-bottom: 0;
min-height: 100vh;
position: relative;
}
.contact-wrapper {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 60px;
}
.contact-info h3 {
font-size: 24px;
color: var(--primary-color);
margin-bottom: 20px;
}
.contact-info address {
font-style: normal;
margin-bottom: 30px;
}
.contact-info address p {
margin-bottom: 8px;
color: var(--text-color);
}
.opening-hours h4 {
font-size: 18px;
color: var(--primary-color);
margin-bottom: 10px;
}
.opening-hours p {
color: var(--text-light);
margin-bottom: 5px;
}
.contact-form-wrapper h3 {
font-size: 24px;
color: var(--primary-color);
margin-bottom: 20px;
}
.contact-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.form-group {
display: flex;
flex-direction: column;
}
.form-group label {
margin-bottom: 8px;
font-weight: 500;
color: var(--text-color);
}
.form-group input,
.form-group textarea {
padding: 12px;
border: 1px solid var(--border-color);
border-radius: 4px;
font-size: 16px;
font-family: inherit;
transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
outline: none;
border-color: var(--primary-color);
}
.checkbox-label {
display: flex;
align-items: flex-start;
gap: 10px;
cursor: pointer;
}
.checkbox-label input {
margin-top: 4px;
}
.checkbox-label span {
font-weight: normal;
color: var(--text-light);
}
.form-message {
padding: 20px;
border-radius: 4px;
margin-top: 20px;
}
.form-message.hidden {
display: none;
}
.form-message.success {
background-color: #d4edda;
color: #155724;
border: 1px solid #c3e6cb;
}
.form-message.error {
background-color: #f8d7da;
color: #721c24;
border: 1px solid #f5c6cb;
}
/* Footer */
.footer {
background-color: var(--text-color);
color: var(--white);
padding: 40px 0 20px;
min-height: auto;
}
/* Footer inside Kontakt segment */
.segment-contact .footer-content {
background-color: var(--text-color);
color: var(--white);
padding: 30px 40px;
margin-top: auto;
border-radius: 8px;
width: 100%;
}
.segment-contact .container {
display: flex;
flex-direction: column;
min-height: calc(100vh - 120px);
}
.footer-content {
text-align: center;
}
.footer-nav {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
margin-bottom: 30px;
}
.footer-nav a {
color: var(--white);
opacity: 0.8;
transition: var(--transition);
}
.footer-nav a:hover {
opacity: 1;
color: var(--white);
}
.footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.1);
padding-top: 20px;
}
.footer-bottom p {
opacity: 0.6;
font-size: 14px;
}
/* Responsive Design */
@media (max-width: 1024px) {
.nav-container {
padding: 0 20px;
}
.nav-links {
gap: 25px;
}
.partner-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(6, 1fr);
}
.leistung-slide {
grid-template-columns: 1fr;
height: auto;
}
.leistung-image {
height: 50vh;
}
.leistung-content {
padding: 20px;
}
.leistungen-carousel-wrapper {
min-height: auto;
}
}
@media (max-width: 768px) {
:root {
--navbar-height: 70px;
}
.nav-links {
display: none;
}
.mobile-menu-toggle {
display: flex;
}
.logo-img {
height: 50px;
}
.section-header {
font-size: 24px;
padding-left: 20px;
}
.leistung-slide {
grid-template-columns: 1fr;
}
.leistung-image {
height: 300px;
padding: 10px;
}
.leistung-content {
padding: 20px;
}
.leistung-content h3 {
font-size: 28px;
}
.leistung-content p {
font-size: 16px;
}
.carousel-arrow {
width: 40px;
height: 40px;
font-size: 16px;
}
.partner-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(6, 1fr);
gap: 15px;
}
.partner-item img {
max-width: 150px;
max-height: 80px;
}
.contact-wrapper {
grid-template-columns: 1fr;
gap: 40px;
}
.fullscreen-slideshow {
height: 300px;
}
.viewer-container {
height: 300px;
}
.slideshow-indicators {
gap: 6px;
}
.slideshow-indicators .indicator {
width: 8px;
height: 8px;
}
.cookie-content {
flex-direction: column;
text-align: center;
}
.segment {
padding: 10px 20px 20px;
}
.segment-leistungen .section-header,
.segment-partner .section-header {
padding-left: 20px;
}
}
@media (max-width: 480px) {
.section-header {
font-size: 20px;
}
.partner-grid {
grid-template-columns: 1fr;
grid-template-rows: repeat(12, auto);
}
.news-item {
padding: 25px;
}
.leistung-content h3 {
font-size: 24px;
}
}