/* =========================
   PHOTONCREST IMMOBILIEN
   VIBRANT_ENERGETIC STYLE
   ========================= */

/*************************
  CSS RESET & NORMALIZE
*************************/
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
}
body {
  background: #F4F6F8;
  color: #161a22;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #174872;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
  font-weight: 500;
}
a:hover, a:focus {
  color: #3A8F65;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  background: none;
  border: none;
  color: inherit;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #0e2234;
  letter-spacing: -0.5px;
}

/*********************************
  BRAND COLOR PALETTE & UTILITY
*********************************/
:root {
  --color-primary: #174872;
  --color-secondary: #3A8F65;
  --color-accent: #F4F6F8;
  --color-white: #fff;
  --color-black: #0e2234;
  --color-elec-blue: #278fff;
  --color-hot-green: #10CE88;
  --color-vivid-yellow: #F6C700;
  --color-pink: #E02F77;
  --color-hero-gradient: #F7FCFF;
  --color-shadow: rgba(23,72,114,.10);
  --color-card-border: #E0E4EA;
  --shadow: 0 4px 16px var(--color-shadow);
  --radius: 22px;
}

/*********************************
  LAYOUT & CONTAINER STYLES
*********************************/
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.text-section {
  max-width: 900px;
  margin: 0 auto;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/*****************************
  FLEXBOX PATTERNS
*****************************/
.card-container, .feature-grid, .footer-social, .footer-contact, .footer-legal, .footer-nav, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .feature-icon-block {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 32px 22px 32px;
  background: #fff;
  border: 2px solid var(--color-card-border);
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(16, 90, 144, 0.09);
  transition: transform 0.14s cubic-bezier(.4,0,.2,1), box-shadow 0.17s;
}

/*****************************
  HERO SECTION
*****************************/
.hero {
  background: linear-gradient(89deg, var(--color-accent) 0%, #fff 100%);
  padding: 64px 0 48px 0;
  margin-bottom: 52px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 25px;
}
.hero h1 {
  font-size: 2.8rem;
  color: var(--color-elec-blue);
  text-shadow: 0 4px 24px rgba(25, 156, 255, 0.07);
  margin-bottom: 4px;
  line-height: 1.18;
}
.hero p {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 13px;
}

/*********************************
  FEATURE GRID & CARDS
*********************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-icon-block {
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 352px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.16s, transform 0.22s cubic-bezier(.4,0,.2,1);
  border: 2px solid var(--color-accent);
}
.feature-icon-block img {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  background: #E8F7FF;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(17, 79, 172, 0.08);
}
.feature-icon-block h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.feature-icon-block p {
  font-size: 1rem;
  color: #2a2a2a;
  font-weight: 400;
}
.feature-icon-block:hover {
  box-shadow: 0 8px 36px rgba(23,72,114,.12);
  transform: translateY(-7px) scale(1.04);
  border-color: var(--color-elec-blue);
}

/*********************************
  VISUAL ELEMENTS
*********************************/
.cta-primary {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-elec-blue) 0%, var(--color-hot-green) 100%);
  color: #fff;
  padding: 0.85em 2.2em;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 30px;
  box-shadow: 0 2px 24px rgba(25, 156, 255, .13);
  border: none;
  cursor: pointer;
  margin-top: 11px;
  text-shadow: 0 2px 2px rgba(23,72,114,0.08);
  transition: background 0.23s, box-shadow 0.17s, transform 0.11s cubic-bezier(.4,0,.2,1);
  outline: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: linear-gradient(90deg, var(--color-hot-green) 0%, var(--color-elec-blue) 100%);
  box-shadow: 0 6px 32px rgba(16, 206, 136, .17);
  color: #fff;
  transform: scale(1.04);
}

.cta-section {
  margin-bottom: 0;
  padding: 56px 22px;
}
.cta-section h2,
.cta-section p {
  text-align: center;
}
.cta-section .cta-primary {
  margin: 22px auto 0 auto;
  display: block;
}

/*********************************
  TESTIMONIALS
*********************************/
.testimonials {
  background: #fff;
  padding: 54px 0 48px 0;
}
.testimonials h2 {
  color: var(--color-vivid-yellow);
  font-size: 2.25rem;
  margin-bottom: 24px;
}
.testimonial-card {
  flex: 1 1 290px;
  margin-bottom: 24px;
  background: #fff;
  border-radius: 18px;
  border: 2px solid var(--color-card-border);
  box-shadow: 0 4px 28px rgba(16,78,144,.09);
  transition: box-shadow 0.16s, border-color 0.15s;
  color: #181C21;
  min-width: 225px;
}
.testimonial-card p {
  font-size: 1.12rem;
  color: #161a22;
}
.testimonial-meta {
  font-size: 0.94rem;
  color: var(--color-hot-green);
  font-weight: 600;
  margin-top: 3px;
}
.testimonial-card:hover {
  border-color: var(--color-elec-blue);
  box-shadow: 0 10px 40px rgba(23,72,114,.14);
}

/*********************************
  NAVIGATION & HEADER
*********************************/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 18px rgba(23,72,114,.06);
  z-index: 120;
  margin-bottom: 0;
  position: relative;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 18px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  color: var(--color-primary);
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  transition: color 0.17s cubic-bezier(.4,0,.2,1);
  letter-spacing: 0.01em;
  padding: 5px 2px 3px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-elec-blue);
  border-bottom: 2px solid var(--color-hot-green);
}
header .cta-primary {
  margin-left: 23px;
  font-size: 1.08rem;
}

/* MOBILE BURGER MENU */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: var(--color-primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 12px;
  z-index: 401;
  transition: color 0.18s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-hot-green);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 90vw;
  max-width: 370px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 40px rgba(23,72,114,.15);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform 0.37s cubic-bezier(.56,.10,.32,1.01);
  display: flex;
  flex-direction: column;
  padding-top: 38px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: var(--color-hot-green);
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 18px;
  z-index: 1202;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  margin-top: 54px;
  padding-left: 34px;
}
.mobile-nav a {
  color: var(--color-primary);
  font-size: 1.27rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 11px 0 11px 0;
  border-radius: 12px;
  transition: background .16s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-elec-blue);
  background: #e6fcf3;
}

/*********************************
  FOOTER STYLES
*********************************/
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 0 0 32px 0;
  box-shadow: 0 -2px 28px 0px rgba(23,72,114,.04);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: 68px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 34px 18px 0 18px;
}
.footer-brand img {
  height: 44px;
  margin-bottom: 3px;
}
.footer-nav, .footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 4px;
}
.footer-nav a, .footer-legal a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.95;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-bottom 0.18s;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--color-hot-green);
  border-bottom: 2px solid var(--color-vivid-yellow);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.97rem;
  align-items: center;
}
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #E0F7ED;
}
.footer-contact img {
  width: 19px;
  height: 19px;
  filter: brightness(1.1) contrast(120%) opacity(0.92);
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-top: 6px;
}
.footer-social a img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 7px rgba(44,193,143, 0.13));
  transition: filter 0.17s;
}
.footer-social a:hover img {
  filter: brightness(1.3) drop-shadow(0 4px 13px rgba(44,193,143, 0.19));
}
.footer-copy {
  margin-top: 16px;
  color: #d4eef5;
  font-size: 0.98rem;
  opacity: .84;
  text-align: left;
  letter-spacing: 0.03em;
}

/*********************************
  TYPOGRAPHY SCALE & ELEMENTS
*********************************/
h1 { font-size: 2.4rem; margin-bottom: 11px; }
h2 { font-size: 1.8rem; margin-bottom: 9px; }
h3 { font-size: 1.29rem; margin-bottom: 6px; }
h4 { font-size: 1.10rem; margin-bottom: 4px; }

p, ul li, ol li { font-size: 1.04rem; margin-bottom: 8px; color: #333; }
strong { color: var(--color-secondary); font-weight: bold; }
ul li, ol li {
  margin-left: 18px;
  margin-right: 10px;
  margin-bottom: 8px;
  position: relative;
}
ul li:before {
  content: '•';
  color: var(--color-elec-blue);
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.3em;
}
/*********************************
  CONTACT DETAILS & MAP SECTION
*********************************/
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.05rem;
  color: var(--color-black);
  background: #e5f1fc;
  padding: 8px 19px;
  border-radius: 12px;
}
.contact-details img {
  width: 22px;
  height: 22px;
}
.map-snippet {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fafdff;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 2px 12px rgba(44,193,143,.05);
}
.map-snippet img {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  background: #def3ff;
  object-fit: cover;
}

/*********************************
  ACCENT SECTIONS
*********************************/
.accent-bg {
  background: linear-gradient(82deg, #F5FAFF 65%, #E0F7EF 100%);
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  box-shadow: 0 8px 48px rgba(44,193,143,.09);
}

/*********************************
  TABLES (minimal styles if needed)
*********************************/
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 18px rgba(23,72,114,0.06);
}
th, td {
  padding: 11px 12px;
  text-align: left;
}
tr:nth-child(odd) {
  background: #f7fafb;
}

/*********************************
  BUTTON STYLES (general)
*********************************/
button, .button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 0.6em 1.5em;
  border-radius: 32px;
  background: var(--color-elec-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(23,72,114,0.13);
  font-size: 1rem;
  transition: background 0.17s, box-shadow 0.15s, color 0.14s;
}
button:hover, .button:hover, button:focus, .button:focus {
  background: var(--color-hot-green);
  color: #fff;
  box-shadow: 0 8px 35px rgba(44,193,143,.11);
}

/*********************************
  COOKIE CONSENT BANNER & MODAL
*********************************/
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2200;
  background: #181C21;
  color: #fff;
  padding: 20px 24px 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 -2px 34px rgba(23,72,114,.12);
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  font-family: 'Roboto', Arial, sans-serif;
  animation: cookie-slide-in 0.58s cubic-bezier(.36, .76, .37, 1.18);
}
@keyframes cookie-slide-in {
  from { transform: translateY(120%); }
  to { transform: translateY(0); }
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 18px;
}
.cookie-consent-banner button {
  font-size: 1rem;
  padding: 0.6em 1.6em;
  border-radius: 26px;
  border: none;
  margin-left: 0;
}
.cookie-consent-banner .accept {
  background: var(--color-hot-green);
  color: #fff;
}
.cookie-consent-banner .accept:hover, .cookie-consent-banner .accept:focus {
  background: var(--color-vivid-yellow);
  color: #181C21;
}
.cookie-consent-banner .reject {
  background: #E02F77;
  color: #fff;
}
.cookie-consent-banner .reject:hover, .cookie-consent-banner .reject:focus {
  background: var(--color-secondary);
}
.cookie-consent-banner .settings {
  background: #fff;
  color: var(--color-elec-blue);
  border: 2px solid var(--color-elec-blue);
}
.cookie-consent-banner .settings:hover, .cookie-consent-banner .settings:focus {
  background: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2220;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(14,34,52,0.84);
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-width: 100vw;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fadeIn 0.37s cubic-bezier(.4,0,.2,1);
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  color: #181C21;
  max-width: 430px;
  width: 93vw;
  padding: 42px 28px 30px 28px;
  border-radius: 32px;
  box-shadow: 0 10px 48px rgba(23,72,114,.21);
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: cookieModalIn 0.37s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.91) translateY(40px); }
  to { transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.35rem;
  color: var(--color-primary);
  margin-bottom: 9px;
}
.cookie-category {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category input[type="checkbox"]:not(:disabled) {
  accent-color: var(--color-hot-green);
}
.cookie-category label {
  font-weight: 700;
  color: var(--color-elec-blue);
  cursor: pointer;
}
.cookie-mod-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 13px;
  align-items: center;
}
.cookie-mod-btns button {
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  padding: 0.55em 1.5em;
  background: var(--color-elec-blue);
  color: #fff;
  font-weight: 600;
  transition: background 0.15s, color 0.13s;
}
.cookie-mod-btns button:hover, .cookie-mod-btns button:focus {
  background: var(--color-hot-green);
}
.cookie-category input[type="checkbox"]:disabled + label {
  color: #C1C1C1;
}

/*********************************
  RESPONSIVE DESIGN
*********************************/
@media (max-width: 1024px) {
  .container { padding: 0 9px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid, .footer-contact { gap: 18px; }
  .feature-icon-block { min-width: 170px; }
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .main-nav a { font-size: 0.92rem; }
  .footer-nav a, .footer-legal a { font-size: 0.95rem; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.30rem; }
  .hero { padding: 34px 0 28px 0; }
  .hero h1 { font-size: 1.77rem; }
  .content-wrapper, .text-section { gap: 19px; }
  .feature-grid, .footer-social, .footer-contact, .footer-legal, .footer-nav, .content-grid {
    gap: 13px;
  }
  .feature-grid { flex-direction: column; }
  .feature-icon-block { min-width: 95%; max-width: 100%; padding: 20px 13px 19px 13px; }
  .testimonial-card {
    padding: 16px 9px 16px 13px;
    min-width: 90vw;
    font-size: 0.99rem;
  }
  .cta-section, .section { padding: 29px 8px; }
  .main-nav { display: none; }
  header .cta-primary { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-contact, .footer-social, .footer-nav, .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-brand img { height: 36px; }
  .cookie-consent-banner { flex-direction: column; gap: 13px; padding: 14px 9px 13px 9px; align-items: flex-start; }
  .cookie-consent-banner .cookie-buttons { margin-left: 0; gap: 9px; }
}
@media (max-width: 570px) {
  .container { padding: 0 4px; }
  .feature-grid, .footer-social, .footer-contact, .footer-legal, .footer-nav { gap: 6px; }
  .section, .cta-section { padding: 20px 0; }
  .cookie-consent-banner { font-size: 0.96rem; border-radius: 13px 13px 0 0; }
  .cookie-modal { padding: 22px 7px 17px 9px; border-radius: 21px; }
}

/*************************************
  TRANSITIONS, SHADOWS & MICRO-EFFECTS
**************************************/
.feature-icon-block, .testimonial-card, .card {
  transition: transform 0.2s cubic-bezier(.4,0,.2,1), box-shadow 0.16s;
}
.feature-icon-block:active, .testimonial-card:active, .card:active {
  transform: translateY(3px) scale(0.98);
  box-shadow: 0 2px 10px rgba(23,72,114,.11);
}
.cta-primary, .button, button {
  transition: box-shadow 0.18s, background 0.21s, transform 0.15s;
}

/*********************************
  MISC FIXES & UTILITIES
*********************************/
::-webkit-input-placeholder { color: #9EA8B6; }
::-moz-placeholder { color: #9EA8B6; }
:-ms-input-placeholder { color: #9EA8B6; }
::placeholder { color: #9EA8B6; opacity: 1; }

/*********************************
  ENSURE NO CONTENT OVERLAPS
*********************************/
.card-container > *, .feature-grid > *, .footer-contact > *, .content-grid > *, .footer-nav > *, .footer-legal > * {
  margin-bottom: 0 !important;
}
/* Visual separation between stacked sections/cards */
section + section, .section + .section {
  margin-top: 32px;
}

/*********************************
  ACCESSIBILITY & FOCUS STATES
*********************************/
a, button, .cta-primary {
  outline: none;
}
a:focus, button:focus, .cta-primary:focus {
  box-shadow: 0 0 0 2px var(--color-hot-green), 0 3px 10px rgba(23,72,114,0.12);
  border-radius: 6px;
  outline: none;
  z-index: 2;
}

/*********************************
  BRAND FONTS (font-family stack)
*********************************/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Roboto:400,500,700&display=swap');
