/* Header */
header {
    background-color: var(--accent-color);
    padding: 1.5vw 0 1vw 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    height: auto;
    overflow: visible;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Hero Image */
.hero-image {
    background-color: #f6f8f4;
    position: relative;
    color: white;
    overflow: hidden;
    margin-top: calc(10vh + 50px);
    z-index: 1;
    padding: 20px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-image img {
    width: auto;
    height: auto;
    max-width: 75%;
    max-height: 60vh;
    animation: fadeIn 1.2s ease-out;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.hero-image img:hover,
.hero-image img:active {
    transform: scale(1.1);
}

.flutter-effect {
    animation: water-drop-flutter 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    transform-origin: center !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5) !important;
}

/* Wood Image */
.wood-image {
    height: 35vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    max-width: 100vw;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.wood-image img {
    position: absolute;
    left: 50%;
    width: 100%;
    object-fit: cover;
    transform: translate(-50%, +15%);
    max-width: 100vw;
    box-sizing: border-box;
    display: block;
}

/* Sections */
.philosophy,
.about-me,
.impressum {
    padding: 32px 20px;
    text-align: center;
    background-color: var(--accent-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    width: 100%;
    animation: slideUp 0.8s ease-out;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.philosophy {
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.philosophy p {
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 15px;
    gap: 15px;
    background-color: #fff;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
    display: block;
    margin-bottom: 8px;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* About Me */
.about-me img {
    border-radius: 50%;
    height: 30vh;
    max-width: 50vw;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin: 8px 0 20px 0;
    transition: transform 0.5s ease;
    animation: fadeIn 1s ease-out;
    box-sizing: border-box;
    display: block;
}

.about-me img:hover {
    transform: scale(1.02) rotate(2deg);
}

/* Button Container */
.button-container {
	display: flex;
	justify-content: center;
	margin: 25px 0 30px 0;
	text-align: center;
	align-items: center;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	padding: 10px 0;
}

#galleryButton {
	background-color: #333;
	border: 2px solid #333;
	color: #dedbd6;
	padding: 20px 30px;
	font-size: 2.8vh;
	min-height: 3.5vw;
	line-height: 3vw;
	border-radius: 8px;
	font-family: 'Barlow', sans-serif;
	font-weight: 300;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	letter-spacing: 1px;
	position: relative;
	overflow: visible;
}

#galleryButton:hover {
	background-color: #dedbd6;
	color: #333;
	transform: translateY(-3px);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#galleryButton:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Modal Styles */
.modal {
    text-align: center;
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.modal-content {
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    margin: 40px auto;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 100%;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    box-sizing: border-box;
}

.close {
    position: absolute;
    top: 5px;
    right: 20px;
    color: #aaa;
    font-size: 7vh;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    transform: rotate(90deg);
    background-color: rgba(0, 0, 0, 0.05);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.gallery-grid picture {
    position: relative;
    z-index: 10;
    cursor: pointer;
    pointer-events: auto;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    max-width: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.gallery-grid img:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#galleryModal h1 {
    margin-bottom: 25px;
    margin-top: 8px;
}

/* Full Image Modal */
#fullImageModal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

#fullImage {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transform: scale(0.95);
    opacity: 0;
    transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
    touch-action: manipulation;
    box-sizing: border-box;
}

/* Animation classes */
.modal.show { opacity: 1; }
.modal-content.show { transform: translateY(0); opacity: 1; }
#fullImage.show { transform: scale(1); opacity: 1; }

/* Arrow Navigation */
.arrow {
    position: absolute;
    transform: translateY(-50%);
    font-size: 7vh;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    z-index: 2100;
    transition: all var(--transition-speed) ease;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#prevImage { left: 20px; }
#nextImage { right: 20px; }

/* Forms */
form {
    text-align: center;
    max-width: 600px;
    width: 90%;
    padding: 25px;
    padding-top: 35px;
    font-family: 'Barlow', sans-serif;
    color: #333;
    margin: 15px auto;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 100%;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

#contactForm input,
textarea {
    padding: 12px 15px;
    margin-top: 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: var(--button-radius);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed) ease;
    font-family: 'Barlow', sans-serif;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
}

#contactForm input:focus,
textarea:focus {
    outline: none;
    border: 1px solid #999;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 5px rgba(51, 51, 51, 0.2);
}

#contactForm button {
    margin-top: 15px;
    background-color: #333;
    border: 2px solid #333;
    color: #dedbd6;
    padding: 12px 25px;
    font-size: 2.2vh;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    -webkit-appearance: none;
    appearance: none;
    min-height: 44px;
    min-width: 44px;
}

#contactForm button:hover {
    background-color: #dedbd6;
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#contactForm button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#status {
    margin-top: 15px;
    padding: 8px;
    border-radius: var(--button-radius);
    font-weight: 400;
    transition: all var(--transition-speed) ease;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Loading Animation */
.loading {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 10px;
}

/* Navigation Image */
.nav-image {
    padding-top: 15px;
    margin-bottom: 0px;
    width: 50px;
    height: auto;
}

/* Hamburger Menu - Clean Production Version */
.hamburger-button {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.hamburger-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Use Unicode character for reliable visibility */
.hamburger-button::before {
    content: '☰';
    font-size: 24px;
    color: #333;
    line-height: 1;
    font-weight: normal;
    font-family: Arial, sans-serif;
    transition: color 0.3s ease, transform 0.3s ease;
}

.hamburger-button:hover::before {
    color: #000;
    transform: scale(1.1);
}

/* Hide the span elements since we're using Unicode */
.hamburger-button span {
    display: none;
}

/* Navigation Menu */
.navigation-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--accent-color);
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    padding-top: 80px;
    overflow-y: auto;
}

.navigation-menu.open {
    right: 0;
}

.navigation-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navigation-menu a {
    display: block;
    padding: 20px 30px;
    color: #333;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: 18px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.navigation-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
    padding-left: 40px;
}

/* Navigation overlay for mobile */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Impressum */
.impressum {
	text-align: center;
	width: 100%;
	margin-bottom: 0;
	padding: 25px 0;
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.impressum p {
	line-height: 1.3;
}

/* Impressum Content Page */
.impressum-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 20px 30px 20px;
    text-align: left;
    background-color: #fff;
    box-sizing: border-box;
}

.impressum-content h1 {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px;
    font-size: clamp(28px, 4vh, 40px);
    color: #333;
}

.impressum-content h2 {
    font-size: clamp(20px, 2.8vh, 28px);
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    color: #333;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #dedbd6;
    text-align: left;
}

.impressum-content p {
    text-align: left;
    margin: 12px 0;
    line-height: 1.6;
    font-size: clamp(16px, 2.2vh, 20px);
}

.impressum-content a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.impressum-content a:hover {
    color: #004499;
    text-decoration: underline;
}

.impressum > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.impressum h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 8px;
}

.impressum p {
    font-size: clamp(14px, 1.8vh, 18px);
    margin-top: 12px;
    margin-bottom: 4px;
}

.impressum strong {
    display: none;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.impressum a {
    color: #0066cc;
    text-decoration: none;
}

.impressum a:hover {
    text-decoration: underline;
}

.impressum hr {
    border: none;
    height: 1px;
    background-color: #999;
    margin: 12px auto;
    width: 80%;
    opacity: 0.7;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Privacy Notice */
#privacy-notice {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 2000;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.notice-text {
    margin-bottom: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.notice-text strong {
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
    color: #dedbd6;
}

.notice-button {
    display: flex;
    justify-content: center;
}

#acknowledge-notice {
    background-color: #dedbd6;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: var(--button-radius);
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-weight: 300;
    font-size: 14px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 120px;
}

#acknowledge-notice:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    background-color: #f0ede8;
}

#acknowledge-notice:active {
	transform: translateY(1px);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* DSGVO Cookie Banner */
.cookies-banner {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	font-family: 'Barlow', sans-serif;
}

.cookies-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(3px);
}

.cookies-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	max-width: 600px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 30px;
	box-sizing: border-box;
}

.cookies-header {
	text-align: center;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--accent-color);
	padding-bottom: 15px;
}

.cookies-header h3 {
	font-size: clamp(20px, 3vh, 28px);
	color: #333;
	margin: 0;
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
}

.cookies-text {
	margin-bottom: 25px;
	line-height: 1.6;
}

.cookies-text p {
	margin: 0 0 15px 0;
	font-size: clamp(14px, 2vh, 16px);
	color: #555;
	text-align: left;
}

.cookies-text strong {
	color: #333;
	font-weight: 600;
}

.cookies-options {
	margin-bottom: 25px;
}

.cookie-option {
	margin-bottom: 20px;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #f9f9f9;
}

.cookie-option label {
	display: flex;
	align-items: flex-start;
	cursor: pointer;
	font-size: clamp(14px, 2vh, 16px);
	color: #333;
	margin-bottom: 8px;
}

.cookie-option input[type="checkbox"] {
	margin-right: 12px;
	margin-top: 2px;
	transform: scale(1.2);
	cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

.cookie-option strong {
	font-weight: 600;
	color: #333;
}

.cookie-description {
	font-size: clamp(12px, 1.8vh, 14px);
	color: #666;
	margin: 0;
	padding-left: 24px;
	line-height: 1.4;
}

.cookies-buttons {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	justify-content: center;
}

.cookie-btn {
	padding: 12px 20px;
	border: none;
	border-radius: 8px;
	font-family: 'Barlow', sans-serif;
	font-weight: 400;
	font-size: clamp(14px, 2vh, 16px);
	cursor: pointer;
	transition: all 0.3s ease;
	min-width: 140px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cookie-btn.primary {
	background-color: #333;
	color: #fff;
	border: 2px solid #333;
}

.cookie-btn.primary:hover {
	background-color: #555;
	border-color: #555;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cookie-btn.secondary {
	background-color: var(--accent-color);
	color: #333;
	border: 2px solid var(--accent-color);
}

.cookie-btn.secondary:hover {
	background-color: #f0ede8;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-btn.tertiary {
	background-color: transparent;
	color: #666;
	border: 2px solid #ccc;
}

.cookie-btn.tertiary:hover {
	background-color: #f5f5f5;
	border-color: #999;
	color: #333;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cookie-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookies-links {
	text-align: center;
	padding-top: 15px;
	border-top: 1px solid #e0e0e0;
}

.cookies-links a {
	color: #0066cc;
	text-decoration: none;
	font-size: clamp(12px, 1.8vh, 14px);
	transition: color 0.3s ease;
}

.cookies-links a:hover {
	color: #004499;
	text-decoration: underline;
}

/* Cookie Settings Link in Footer */
#cookie-settings-link {
	cursor: pointer;
	transition: color 0.3s ease;
}

#cookie-settings-link:hover {
	color: #004499 !important;
}

/* Content blocking when cookie consent is required */
body.cookie-consent-required::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 9999;
	pointer-events: none;
}

body.cookie-consent-required > *:not(#cookies-banner) {
	filter: blur(2px);
	pointer-events: none;
	user-select: none;
}

body.cookie-consent-required #cookies-banner {
	filter: none;
	pointer-events: auto;
	user-select: auto;
}
